Commit 11458d6f by 张立顺

fix 超管侧边栏修复

1 parent cdb36de6
...@@ -28,9 +28,11 @@ Component({ ...@@ -28,9 +28,11 @@ Component({
else if (!userInfo?.isSuper && val.merchantId == userInfo?.shopMerchantId) val.actived = true else if (!userInfo?.isSuper && val.merchantId == userInfo?.shopMerchantId) val.actived = true
} }
}) })
console.log(storeList, 'copyStoreList');
let newArray = storeList.slice(0, 20)
this.setData({ this.setData({
userInfo, userInfo,
copyStoreList: storeList, copyStoreList: newArray,
searchValue: '', searchValue: '',
edit: false, edit: false,
customSearchFlag: false, customSearchFlag: false,
...@@ -171,8 +173,9 @@ Component({ ...@@ -171,8 +173,9 @@ Component({
if (i.merchantId == selectedMerchantId) i.active = true if (i.merchantId == selectedMerchantId) i.active = true
return i return i
}) })
let newArray = storeList.slice(0, 20)
this.setData({ this.setData({
copyStoreList: storeList copyStoreList: newArray
}) })
} else { } else {
let arr = [] let arr = []
......
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 3;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!