...
|
...
|
@@ -154,37 +154,31 @@ export default { |
|
|
|
|
|
await this.compute();
|
|
|
|
|
|
const { data: { orderCode, message } } = await this.buyPayAction({
|
|
|
const result = await this.buyPayAction({
|
|
|
skup: this.productDetail.skup,
|
|
|
addressId: this.address.address_id,
|
|
|
couponCode: get(this.orderDetail, 'recommendedCouponInfo.coupon_code', ''),
|
|
|
promotionId: get(this.orderDetail, 'promotionTips.promotionIds', '')
|
|
|
});
|
|
|
|
|
|
if (!orderCode) {
|
|
|
if (!result?.data?.orderCode) {
|
|
|
this.$createToast({
|
|
|
time: 1500,
|
|
|
txt: message,
|
|
|
txt: result?.message,
|
|
|
type: 'txt'
|
|
|
}).show();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.$createOrderPayType({
|
|
|
orderCode,
|
|
|
orderCode: result.data.orderCode,
|
|
|
price: this.orderDetail.amount,
|
|
|
desc: '金额',
|
|
|
onCloseAction() {
|
|
|
vm.onClose(orderCode);
|
|
|
vm.onClose(result.data.orderCode);
|
|
|
},
|
|
|
onPayAction() {
|
|
|
vm.onPay();
|
|
|
}
|
|
|
}).show();
|
|
|
},
|
|
|
onPay() {
|
|
|
console.log('ok');
|
|
|
},
|
|
|
onClose(orderCode) {
|
|
|
this.$router.push({
|
|
|
name: 'orderDetail',
|
...
|
...
|
@@ -199,8 +193,6 @@ export default { |
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
@import '~statics/scss/variable.scss';
|
|
|
|
|
|
.footer {
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
...
|
...
|
|