This commit is contained in:
liuye
2022-01-20 15:30:05 +08:00
parent f23dddad10
commit 8d91a4868a
3 changed files with 21 additions and 19 deletions

View File

@@ -1,12 +1,12 @@
<template>
<div class="AppMailList">
<AiTopFixed>
<div class="area-content">
<AiAreaPicker :areaId="user.areaId" :value="areaId" @select="areaSelect" :name.sync="areaName">
<img src="./img/local-icon.png" alt="">
<div class="header-top">
<div>区域选择</div>
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName">
<span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
<u-icon name="arrow-down" color="#666" size="24"/>
<u-icon name="arrow-right" color="#666" size="24" style="margin-left:4px;" />
</AiAreaPicker>
</div>
</AiTopFixed>
@@ -110,19 +110,12 @@ export default {
::v-deep .fixed{
z-index: 9999;
}
.area-content {
width: 100%;
line-height: 64px;
img {
width: 42px;
vertical-align: middle;
margin-right: 16px;
}
.u-icon {
margin-left: 6px;
}
.header-top {
display: flex;
background: #fff;
justify-content: space-between;
align-items: center;
padding-top: 16px;
}
// background-color: #F3F6F9;
.list-content{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -30,7 +30,7 @@
<u-form-item label="图片(最多9张)" prop="files" class="avatars" label-position="top">
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9"
action="/admin/file/add2"></AiUploader>
action="/admin/file/add2" v-if="!isHideCoverimg"></AiUploader>
</u-form-item>
</u-form>
</div>
@@ -64,7 +64,8 @@ export default {
areaIdProps: '',
moduleId: '',
listName: '',
selectList: []
selectList: [],
isHideCoverimg: false
}
},
computed: {...mapState(['user'])},
@@ -79,6 +80,7 @@ export default {
}
this.listName = o.listName
this.getType()
this.getModuleInfo()
},
onShow() {
document.title = this.listName
@@ -87,6 +89,13 @@ export default {
mounted() {
},
methods: {
getModuleInfo () {
this.instance.post(`/app/appcontentmoduleinfo/queryDetailById?id=${this.$route.query.moduleId}`).then(res => {
if (res.code === 0) {
this.isHideCoverimg = res.data.styleType === '0'
}
})
},
getDetail() {
this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) {