Ver código fonte

下单页修改

1004749546@qq.com 4 anos atrás
pai
commit
a060a44696
1 arquivos alterados com 4 adições e 43 exclusões
  1. 4 43
      pages/getOrder/getOrder.vue

+ 4 - 43
pages/getOrder/getOrder.vue

@@ -115,47 +115,7 @@
 				serverIndex: 0, // 选择服务下标
 				itemList: [], // 服务类型
 				isRead: '', // 是否同意协议
-				couponList: [{
-						id: 23432445,
-						name: "满100减50",
-						price: 100,
-						yxTime: "2020-05-16",
-						remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
-						checked: false
-					},
-					{
-						id: 3544355,
-						name: "满100减50",
-						price: 100,
-						yxTime: "2020-05-16",
-						remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
-						checked: false
-					},
-					{
-						id: 234234234,
-						name: "满100减50",
-						price: 100,
-						yxTime: "2020-05-16",
-						remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
-						checked: false
-					},
-					{
-						id: 66264646,
-						name: "满100减50",
-						price: 100,
-						yxTime: "2020-05-16",
-						remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
-						checked: false
-					},
-					{
-						id: 9794694698,
-						name: "满100减50",
-						price: 100,
-						yxTime: "2020-05-16",
-						remarks: '优惠卷使用说明优惠卷使用说明优惠卷使用说明',
-						checked: false
-					}
-				], // 用户可用优惠券
+				couponList: [], // 用户可用优惠券
 				checkedCoupon: null, // 用户当前所选优惠券
 				amount: 0, // 所选服务项目总金额
 				couponAmount: 0, // 优惠券优惠金额
@@ -389,6 +349,7 @@
 			},
 			// 预支付 返回微信支付所需参数
 			getPayData(orderData) {
+				let _this = this
 				signPay({
 					orderId: orderData.id
 				}).then(res => {
@@ -409,11 +370,11 @@
 								paySign: data.paySign,
 								success: function(res) {
 									console.log('success:' + JSON.stringify(res));
-									this.paySuccess()
+									_this.paySuccess()
 								},
 								fail: function(err) {
 									console.log('fail:' + JSON.stringify(err));
-									this.payFail(err)
+									_this.payFail(err)
 								}
 							});
 						}