Commit 4b83e95d authored by verestrasz's avatar verestrasz

支付初始倒计时

parent 64089c8b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="content-scroll"> <div class="content-scroll">
<div class="header flex-default"> <div class="header flex-default">
<div class="title">待支付</div> <div class="title">待支付</div>
<div class="left-time flex-default" v-if="payTypeObj.showLeftTime"> <div class="left-time flex-default" v-if="payTypeObj.showLeftTime&&!loading">
<span>支付剩余时间</span> <span>支付剩余时间</span>
<van-count-down <van-count-down
class="count-down" class="count-down"
...@@ -52,13 +52,12 @@ ...@@ -52,13 +52,12 @@
</div> </div>
</div> </div>
</div> </div>
<div class="bottom-con flex-default"> <div class="bottom-con flex-default">
<van-button <van-button
type="primary" type="primary"
round round
@click="handlePay" @click="handlePay"
:disabled="btnDisabled" :disabled="loading || btnDisabled"
block block
> >
立即支付 立即支付
...@@ -135,7 +134,8 @@ export default { ...@@ -135,7 +134,8 @@ export default {
leftTime: 3 * 60 * 1000, leftTime: 3 * 60 * 1000,
formType: "order", formType: "order",
timeFinish: false, timeFinish: false,
oid:"" oid:"",
loading:true
}; };
}, },
computed: { computed: {
...@@ -298,6 +298,7 @@ export default { ...@@ -298,6 +298,7 @@ export default {
apiName: this.payTypeObj.detailApi, apiName: this.payTypeObj.detailApi,
postData: this.pid, postData: this.pid,
success: (res) => { success: (res) => {
this.loading=false
let oids=JSON.parse(res.oidsJson) let oids=JSON.parse(res.oidsJson)
this.oid=oids[0] || "" this.oid=oids[0] || ""
this.payInfo = res; this.payInfo = res;
......
...@@ -65,8 +65,8 @@ module.exports = { ...@@ -65,8 +65,8 @@ module.exports = {
// target: 'http://172.22.20.64:8100/root' // target: 'http://172.22.20.64:8100/root'
// target: 'http://172.22.17.176:12008' // target: 'http://172.22.17.176:12008'
// target: 'http://172.22.17.108:9089' // target: 'http://172.22.17.108:9089'
target: 'https://mall.inmvo.com/root' // target: 'https://mall.inmvo.com/root'
// target: 'https://testym.8n.cn/root' target: 'https://testslg.8n.cn/root'
}, },
'/chat': { '/chat': {
pathRewrite: { pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment