fix(支付弹窗):根据后端支付类型参数要求,变更支付宝2为5
This commit is contained in:
parent
4df38370e3
commit
d7d7a4e950
|
@ -14,7 +14,7 @@ const payPop = {
|
|||
<img class="icon-select" v-if="active===1" src="./img/active.png" alt="">
|
||||
<img class="icon-select" v-else src="./img/no-active.png" alt="">
|
||||
</div>
|
||||
<div class="list-children" @click='active=2'>
|
||||
<div class="list-children" @click='active=5'>
|
||||
<div>
|
||||
<img class="icon" src="./img/zfb.png" alt="">
|
||||
<span>支付宝支付</span>
|
||||
|
@ -50,7 +50,7 @@ const payPop = {
|
|||
payFunctions() {
|
||||
const us = navigator.userAgent
|
||||
let isSupport = false /* false:支持当前环境 true:不支持当前环境 */
|
||||
if (!!us.match(/DingTalk/gi) && this.active !== 2) isSupport = true
|
||||
if (!!us.match(/DingTalk/gi) && this.active !== 5) isSupport = true
|
||||
if (!!us.match(/weiXin/gi) && this.active !== 1) isSupport = true
|
||||
this.$emit("payfunction", { payType: this.active, isSupport })
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue