|
@@ -45,12 +45,7 @@
|
|
|
<template #table-column-wxAppId="{scope}">
|
|
<template #table-column-wxAppId="{scope}">
|
|
|
<div class="pay on">
|
|
<div class="pay on">
|
|
|
<i v-if="scope.row.extend.wxAuth != '0'" :class="['el-icon-success']"></i>
|
|
<i v-if="scope.row.extend.wxAuth != '0'" :class="['el-icon-success']"></i>
|
|
|
- <el-button
|
|
|
|
|
- v-else
|
|
|
|
|
- type="text"
|
|
|
|
|
- @click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}`)"
|
|
|
|
|
- >待绑定
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button v-else type="text" @click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}`)">待绑定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -62,27 +57,15 @@
|
|
|
v-else
|
|
v-else
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}&authType=2`)"
|
|
@click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}&authType=2`)"
|
|
|
- >待绑定
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ >待绑定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<!-- 平台帐号激活 -->
|
|
<!-- 平台帐号激活 -->
|
|
|
<template #slot-activation="{scope}">
|
|
<template #slot-activation="{scope}">
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- @click="bindJump(`/merchant/add-platform-merchant`)"
|
|
|
|
|
- >公众号激活
|
|
|
|
|
- </el-button>
|
|
|
|
|
-
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- @click="bindJump(`/merchant/add-platform-merchant`)"
|
|
|
|
|
- >小程序激活
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="bindJump(`/merchant/add-platform-merchant`)">公众号激活</el-button>
|
|
|
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="bindJump(`/merchant/add-platform-merchant`)">小程序激活</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-op-btn="{scope}">
|
|
<template #slot-op-btn="{scope}">
|
|
@@ -106,11 +89,7 @@
|
|
|
class="demo-form"
|
|
class="demo-form"
|
|
|
>
|
|
>
|
|
|
<el-form-item label="商户ID" prop="status">
|
|
<el-form-item label="商户ID" prop="status">
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.wxPayMerchantId"
|
|
|
|
|
- placeholder="请输入商户ID"
|
|
|
|
|
- size="small"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="form.wxPayMerchantId" placeholder="请输入商户ID" size="small"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="密钥" prop="remark">
|
|
<el-form-item label="密钥" prop="remark">
|
|
|
<el-input type="textarea" v-model="form.wxPayKey"></el-input>
|
|
<el-input type="textarea" v-model="form.wxPayKey"></el-input>
|
|
@@ -125,11 +104,7 @@
|
|
|
class="demo-form"
|
|
class="demo-form"
|
|
|
>
|
|
>
|
|
|
<el-form-item label="商户ID" prop="status">
|
|
<el-form-item label="商户ID" prop="status">
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.alipayPId"
|
|
|
|
|
- placeholder="请输入商户ID"
|
|
|
|
|
- size="small"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="form.alipayPId" placeholder="请输入商户ID" size="small"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="商户私钥" prop="remark">
|
|
<el-form-item label="商户私钥" prop="remark">
|
|
|
<el-input type="textarea" v-model="form.alipayKey"></el-input>
|
|
<el-input type="textarea" v-model="form.alipayKey"></el-input>
|
|
@@ -161,7 +136,7 @@ export default {
|
|
|
plamPayType: 1,
|
|
plamPayType: 1,
|
|
|
form: {},
|
|
form: {},
|
|
|
rule: {},
|
|
rule: {},
|
|
|
- wxOpen:{},
|
|
|
|
|
|
|
+ wxOpen:{wx_mini_base_id:0,wx_base_id:0},
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {},
|
|
mounted() {},
|
|
@@ -172,18 +147,18 @@ export default {
|
|
|
let host = `http://api.saas.${getFirstHost()}.com`;
|
|
let host = `http://api.saas.${getFirstHost()}.com`;
|
|
|
window.open(host + url);
|
|
window.open(host + url);
|
|
|
},
|
|
},
|
|
|
|
|
+ getWxOpen(){
|
|
|
|
|
+ this.wxOpen = this.$service.saasWxOpen.getWxOpen()
|
|
|
|
|
+ console.log(this.wxOpen)
|
|
|
|
|
+ },
|
|
|
// crud
|
|
// crud
|
|
|
onLoad({ ctx, app }) {
|
|
onLoad({ ctx, app }) {
|
|
|
|
|
+
|
|
|
this.app = app;
|
|
this.app = app;
|
|
|
let applyHost = () => {
|
|
let applyHost = () => {
|
|
|
return this.$service.saasShop.merchantList();
|
|
return this.$service.saasShop.merchantList();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- this.$service.saasWxOpen.getWxOpen()
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
ctx.service({
|
|
ctx.service({
|
|
|
page: applyHost
|
|
page: applyHost
|
|
|
})
|
|
})
|
|
@@ -370,31 +345,31 @@ export default {
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
<style lang="stylus" scoped>
|
|
|
.liu-crud-wrap >>> .el-row--0 {
|
|
.liu-crud-wrap >>> .el-row--0 {
|
|
|
- top: 0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- width: 100% !important;
|
|
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ width: 100% !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.pay {
|
|
.pay {
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content center;
|
|
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
|
|
|
- i {
|
|
|
|
|
- font-size: 20px;
|
|
|
|
|
- margin-right 5px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ i {
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ margin-right: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- &.on {
|
|
|
|
|
- i {
|
|
|
|
|
- color #67C23A;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ &.on {
|
|
|
|
|
+ i {
|
|
|
|
|
+ color: #67C23A;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- &.off {
|
|
|
|
|
- i {
|
|
|
|
|
- color #909399;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ &.off {
|
|
|
|
|
+ i {
|
|
|
|
|
+ color: #909399;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|