Commit e27970c4 authored by zhengke's avatar zhengke

修改

parent 02c40ce3
...@@ -647,6 +647,7 @@ ...@@ -647,6 +647,7 @@
</el-form-item> </el-form-item>
<el-form-item label="图标" prop="Password2"> <el-form-item label="图标" prop="Password2">
<el-button @click="openChangeDig(imgType)" size="small">选择文件</el-button> <el-button @click="openChangeDig(imgType)" size="small">选择文件</el-button>
<el-button @click="getIconMsg(iconMsg)" size="small">恢复默认</el-button>
<div> <div>
<img style="width:80px;height:80px" :src="getIconLink(iconMsg.Path)" alt=""> <img style="width:80px;height:80px" :src="getIconLink(iconMsg.Path)" alt="">
</div> </div>
...@@ -671,8 +672,19 @@ ...@@ -671,8 +672,19 @@
return { return {
activeName: 'first', activeName: 'first',
addMsg: {}, addMsg: {},
commonIndex:-1,
HeadImagePath: this.domainManager().ImageUrl + '/Upload/Set/1587968479000.png', HeadImagePath: this.domainManager().ImageUrl + '/Upload/Set/1587968479000.png',
BottomImagePath: this.domainManager().ImageUrl + '/Upload/Set/1587968716000.png', BottomImagePath: this.domainManager().ImageUrl + '/Upload/Set/1587968716000.png',
//分销佣金默认
fenxiaoMoren: this.domainManager().ImageUrl + '/Upload/Set/1587968503000.png',
//分销订单默认
fenxiaoOrder: this.domainManager().ImageUrl + '/Upload/Set/1587968517000.png',
//提现明细默认
tixianMoren: this.domainManager().ImageUrl + '/Upload/Set/1587968599000.png',
//我的团队默认
myTeamMoren: this.domainManager().ImageUrl + '/Upload/Set/1587968613000.png',
//推广二维码默认
tuiguangCode: this.domainManager().ImageUrl + '/Upload/Set/1587968626000.png',
imgType: 1, imgType: 1,
changeState: false, changeState: false,
iconDig: false, iconDig: false,
...@@ -689,6 +701,7 @@ ...@@ -689,6 +701,7 @@
mounted() {}, mounted() {},
methods: { methods: {
openIcon(index, name, path) { openIcon(index, name, path) {
this.commonIndex=index;
this.imgType = index; this.imgType = index;
this.iconDig = true; this.iconDig = true;
this.iconMsg = { this.iconMsg = {
...@@ -696,6 +709,27 @@ ...@@ -696,6 +709,27 @@
Path: path, Path: path,
} }
}, },
//点击栏目下栏目编辑恢复默认
getIconMsg(iconMsg){
switch(this.commonIndex){
case 3:
iconMsg.Path=this.fenxiaoMoren;
break;
case 4:
iconMsg.Path=this.fenxiaoOrder;
break;
case 5:
iconMsg.Path=this.tixianMoren;
break;
case 6:
iconMsg.Path=this.myTeamMoren;
break;
case 7:
iconMsg.Path=this.myTeamMoren;
break;
}
console.log(msg,'msg');
},
save() { save() {
this.apipost("/api/user/SetDistributorCustomInfo", this.addMsg, res => { this.apipost("/api/user/SetDistributorCustomInfo", this.addMsg, res => {
this.loading = false; this.loading = false;
......
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