bug
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<div class="textarea-div pad-b208">
|
||||
<div class="title mar-b32"><span></span>图片(最多9张)</div>
|
||||
<div class="pad-l20">
|
||||
<AiUploader :limit="9" v-model="form.images"></AiUploader>
|
||||
<AiUploader :def.sync="form.images" multiple placeholder="上传图片" :limit="9"></AiUploader>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-btn">
|
||||
@@ -39,6 +39,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
console.log(o)
|
||||
this.id = o.id || ''
|
||||
},
|
||||
methods: {
|
||||
@@ -60,10 +61,10 @@ export default {
|
||||
this.$http
|
||||
.post(`/app/appvillageactivitypost/addOrUpdate`, {
|
||||
content: this.form.content,
|
||||
avatar: this.user.avatarUrl,
|
||||
name: this.user.realName,
|
||||
avatar: this.user.avatar,
|
||||
name: this.user.name,
|
||||
phone: this.user.phone ? this.user.phone : '',
|
||||
userId: this.user.partyId,
|
||||
userId: this.user.id,
|
||||
activityId: this.id,
|
||||
images: JSON.stringify(imagesList),
|
||||
})
|
||||
@@ -71,8 +72,8 @@ export default {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('发布成功')
|
||||
this.flag = false
|
||||
uni.$emit('refresh')
|
||||
uni.navigateBack()
|
||||
uni.$emit('refresh')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
<img :src="e.url" v-for="(e, i) in imgList[index]" :key="i" alt="" @click.stop="previewImage(info.images, item.url)" />
|
||||
</div>
|
||||
|
||||
<div class="card-icon">
|
||||
<!-- <div class="card-icon">
|
||||
<div>
|
||||
<i class="iconfont"></i>
|
||||
<span>{{ item.viewNum ? item.viewNum : 0 }}</span>
|
||||
@@ -92,10 +92,10 @@
|
||||
<i class="iconfont"></i>
|
||||
<span>{{ item.supportNum ? item.supportNum : 0 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="card-bottom"></div>
|
||||
<!-- <div class="card-bottom"></div> -->
|
||||
</div>
|
||||
|
||||
<AiEmpty v-else />
|
||||
@@ -155,7 +155,6 @@ export default {
|
||||
if (this.detail) {
|
||||
if (this.detail.url) {
|
||||
this.detail.url = JSON.parse(res.data.url || '[]')
|
||||
console.log(this.detail.url)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -168,7 +167,7 @@ export default {
|
||||
},
|
||||
|
||||
getActiveList() {
|
||||
this.$http.post(`/app/apppostinfo/list?activityId=${this.id}`).then((res) => {
|
||||
this.$http.post(`/app/appvillageactivitypost/list?activityId=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.activeList = res.data.records
|
||||
if (this.activeList) {
|
||||
@@ -194,7 +193,7 @@ export default {
|
||||
},
|
||||
|
||||
AddPosts() {
|
||||
uni.navigateTo({ url: `./AddPosts` })
|
||||
uni.navigateTo({ url: `./AddPosts?id=${this.id}` })
|
||||
},
|
||||
|
||||
previewImage(images, img) {
|
||||
@@ -253,7 +252,7 @@ export default {
|
||||
background: #e4e4e4;
|
||||
}
|
||||
.header-content {
|
||||
padding-bottom: 150px;
|
||||
// padding-bottom: 150px;
|
||||
.header-top {
|
||||
width: 100%;
|
||||
height: 440px;
|
||||
@@ -315,7 +314,7 @@ export default {
|
||||
}
|
||||
|
||||
.header-bottom {
|
||||
background: #fff;
|
||||
// background: #fff;
|
||||
|
||||
.content-details {
|
||||
padding: 32px 32px 80px 32px;
|
||||
@@ -333,9 +332,12 @@ export default {
|
||||
|
||||
.content-trends {
|
||||
// padding-bottom: 40px;
|
||||
background: #f3f6f9;
|
||||
.details {
|
||||
.card {
|
||||
background: #fff;
|
||||
padding: 26px 32px 28px 32px;
|
||||
margin-bottom: 20px;
|
||||
.card-nav {
|
||||
display: flex;
|
||||
.avatar {
|
||||
|
||||
Reference in New Issue
Block a user