Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="hints">家庭成员{{ data.family.length }}</div>
|
<div class="hints">家庭成员 {{ data.family.length }}人</div>
|
||||||
|
|
||||||
<div v-if="data.family && data.family.length > 0">
|
<div v-if="data.family && data.family.length > 0">
|
||||||
<div class="card" v-for="(item, i) in data.family" :key="i" @click="toDetailPeople(item)">
|
<div class="card" v-for="(item, i) in data.family" :key="i" @click="toDetailPeople(item)">
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppServicePublic">
|
<div class="AppServicePublic">
|
||||||
<AiTopFixed v-if="tabs.length">
|
<AiTopFixed v-if="tabs.length">
|
||||||
<div class="tab-select" @click="tabClick(item)">
|
<div class="tab-select">
|
||||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index"
|
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index"
|
||||||
@click="tabClick(item)">{{ item.categoryName }}<span></span></div>
|
@click="tabClick(index, item)">{{ item.categoryName }}<span></span></div>
|
||||||
</div>
|
</div>
|
||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="header-top">
|
<div class="header-top">
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<u-parse :html="item.content"></u-parse>
|
<u-parse :html="item.content"></u-parse>
|
||||||
</p>
|
</p>
|
||||||
<div class="img-list" v-if="item.files.length">
|
<div class="img-list" v-if="item.files.length">
|
||||||
<img :src="item.accessUrl" alt="" v-for="(item, index) in item.files" :key="index" v-if="index < 3" />
|
<img :src="items.accessUrl" alt="" v-for="(items, index) in item.files" :key="index" v-if="index < 3" @click.stop="previewImage(item.files, items.accessUrl)" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="left">
|
<span class="left">
|
||||||
@@ -99,6 +99,12 @@ export default {
|
|||||||
uni.setNavigationBarTitle({title: this.listName})
|
uni.setNavigationBarTitle({title: this.listName})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
previewImage(images, img) {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: images.map(v => v.url),
|
||||||
|
current: img
|
||||||
|
})
|
||||||
|
},
|
||||||
getType() {
|
getType() {
|
||||||
this.$http.post(`/app/appcontentmoduleinfo/listByName?names=${this.listName}`).then((res) => {
|
this.$http.post(`/app/appcontentmoduleinfo/listByName?names=${this.listName}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -113,14 +119,20 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tabClick(row) {
|
tabClick(index, row) {
|
||||||
this.tabIndex = row.showIndex
|
this.tabIndex = index
|
||||||
this.categoryId = row.id
|
this.categoryId = row.id
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
search() {
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.$http.post('/app/appcontentinfo/list', null, {
|
this.$http.post('/app/appcontentinfo/list', null, {
|
||||||
params: {
|
params: {
|
||||||
size: 6,
|
size: 20,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
areaId: this.areaId,
|
areaId: this.areaId,
|
||||||
title: this.keyword,
|
title: this.keyword,
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="img-list" v-if="data.files && data.files.length">
|
<div class="img-list" v-if="data.files && data.files.length">
|
||||||
<div class="title">图片</div>
|
<div class="title">图片</div>
|
||||||
<img :src="item.accessUrl" alt="" v-for="(item, index) in data.files" :key="index" />
|
<img :src="item.accessUrl" alt="" v-for="(item, index) in data.files" :key="index" @click="previewImage(data.files, item.accessUrl)" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -52,6 +52,12 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
previewImage(images, img) {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: images.map(v => v.url),
|
||||||
|
current: img
|
||||||
|
})
|
||||||
|
},
|
||||||
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) {
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ export default {
|
|||||||
return this.$u.toast('请输入发布组织')
|
return this.$u.toast('请输入发布组织')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.forms.content) {
|
||||||
|
return this.$u.toast('请输入正文')
|
||||||
|
}
|
||||||
|
|
||||||
const imgs = []
|
const imgs = []
|
||||||
if (this.forms.images) {
|
if (this.forms.images) {
|
||||||
this.forms.images.map((e) => {
|
this.forms.images.map((e) => {
|
||||||
|
|||||||
@@ -583,12 +583,9 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
// align-items: center;
|
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
|
|
||||||
.item-left {
|
.item-left {
|
||||||
height: 100%;
|
|
||||||
// position: relative;
|
|
||||||
.item-left-ava-icon {
|
.item-left-ava-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@@ -601,12 +598,10 @@ export default {
|
|||||||
background-color: #2266ff;
|
background-color: #2266ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
// vertical-align: middle;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
// margin: 16px 0 0 8px;
|
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
}
|
}
|
||||||
@@ -618,11 +613,9 @@ export default {
|
|||||||
left: 50px;
|
left: 50px;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
// background: #fff;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
@@ -648,7 +641,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.solid {
|
.solid {
|
||||||
// height: 100%;
|
|
||||||
height: calc(100%);
|
height: calc(100%);
|
||||||
border-left: 4px solid #eee;
|
border-left: 4px solid #eee;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -657,7 +649,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashed {
|
.dashed {
|
||||||
// height: 100%;
|
|
||||||
height: calc(100%);
|
height: calc(100%);
|
||||||
border-left: 4px dashed #eee;
|
border-left: 4px dashed #eee;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -1093,12 +1084,10 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
// align-items: center;
|
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
|
|
||||||
.item-left {
|
.item-left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
// position: relative;
|
|
||||||
.item-left-ava-icon {
|
.item-left-ava-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@@ -1111,12 +1100,10 @@ export default {
|
|||||||
background-color: #2266ff;
|
background-color: #2266ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
// vertical-align: middle;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
// margin: 16px 0 0 8px;
|
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
}
|
}
|
||||||
@@ -1128,7 +1115,6 @@ export default {
|
|||||||
left: 50px;
|
left: 50px;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
// background: #fff;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
<text class="img_text">(最多9张)</text>
|
<text class="img_text">(最多9张)</text>
|
||||||
<div class="upload">
|
<div class="upload">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<AiUploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview />
|
<AiUploader multiple @list="(v) => (picture = v)" :limit="9" action="/admin/file/add2" :size="2097152" preview />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -583,12 +583,9 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
// align-items: center;
|
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
|
|
||||||
.item-left {
|
.item-left {
|
||||||
height: 100%;
|
|
||||||
// position: relative;
|
|
||||||
.item-left-ava-icon {
|
.item-left-ava-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@@ -601,12 +598,10 @@ export default {
|
|||||||
background-color: #2266ff;
|
background-color: #2266ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
// vertical-align: middle;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
// margin: 16px 0 0 8px;
|
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
}
|
}
|
||||||
@@ -618,11 +613,9 @@ export default {
|
|||||||
left: 50px;
|
left: 50px;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
// background: #fff;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
@@ -648,7 +641,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.solid {
|
.solid {
|
||||||
// height: 100%;
|
|
||||||
height: calc(100%);
|
height: calc(100%);
|
||||||
border-left: 4px solid #eee;
|
border-left: 4px solid #eee;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -657,7 +649,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashed {
|
.dashed {
|
||||||
// height: 100%;
|
|
||||||
height: calc(100%);
|
height: calc(100%);
|
||||||
border-left: 4px dashed #eee;
|
border-left: 4px dashed #eee;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -1093,12 +1084,10 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
// align-items: center;
|
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
|
|
||||||
.item-left {
|
.item-left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
// position: relative;
|
|
||||||
.item-left-ava-icon {
|
.item-left-ava-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@@ -1111,12 +1100,10 @@ export default {
|
|||||||
background-color: #2266ff;
|
background-color: #2266ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
// vertical-align: middle;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
// margin: 16px 0 0 8px;
|
|
||||||
width: 48px;
|
width: 48px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
}
|
}
|
||||||
@@ -1128,7 +1115,6 @@ export default {
|
|||||||
left: 50px;
|
left: 50px;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
// background: #fff;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|||||||
Reference in New Issue
Block a user