Commit 73bb01c2 authored by 黄奎's avatar 黄奎

页面修改

parent 822b7c45
......@@ -223,7 +223,7 @@
<div class="btnCenter">{{item.TagName}}</div>
<div class="nav_Action">
<span style="background: rgba(64, 158, 255, 0.9);" @click="EditInfo(item)">编辑</span>
<span style="background: rgba(245, 108, 108, 0.9);" @click="delItem(index)">删除</span>
<span style="background: rgba(245, 108, 108, 0.9);" @click="delItem(index,item)">删除</span>
</div>
</div>
</div>
......@@ -239,11 +239,11 @@
</div>
</div>
</div>
<!-- 导航菜单编辑 -->
<el-dialog title="导航菜单编辑" :visible.sync="isShowDialog" width="800px">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="120px">
<el-form-item label="图标" prop="icon">
<!--prop="icon" HK 0428去掉-->
<el-form-item label="图标" >
<div>
<el-tooltip class="item" effect="dark" content="建议尺寸:64*64" placement="top-start">
<el-button size="small" @click="UploadIcon">选择文件</el-button>
......@@ -254,7 +254,8 @@
<img v-else src="../../assets/img/default.png" alt="" />
</div>
</el-form-item>
<el-form-item label="选择状态图标" prop="checkedIcon">
<!--prop="checkedIcon" HK 0428去掉-->
<el-form-item label="选择状态图标" >
<div>
<el-tooltip class="item" effect="dark" content="建议尺寸:64*64" placement="top-start">
<el-button size="small" @click="UploadCkedIcon">选择文件</el-button>
......@@ -284,7 +285,6 @@
<el-button size="small" type="primary" @click="submitForm('addMsg')">提交</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
......@@ -436,7 +436,17 @@
this.mallMsg.BottomNavBgColor = val;
},
//删除底部图标
delItem(index) {
delItem(index, item) {
if (item.TagId > 0) {
this.apipost("/api/Tenant/RemoveMiniProgramMallTag", {
TagId: item.TagId
}, res => {
if (res.data.resultCode == 1) {
} else {
this.Info(res.data.message);
}
})
}
this.mallMsg.BottomTagList.splice(index, 1);
},
//上传图标
......@@ -528,8 +538,6 @@
item.TagSort = Number(index) + 1;
});
}
console.log("this.mallMsg", this.mallMsg);
this.apipost("/api/Tenant/SetMiniProgramMallTag", this.mallMsg, res => {
if (res.data.resultCode == 1) {
this.Success("操作成功!");
......@@ -539,6 +547,7 @@
}
})
},
//重置
resetInfo() {
......
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