|
@@ -8,7 +8,7 @@
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
<view class="info-title">{{ payInfo.title }}</view>
|
|
|
- <view class="info-stock">¥{{ $numberFormat( payInfo.salePrice ) }}</view>
|
|
|
+ <view class="info-stock coupon-right-color">¥{{ $numberFormat( payInfo.salePrice ) }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex coupon" @click="toCoupon">
|
|
@@ -17,7 +17,8 @@
|
|
|
<view class="txt">优惠券</view>
|
|
|
</view>
|
|
|
<view class="flex coupon-right">
|
|
|
- <view class="txt" v-if="payInfo.couponTitle">{{ payInfo.couponTitle }}</view>
|
|
|
+ <view class="txt coupon-right-color" v-if="$numberFormat(payInfo.discountAmt) != 0">-¥{{ $numberFormat(payInfo.discountAmt)}}</view>
|
|
|
+ <view class="txt" v-else-if="payInfo.listNum != undefined">{{payInfo.listNum}}张可用</view>
|
|
|
<view class="txt" v-else>暂无可用优惠券</view>
|
|
|
<u-icon name="arrow-right" size="16" color="#333"></u-icon>
|
|
|
</view>
|
|
@@ -25,9 +26,9 @@
|
|
|
<view class="flex agreement">
|
|
|
<view class="txt" @click="toRule">同意<text>《盲票购买协议》</text></view>
|
|
|
<view class="checked">
|
|
|
- <u-checkbox-group>
|
|
|
+ <u-checkbox-group @change="changeChecked">
|
|
|
<u-checkbox :value="checked" :checked="checked" size="24" shape="circle"
|
|
|
- activeColor="#E96737" @change="changeChecked"></u-checkbox>
|
|
|
+ activeColor="#E96737"></u-checkbox>
|
|
|
</u-checkbox-group>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -115,6 +116,7 @@
|
|
|
}).then(res => {
|
|
|
uni.hideLoading();
|
|
|
payIng = true
|
|
|
+ console.log("res.data.orderId:"+ res.data.orderId)
|
|
|
if (res.code == 0) {
|
|
|
if (res.data.needPay == 1) {
|
|
|
$http.post('/api/v1/mp/user/ticket/order/pay', {
|
|
@@ -157,6 +159,7 @@
|
|
|
icon: 'success',
|
|
|
duration: 2000
|
|
|
})
|
|
|
+ console.log(res.data.orderId+"111111111111112")
|
|
|
_this.success(res.data.orderId)
|
|
|
}
|
|
|
} else if (res.code == 1020) {
|
|
@@ -179,6 +182,13 @@
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .coupon-right-color{
|
|
|
+ font-size: 32rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ color: rgba(235, 112, 9, 100);
|
|
|
+ }
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
|
.choiceShow-wrap {
|
|
|
min-height: 400rpx;
|
|
@@ -289,6 +299,7 @@
|
|
|
color: rgba(255, 255, 255, 100);
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|