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> <template>
<div class="AppMailList"> <div class="AppMailList">
<AiTopFixed> <AiTopFixed>
<div class="area-content"> <div class="header-top">
<AiAreaPicker :areaId="user.areaId" :value="areaId" @select="areaSelect" :name.sync="areaName"> <div>区域选择</div>
<img src="./img/local-icon.png" alt=""> <AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName">
<span class="label" v-if="areaName">{{ areaName }}</span> <span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</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> </AiAreaPicker>
</div> </div>
</AiTopFixed> </AiTopFixed>
@@ -110,19 +110,12 @@ export default {
::v-deep .fixed{ ::v-deep .fixed{
z-index: 9999; z-index: 9999;
} }
.area-content { .header-top {
width: 100%; display: flex;
line-height: 64px; background: #fff;
justify-content: space-between;
img { align-items: center;
width: 42px; padding-top: 16px;
vertical-align: middle;
margin-right: 16px;
}
.u-icon {
margin-left: 6px;
}
} }
// background-color: #F3F6F9; // background-color: #F3F6F9;
.list-content{ .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"> <u-form-item label="图片(最多9张)" prop="files" class="avatars" label-position="top">
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9" <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-item>
</u-form> </u-form>
</div> </div>
@@ -64,7 +64,8 @@ export default {
areaIdProps: '', areaIdProps: '',
moduleId: '', moduleId: '',
listName: '', listName: '',
selectList: [] selectList: [],
isHideCoverimg: false
} }
}, },
computed: {...mapState(['user'])}, computed: {...mapState(['user'])},
@@ -79,6 +80,7 @@ export default {
} }
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
this.getModuleInfo()
}, },
onShow() { onShow() {
document.title = this.listName document.title = this.listName
@@ -87,6 +89,13 @@ export default {
mounted() { mounted() {
}, },
methods: { 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() { getDetail() {
this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => { this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res?.data) { if (res?.data) {