const payPop = {
template: `
¥128.00
选择支付方式
`,
props: {
/* 弹窗状态 */
show: {
type: Object,
default: false
},
/* 支付方式 1:微信 2:支付宝 */
active: {
type: Number,
default: 1
}
},
methods: {
/* 支付 */
payFunctions() {
const us = navigator.userAgent
let isSupport = false /* false:支持当前环境 true:不支持当前环境 */
if (!!us.match(/DingTalk/gi) && this.active !== 2) isSupport = true
if (!!us.match(/weiXin/gi) && this.active !== 1) isSupport = true
this.$emit("payfunction", { active: this.active, isSupport })
},
/* 关闭 */
colesFunction() {
this.$emit("update:show", false)
}
}
}