|
|
@@ -47,13 +47,16 @@
|
|
|
|
|
|
<!-- 平台帐号激活 -->
|
|
|
<template #slot-activation="{scope}">
|
|
|
+ <div v-if="firstHost == 'huaml' || firstHost == 'huahb' ">
|
|
|
<el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?id=hd&authType=1`)">花店公众号激活</el-button>
|
|
|
<el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?id=hd&authType=2`)">花店小程序激活</el-button>
|
|
|
<el-button type="primary" size="mini" @click="bindJump(`/wx-open/bind-open?id=hd&actId=6`)">花店小程序体验码</el-button>
|
|
|
-
|
|
|
- <el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?id=ghs&authType=1`)">供货商公众号激活(请修改host)</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?id=ghs&authType=2`)">供货商小程序激活(请修改host)</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="bindJump(`/wx-open/bind-open?id=ghs&actId=6`)">供货商小程序体验码(请修改host)</el-button>
|
|
|
+</div>
|
|
|
+<div v-else>
|
|
|
+ <el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?id=ghs&authType=1`)">供货商公众号激活</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?id=ghs&authType=2`)">供货商小程序激活</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="bindJump(`/wx-open/bind-open?id=ghs&actId=6`)">供货商小程序体验码</el-button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<template #slot-op-btn="{scope}">
|
|
|
@@ -125,7 +128,8 @@ export default {
|
|
|
plamPayType: 1,
|
|
|
form: {},
|
|
|
rule: {},
|
|
|
- wxOpen: { wx_mini_base_id: 0, wx_base_id: 0 }
|
|
|
+ wxOpen: { wx_mini_base_id: 0, wx_base_id: 0 },
|
|
|
+ firstHost:`${getFirstHost()}`
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -135,12 +139,11 @@ export default {
|
|
|
wxPayConfigFn() {},
|
|
|
// 绑定跳转
|
|
|
bindJump(url) {
|
|
|
- let host = `http://api.saas.${getFirstHost()}.com`;
|
|
|
+ let host = `http://api.pt.${getFirstHost()}.com`;
|
|
|
window.open(host + url);
|
|
|
},
|
|
|
getWxOpen() {
|
|
|
this.wxOpen = this.$service.saasWxOpen.getWxOpen();
|
|
|
- console.log(this.wxOpen);
|
|
|
},
|
|
|
// crud
|
|
|
onLoad({ ctx, app }) {
|