gcz 5 일 전
부모
커밋
454c5f6b00
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      pages/bookticket.vue

+ 4 - 4
pages/bookticket.vue

@@ -83,9 +83,9 @@
 			<view class="coupon u-flex u-row-between block-wrap" @click="selectCoupon">
 				<view class="left">优惠券</view>
 				<view class="right u-flex">
-					<text v-if="couponList.length<1||Number(this.pageContent.salePrice)<=0">暂无可用</text>
+					<text v-if="couponList.length<1||Number(this.salePrice)<=0">暂无可用</text>
 					<text v-if="coupon.quota" style="color: #EF2929;">已选1张优惠券</text>
-					<text v-if="couponList.length>0&&!coupon.quota&&Number(this.pageContent.salePrice)>0">未选择优惠券</text>
+					<text v-if="couponList.length>0&&!coupon.quota&&Number(this.salePrice)>0">未选择优惠券</text>
 					<u-icon name="arrow-right" color="#7F7F7F" size="24rpx"></u-icon>
 				</view>
 			</view>
@@ -296,7 +296,7 @@ import {
 		onShow() {
 			this.getSettlement();
 			
-			if(this.pageContent.salePrice>0){
+			if(this.salePrice>0){
 				this.findOrderCoupons()
 			}
 			
@@ -820,7 +820,7 @@ import {
 				// #endif
 			},
 			selectCoupon(){
-				if(Number(this.pageContent.salePrice)<=0){
+				if(Number(this.salePrice)<=0){
 					return
 				}
 				let goodsId = this.pageContent.goodsList[0].goodsId;