|
@@ -12,7 +12,8 @@
|
|
|
<view class="today-overview-card">
|
|
<view class="today-overview-card">
|
|
|
<view class="today-header">
|
|
<view class="today-header">
|
|
|
<view class="today-title">今日概况</view>
|
|
<view class="today-title">今日概况</view>
|
|
|
- <zui-svg-icon icon="home-message" color="#FFFFFF" :width="26" :height="26" @click="pageTo({url:'/admin/chat/list'})" />
|
|
|
|
|
|
|
+ <zui-svg-icon icon="home-message" color="#FFFFFF" :width="32" :height="29" @click="pageTo({url:'/admin/chat/list'})" />
|
|
|
|
|
+ <view class="red-mind" v-if="unReadMsgNum>0">{{ unReadMsgNum>9?'9+':unReadMsgNum }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="today-income-section" @click="pageTo({url:'/admin/stat/kdIncome'})">
|
|
<view class="today-income-section" @click="pageTo({url:'/admin/stat/kdIncome'})">
|
|
@@ -453,6 +454,7 @@ import { ghsList } from "@/api/purchase";
|
|
|
import { changeDelStatus,hasMoreGhs } from "@/api/ghs";
|
|
import { changeDelStatus,hasMoreGhs } from "@/api/ghs";
|
|
|
import {currentShop} from "@/api/shop";
|
|
import {currentShop} from "@/api/shop";
|
|
|
import { clearLogin,hasNotice } from "@/api/admin";
|
|
import { clearLogin,hasNotice } from "@/api/admin";
|
|
|
|
|
+import { unReadMsgCount } from "@/api/chat";
|
|
|
export default {
|
|
export default {
|
|
|
name: "workbench",
|
|
name: "workbench",
|
|
|
mixins: [autoUpdateMixins],
|
|
mixins: [autoUpdateMixins],
|
|
@@ -480,7 +482,8 @@ export default {
|
|
|
displaySupplierList: [],// 用于显示在弹框中的供货商列表
|
|
displaySupplierList: [],// 用于显示在弹框中的供货商列表
|
|
|
shopInfo:[],
|
|
shopInfo:[],
|
|
|
urlNo:1,
|
|
urlNo:1,
|
|
|
- shortUrlList:[]
|
|
|
|
|
|
|
+ shortUrlList:[],
|
|
|
|
|
+ unReadMsgNum:0, //未读消息数
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -501,7 +504,6 @@ export default {
|
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
|
},
|
|
},
|
|
|
onShow () {
|
|
onShow () {
|
|
|
-
|
|
|
|
|
if(this.backAction == 'login'){
|
|
if(this.backAction == 'login'){
|
|
|
this.init()
|
|
this.init()
|
|
|
}
|
|
}
|
|
@@ -517,7 +519,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.showShopName()
|
|
this.showShopName()
|
|
|
-
|
|
|
|
|
|
|
+ this.getUnReadMsgCount()
|
|
|
},
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
|
return {
|
|
return {
|
|
@@ -946,6 +948,13 @@ export default {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
// #endif
|
|
// #endif
|
|
|
|
|
+ },
|
|
|
|
|
+ getUnReadMsgCount(){
|
|
|
|
|
+ unReadMsgCount().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.unReadMsgNum = res.data.msg_count
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
@@ -1658,4 +1667,21 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.red-mind{
|
|
|
|
|
+ width: 42upx;
|
|
|
|
|
+ height: 42upx;
|
|
|
|
|
+ line-height: 38upx;
|
|
|
|
|
+ font-size: 28upx;
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 16upx;
|
|
|
|
|
+ top: 10upx;
|
|
|
|
|
+ color: white;
|
|
|
|
|
+ background-color: red;
|
|
|
|
|
+ border: 1upx solid red;
|
|
|
|
|
+ border-radius: 26upx;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|