xiaoxin 1 anno fa
parent
commit
fe086f4b22
1 ha cambiato i file con 16 aggiunte e 1 eliminazioni
  1. 16 1
      pages/order/index.vue

+ 16 - 1
pages/order/index.vue

@@ -379,12 +379,27 @@
 			}
 		},
 		onShow() {
-			this.qiPhone=uni.getStorageSync('mobile')
+			let shopId = uni.getStorageSync('shopId');
+			if(shopId){
+				this.getPhone(shopId)
+			}
+			
 			this.shopId = uni.getStorageSync('shopId');
 			this.getOrderList();
 			this.clearOrderMsg();
 		},
 		methods: {
+			getPhone(shopId){
+				let data = {
+					shopId
+				}
+				this.$Request.postT("/user/selectShopPhoneByShopId", data).then((res)=>{
+					// console.log(res,"res");
+					if(res.code == 0){
+						this.qiPhone = res.data
+					}
+				})
+			},
 			//联系用户
 			onPhone(phone){
 				uni.makePhoneCall({