From 9785d6262a5528db9f030c1ca2fda260dd3385ae Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 7 Jan 2021 16:06:55 +0800 Subject: [PATCH] no message --- colorui/components/cu-custom.wxml | 6 ++++-- colorui/main.wxss | 2 +- pages/agent/factory/index.js | 6 +++++- pages/article/point-index/index.js | 4 ++-- pages/home/index/index.js | 7 ++++--- pages/home/index/index.wxml | 23 ++++++++++++----------- pages/login/index.js | 13 +------------ pages/mall/detail/index.js | 7 ++----- pages/mall/detail/index.wxml | 2 +- utils/util.js | 3 ++- 10 files changed, 34 insertions(+), 39 deletions(-) diff --git a/colorui/components/cu-custom.wxml b/colorui/components/cu-custom.wxml index 3d4ed0d..ecf3781 100644 --- a/colorui/components/cu-custom.wxml +++ b/colorui/components/cu-custom.wxml @@ -1,10 +1,12 @@ - + - + diff --git a/colorui/main.wxss b/colorui/main.wxss index 714714c..d2f9359 100644 --- a/colorui/main.wxss +++ b/colorui/main.wxss @@ -778,7 +778,7 @@ button.icon.lg { top: 0; z-index: 19; /* box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1); */ - border-bottom: 2rpx solid #eee; + border-bottom: 1rpx solid #f3f3f3; } .cu-bar.foot { diff --git a/pages/agent/factory/index.js b/pages/agent/factory/index.js index 85d8f35..2a6ca36 100644 --- a/pages/agent/factory/index.js +++ b/pages/agent/factory/index.js @@ -103,6 +103,10 @@ Page({ this.setData({cateIndex : e.currentTarget.dataset.index}) }, saleGood: function(e){ + if(!app.globalData.userInfo){ + wx.navigateTo({ url: '/pages/login/index' }) + return + } var item = this.data.factoryDetail.paperCategoryList[this.data.cateIndex] if(util.isEmpty(item.unitPrice)){ util.showToast('该纸品暂无报价,无法卖货') @@ -111,7 +115,7 @@ Page({ wx.navigateTo({ url: '/pages/agent/edit/index?id=' + this.data.factoryDetail.paperMillId + '&categoryId=' + item.categoryId }) }, postMoment: function(){ - wx.navigateTo({ url: '/pages/article/publish/index?factoryId=' + this.data.factoryDetail.paperMillId + '&name=' + this.data.factoryDetail.name }) + util.navigateTo('/pages/article/publish/index?factoryId=' + this.data.factoryDetail.paperMillId + '&name=' + this.data.factoryDetail.name) }, //*************************************************momentList************************************************// onRefreshList: function () { diff --git a/pages/article/point-index/index.js b/pages/article/point-index/index.js index 2c0f90d..a7ccf5a 100644 --- a/pages/article/point-index/index.js +++ b/pages/article/point-index/index.js @@ -45,7 +45,7 @@ Component({ if (message.what == 573) { // 帖子发布刷新 this.onRefreshList() - } else if(message.what == 200){ + } else if(message.what == 200 || message.what == 888){ // Vip的变化 this.setData({ userInfo: app.globalData.userInfo }) this.onRefreshList() @@ -53,7 +53,7 @@ Component({ }, //*************************************************momentList************************************************// onRefreshList: function () { - if(!this.data.vip){ + if(!app.globalData.userInfo || !app.globalData.userInfo.isVIP){ this.setData({ requesting: false }) return } diff --git a/pages/home/index/index.js b/pages/home/index/index.js index b03131d..4abbfa4 100644 --- a/pages/home/index/index.js +++ b/pages/home/index/index.js @@ -97,10 +97,11 @@ Component({ util.navigateTo('/pages/home/setting/index') } }, - checkout: function () { - wx.navigateTo({ url: '/pages/withdrawal/checkout/index' }) - }, toUserInfo: function () { + if(!app.globalData.userInfo){ + wx.navigateTo({ url: '/pages/login/index' }) + return + } if (app.globalData.userInfo.isAuth != 1) { wx.navigateTo({ url: '/pages/home/idcard/index' }) } else { diff --git a/pages/home/index/index.wxml b/pages/home/index/index.wxml index 447e6e7..3be51f2 100644 --- a/pages/home/index/index.wxml +++ b/pages/home/index/index.wxml @@ -1,11 +1,13 @@ - + 我的 - - + + + + @@ -14,27 +16,26 @@ - - {{userName || ''}} + + {{userName || ''}} - {{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}} - 去认证 + {{userInfo.isAuth == 1 ? '已认证' : '未实名认证'}} + 去认证 + + 您还没有登录,去登录 + {{userInfo.mobile||''}} - - - + 店铺 diff --git a/utils/util.js b/utils/util.js index a3d3b52..172c15b 100644 --- a/utils/util.js +++ b/utils/util.js @@ -185,7 +185,8 @@ const tokenList = [ '/pages/withdrawal/balance/index', '/pages/agent/order/index', '/pages/home/idcard/index', - '/pages/shop/detail/index' + '/pages/shop/detail/index', + '/pages/article/publish/index' ] function navigateTo(url){