|
|
@@ -48,6 +48,14 @@
|
|
|
<el-button v-else type="text" @click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}`)">待绑定</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #table-column-expericeCode="{scope}">
|
|
|
+ <div class="pay on">
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="bindJump(`/wx-open/bind-open?merchantId=${scope.row.id}&id=6`)"
|
|
|
+ >查看</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
|
|
|
<!-- 小程序 -->
|
|
|
<template #table-column-miniAppId="{scope}">
|
|
|
@@ -65,7 +73,11 @@
|
|
|
<template #slot-activation="{scope}">
|
|
|
<el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?authType=1`)">公众号激活</el-button>
|
|
|
<el-button type="primary" size="mini" @click="bindJump(`/wx-open/begin-auth?authType=2`)">小程序激活</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="bindJump(`/wx-open/bind-open?isOpen=1&id=6`)">小程序体验码</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="bindJump(`/wx-open/bind-open?isOpen=1&id=6`)"
|
|
|
+ >小程序体验码</el-button>
|
|
|
</template>
|
|
|
|
|
|
<template #slot-op-btn="{scope}">
|
|
|
@@ -136,11 +148,11 @@ 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 }
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getWxOpen()
|
|
|
+ this.getWxOpen();
|
|
|
},
|
|
|
methods: {
|
|
|
wxPayConfigFn() {},
|
|
|
@@ -149,19 +161,17 @@ export default {
|
|
|
let host = `http://api.saas.${getFirstHost()}.com`;
|
|
|
window.open(host + url);
|
|
|
},
|
|
|
- getWxOpen(){
|
|
|
- this.wxOpen = this.$service.saasWxOpen.getWxOpen()
|
|
|
- console.log(this.wxOpen)
|
|
|
+ getWxOpen() {
|
|
|
+ this.wxOpen = this.$service.saasWxOpen.getWxOpen();
|
|
|
+ console.log(this.wxOpen);
|
|
|
},
|
|
|
// crud
|
|
|
onLoad({ ctx, app }) {
|
|
|
-
|
|
|
-
|
|
|
this.app = app;
|
|
|
let applyHost = () => {
|
|
|
return this.$service.saasShop.merchantList();
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
ctx.service({
|
|
|
page: applyHost
|
|
|
})
|
|
|
@@ -202,13 +212,13 @@ export default {
|
|
|
prop: 'wxPayInit',
|
|
|
label: '微信支付',
|
|
|
align: 'center',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '100px'
|
|
|
},
|
|
|
{
|
|
|
prop: 'aliPayInit',
|
|
|
label: '支付宝支付',
|
|
|
align: 'center',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '110px'
|
|
|
},
|
|
|
{
|
|
|
prop: 'adminName',
|
|
|
@@ -219,7 +229,7 @@ export default {
|
|
|
prop: 'openAppId',
|
|
|
label: '平台',
|
|
|
align: 'center',
|
|
|
- 'min-width': '120px',
|
|
|
+ 'min-width': '100px',
|
|
|
formatter: row => {
|
|
|
switch (row.extend.openAppBind) {
|
|
|
case '0':
|
|
|
@@ -237,19 +247,25 @@ export default {
|
|
|
prop: 'wxAppId',
|
|
|
label: '公众号',
|
|
|
align: 'center',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '100px'
|
|
|
},
|
|
|
{
|
|
|
prop: 'miniAppId',
|
|
|
label: '小程序',
|
|
|
align: 'center',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '100px'
|
|
|
},
|
|
|
{
|
|
|
prop: 'miniVersion',
|
|
|
label: '小程序版本',
|
|
|
align: 'center',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '100px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'expericeCode',
|
|
|
+ label: '体验码',
|
|
|
+ align: 'center',
|
|
|
+ 'min-width': '100px'
|
|
|
},
|
|
|
{
|
|
|
prop: 'setName',
|