Commit 4c77d9e3 authored by zhengke's avatar zhengke

修改

parent 5140c159
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
.UserCenter .mobile-menus-box { .UserCenter .mobile-menus-box {
width: 100%; width: 100%;
background-color: #f7f7f7; background-color: #f7f7f7;
padding: 0 8px; padding: 8px;
} }
.UserCenter .mobile-menus-box>div { .UserCenter .mobile-menus-box>div {
...@@ -744,6 +744,12 @@ ...@@ -744,6 +744,12 @@
<img v-else src="../../assets/img/default.png" alt="" /> <img v-else src="../../assets/img/default.png" alt="" />
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="可查看分组">
<el-select v-model="modifyMsg.GroupId" class="w300">
<el-option v-for="item in groupArray" :key="item.GroupId" :label="item.GroupName" :value="item.GroupId">
</el-option>
</el-select>
</el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowDialog = false">取 消</el-button> <el-button size="small" @click="isShowDialog = false">取 消</el-button>
...@@ -848,7 +854,8 @@ ...@@ -848,7 +854,8 @@
}, },
modifyMsg: { modifyMsg: {
name: '', name: '',
image: '' image: '',
GroupId:''
}, },
//用户中心配置 //用户中心配置
userCenterMsg: { userCenterMsg: {
...@@ -877,7 +884,8 @@ ...@@ -877,7 +884,8 @@
NavMoreList: [], //强东新增 NavMoreList: [], //强东新增
}, },
menuIndex: 0, //新增第几个惨淡栏 menuIndex: 0, //新增第几个惨淡栏
ckIndex:0 ckIndex:0,
groupArray:[] //可查看分组下拉数据
}; };
}, },
components: { components: {
...@@ -919,6 +927,7 @@ ...@@ -919,6 +927,7 @@
}, },
//修改确定 //修改确定
updateInfo() { updateInfo() {
console.log(this.EditIndex,'Eindex');
switch (this.EditIndex) { switch (this.EditIndex) {
case 1: case 1:
this.postMsg.FavoriteFootMenuList[this.comCheckIndex].MenuName = this.modifyMsg.name; this.postMsg.FavoriteFootMenuList[this.comCheckIndex].MenuName = this.modifyMsg.name;
...@@ -943,6 +952,7 @@ ...@@ -943,6 +952,7 @@
case 6: case 6:
this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].MenuName = this.modifyMsg.name; this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].MenuName = this.modifyMsg.name;
this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].MenuIcon = this.modifyMsg.image; this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].MenuIcon = this.modifyMsg.image;
this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].GroupId = this.modifyMsg.GroupId;
} }
this.isShowDialog = false; this.isShowDialog = false;
}, },
...@@ -978,6 +988,7 @@ ...@@ -978,6 +988,7 @@
} }
this.modifyMsg.name = item.MenuName; this.modifyMsg.name = item.MenuName;
this.modifyMsg.image = item.MenuIcon; this.modifyMsg.image = item.MenuIcon;
this.modifyMsg.GroupId = item.GroupId;
}, },
//获取用户中心配置 //获取用户中心配置
getUserCenterConfig() { getUserCenterConfig() {
...@@ -1361,9 +1372,18 @@ ...@@ -1361,9 +1372,18 @@
MeunList: [] MeunList: []
} }
this.postMsg.NavMoreList.push(obj); this.postMsg.NavMoreList.push(obj);
},
//获取分组下来列表
getgroupList() {
this.apipost("/api/User/GetMemberGroupList", {}, res => {
if (res.data.resultCode == 1) {
this.groupArray = res.data.data;
}
});
} }
}, },
mounted() { mounted() {
this.getgroupList();
this.getUserCenterConfig(); this.getUserCenterConfig();
} }
}; };
......
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