north 8 سال پیش
والد
کامیت
527c3acd21
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 4 2
      www/vue/src/components/order.vue
  2. 1 1
      www/vue/src/components/placeOrder.vue

+ 4 - 2
www/vue/src/components/order.vue

@@ -1,11 +1,11 @@
 <template>
 	<div>
 
-		<scroller>
+		<scroller >
 			<div style="padding: 15px;">
 				<button-tab>
 					<button-tab-item selected @on-item-click="consoleIndex(1)">预约中</button-tab-item>
-					<button-tab-item  @on-item-click="consoleIndex(3)" >已完成</button-tab-item>
+					<button-tab-item :selected="isComplete" @on-item-click="consoleIndex(3)" >已完成</button-tab-item>
 					<button-tab-item  @on-item-click="consoleIndex(2)">已取消</button-tab-item>
 				</button-tab>
 			</div>
@@ -88,6 +88,7 @@
     created () {
       if (this.$route.query.type !== undefined) {
         this.consoleIndex(this.$route.query.type)
+        this.isComplete = true
       } else {
         this.consoleIndex(1)
       }
@@ -139,6 +140,7 @@
         isShow: 1,
         showScrollBox: false,
         showScrollBox1: false,
+        isComplete: false,
         orderId: '',
         orderList: {}
       }

+ 1 - 1
www/vue/src/components/placeOrder.vue

@@ -202,7 +202,7 @@
           balance: config.order.balance,
           products: productParamJson,
           memo: config.order.memo,
-          precedence: config.productInfo.order,
+          precedence: 0,
           booking_time: this.bookingTime,
           address_id: this.addressContent.address_id,
           coupons: [],