|
@@ -168,6 +168,7 @@ import { consoleIndex } from "@/api/workbench";
|
|
|
import { closeBook } from "@/api/book";
|
|
import { closeBook } from "@/api/book";
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
import { allProduct } from '@/api/product'
|
|
import { allProduct } from '@/api/product'
|
|
|
|
|
+import {currentShop} from "@/api/shop";
|
|
|
import { getStat,getStrokeCount } from '@/api/console'
|
|
import { getStat,getStrokeCount } from '@/api/console'
|
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
|
import { getWeixinId } from "@/api/invite/index";
|
|
import { getWeixinId } from "@/api/invite/index";
|
|
@@ -243,13 +244,23 @@ export default {
|
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- this.getShopTitle()
|
|
|
|
|
|
|
+ this.showShopName()
|
|
|
if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentGhsShopId > 0){
|
|
if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentGhsShopId > 0){
|
|
|
this.loginStyle = 1
|
|
this.loginStyle = 1
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
...mapActions(['setUserShopAll']),
|
|
|
|
|
+ showShopName(){
|
|
|
|
|
+ currentShop().then(res => {
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ let sjName = res.data.merchantName ? res.data.merchantName : ''
|
|
|
|
|
+ let shopName = res.data.shopName ? res.data.shopName : ''
|
|
|
|
|
+ let title = shopName == '首店' ? sjName : sjName+' '+shopName
|
|
|
|
|
+ uni.setNavigationBarTitle({ title: title })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
closeErrorPriceFn(){
|
|
closeErrorPriceFn(){
|
|
|
this.$refs.errorPriceRef.close()
|
|
this.$refs.errorPriceRef.close()
|
|
|
},
|
|
},
|
|
@@ -274,15 +285,6 @@ export default {
|
|
|
that.$msg("请用微信打开")
|
|
that.$msg("请用微信打开")
|
|
|
// #endif
|
|
// #endif
|
|
|
},
|
|
},
|
|
|
- getShopTitle(){
|
|
|
|
|
- getShopInfo().then(res => {
|
|
|
|
|
- if(res.name){
|
|
|
|
|
- uni.setNavigationBarTitle({ title: res.name })
|
|
|
|
|
- }else{
|
|
|
|
|
- uni.setNavigationBarTitle({ title: '店铺' })
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
closeBook(){
|
|
closeBook(){
|
|
|
let that = this
|
|
let that = this
|
|
|
that.$util.confirmModal({title:"确定关闭?",content:'关闭后可以在底部菜单【我的】,找到【使用教程】重新打开'},() => {
|
|
that.$util.confirmModal({title:"确定关闭?",content:'关闭后可以在底部菜单【我的】,找到【使用教程】重新打开'},() => {
|
|
@@ -344,6 +346,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+ this.showShopName()
|
|
|
|
|
+
|
|
|
getWeixinId().then(res => {
|
|
getWeixinId().then(res => {
|
|
|
this.getappIdList = res.data
|
|
this.getappIdList = res.data
|
|
|
})
|
|
})
|