mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 17:46:44 +08:00
[NEW] 放开卡单支付页面选择微信支付时银行卡信息的隐藏,添加微信端打开页面遮罩
This commit is contained in:
30
src/components/ebiz/Loading.vue
Normal file
30
src/components/ebiz/Loading.vue
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<div class="loading-container">
|
||||||
|
<van-overlay :show="isLoading" z-index="999"> </van-overlay>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { Overlay } from 'vant'
|
||||||
|
export default {
|
||||||
|
name: 'Loading',
|
||||||
|
props: {
|
||||||
|
isLoading: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
[Overlay.name]: Overlay
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
/deep/.van-overlay {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</van-cell>
|
</van-cell>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<!-- 银行卡支付结束 -->
|
<!-- 银行卡支付结束 -->
|
||||||
<van-cell-group v-if="radio == '' && !isWeixin">
|
<van-cell-group>
|
||||||
<van-field
|
<van-field
|
||||||
v-model="underWriteData.name"
|
v-model="underWriteData.name"
|
||||||
label="姓名"
|
label="姓名"
|
||||||
@@ -126,6 +126,8 @@
|
|||||||
<van-cell v-for="item in bankList" :key="item.code" :title="item.bankName" class="text-center" @click="clickList(item.bankName, item.code)" />
|
<van-cell v-for="item in bankList" :key="item.code" :title="item.bankName" class="text-center" @click="clickList(item.bankName, item.code)" />
|
||||||
</van-list>
|
</van-list>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
|
<!-- 分享到微信的页面loading -->
|
||||||
|
<Loading :isLoading="isLoading"></Loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -138,6 +140,7 @@ Vue.use(Button)
|
|||||||
import { acceptInsurance, getBankList, underWrite, getOrderDetail } from '@/api/ebiz/sale/sale'
|
import { acceptInsurance, getBankList, underWrite, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||||
import { saveOrUpdateAccount } from '@/api/ebiz/cardList/cardList.js'
|
import { saveOrUpdateAccount } from '@/api/ebiz/cardList/cardList.js'
|
||||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||||
|
import Loading from '@/components/ebiz/Loading'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
export default {
|
export default {
|
||||||
name: 'pay',
|
name: 'pay',
|
||||||
@@ -149,7 +152,8 @@ export default {
|
|||||||
[List.name]: List,
|
[List.name]: List,
|
||||||
[Cell.name]: Cell,
|
[Cell.name]: Cell,
|
||||||
[RadioGroup.name]: RadioGroup,
|
[RadioGroup.name]: RadioGroup,
|
||||||
[Radio.name]: Radio
|
[Radio.name]: Radio,
|
||||||
|
Loading
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||||
@@ -463,14 +467,12 @@ export default {
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
async pay() {
|
async pay() {
|
||||||
if (this.radio !== '3') {
|
|
||||||
let valid = await this.$validator.validate()
|
let valid = await this.$validator.validate()
|
||||||
console.log(valid)
|
console.log(valid)
|
||||||
if (true !== valid) {
|
if (true !== valid) {
|
||||||
console.log(this.$validator)
|
console.log(this.$validator)
|
||||||
return this.$toast(this.$validator.errors.all()[0])
|
return this.$toast(this.$validator.errors.all()[0])
|
||||||
}
|
}
|
||||||
}
|
|
||||||
switch (this.orderStatus) {
|
switch (this.orderStatus) {
|
||||||
case '56':
|
case '56':
|
||||||
this.payMent()
|
this.payMent()
|
||||||
@@ -609,7 +611,13 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
share() {
|
async share() {
|
||||||
|
let valid = await this.$validator.validate()
|
||||||
|
console.log(valid)
|
||||||
|
if (true !== valid) {
|
||||||
|
console.log(this.$validator)
|
||||||
|
return this.$toast(this.$validator.errors.all()[0])
|
||||||
|
}
|
||||||
let shareName = this.underWriteData.name
|
let shareName = this.underWriteData.name
|
||||||
EWebBridge.webCallAppInJs('bridge', {
|
EWebBridge.webCallAppInJs('bridge', {
|
||||||
flag: 'share',
|
flag: 'share',
|
||||||
|
|||||||
Reference in New Issue
Block a user