Commit 85e301b9 by caoyanzhi

update: 会员卡设置

parent 13cd5dd8
...@@ -140,15 +140,18 @@ export default { ...@@ -140,15 +140,18 @@ export default {
loading: false, loading: false,
isEditSort: false, isEditSort: false,
sortTable: null, sortTable: null,
isExist: false, channelList: []
}; };
}, },
methods: { methods: {
getOpenThird() { getOpenThird() {
getRequest('/api-admin/judge-enterprise-third-channel', {}).then(res => { getRequest('/api-admin/get-third-channel-grade-relation-info', {}).then(res => {
res.data.result.isExist = true const { result, errorCode, message } = res.data || {};
const { result } = res.data || {}; if (errorCode != 0) {
this.isExist = result.isExist; this.$message.error(message);
return;
}
this.channelList = Array.isArray(result) ? result : [];
}); });
}, },
checkOpenThird() { checkOpenThird() {
...@@ -156,8 +159,10 @@ export default { ...@@ -156,8 +159,10 @@ export default {
// 开通的商户才提示 // 开通的商户才提示
// 点击已完成才进行下一步操作 // 点击已完成才进行下一步操作
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (this.isExist && this.type == 1) { const channelMap = { 1302: '天猫', 1304: '抖音' }
this.$confirm('您已对接「天猫」、「抖音」渠道的会员等级,为确保每个渠道的会员等级对应关系一致,在调整会员等级顺序或者新增会员等级前请联系运营经理确认是否对应渠道的会员等级关系已维护完成!', '提示', { const channel = this.channelList.filter(el => el.exist).map(el => `「${channelMap[el.channelCode + '']}」`);
if (this.type == 1 && channel.length > 0) {
this.$confirm(`您已对接${channel.join('、')}渠道的会员等级,为确保每个渠道的会员等级对应关系一致,在调整会员等级顺序或者新增会员等级前请联系运营经理确认是否对应渠道的会员等级关系已维护完成!`, '提示', {
type: 'warning', type: 'warning',
customClass: 'check-open-channel', customClass: 'check-open-channel',
cancelButtonText: '未完成', cancelButtonText: '未完成',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment