1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <import src="../public-view.wxml" />
- <scroll-view scroll-y class="bg-scroll-view" style="background-color:{{data.length == 0 ? 'white' : '#F5F5F5'}};">
- <template is="customer-header-view" data="{{t: header.t, s: header.s, src: '../../../icon/public/customer_header_m.png'}}" wx:if="{{data.length != 0}}" />
- <view wx:if="{{type == 'manager'}}" class="item-bg">
- <template is="manager-item" wx:for="{{data}}" wx:key="" data="{{...data[index], in: index}}" />
- <view class="no-data" wx:if="{{data.length == 0}}">
- <image src="../../../icon/public/customer_empty.png"></image>
- <text>暂无购买人员信息</text>
- <!-- <text>暂无购买人,购买功能即将开放</text> -->
- </view>
- </view>
- <view wx:else class="item-bg">
- <template is="choose-item" wx:for="{{data}}" wx:key="" data="{{...data[index], in: index}}" />
- <view wx:if="{{type == 'nPurchase'}}" class="new-item" bindtap="newCustomerAction">
- <image src="../../../icon/public/customer_add.png"></image>
- <text>新增人员</text>
- </view>
- </view>
-
- <view class="scroll-view-bottom-view{{adapter.suffix}}" wx:if="{{type != 'manager'}}"></view>
- </scroll-view>
- <template is="bottom-view-botton" wx:if="{{type != 'manager'}}" data="{{t: '下一步', suffix: adapter.suffix, action: 'nextStep'}}" />
- <template name="choose-item">
- <view class="item" bindtap="chooseAction" id="{{in}}">
- <text>{{h}}</text>
- <view>
- <view>
- <text>{{user_name}}</text>
- <!-- <text>上次购买</text> -->
- </view>
- <text>{{id_card}}</text>
- </view>
- <image src="../../../icon/public/{{img}}"></image>
- </view>
- </template>
- <template name="manager-item">
- <view class="item">
- <text>{{h}}</text>
- <view>
- <view>
- <text>{{user_name}}</text>
- <!-- <text>上次购买</text> -->
- </view>
- <text>{{id_card}}</text>
- </view>
- <view id="{{in}}" bindtap="editAction">
- <image src="../../../icon/public/customer_edit.png"></image>
- </view>
- <view id="{{in}}" bindtap="deleteAction">
- <image src="../../../icon/public/customer_delete.png"></image>
- </view>
- </view>
- </template>
|