|
|
@@ -174,7 +174,7 @@
|
|
|
<view class="supplier-notice-container">
|
|
|
<!-- 头部 -->
|
|
|
<view class="supplier-notice-header">
|
|
|
- <text class="supplier-notice-title">您已有多个供货商</text>
|
|
|
+ <text class="supplier-notice-title">您已有多个批发店</text>
|
|
|
</view>
|
|
|
|
|
|
<!-- 中间供货商列表 -->
|
|
|
@@ -260,9 +260,8 @@
|
|
|
urlNo:1,
|
|
|
shortUrlList:[],
|
|
|
unReadMsgNum:0, //未读消息数
|
|
|
- currentDate: '', // 当前日期信息 如:12月26号 周五
|
|
|
- showBoughtTooltip: false, // 是否显示买花记录提示
|
|
|
- };
|
|
|
+ showBoughtTooltip: false, // 是否显示买花记录提示
|
|
|
+ };
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
|
|
|
@@ -283,21 +282,20 @@
|
|
|
getWeixinId().then(res => {
|
|
|
this.getappIdList = res.data
|
|
|
})
|
|
|
- this.updateCurrentDate()
|
|
|
},
|
|
|
- onShow () {
|
|
|
- this.unReadMsgNum = 0; // 重置未读消息数
|
|
|
+ onShow () {
|
|
|
+ this.unReadMsgNum = 0; // 重置未读消息数
|
|
|
+
|
|
|
+ this.showBoughtTooltip = !uni.getStorageSync('boughtTooltipClosed');
|
|
|
|
|
|
- this.showBoughtTooltip = !uni.getStorageSync('boughtTooltipClosed');
|
|
|
+ this.init();
|
|
|
|
|
|
- this.init();
|
|
|
-
|
|
|
// 判断是否登录
|
|
|
if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
|
|
|
this.handleLoginStyle()
|
|
|
- // this.getUnReadMsgCount()
|
|
|
this.showShopName()
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
return { title: "花掌柜,花店管家婆", desc: "", imageUrl: "", path: "admin/home/mall" }
|
|
|
@@ -403,7 +401,6 @@
|
|
|
}
|
|
|
})
|
|
|
this.showShopName()
|
|
|
- this.getUnReadMsgCount()
|
|
|
},
|
|
|
handleLoginStyle(){
|
|
|
this.loginStyle = 1
|
|
|
@@ -751,21 +748,6 @@
|
|
|
return false
|
|
|
}
|
|
|
// #endif
|
|
|
- },
|
|
|
- getUnReadMsgCount(){
|
|
|
- unReadMsgCount().then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- this.unReadMsgNum = res.data.msg_count
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- updateCurrentDate(){
|
|
|
- const now = new Date()
|
|
|
- const month = now.getMonth() + 1
|
|
|
- const date = now.getDate()
|
|
|
- const weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
|
|
|
- const week = weekDays[now.getDay()]
|
|
|
- this.currentDate = `${month}-${date} ${week}`
|
|
|
}
|
|
|
}
|
|
|
};
|