Browse Source

自动获取收货人电话名称

wcni 5 years ago
parent
commit
419e55ddd2
2 changed files with 17 additions and 12 deletions
  1. 0 3
      pages/index/shop.vue
  2. 17 9
      pages/index/sureBuy.vue

+ 0 - 3
pages/index/shop.vue

@@ -324,9 +324,6 @@
 			},
 			// 更改商品数量
 			changestorage(e) {
-				
-				console.log(e)
-				console.log(this.goods_storage);
 				if(e == this.goods_storage) {
 					this.$msg("您选择的数量已超过最大库存数");
 					return;

+ 17 - 9
pages/index/sureBuy.vue

@@ -31,8 +31,9 @@
 		  <van-field 
 		     @change="gethotelname"
 		     :value="hotelname"
+			 style="color: #323233;"
 		     label="酒店"
-			 disabled
+			 readonly
 		     placeholder="请输入酒店"
 		   />
 		   <van-field
@@ -63,7 +64,7 @@
 		  <van-field 
 		    @change="getreserve"
 		     :value="reserve"
-			 disabled
+			 readonly
 		     label="预定酒店"
 		     placeholder="请输入预定酒店"
 		   />
@@ -94,7 +95,6 @@
 			   >
 				 <van-cell
 				   :border="false"
-				 
 			     >
 				 <template slot="title">
 					 我已阅读并同意 <span @click="readshouknow" style="color: #007AFF">预定须知</span>
@@ -117,14 +117,11 @@
 		   @confirm="confirmOrder"
 		   :show-cancel-button="false"
 		 >
-		 
 		  <view style="padding: 0 32rpx;">
 			  <scroll-view style="height: 40vh;" :scroll-top="scrollTop"  scroll-y="true" :refresher-enabled="false">
 				  <rich-text :nodes="store.buy_notice"></rich-text>
 			  </scroll-view>
-			  
 		  </view>
-		 
 		 </van-dialog>
 		 <van-cell v-if="radio === 1&&choseadress == '' " @click="goAdress" class="LinkAdress" title="选择地址"  is-link/>
 		  <view v-if="radio === 1&&choseadress != ''" @click="goAdress" class="wrapper">
@@ -145,7 +142,6 @@
 				<span style="padding-left: 8upx;">{{store.store_name}}</span>
 			   </view>
 		  </view>
-		  
 		  <view v-for="(item,index) in pricelist" :key="index" class="shoplist" style="background-color: #fff;">
 			  <view>
 				  <van-card
@@ -217,8 +213,8 @@
 			// let prices =  Number((options.prices/100).toFixed(2));
 			// this.prices = prices; 
 			this.getorder(); // 获取订单详情
+			this.getuserinfo(); // 获取会员详情
 			 uni.$on("getadress",(adress)=>{
-				    console.log("klkkkk")
 			        this.choseadress = adress;
 					this.address_id = this.choseadress.address_id;
 					//this.getorder();
@@ -230,10 +226,22 @@
 		},
 		
 		methods: {
+			getuserinfo() {
+				this.request({
+					url:'/v2/member/info',
+					method:'GET',
+					success: (res)=>{
+						let { data } = res.data;
+						this.username = data.member_truename;
+						this.phone = data.member_mobile;
+						this.numberphone = data.member_mobile;
+						this.Checkedin = data.member_truename;
+					}
+				})
+			},
 			readshouknow() {
 				if(this.store.buy_notice!='') {
 					this.ishow = true;
-					
 				}else {
 					this.$msg("暂无预定须知哦")
 				}