25942
This commit is contained in:
		@@ -75,7 +75,7 @@ export default {
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  watch: {},
 | 
					  watch: {},
 | 
				
			||||||
  onLoad() {
 | 
					  onLoad() {
 | 
				
			||||||
    document.title =  '居民活动' 
 | 
					    document.title = '居民活动'
 | 
				
			||||||
    this.$dict.load(['villageActivityStatus']).then(() => {
 | 
					    this.$dict.load(['villageActivityStatus']).then(() => {
 | 
				
			||||||
      this.getList()
 | 
					      this.getList()
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
@@ -123,7 +123,7 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    toDetail(item) {
 | 
					    toDetail(item) {
 | 
				
			||||||
      uni.navigateTo({ url: `./Detail?id=${item.id}` })
 | 
					      uni.navigateTo({ url: `./Detail?id=${item.id}&createUserId=${item.createUserId}` })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,7 +20,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        <div class="cards">
 | 
					        <div class="cards">
 | 
				
			||||||
          <div class="cards-left">活动时间</div>
 | 
					          <div class="cards-left">活动时间</div>
 | 
				
			||||||
          <div class="cards-right">{{ detail.beginTime && detail.beginTime.substring(0, detail.beginTime.length - 2) }}</div>
 | 
					          <div class="cards-right">{{ detail.beginTime && detail.beginTime.substring(0, detail.beginTime.length - 3) }}</div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div class="cards">
 | 
					        <div class="cards">
 | 
				
			||||||
@@ -105,7 +105,7 @@
 | 
				
			|||||||
      <div class="fixedBtns" v-if="this.current == 0 && detail.status == 0" @click="toAdd">编辑活动</div>
 | 
					      <div class="fixedBtns" v-if="this.current == 0 && detail.status == 0" @click="toAdd">编辑活动</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <AiFixedBtn>
 | 
					    <AiFixedBtn v-if="this.createUserId == this.user.id">
 | 
				
			||||||
      <div class="addBtn iconfont iconfont-iconfangda" @tap.stop="AddPosts()" />
 | 
					      <div class="addBtn iconfont iconfont-iconfangda" @tap.stop="AddPosts()" />
 | 
				
			||||||
    </AiFixedBtn>
 | 
					    </AiFixedBtn>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
@@ -122,6 +122,7 @@ export default {
 | 
				
			|||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      id: '',
 | 
					      id: '',
 | 
				
			||||||
 | 
					      createUserId: '',
 | 
				
			||||||
      detail: {},
 | 
					      detail: {},
 | 
				
			||||||
      activeList: [],
 | 
					      activeList: [],
 | 
				
			||||||
      imgList: [],
 | 
					      imgList: [],
 | 
				
			||||||
@@ -134,11 +135,13 @@ export default {
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      current: 0,
 | 
					      current: 0,
 | 
				
			||||||
 | 
					      timeEndTime: '',
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onLoad(option) {
 | 
					  onLoad(option) {
 | 
				
			||||||
    document.title =  '活动报名' 
 | 
					    document.title = '活动报名'
 | 
				
			||||||
    this.id = option.id
 | 
					    this.id = option.id
 | 
				
			||||||
 | 
					    this.createUserId = option.createUserId
 | 
				
			||||||
    this.$dict.load(['villageActivityStatus']).then(() => {
 | 
					    this.$dict.load(['villageActivityStatus']).then(() => {
 | 
				
			||||||
      this.getDetail()
 | 
					      this.getDetail()
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
@@ -151,9 +154,8 @@ export default {
 | 
				
			|||||||
    getDetail() {
 | 
					    getDetail() {
 | 
				
			||||||
      this.$http.post(`/app/appvillageactivityinfo/queryDetailById?id=${this.id}`).then((res) => {
 | 
					      this.$http.post(`/app/appvillageactivityinfo/queryDetailById?id=${this.id}`).then((res) => {
 | 
				
			||||||
        if (res?.data) {
 | 
					        if (res?.data) {
 | 
				
			||||||
          // res.data.beginTime = res.data.beginTime.substring(0, 16)
 | 
					 | 
				
			||||||
          // res.data.endTime = res.data.endTime.substring(0, 16)
 | 
					 | 
				
			||||||
          this.detail = res.data
 | 
					          this.detail = res.data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          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 || '[]')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user