zhaoxiaohai 3 years ago
parent
commit
b27d4ca75a
2 changed files with 4 additions and 3 deletions
  1. 1 1
      custom-tab-bar/index.js
  2. 3 2
      pages/tradeShow/index.js

+ 1 - 1
custom-tab-bar/index.js

@@ -11,7 +11,6 @@ Component({
         attached() {},
         ready: function () {
             // 在组件实例进入页面节点树时执行
-            this.unReadMessageCount();
         },
     },
     /**
@@ -99,6 +98,7 @@ Component({
                 "method": "unReadMessageCount",
                 "content": {}
             }).then(res => {
+                console.log(res)
                 if (res.msg != '成功') console.log('未读消息数量查询失败')
                 if (res.data[0].fcount == 0) return this.setData({
                     "tabbarList[3].fcount": ""

+ 3 - 2
pages/tradeShow/index.js

@@ -37,7 +37,7 @@ Page({
             "method": "getLiveChannelData",
             "content": {
                 "tactivityid": options.id,
-                "siteid":"BWJ"
+                "siteid": "BWJ"
             }
         }
         /* 云展会直播大厅 */
@@ -74,7 +74,8 @@ Page({
             } else {
                 data = JSON.parse(JSON.stringify(res.data));
                 const classifyList = this.setClassifyList(data);
-                const List = handleList.twoDimensionalArr(data, 4, 10);
+                const list = handleList.imageType(data, "brandcover");
+                const List = handleList.twoDimensionalArr(list, 4, 10);
                 this.setData({
                     agentList: res.data,
                     showAgentList: List,