shish 4 лет назад
Родитель
Сommit
4315127ab6
1 измененных файлов с 10 добавлено и 17 удалено
  1. 10 17
      ghsApp/src/admin/home/workbench.vue

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

@@ -162,26 +162,19 @@ export default {
 		uni.stopPullDownRefresh();
 	},
 	onShow() {
-		// #ifdef APP-PLUS
-		//PDA扫码开单前准备好所有花材
-		//PDA功能未启用,暂时注释
-		allProduct().then(res=>{
-			this.allProduct = res.data.list
-			console.log('................载入最新花材................')
-		})
-		// #endif
-
-		getShopInfo().then(res => {
-			if(res.name){
-				uni.setNavigationBarTitle({ title: res.name })
-			}else{
-				uni.setNavigationBarTitle({ title: '店铺' })
-			}
-		})
-
+		this.getShopInfo()
 	},
 	methods: {
 		...mapActions(['setUserShopAll']),
+		getShopInfo(){
+			getShopInfo().then(res => {
+				if(res.name){
+					uni.setNavigationBarTitle({ title: res.name })
+				}else{
+					uni.setNavigationBarTitle({ title: '店铺' })
+				}
+			})
+		},
 		closeBook(){
 			let that = this
 			that.$util.confirmModal({title:"确定关闭?",content:'关闭后可以在底部菜单【我的】,找到【使用教程】重新打开'},() => {