Commit 69c048fb by 谢中龙

修改等级接口

parent e2db7b17
...@@ -84,8 +84,9 @@ Component({ ...@@ -84,8 +84,9 @@ Component({
isPlusVip: isVip, isPlusVip: isVip,
currentPlusStyle: isVip ? personData.plus.filter(item => item.purchased == 1)[0] : personData.plus.filter(item => item.purchased == 0)[0] currentPlusStyle: isVip ? personData.plus.filter(item => item.purchased == 1)[0] : personData.plus.filter(item => item.purchased == 0)[0]
}); });
if(this.data.currentHasUserInfo){
this.getLevelOpenStatus(); this.getLevelOpenStatus();
}
}, },
methods: { methods: {
//获取配置的开关 //获取配置的开关
...@@ -108,7 +109,7 @@ Component({ ...@@ -108,7 +109,7 @@ Component({
}, },
//获取等级列表 //获取等级列表
getLevelList(){ getLevelList(){
wxService.post('/merchant/settingLevel/get').then(res => { wxService.get('/member/memberLevel/get').then(res => {
if(res){ if(res){
let levelList = res.data.data ? res.data.data : []; let levelList = res.data.data ? res.data.data : [];
if (levelList.length == 0){ if (levelList.length == 0){
......
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