柒零 1 an în urmă
părinte
comite
f14fad90fc
2 a modificat fișierele cu 8 adăugiri și 8 ștergeri
  1. 7 7
      subpages/helpList/helpList.js
  2. 1 1
      subpages/helpList/helpList.wxml

+ 7 - 7
subpages/helpList/helpList.js

@@ -88,19 +88,19 @@ Page({
         // ""
         // ""
         if (res.data) {
         if (res.data) {
           var tempList = res.data || [];
           var tempList = res.data || [];
-          for (let i = 0; i < tempList.length; i++) {
-            const element = tempList[i];
-            element.icon = `https://aipush.aidsleep.cn/assets/helpics/${element.icon}`;
-            that.getList(tempList, i, element.cid)
-          }
+          // for (let i = 0; i < tempList.length; i++) {
+          //   const element = tempList[i];
+          //   element.icon = `https://aipush.aidsleep.cn/assets/helpics/${element.icon}`;
+          //   that.getList(tempList, i, element.cid)
+          // }
           // [{"cid":11,"name":"房间控制","icon":"all_67362a14b131f.png","subList":"[]"}]
           // [{"cid":11,"name":"房间控制","icon":"all_67362a14b131f.png","subList":"[]"}]
           // console.log("tempList=>", JSON.stringify(tempList));
           // console.log("tempList=>", JSON.stringify(tempList));
           // console.log("tempList=>", tempList);
           // console.log("tempList=>", tempList);
-          setTimeout(() => {
+          // setTimeout(() => {
             that.setData({
             that.setData({
               mCateList: tempList
               mCateList: tempList
             })
             })
-          }, 250 * tempList.length);
+          // }, 250 * tempList.length);
 
 
         }
         }
 
 

+ 1 - 1
subpages/helpList/helpList.wxml

@@ -11,7 +11,7 @@
                 <image class="menu-icon" src="{{item.icon}}" />
                 <image class="menu-icon" src="{{item.icon}}" />
                 <text class="menu-title">{{item.name}}</text>
                 <text class="menu-title">{{item.name}}</text>
             </view>
             </view>
-            <view class="item" wx:for="{{item.subList}}" wx:for-item="subItem" wx:for-index="subIndex"
+            <view class="item" wx:for="{{item.arclist}}" wx:for-item="subItem" wx:for-index="subIndex"
                 data-item="{{subItem}}" bindtap="toDetails">
                 data-item="{{subItem}}" bindtap="toDetails">
                 <text class="item-title">{{subItem.title}}</text>
                 <text class="item-title">{{subItem.title}}</text>
                 <van-icon name="arrow" color="#999999" size="26rpx" />
                 <van-icon name="arrow" color="#999999" size="26rpx" />