Commit 2edf04b9 by chenwq

发现版块数据固有化

1 parent fe702293
...@@ -296,6 +296,20 @@ Page({ ...@@ -296,6 +296,20 @@ Page({
this.getProductByscene(); this.getProductByscene();
// // 看线索 // // 看线索
// this.getClueInit() // this.getClueInit()
// 获取看产值数据
const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].subList
const systemData = res[1].subList
this.setData({
systemData,
systemDataId: res[1].id,
productData,
productDataId: res[0].id,
['navList[0]']: res[0].name || '看产品',
['navList[1]']: res[1].name || '客户数字化'
})
})
this.setData({ this.setData({
productData: this.addAll(this.data.productData), productData: this.addAll(this.data.productData),
...@@ -456,20 +470,6 @@ Page({ ...@@ -456,20 +470,6 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: async function () { onShow: async function () {
// 获取看产值数据
const app = getApp()
app.getBaseData().then(res => {
const productData = res[0].subList
const systemData = res[1].subList
this.setData({
systemData,
systemDataId: res[1].id,
productData,
productDataId: res[0].id,
['navList[0]']: res[0].name || '看产品',
['navList[1]']: res[1].name || '客户数字化'
})
})
let { userInfo } = wx.$storage.get(); let { userInfo } = wx.$storage.get();
!userInfo.isSuper && this.getSharePost(userInfo.subLoginUser.merchantId); !userInfo.isSuper && this.getSharePost(userInfo.subLoginUser.merchantId);
let { serviceMerchatList } = (await getMockData()) || { let { serviceMerchatList } = (await getMockData()) || {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!