浏览代码

Signed-off-by: liuboyan <632697560@qq.com>
校验

liuboyan 4 年之前
父节点
当前提交
06c66ae65c
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 3 2
      pagesMain/contractInfo.vue
  2. 1 1
      pagesMain/openMember.vue

+ 3 - 2
pagesMain/contractInfo.vue

@@ -43,6 +43,7 @@
 					url: '',
 				},
 				signUrl: '',
+				realPayAmount: '',
 				canvasData: []
 			}
 		},
@@ -62,8 +63,8 @@
 				couponId: options.couponId,
 				studentId: options.studentId,
 			}
+			this.realPayAmount = options.realPayAmount
 			this.getContractInfo()
-
 			context = uni.createCanvasContext('canvas')
 			context.setLineWidth(3)
 			context.setStrokeStyle("#000000")
@@ -158,7 +159,7 @@
 					...this.orderInfo,
 					contractId: contractId
 				}, 'POST').then(res => {
-					if (this.memberInfo.realPayAmount <= 0) {
+					if (this.realPayAmount <= 0) {
 						this.goToPayResult(res.data.oderNo)
 						return false
 					}

+ 1 - 1
pagesMain/openMember.vue

@@ -322,7 +322,7 @@
 				// })
 				uni.navigateTo({
 					url: '/pagesMain/contractInfo?memberCardId=' + this.memberCardId + '&couponId=' + this.couponId + '&studentId=' +
-						this.studentId
+						this.studentId + '&realPayAmount=' + this.memberInfo.realPayAmount
 				});
 			},
 			//  跳转支付结果