Commit 85e301b9 by caoyanzhi

update: 会员卡设置

parent 13cd5dd8
......@@ -140,15 +140,18 @@ export default {
loading: false,
isEditSort: false,
sortTable: null,
isExist: false,
channelList: []
};
},
methods: {
getOpenThird() {
getRequest('/api-admin/judge-enterprise-third-channel', {}).then(res => {
res.data.result.isExist = true
const { result } = res.data || {};
this.isExist = result.isExist;
getRequest('/api-admin/get-third-channel-grade-relation-info', {}).then(res => {
const { result, errorCode, message } = res.data || {};
if (errorCode != 0) {
this.$message.error(message);
return;
}
this.channelList = Array.isArray(result) ? result : [];
});
},
checkOpenThird() {
......@@ -156,8 +159,10 @@ export default {
// 开通的商户才提示
// 点击已完成才进行下一步操作
return new Promise((resolve, reject) => {
if (this.isExist && this.type == 1) {
this.$confirm('您已对接「天猫」、「抖音」渠道的会员等级,为确保每个渠道的会员等级对应关系一致,在调整会员等级顺序或者新增会员等级前请联系运营经理确认是否对应渠道的会员等级关系已维护完成!', '提示', {
const channelMap = { 1302: '天猫', 1304: '抖音' }
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',
customClass: 'check-open-channel',
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