diff --git a/src/views/agent/paySetting.vue b/src/views/agent/paySetting.vue
index cfe00ba..1571ed9 100644
--- a/src/views/agent/paySetting.vue
+++ b/src/views/agent/paySetting.vue
@@ -4,31 +4,86 @@
支付授权
-
-
+
+
+
+
+
前期准备事项
+
+ 请确保使用要添加的淘宝主账号登录并授权
+
+
+ 如未购买"快乐帮手"服务或已过期,会跳转到购买服务页面
+
+
+
+
+
+
+
-
+
+ 请输入公司简称,便于您区分账号所属公司
+
+
+
+
+ 微信支付平台>账户中心>商户信息>微信支付商户号
+
+
+
+
+ 微信支付平台>账号中心>账户设置>API安全>APIv2密钥;注意,支付密钥不能设置为纯数字
+
+
+
+
+ 公众平台>设置与开发>基本配置>公众号开发信息>开发者ID(APPID)
+
+
+
+
+
+
+
+
+
+
+
+
请输入公司简称,便于您区分账号所属公司
-
-
+
-
- 微信支付平台>账户中心>商户信息>微信支付商户号
-
-
+
+ 仅支持已签约 “当面付” 功能的公司支付宝
+
-
- 微信支付平台>账号中心>账户设置>API安全>APIv2密钥;注意,支付密钥不能设置为纯数字
-
-
+
+
+
+
须知
+
使用平台“支付宝支付”,平台收取5%的服务费
+
使用平台“支付宝支付”,真实姓名必须和支付宝账号实名认证姓名统一
+
+
+ 请输入支付宝绑定的银行卡的持卡人姓名
+
-
- 公众平台>设置与开发>基本配置>公众号开发信息>开发者ID(APPID)
-
-
+
+ 请输入有效账号
+
-
+
@@ -43,11 +98,42 @@
+
+
+
+
+
前期准备事项
+
主账号登录并授权。
去授权
+
如未购买"快乐帮手"服务或已过期,会跳转到购买服务页面。
+
授权成功后点击下方“同步授权”。
+
+
+
+
+
+
+
+
+
+
+
+
+
前期准备事项
+
请确保使用要添加的京东主账号登录并授权
+
如未购买"快乐论文检测服务"服务或已过期,会跳转到购买服务页面
+
+
+
+
+
+
+
+
- 取消
- 保存
+ 取消
+ {{ confirmText }}
@@ -98,6 +184,7 @@ export default {
payTypeAlipay: PAY_TYPE_ALIPAY,
payTypeJingdong: PAY_TYPE_JINGDONG,
payTypePdd: PAY_TYPE_PDD,
+ confirmText: '保存',
}
},
computed: {
@@ -124,6 +211,11 @@ export default {
this.$nextTick(() => {
this.payinfo = response.data
this.payType = response.data.type
+ if (this.payType == PAY_TYPE_TAOBAO || this.payType == PAY_TYPE_JINGDONG) {
+ this.confirmText = '去授权';
+ } else if (this.payType == PAY_TYPE_PDD) {
+ this.confirmText = '同步授权';
+ }
})
}).catch(error => {
console.error(error, 'error')
@@ -132,7 +224,7 @@ export default {
// 确认按钮事件
addPayment() {
if (this.payType == PAY_TYPE_TAOBAO) {
- window.open(this.taobaoAuthUrl, '_blank');
+ window.open(this.payinfo.authurl, '_blank');
} else if (this.payType == PAY_TYPE_WEIXIN) {
this.$http('POST', '/agentnew/ajax_add_weixinpay', {
@@ -149,7 +241,6 @@ export default {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
- this.getPayList();
} else {
this.$Message.error(response.info);
}
@@ -160,11 +251,12 @@ export default {
} else if (this.payType == PAY_TYPE_ALIPAY) {
this.$http('POST', '/agentnew/ajax_add_alipay', {
- company_short_name: this.company_short_name,
- alipay_account: this.alipay_account,
- is_pay_public: this.isPayPublic,
- receive_payment_account: this.receive_payment_account,
- receive_payment_name: this.receive_payment_name
+ payid: this.$route.query.payid,
+ company_short_name: this.payinfo.short_name,
+ alipay_account: this.payinfo.account,
+ is_pay_public: this.payinfo.is_pay_public,
+ receive_payment_account: this.payinfo.receive_payment_account,
+ receive_payment_name: this.payinfo.receive_payment_name
}, {
headers: {
'Auth': this.token
@@ -172,13 +264,10 @@ export default {
}).then(response => {
this.$nextTick(() => {
if (response.status) {
- if (this.isPayPublic == 1) {
- this.$Message.success(response.info);
- this.getPayList();
- this.receive_payment_account = ''
- this.receive_payment_name = ''
+ if (this.payinfo.is_pay_public == 1) {
+ this.$Message.success(response.info);
} else {
- window.open(response.data.authurl, '_blank');
+ window.open(response.data.authurl, '_blank');
}
} else {
@@ -188,9 +277,9 @@ export default {
}).catch(error => {
console.error(error, 'error')
})
- } else if (this.payType == PAY_TYPE_PDD) {
+ } else if (this.payType == PAY_TYPE_PDD) {
this.$http('POST', '/agentnew/ajax_add_pddpay', {
- shop_name: this.pdd_shop_name,
+ shop_name: this.payinfo.account,
}, {
headers: {
'Auth': this.token
@@ -199,9 +288,6 @@ export default {
this.$nextTick(() => {
if (response.status) {
this.$Message.success(response.info);
- this.getPayList();
- this.pdd_shop_name = ''
-
} else {
this.$Message.error(response.info);
}
@@ -210,96 +296,15 @@ export default {
console.error(error, 'error')
})
} else if (this.payType == PAY_TYPE_JINGDONG) {
- window.open(this.jdAuthUrl, '_blank');
+ window.open(this.payinfo.authurl, '_blank');
}
},
- // 操作下拉框
- toggleDrop(e){
- this.$refs.dropDomain.toggleDropdown(e)
- },
- changeSelectIp(item) {
- //内容真实绑定在
- this.selectedItem1 = { ...item };
- },
- // 获取站点信息
- getSiteInfo() {
- const that = this
- that.siteInfo = []
- this.$http('POST', '/agentnew/ajax_get_site_info', {
- uid: this.$route.query.uid,
- }, {
- headers: {
- 'Auth': this.token
- }
- }).then(response => {
- this.$nextTick(() => {
- that.siteInfo = response.data
- })
- }).catch(error => {
- console.error(error, 'error')
- })
+ handleClick(tab, event) {
+ console.log(tab, event);
},
- updateSiteInfo() {
- this.$http('POST', '/agentnew/ajax_update_site_info', {
- uid: this.$route.query.uid,
- short_name: this.siteInfo.short_name,
- company_name: this.siteInfo.company_name,
- company_phone: this.siteInfo.phone_num,
- }, {
- headers: {
- 'Auth': this.token
- }
- }).then(response => {
- this.$nextTick(() => {
- if (response.status) {
- this.$Message.success(response.info);
- } else {
- this.$Message.error(response.info);
- }
- })
- }).catch(error => {
- console.error(error, 'error')
- })
- },
- cancleUpdateSiteInfo() {
- this.getSiteInfo();
- },
- changeNormalWeixin() {
-
- },
- changeSelectWeixin(item, flag) {
- if (flag) {
- this.select_placeholder_weixin = this.options_weixin_null.desc;
- return
- }
- this.selectedItem = { ...item };
- console.log(this.selectedItem, 'this.selectedItem====');
- },
- // 销售渠道
- domain_radioChange(type) {
- console.log(type, '--');
- },
- onSwitchChange(data) {
- console.log(data, '---');
- },
- submitForm(form) {
- console.log(this.$refs[form], '-----');
- this.$refs[form].validate((valid) => {
- console.log(this[form], '======formxinxi');
- if (valid) {
- alert('提交成功!');
- } else {
- return false;
- }
- });
- },
- cancelClick() {
- console.log('quxiao');
- },
- confirmClick(type) {
- console.log(type, '确认');
+ cancle() {
+ this.getPayment();
}
-
}
}
@@ -352,6 +357,68 @@ a {
height: 200px;
}
+.beforeNotice {
+
+ h4 {
+ margin: 0;
+ gap: 8px;
+ }
+
+ margin-bottom: 18px;
+ text-align: left;
+ box-sizing: border-box;
+ padding: 20px 14px;
+ border-radius: 4px;
+ /* middle/middle_blue_1 */
+ background: #F2F7FF;
+ /* middle/middle_blue_3 */
+ border: 1px solid #BFDAFF;
+
+ div {
+ margin-top: 2px;
+ padding-left: 23px;
+
+ p {
+ color: #8A9099;
+ }
+
+ }
+
+ p {
+ color: #1E2226;
+
+ i {
+ font-style: normal;
+ }
+
+ &:last-child {
+ display: flex;
+ align-items: stretch;
+
+ b {
+ font-weight: normal;
+ color: #8A9099;
+ display: inline-flex;
+
+ img {
+ margin-left: 4px;
+ }
+ }
+ }
+ }
+
+ a {
+ text-decoration: none;
+ color: #006AFF;
+ margin-right: 10px;
+
+ img {
+ margin-left: 5px;
+ margin-right: 5px;
+ }
+ }
+}
+
.siteMessage {
border-radius: 4px;