Browse Source

使用手册

shish 3 years ago
parent
commit
eff6260f03
3 changed files with 17 additions and 13 deletions
  1. 2 2
      ghsApp/src/admin/book/index.vue
  2. 14 10
      ghsApp/src/admin/home/workbench.vue
  3. 1 1
      ghsApp/src/pages.json

+ 2 - 2
ghsApp/src/admin/book/index.vue

@@ -28,9 +28,9 @@ export default {
 	},
   	onShareAppMessage(res) {
 		return {
-			title: '销花宝使用教程',
+			title: '销花宝使用手册',
 			desc: "图文视频教学,带您快速上手",
-			imageUrl: `${this.$constant.imgUrl}/logo.png`,
+			imageUrl: `${this.$constant.imgUrl}/logo5.png`,
 			path: "admin/book/index",
 		}
 	},

+ 14 - 10
ghsApp/src/admin/home/workbench.vue

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

+ 1 - 1
ghsApp/src/pages.json

@@ -1,6 +1,6 @@
 {
 	"pages": [
-		{"path": "admin/home/workbench","style": {"navigationBarTitleText": "","enablePullDownRefresh": true}},
+		{"path": "admin/home/workbench","style": {"navigationBarTitleText": "店铺","enablePullDownRefresh": true}},
 		{"path": "admin/home/login","style": {"navigationBarTitleText": "","enablePullDownRefresh": false}},
 		{"path": "admin/home/result","style": {"navigationBarTitleText": "","enablePullDownRefresh": true}},
 		{"path": "admin/home/callback","style": {"navigationBarTitleText": "","enablePullDownRefresh": true}},