|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <span class="free-btn" v-bind="$attrs" @click="btnClick">免费试用</span>
|
|
|
+ <span class="free-btn" @click.stop.prevent="btnClick">免费试用</span>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -9,6 +9,15 @@ export default {
|
|
|
myType: {
|
|
|
type: String,
|
|
|
default: 'kaoshi'
|
|
|
+ },
|
|
|
+ select: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ visible: false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -21,6 +30,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
btnClick() {
|
|
|
+
|
|
|
+ if (this.select) {
|
|
|
+ this.$emit('need-select')
|
|
|
+ return false;
|
|
|
+ }
|
|
|
// 执行业务
|
|
|
this.FreeTrial();
|
|
|
// 执行通知
|
|
@@ -34,15 +48,15 @@ export default {
|
|
|
if (!this.isPC()) {
|
|
|
// H5
|
|
|
if (this.myType === 'kaoshi') {
|
|
|
- window.open('https://cdnks.mtavip.com/mdist/#/webRegister?flug=1')
|
|
|
+ window.open('https://qg.qtavip.com/mdist/#/webRegister?flug=1')
|
|
|
} else {
|
|
|
- window.open('https://cdnks.mtavip.com/mdist/#/webRegister?flug=2')
|
|
|
+ window.open('https://qg.qtavip.com/#/webRegister?flug=2')
|
|
|
}
|
|
|
} else {
|
|
|
if (this.myType === 'kaoshi') {
|
|
|
- window.open('https://cdnks.mtavip.com/a/register?flug=1')
|
|
|
+ window.open('https://qg.qtavip.com/a/register?flug=1')
|
|
|
} else {
|
|
|
- window.open('https://cdnks.mtavip.com/a/register?flug=2')
|
|
|
+ window.open('https://qg.qtavip.com/a/register?flug=2')
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -66,4 +80,5 @@ export default {
|
|
|
padding: 0;text-align: center;font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</style>
|