|
@@ -29,7 +29,7 @@
|
|
|
<van-row class="borderTop">
|
|
|
<van-col span="24">
|
|
|
<van-row>
|
|
|
- <van-col span="5" class="title1">租户</van-col>
|
|
|
+ <van-col span="5" class="title1">业主</van-col>
|
|
|
<van-col span="19">{{ info.ownername }}</van-col>
|
|
|
</van-row>
|
|
|
<van-row>
|
|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
<van-row>
|
|
|
<van-col span="24">
|
|
|
- <!-- <van-button type="info" @click="handelPay" :disabled="isDisabledSubmitBtn" >确定缴费</van-button> -->
|
|
|
+ <van-button type="info" @click="handelPay" :disabled="isDisabledSubmitBtn" >确定缴费</van-button>
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
</van-col>
|
|
@@ -60,7 +60,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { GetJSAPIWxPayData, InsertPay, CloseOrder } from '@/common/api/loginApi.js'
|
|
|
+import { GetJSAPIWxPayData, CloseOrder, InsertPay } from '@/common/api/loginApi.js'
|
|
|
export default {
|
|
|
name: 'login',
|
|
|
data () {
|
|
@@ -151,18 +151,20 @@ export default {
|
|
|
// 使用以上方式判断前端返回,微信团队郑重提示:res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
|
|
|
// eslint-disable-next-line eqeqeq
|
|
|
if (res.err_msg == 'get_brand_wcpay_request:ok') { // 支付成功后的操作
|
|
|
- that.isDisabledSubmitBtn = false
|
|
|
-
|
|
|
- that.$toast({
|
|
|
- message: this.info.farerowid,
|
|
|
- duration: 2000
|
|
|
+ // that.isDisabledSubmitBtn = false
|
|
|
+ // 自定义加载图标
|
|
|
+ that.$toast.loading({
|
|
|
+ message: '生成缴费记录中...',
|
|
|
+ forbidClick: true,
|
|
|
+ loadingType: 'spinner'
|
|
|
})
|
|
|
-
|
|
|
let data = {
|
|
|
- farwarid: this.info.farerowid,
|
|
|
- money: this.info.nneedpaymny + '',
|
|
|
- ownername: this.info.ownername,
|
|
|
- hname: this.info.hname
|
|
|
+ farwarid: that.info.farerowid,
|
|
|
+ money: that.info.nneedpaymny + '',
|
|
|
+ ownername: that.info.ownername,
|
|
|
+ hname: that.info.hname,
|
|
|
+ ownerid: that.$store.state.data.ownerid,
|
|
|
+ paytype: '1005'
|
|
|
}// 根据后端所需传参数
|
|
|
|
|
|
InsertPay(data).then(res => {
|
|
@@ -170,15 +172,12 @@ export default {
|
|
|
if (!res.isSuccess) {
|
|
|
that.$toast(res.errMsg)
|
|
|
} else {
|
|
|
- that.$toast({
|
|
|
- message: '支付成功',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
that.$router.push('/Getfdc_pm_revfare')
|
|
|
}
|
|
|
// this.weChatParameter=res
|
|
|
// this.weixinPay()
|
|
|
})
|
|
|
+
|
|
|
// eslint-disable-next-line eqeqeq
|
|
|
} else if (res.err_msg == 'get_brand_wcpay_request:cancel') { // 取消支付的操作
|
|
|
CloseOrder(data.outTradeNo).then(res => {
|