zhaoxiaohai 3 rokov pred
rodič
commit
cdebd0c8ed

+ 5 - 5
packageA/setclient/index.js

@@ -16,7 +16,7 @@ Page({
             id: "3"
         }, {
             label: "筛选",
-            icon: "icon-daoruxialajiantou",
+            icon: "icon-shaixuan",
             color: "",
             width: "",
             id: "2"
@@ -142,17 +142,19 @@ Page({
                 title: res.data,
                 icon: "none"
             })
-            this.getTags(res.data.map(v => v.sa_customersid));
             this.setData({
                 'content.pageNumber': res.pageNumber + 1,
                 'content.pageTotal': res.pageTotal,
                 'content.total': res.total,
                 list: res.pageNumber == 1 ? res.data : this.data.list.concat(res.data)
             })
+            this.getTags();
         })
     },
     /* 获取列表标签 */
-    getTags(ownerids = []) {
+    getTags() {
+        let list = this.data.list,
+            ownerids = list.map(v => v.sa_customersid)
         _Http.basic({
             "id": 20221018102001,
             "content": {
@@ -160,8 +162,6 @@ Page({
                 ownerids
             }
         }).then(res => {
-            console.log("标签", res)
-            let list = this.data.list;
             for (let key in res.data) {
                 let index = list.findIndex(v => v.sa_customersid == key);
                 list[index].tags = res.data[key]

+ 1 - 15
packageA/setclient/modules/list/index.js

@@ -1,22 +1,8 @@
 Component({
     properties: {
-        list: Array,
-        fast: Boolean,
-        fastCallBack: Function
+        list: Array
     },
     options: {
         addGlobalClass: true
-    },
-    methods: {
-        handleFast(e) {
-            const {
-                name,
-                item
-            } = e.currentTarget.dataset;
-            this.triggerEvent("fastCallBack", {
-                name,
-                item
-            })
-        },
     }
 })

+ 0 - 24
packageA/setclient/modules/list/index.scss

@@ -82,30 +82,6 @@
     }
 }
 
-.bottom {
-    display: flex;
-    justify-content: flex-end;
-    width: 100%;
-    height: 80rpx;
-    background: #FFFFFF;
-
-    navigator {
-        padding: 0 20rpx;
-        line-height: 80rpx;
-
-        .iconfont {
-            font-size: 28rpx;
-            color: #999999;
-            margin-right: 8rpx;
-        }
-
-        font-size: 24rpx;
-        font-family: PingFang SC-Regular,
-        PingFang SC;
-        color: #333333;
-    }
-}
-
 .line-1 {
     overflow: hidden;
     white-space: nowrap;

+ 1 - 6
packageA/setclient/modules/list/index.wxml

@@ -1,4 +1,4 @@
-<view class="setclient-list-item" style="margin-bottom: {{fast?'20rpx':'0'}};" wx:for="{{list}}" wx:key="item.sys_enterpriseid">
+<view class="setclient-list-item" wx:for="{{list}}" wx:key="item.sys_enterpriseid">
     <navigator url="/packageA/setclient/detail?id={{item.sa_customersid}}" class="con">
         <view class="portrait {{item.enterprisename <=2?'min-portrait':''}}">
             {{handle.getName(item.enterprisename)}}
@@ -15,11 +15,6 @@
             <van-icon name="arrow" />
         </view>
     </navigator>
-    <view class="bottom" wx:if="{{fast}}">
-        <navigator url="#" bindtap="handleFast" data-name="delete" data-item="{{item}}">
-            <text class="iconfont icon-qunzu" />作废
-        </navigator>
-    </view>
 </view>
 
 <My_empty wx:if="{{!list.length}}" />