| xqd
@@ -67,12 +67,12 @@
|
|
|
<span class="couponItem-subject-right-header-icon">{{item.type==1?'满减':'折扣'}}</span>
|
|
|
{{item.title}}
|
|
|
</view>
|
|
|
- <button :data-index="index" @click="collectCoupons(item,index)" class="couponItem-subject-right-btn">使用</button>
|
|
|
- <view class="closing-date" v-if="item.expire_type == 2">
|
|
|
- {{item.start_time}} - {{item.end_time}}
|
|
|
- </view>
|
|
|
- <view class="closing-date" v-else>
|
|
|
- 有效期:{{item.effective_days}}天
|
|
|
+ <button :data-index="index" @click="collectCoupons(item,index)" class="couponItem-subject-right-btn">使用</button>
|
|
|
+ <view class="closing-date" v-if="item.expire_type == 2">
|
|
|
+ {{item.start_time}} - {{item.end_time}}
|
|
|
+ </view>
|
|
|
+ <view class="closing-date" v-else>
|
|
|
+ 有效期:{{item.effective_days}}天
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -401,7 +401,7 @@
|
|
|
})
|
|
|
return false
|
|
|
}
|
|
|
- if (this.info.balance < this.orderAmount * 100) {
|
|
|
+ if (this.info.balance < this.orderAmount * 100 && this.paytype != 1) {
|
|
|
uni.showModal({
|
|
|
title: "错误提示",
|
|
|
content: "余额不足,请先充值",
|
| xqd
@@ -539,7 +539,7 @@
|
|
|
is_security: this.infodata.is_security,
|
|
|
guardian_name: this.infodata.guardian_name,
|
|
|
relationship_type: this.infodata.relationship_type,
|
|
|
- payment_type: this.infodata.payment_type,
|
|
|
+ payment_type: this.paytype,
|
|
|
pay_password: this.password,
|
|
|
user_coupon_id: this.couponid,
|
|
|
is_need_insurance: num,
|
| xqd
@@ -872,24 +872,32 @@
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- uni.requestPayment({
|
|
|
- nonceStr: res.data.nonceStr,
|
|
|
- package: res.data.package,
|
|
|
- paySign: res.data.paySign,
|
|
|
- signType: res.data.signType,
|
|
|
- timeStamp: res.data.timeStamp,
|
|
|
- success: (res) => {
|
|
|
+ if (res.status == 0) {
|
|
|
+ if (res.data == null) {
|
|
|
uni.redirectTo({
|
|
|
url: "order?type=" + this.infodata.product_type
|
|
|
})
|
|
|
- },
|
|
|
- fail: (err) => {
|
|
|
-
|
|
|
- },
|
|
|
- complete: (res) => {
|
|
|
-
|
|
|
+ } else {
|
|
|
+ uni.requestPayment({
|
|
|
+ nonceStr: res.data.nonceStr,
|
|
|
+ package: res.data.package,
|
|
|
+ paySign: res.data.paySign,
|
|
|
+ signType: res.data.signType,
|
|
|
+ timeStamp: res.data.timeStamp,
|
|
|
+ success: (res) => {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: "order?type=" + this.infodata.product_type
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+
|
|
|
+ },
|
|
|
+ complete: (res) => {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 按键被点击(点击退格键不会触发此事件)
|