Bladeren bron

no message

MS-CIAZDCOIXVRW\Administrator 3 jaren geleden
bovenliggende
commit
08481e8ed1

+ 25 - 4
pages/home/home.vue

@@ -278,7 +278,8 @@
 				//农商行地址
 				//农商行地址
 				notifyUrl: "https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/pay/jxnxs/notify/",
 				notifyUrl: "https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/pay/jxnxs/notify/",
 				// 反馈提交图片参数
 				// 反馈提交图片参数
-				imgs: []
+				imgs: [],
+				payId: ""
 			};
 			};
 		},
 		},
 		onLoad() {
 		onLoad() {
@@ -325,7 +326,7 @@
 
 
 				let res = await this.$myRequest({
 				let res = await this.$myRequest({
 					url: "/payableinfowater/queryWaterInfo",
 					url: "/payableinfowater/queryWaterInfo",
-					method:"post",
+					method: "post",
 					data: {
 					data: {
 						dorm: rsaRoom,
 						dorm: rsaRoom,
 						year: this.time_value,
 						year: this.time_value,
@@ -489,6 +490,7 @@
 			// 支付回调
 			// 支付回调
 			navigateToPay(item) {
 			navigateToPay(item) {
 				// console.log(item);
 				// console.log(item);
+				this.payId = item.id
 				this.amount = item.realPayAmount;
 				this.amount = item.realPayAmount;
 				this.getQuery(item)
 				this.getQuery(item)
 			},
 			},
@@ -573,7 +575,8 @@
 						...res.data,
 						...res.data,
 					};
 					};
 					//调起微信支付
 					//调起微信支付
-					this.wxPay();
+					// this.wxPay();
+					this.updateStatu()
 				} else {
 				} else {
 					uni.showToast({
 					uni.showToast({
 						title: res.message,
 						title: res.message,
@@ -583,6 +586,22 @@
 				}
 				}
 			},
 			},
 
 
+			// 更改支付状态
+			async updateStatu() {
+				let res = await this.$myRequest({
+					url: "/payableinfowater/updateWaterStatu",
+					data: {
+						payStatu: "0",
+						payInfoId: this.payId
+					},
+				});
+				// console.log(res);
+				if (res.success) {
+					//调起微信支付
+					this.wxPay();
+				}
+			},
+
 			// 微信支付回调
 			// 微信支付回调
 			wxPay() {
 			wxPay() {
 				let that = this;
 				let that = this;
@@ -595,6 +614,8 @@
 							if (res.errMsg == "get_brand_wcpay_request:ok") {
 							if (res.errMsg == "get_brand_wcpay_request:ok") {
 								// 使用以上方式判断前端返回,微信团队郑重提示:
 								// 使用以上方式判断前端返回,微信团队郑重提示:
 								//res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
 								//res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
+							} else {
+
 							}
 							}
 						}
 						}
 					);
 					);
@@ -698,7 +719,7 @@
 			// 下拉刷新
 			// 下拉刷新
 			onPullDownRefresh() {
 			onPullDownRefresh() {
 				if (localStorage.room) {
 				if (localStorage.room) {
-					this.roomSelect = "黄家湖" + localStorage.room
+					this.roomSelect = localStorage.room
 					this.getData()
 					this.getData()
 					this.getTimeList()
 					this.getTimeList()
 				}
 				}

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/h5/index.html


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/build/h5/static/js/index.c1b8ec24.js


File diff suppressed because it is too large
+ 8 - 0
unpackage/dist/build/h5/static/js/pages-home-home.578d6152.js


File diff suppressed because it is too large
+ 0 - 8
unpackage/dist/build/h5/static/js/pages-home-home.68c6ff42.js