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