|
@@ -254,7 +254,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
-
|
|
|
|
|
|
|
+ <NotLogin></NotLogin>
|
|
|
<custom-tab-bar :current="2" />
|
|
<custom-tab-bar :current="2" />
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -272,8 +272,10 @@ import {currentShop, uploadShopAvatar} from "@/api/shop";
|
|
|
import { clearLogin,hasNotice } from "@/api/admin";
|
|
import { clearLogin,hasNotice } from "@/api/admin";
|
|
|
import { unReadMsgCount } from "@/api/chat";
|
|
import { unReadMsgCount } from "@/api/chat";
|
|
|
import { APIHOST,CURRENT_ENV } from "@/config";
|
|
import { APIHOST,CURRENT_ENV } from "@/config";
|
|
|
|
|
+import NotLogin from "@/components/not-login";
|
|
|
export default {
|
|
export default {
|
|
|
name: "workbench",
|
|
name: "workbench",
|
|
|
|
|
+ components: {NotLogin},
|
|
|
mixins: [autoUpdateMixins],
|
|
mixins: [autoUpdateMixins],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -475,23 +477,6 @@ export default {
|
|
|
closeToShow(){
|
|
closeToShow(){
|
|
|
this.$refs.toShowMore.close()
|
|
this.$refs.toShowMore.close()
|
|
|
},
|
|
},
|
|
|
- // 显示供货商提示弹框
|
|
|
|
|
- showSupplierNotice() {
|
|
|
|
|
- // 设置要显示的供货商列表,最多显示5个
|
|
|
|
|
- this.displaySupplierList = this.supplierList.filter(item => item.name).slice(0, 5)
|
|
|
|
|
- this.$refs.supplierNoticePopup.open('center')
|
|
|
|
|
- },
|
|
|
|
|
- // 关闭供货商提示弹框
|
|
|
|
|
- closeSupplierNotice() {
|
|
|
|
|
- this.$refs.supplierNoticePopup.close()
|
|
|
|
|
- // 调用已有的接口标记已通知
|
|
|
|
|
- hasNotice().then(res => { })
|
|
|
|
|
- },
|
|
|
|
|
- // 下次提醒
|
|
|
|
|
- remindLater() {
|
|
|
|
|
- this.$refs.supplierNoticePopup.close()
|
|
|
|
|
- // 不调用hasNotice接口,保持提醒状态
|
|
|
|
|
- },
|
|
|
|
|
getMore(info){
|
|
getMore(info){
|
|
|
this.currentGhs = info
|
|
this.currentGhs = info
|
|
|
this.$refs.toShowMore.open('top')
|
|
this.$refs.toShowMore.open('top')
|
|
@@ -685,15 +670,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.$util.pageTo(item)
|
|
this.$util.pageTo(item)
|
|
|
},
|
|
},
|
|
|
- toRemindCustom(){
|
|
|
|
|
- if(this.loginStyle==1){
|
|
|
|
|
- hasMoreGhs().then(ret=>{
|
|
|
|
|
- if(ret.data.needNotice == 1){
|
|
|
|
|
- this.showSupplierNotice()
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
noticeFn (item) {
|
|
noticeFn (item) {
|
|
|
this.$util.pageTo({ url: item.page })
|
|
this.$util.pageTo({ url: item.page })
|
|
|
},
|
|
},
|