zhanghui 1 gadu atpakaļ
vecāks
revīzija
6d512a08d5
1 mainītis faili ar 46 papildinājumiem un 17 dzēšanām
  1. 46 17
      pages/groupbuying_details/order_details_list/index.vue

+ 46 - 17
pages/groupbuying_details/order_details_list/index.vue

@@ -209,7 +209,7 @@
 			<view class='footer op-area'>
 <!--				<button class="info-btn" v-if="orderDetail.orderState == 4" @click="RefundShow = true">申请售后</button>-->
 				<button class="info-btn" v-if="orderDetail.orderState == 1" @click="cancelOrder()">取消订单</button>
-        <button class="info-btn" v-if="!orderDetail.afterSales.logisticsNo" @click="bindLogisticsShow(orderDetail.afterSales.afterSalesNo)">填写物流单号</button>
+        <button class="info-btn" v-if="orderDetail.store && !orderDetail.afterSales.logisticsNo" @click="bindLogisticsShow(orderDetail.afterSales.afterSalesNo)">填写物流单号</button>
 			</view>
 		</view>
 
@@ -270,16 +270,15 @@
 				</view>
 		</u-popup>
 
-    <u-popup :show="showWl"  @close="showWl = false">
-      <view>
-        <u--input
-            placeholder="请输入物流单号"
-            border="surround"
-            clearable
-            v-model="wlNo"
-        ></u--input>
-        <u-button text="取消" @click="showWl = false"></u-button>
-        <u-button class="bind-wl"  text="提交" @click="bindLogistics"></u-button>
+    <u-popup :show="showWl" mode="center"  @close="showWl = false">
+      <view class="wlView">
+		  <view class="flex-col justify-center wlInputView" >
+			  <input class="wlInput"  placeholder="请输入物流单号" type="text" v-model="wlNo" />
+		  </view>
+		  <view class="flex-row justify-between">
+			  <button class="popupButtonl"   @click="showWl = false">取消</button>
+			  <button class="popupButtonr"   @click="bindLogistics">提交</button>
+		  </view>
       </view>
     </u-popup>
 
@@ -344,7 +343,8 @@ export default {
 			newImg: [],
 			orderDetail: {},
 			selfTakeList: [],
-			orderId:''
+			orderId:'',
+			afterSalesId:''
 		}
 	},
 	computed: mapGetters(['isLogin']),
@@ -360,6 +360,7 @@ export default {
 		this.from = 'routine'
 		console.log(options);
 		this.orderId = options.orderId;
+		this.afterSalesId = options.afterSalesId;
 		this.getOrderDetail(this.orderId, options.afterSalesId)
 	},
 	/**
@@ -525,6 +526,9 @@ export default {
         logisticsNo: that.wlNo
       }).then(res => {
         that.showWl = false;
+
+		  that.getOrderDetail(that.orderId, that.afterSalesId)
+
         return that.$util.Tips({
           title: '绑定成功',
           icon: 'success'
@@ -1416,12 +1420,37 @@ export default {
 		line-height: 28rpx;
 	}
 
-  bind-wl {
-    width: 90%;
-    height: 84rpx;
-    background: #B42A3E;
-    border-radius: 8rpx;
+	.wlView{
+		width: 500rpx;
+		height: 300rpx;
+		border-radius: 15rpx;
+		overflow: hidden !important;
+	}
+
+	.wlInputView{
+		width: 500rpx;
+		height: 220rpx;
+		padding: 0 20rpx;
+	}
+	.wlInput{
+		height: 70rpx;
+		border: 1px solid #f7f7f7;
+	}
+	.popupButtonl {
+        /*background: #B42A3E;*/
+	    width: 250rpx;
+	    height: 80rpx;
+		line-height: 80rpx;
+		/*color: #f7f7f7;*/
+		border: 1px solid #f7f7f7;
   }
+	.popupButtonr {
+		width: 250rpx;
+		height: 80rpx;
+		line-height: 80rpx;
+		border: 1px solid #f7f7f7;
+
+	}