mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 22:46:45 +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-group>
|
||||
<!-- 银行卡支付结束 -->
|
||||
<van-cell-group v-if="radio == '' && !isWeixin">
|
||||
<van-cell-group>
|
||||
<van-field
|
||||
v-model="underWriteData.name"
|
||||
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-list>
|
||||
</van-popup>
|
||||
<!-- 分享到微信的页面loading -->
|
||||
<Loading :isLoading="isLoading"></Loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -138,6 +140,7 @@ Vue.use(Button)
|
||||
import { acceptInsurance, getBankList, underWrite, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import { saveOrUpdateAccount } from '@/api/ebiz/cardList/cardList.js'
|
||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||
import Loading from '@/components/ebiz/Loading'
|
||||
import config from '@/config'
|
||||
export default {
|
||||
name: 'pay',
|
||||
@@ -149,7 +152,8 @@ export default {
|
||||
[List.name]: List,
|
||||
[Cell.name]: Cell,
|
||||
[RadioGroup.name]: RadioGroup,
|
||||
[Radio.name]: Radio
|
||||
[Radio.name]: Radio,
|
||||
Loading
|
||||
},
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
@@ -463,13 +467,11 @@ export default {
|
||||
// })
|
||||
},
|
||||
async pay() {
|
||||
if (this.radio !== '3') {
|
||||
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 valid = await this.$validator.validate()
|
||||
console.log(valid)
|
||||
if (true !== valid) {
|
||||
console.log(this.$validator)
|
||||
return this.$toast(this.$validator.errors.all()[0])
|
||||
}
|
||||
switch (this.orderStatus) {
|
||||
case '56':
|
||||
@@ -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
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
|
||||
Reference in New Issue
Block a user