|
@@ -87,7 +87,6 @@ Page({
|
|
|
});
|
|
|
/* 首页小组件查询 */
|
|
|
let home = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['首页'])[0].apps[0].meta.wedgits;
|
|
|
- console.log("首页", home)
|
|
|
if (home.some(v => v.wedgit == 'homedatadisplay')) subassembly.push('homedatadisplay');
|
|
|
this.setData({
|
|
|
gridList,
|
|
@@ -99,7 +98,6 @@ Page({
|
|
|
bannerList: wx.getStorageSync('banner_list')[0].ads
|
|
|
})
|
|
|
this.queryNoticeList(0); //获取通告列表
|
|
|
- this.queryMessage(0)
|
|
|
},
|
|
|
/* 销售线索待办 */
|
|
|
getCount() {
|
|
@@ -157,9 +155,10 @@ Page({
|
|
|
content: {
|
|
|
nocache: true,
|
|
|
pageNumber: 1,
|
|
|
- pageSize: 3,
|
|
|
+ pageSize: 5,
|
|
|
pageTotal: 1,
|
|
|
- type: "应用"
|
|
|
+ type: "",
|
|
|
+ where:{}
|
|
|
},
|
|
|
}).then(res => {
|
|
|
if (res.msg != '成功') return (i <= 5) ? this.queryMessage(i + 1) : wx.showToast({
|
|
@@ -198,7 +197,7 @@ Page({
|
|
|
item
|
|
|
} = e.currentTarget.dataset;
|
|
|
wx.navigateTo({
|
|
|
- url: '/pages/tabbar/message/details?id=' + item.objectid,
|
|
|
+ url: '/pages/tabbar/message/details?id=' + item.messageid,
|
|
|
})
|
|
|
},
|
|
|
/* 去通告 */
|
|
@@ -225,9 +224,13 @@ Page({
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
onShow() {
|
|
|
+ getApp().globalData.callback = function (res) {
|
|
|
+ console.log("callback", res)
|
|
|
+ };
|
|
|
this.getTabBar().init();
|
|
|
this.startDataCarousel();
|
|
|
this.getCount(); //更新徽标数据
|
|
|
+ this.queryMessage(0); //更新最新消息
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面隐藏
|