| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <view class="container">
- <van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:search="onSearch" bind:clear="onSearch" />
- <view class="header" style="height: 20rpx;"></view>
- <Yl_ListBox id='ListBox' bind:getlist='getList'>
- <view wx:for="{{list}}" wx:key="sa_storeid" class="list-item">
- <view class="item" bind:tap="goToDetail" data-id="{{item.sa_storeid}}">
- <view class="top">
- <view class="name-row">
- <view class="name">{{item.storename || '--'}}</view>
- <view class="storeno-tag">NO.{{item.storeno || '--'}}</view>
- </view>
- <view class="statu" style="border-color: {{set.color(item.status)}}; color: {{set.color(item.status)}};">
- {{item.status || '--'}}
- </view>
- </view>
- <view class="content">
- <view class="row" wx:if="{{item.applystatus}}">
- <view class="exp">申请状态:<text style="color: {{set.applyColor(item.applystatus)}};">{{item.applystatus}}</text></view>
- </view>
- <view class="row">
- <view class="exp">导购人数:{{item.salercount || '0'}}</view>
- <view class="exp">面积:{{item.area || '--'}}㎡</view>
- </view>
- <view class="row">
- <view class="exp">类型:{{item.storetype || '--'}}</view>
- <view class="exp">市场类型:{{item.markettype || '--'}}</view>
- </view>
- <view class="row">
- <view class="exp">负责人:{{item.leadername || '--'}}</view>
- <view class="exp">省市县:{{(item.province || '--') + (item.city || '--') + (item.county || '--')}}</view>
- </view>
- <view class="row">
- <view class="exp full-width">地址:{{item.address || '--'}}</view>
- </view>
- </view>
- </view>
- <view class="actions">
- <view class="action-btn edit" bind:tap="onEdit" data-item="{{item}}">
- <van-icon name="edit" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>编辑</text>
- </view>
- <view wx:if="{{item.status === '停用' && item.applystatus !== '启用申请'}}" class="action-btn apply-enable" bind:tap="onApplyEnable" data-item="{{item}}">
- <van-icon name="add-o" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>启用申请</text>
- </view>
- <view wx:if="{{item.status === '启用' && item.applystatus !== '停用申请'}}" class="action-btn apply-disable" bind:tap="onApplyDisable" data-item="{{item}}">
- <van-icon name="close" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>停用申请</text>
- </view>
- <view wx:if="{{item.status === '停用'}}" class="action-btn delete" bind:tap="onDelete" data-item="{{item}}">
- <van-icon name="delete" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>删除</text>
- </view>
- </view>
- </view>
- <Yl_Empty wx:if="{{list.length==0}}" />
- <view style="height:150rpx;" />
- </Yl_ListBox>
- <!-- 新建按钮 -->
- <view class="create-order-button">
- <van-button custom-class="create-btn" color="#3874F6" bind:tap="goToCreate">新建门店</van-button>
- </view>
- </view>
- <wxs module="set">
- module.exports = {
- color: function (statu) {
- var color = '#999999';
- switch (statu) {
- case "启用":
- color = '#52C41A';
- break;
- case "停用":
- color = '#FF4D4F';
- break;
- case "":
- color = '#999999';
- break;
- };
- return color;
- },
- applyColor: function (statu) {
- var color = '#999999';
- switch (statu) {
- case "启用申请":
- color = '#FA8C16';
- break;
- case "停用申请":
- color = '#FF4D4F';
- break;
- };
- return color;
- }
- }
- </wxs>
|