From 2a559aeab27bacb05b65c6f5f71e88402728f76e Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 25 Sep 2023 15:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/reserve/reserveOrder.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/reserve/reserveOrder.vue b/pages/reserve/reserveOrder.vue index 6c880d5..a05ea1c 100644 --- a/pages/reserve/reserveOrder.vue +++ b/pages/reserve/reserveOrder.vue @@ -85,7 +85,8 @@ import {getCurOwner} from '@/api/owner/ownerApi.js'; - import {payFeeWechat} from '../../api/fee/feeApi.js' + import {payFeeWechat} from '../../api/fee/feeApi.js'; + import {getUserId} from '../../api/user/userApi.js'; export default { data() { @@ -108,13 +109,7 @@ onLoad: function(options) { context.onLoad(options); this.from = options.from; - // #ifdef MP-WEIXIN - let accountInfo = uni.getAccountInfoSync(); - this.appId = accountInfo.miniProgram.appId; - // #endif - // #ifdef H5 - this.appId = uni.getStorageSync(constant.mapping.W_APP_ID) - // #endif + let _selectdGoods = uni.getStorageSync('/pages/reserve/reserveOrder'); this.selectdGoods = _selectdGoods; let _that = this; @@ -140,9 +135,10 @@ onPayFee: function() { // debugger let _that = this; - let _receivedAmount = this.receivableAmount; + + let _receivedAmount = this.totalMoney; let _tradeType = 'JSAPI'; - payFeeWechat(this,{ + let _objData = { business: "reserveGoods", appointmentTime: this.appointmentTime, communityId: this.communityId, @@ -154,6 +150,10 @@ appId: this.appId, type: this.type, goodss: this.selectdGoods + }; + uni.setStorageSync('doing_cashier',_objData); + uni.navigateTo({ + url:'/pages/fee/cashier?money='+_receivedAmount+"&business=reserveGoods&communityId="+this.communityId+"&cashierUserId="+getUserId() }) } }