Commit 28e09ecb authored by linxin's avatar linxin

修改立即支付

parent 07abb8b3
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</div> </div>
</div> </div>
</transition> </transition>
<transition name="trans"> <transition name="trans">
<div v-show="showOutside" class="modal-show-bank"> <div v-show="showOutside" class="modal-show-bank">
<div class="down"> <div class="down">
<div class="top"> <div class="top">
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
v-for="(item,index) in nongBank" v-for="(item,index) in nongBank"
:proportion="[7,1,1]" :proportion="[7,1,1]"
:key="item.bank_account_num" :key="item.bank_account_num"
@click.native="isSelect(`nong${index}`);ischeck(item)" @click.native="isSelect(`nong${index}`);ischeck(item);confirmToPay(item)"
> >
<div slot="name" style="flex=3"> <div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" > <img :src="selectImg(item)" alt class="icon" >
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
v-for="(item,index) in newList" v-for="(item,index) in newList"
:proportion="[7,1,1]" :proportion="[7,1,1]"
:key="index" :key="index"
@click.native="isSelect(`three${index}`);ischeck(item)" @click.native="isSelect(`three${index}`);ischeck(item);confirmToPay(item)"
> >
<div slot="name" style="flex=3"> <div slot="name" style="flex=3">
<img :src="selectImg(item)" alt class="icon" > <img :src="selectImg(item)" alt class="icon" >
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
</div> </div>
</div> </div>
<bottom-tab> <bottom-tab>
<tab-button :disable="isReturn" class="foot" @click.native="checkPay">立即支付</tab-button> <tab-button class="foot" @click.native="checkPay">立即支付</tab-button>
</bottom-tab> </bottom-tab>
</div> </div>
</div> </div>
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
</div> </div>
</h-content> </h-content>
<bottom-tab> <bottom-tab>
<tab-button class="foot" @click.native="affirm">确认支付</tab-button> <tab-button class="foot" @click.native="affirm();pay()">确认支付</tab-button>
</bottom-tab> </bottom-tab>
</h-view> </h-view>
</template> </template>
...@@ -239,7 +239,6 @@ export default { ...@@ -239,7 +239,6 @@ export default {
select: 'three0', select: 'three0',
name: '', name: '',
sectctNong: false, sectctNong: false,
isReturn:true,
pay_type: '', pay_type: '',
bank_account_id: '', bank_account_id: '',
checkType: { checkType: {
...@@ -249,7 +248,7 @@ export default { ...@@ -249,7 +248,7 @@ export default {
}, },
confirm: false, confirm: false,
show: false, show: false,
showOutside:false, showOutside: false,
downNum: false, downNum: false,
recommand: false, recommand: false,
userName: window.localStorage.getItem('bp_name'), userName: window.localStorage.getItem('bp_name'),
...@@ -290,7 +289,6 @@ export default { ...@@ -290,7 +289,6 @@ export default {
vm.show = false vm.show = false
vm.showOutside = false vm.showOutside = false
vm.downNum = false vm.downNum = false
vm.isReturn = true
vm.name = from.name vm.name = from.name
vm.getType() vm.getType()
vm.nongBank = [] vm.nongBank = []
...@@ -377,8 +375,8 @@ export default { ...@@ -377,8 +375,8 @@ export default {
} }
hlsPopup.showLoading('请稍候') hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
vm.pay()
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -388,9 +386,10 @@ export default { ...@@ -388,9 +386,10 @@ export default {
let vm = this let vm = this
if (parseFloat(vm.sumMoney) === 0) { if (parseFloat(vm.sumMoney) === 0) {
hlsPopup.showLongCenter('您支付的金额为0元') hlsPopup.showLongCenter('您支付的金额为0元')
console.log('您支付的金额为0元') } else if (parseFloat(vm.sumMoney) > 0 && vm.pay_type === 'ABC') {
} else if (parseFloat(vm.sumMoney) > 0) {
window.open(vm.url) window.open(vm.url)
} else {
vm.pay()
} }
}, },
pay () { pay () {
...@@ -405,7 +404,6 @@ export default { ...@@ -405,7 +404,6 @@ export default {
if (res.result === 'S') { if (res.result === 'S') {
if (res.return_code !== '0000') { if (res.return_code !== '0000') {
hlsPopup.showLongCenter(res.error_message) hlsPopup.showLongCenter(res.error_message)
vm.isReturn = true
} else { } else {
// vm.$router.push({ // vm.$router.push({
// name: 'PayPage', // name: 'PayPage',
...@@ -414,8 +412,6 @@ export default { ...@@ -414,8 +412,6 @@ export default {
// }, // },
// }) // })
vm.url = res.paymentURL vm.url = res.paymentURL
vm.isReturn = false
} }
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
......
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