修改支付组件回调参数

This commit is contained in:
wangsongsole 2022-09-28 11:32:32 +08:00
parent 33b1072611
commit e63f27e41e
3 changed files with 5 additions and 5 deletions

View File

@ -374,8 +374,8 @@
/* 去支付 */ /* 去支付 */
payFunction ({ type, isSupport }) { payFunction ({ payType, isSupport }) {
this.active = type this.active = payType
this.show = false this.show = false
alert(isSupport ? '不持支' : '支持') alert(isSupport ? '不持支' : '支持')
}, },

View File

@ -108,8 +108,8 @@
}, },
/* 去支付 */ /* 去支付 */
payFunction ({ type, isSupport }) { payFunction ({ payType, isSupport }) {
this.active = type this.active = payType
this.show = false this.show = false
alert(isSupport ? '不持支' : '支持') alert(isSupport ? '不持支' : '支持')
}, },

View File

@ -52,7 +52,7 @@ const payPop = {
let isSupport = false /* false:支持当前环境 true:不支持当前环境 */ let isSupport = false /* false:支持当前环境 true:不支持当前环境 */
if (!!us.match(/DingTalk/gi) && this.active !== 2) isSupport = true if (!!us.match(/DingTalk/gi) && this.active !== 2) isSupport = true
if (!!us.match(/weiXin/gi) && this.active !== 1) isSupport = true if (!!us.match(/weiXin/gi) && this.active !== 1) isSupport = true
this.$emit("payfunction", { active: this.active, isSupport }) this.$emit("payfunction", { payType: this.active, isSupport })
}, },
/* 关闭 */ /* 关闭 */