Ver Fonte

订单列表修改

wcni há 5 anos atrás
pai
commit
0ba57edc8f

+ 2 - 2
common/request.js

@@ -3,8 +3,8 @@ const request = function(options) {
      options.url = baseUrl + options.url;
      try {
        // 获取放入缓存的字段token obj.header["token"] = userToken;
-        const token = uni.getStorageSync('sessionId');
-	    //const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvd3d3LnF6YWl3YW5nLmNvbSIsImlhdCI6MTU5MTI0MDg5NiwiZXhwIjoxNTkyMTA0ODk2LCJuYmYiOjE1OTEyNDA4OTYsInN1YiI6MTAwLCJwcnYiOiJlOWEzOWM4YWY2MDFmMjRjM2YwN2Y0NDYzMjJhNTZjODA1YzVjZGU2In0.gJTUiEVvMtHv8GGzUWZO_OSsG0hSrJ4sQDdCrtqQcTM';
+       const token = uni.getStorageSync('sessionId');
+	   //const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvd3d3LnF6YWl3YW5nLmNvbSIsImlhdCI6MTU5MTI0MDg5NiwiZXhwIjoxNTkyMTA0ODk2LCJuYmYiOjE1OTEyNDA4OTYsInN1YiI6MTAwLCJwcnYiOiJlOWEzOWM4YWY2MDFmMjRjM2YwN2Y0NDYzMjJhNTZjODA1YzVjZGU2In0.gJTUiEVvMtHv8GGzUWZO_OSsG0hSrJ4sQDdCrtqQcTM';
        if (token) { // 如果存在token 配置请求头
          options.header = {
            'X-TOKEN' : token,

+ 1 - 1
component/uinNumber.vue

@@ -19,7 +19,7 @@
 			},
 			max: {
 				type: Number,
-				default: 100
+				
 			},
 			step: {
 				type: Number,

+ 0 - 1
pages/index/searchresult.vue

@@ -40,7 +40,6 @@
 			uniIcon
 		},
 		onLoad(a) {
-			console.log(a);
 			this.lat = a.lat;
 			this.lon = a.lon;
 			

+ 6 - 2
pages/index/shop.vue

@@ -507,11 +507,12 @@
 			},
  			//选择规格
  			selectSpec(index, pid,value_name,goods_storage){
-				this.specSelected = []; 
 				if(goods_storage == 0) {
-					this.$msg("商品没库存啦")
+					this.$msg("商品没库存啦");
 					return;
 				}
+				this.specSelected = []; 
+				
 				
  				let list = this.datalist.spec_list[index].value_list;
  				this.datalist.spec_list[index].value_list.forEach(item=>{
@@ -521,6 +522,9 @@
 						this.$set(item, 'selected', false);
 					}
  				})
+				if(goods_storage == 0) {
+					this.$msg("商品没库存啦")
+				}
 				let array = [];	
 			    for(let i = 0; i < this.datalist.spec_list.length; i++) {
 					for(let j = 0; j<this.datalist.spec_list[i].value_list.length;j++) {

+ 7 - 1
pages/myCenter/information.vue

@@ -3,7 +3,7 @@
 		 <scroll-view  style="height: 100vh;" class="floor-list"
 		  :scroll-top="scrollTop" scroll-y="true"  v-if="list.length > 0"   @scroll="scroll"  @scrolltoupper="upper" @scrolltolower="lower"
 		  :refresher-enabled="false">
-			  <view class="hotelcontent" v-for="(item,index) in list" :key="index">
+			  <view class="hotelcontent" v-for="(item,index) in list" :key="index" @click="goinformstion(item)">
 				 <view class="contentleft">
 					 <!--  :src="pictureUrl+'/uploads/home/store/goods/'+item.goodsimage_url.substr(0, item.goodsimage_url.indexOf('\_')) + '/' + item.goodsimage_url" -->
 					  <image
@@ -44,6 +44,12 @@
 			this.getlist();
 		},
 		methods: {
+			goinformstion(e) {
+				let id = e.order_id;
+				uni.navigateTo({
+					url: `/pages/myOrder/order?id=${id}`
+				})
+			},
 			// 滚动到顶部
 			upper(e) {
 				console.log("顶部")

+ 2 - 2
pages/myOrder/order.vue

@@ -9,11 +9,11 @@
 		   <span v-if="detail.order_state == 40">已收货</span> -->
 		   <span>{{detail.status}}</span>
 	   </view>  
-	   <view style="padding: 0 36upx;line-height: 70upx;border-bottom: 14upx solid #F5F5F5;">
+	<!--   <view style="padding: 0 36upx;line-height: 70upx;border-bottom: 14upx solid #F5F5F5;">
 	   		   <span v-if="detail.refund_state == 1">等待酒店处理退货申请</span>
 	   		   <span v-if="detail.refund_state == 2">同意退款售后</span>
 	   		   <span v-if="detail.order_state == 3">拒绝退款</span>  
-	   </view>  
+	   </view>  -->
 	   <view class="adress">
 	   		 <view class="adressDetail">{{detail.reciver_info.mob_phone}}</view>
 	   		 <view>{{detail.reciver_info.address}}</view>