const payPop = {
template: `
¥{{money}}
选择支付方式
`,
props: {
/* 弹窗状态 */
show: {
type: Boolean,
default: false
},
/* 支付方式 1:微信 2:支付宝 */
active: {
type: Number,
default: 1
},
money: {
type: Number || String,
default: "88.88"
}
},
methods: {
/* 支付 */
payFunctions() {
const us = navigator.userAgent
let isSupport = false /* false:支持当前环境 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 })
},
/* 关闭 */
colesFunction() {
this.$emit("update:show", false)
}
}
}