70 lines
4.4 KiB
Plaintext
70 lines
4.4 KiB
Plaintext
<view class="page-container">
|
|
<view class="search-box">
|
|
<view class="search-container">
|
|
<input class="search-input" value="{{keywords}}" bindinput="inputKeywords" bindconfirm="doSearchKeyWord" type="text" confirm-type="search" placeholder="搜索" />
|
|
<view wx:if="{{keywords !=''}}" bind:tap="clearSearch" class="icon-clear" style="width: 20px;height: 20px;"></view>
|
|
</view>
|
|
<view class="add-btn" bind:tap="showCreateDialog">创建联系人</view>
|
|
</view>
|
|
<view class="content-container">
|
|
<container-loading loadingState="{{loadingState}}" style="height: 85vh;" bindrefresh="doRefreshList">
|
|
<scroll-view scroll-y="{{true}}" style="height: 85vh;padding-bottom: 40px;" bindrefresherrefresh="doRefreshList" refresher-enabled refresher-triggered="{{listRefreshTrig}}" bindscrolltolower="doLoadMore" lower-threshold='30'>
|
|
<view class="order-box">
|
|
<block wx:for="{{contactList}}" wx:key="index">
|
|
<view class="order-item">
|
|
<mp-slideview id="mp-slide-{{index}}" buttons="{{slideBtns}}" icon="{{true}}" bindshow="show" data-value="{{item}}" bindhide="hide" bindbuttontap="slideButtonTap">
|
|
<view class="order-item-container">
|
|
<view class="contact-desc">
|
|
<view class="contact-icon">
|
|
<view class="ic-user" style="width: 24px;height: 24px;"></view>
|
|
<view class="ml-10 name">{{item.name}}</view>
|
|
</view>
|
|
<view>{{item.phone}}</view>
|
|
</view>
|
|
<view class="service-desc ml-10">{{item.company}}</view>
|
|
<view class="service-desc ml-10">专属客服 : {{item.csaNo}}</view>
|
|
</view>
|
|
</mp-slideview>
|
|
</view>
|
|
</block>
|
|
<mp-loading show="{{isLoadMore}}" type="circle"></mp-loading>
|
|
<view wx:if="{{!hasMore}}" class="no-more">
|
|
<view class="no-more-dot"></view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</container-loading>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 新增 -->
|
|
<mp-half-screen-dialog show="{{showCreateContact}}" bindclose="closeDialog">
|
|
<view slot="title" style="font-size: 32rpx;">{{title}}</view>
|
|
<view slot="desc">
|
|
<view class="form-box">
|
|
<view class="form-item">
|
|
<text class="form-item-title star" decode>姓  名</text>
|
|
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactName}}" placeholder="请输入姓名" class="form-item-content" bindinput="inputContactName" />
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-item-title star">联系电话</view>
|
|
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactPhone}}" placeholder="请输入联系电话" class="form-item-content" bindinput="inputContactPhone" />
|
|
</view>
|
|
<view class="form-item">
|
|
<view class="form-item-title">联系邮箱</view>
|
|
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactEmail}}" placeholder="请输入联系邮箱" class="form-item-content" bindinput="inputContactEmail" />
|
|
</view>
|
|
<view class="form-item">
|
|
<text class="form-item-title" decode>公  司</text>
|
|
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactCompany}}" placeholder="请输入公司名称" class="form-item-content" bindinput="inputContactCompany" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view slot="footer">
|
|
<button wx:if="{{isCreate}}" class="confirm-btn" bind:tap="doSaveContact">{{btnTxt}}</button>
|
|
<button wx:if="{{!isCreate}}" class="confirm-btn" bind:tap="doEditContact">{{btnTxt}}</button>
|
|
</view>
|
|
</mp-half-screen-dialog>
|
|
|
|
<mp-toptips msg="{{errorHint}}" type="error" show="{{showError}}"></mp-toptips>
|
|
<mp-toptips msg="{{successHint}}" delay="2000" type="success" show="{{showSuccess}}"></mp-toptips> |