bug
This commit is contained in:
		@@ -12,7 +12,7 @@
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <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 class="card" v-for="(item, i) in data.family" :key="i" @click="toDetailPeople(item)">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,9 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="AppServicePublic">
 | 
			
		||||
    <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"
 | 
			
		||||
             @click="tabClick(item)">{{ item.categoryName }}<span></span></div>
 | 
			
		||||
             @click="tabClick(index, item)">{{ item.categoryName }}<span></span></div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </AiTopFixed>
 | 
			
		||||
    <div class="header-top">
 | 
			
		||||
@@ -19,7 +19,7 @@
 | 
			
		||||
            <u-parse :html="item.content"></u-parse>
 | 
			
		||||
          </p>
 | 
			
		||||
          <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 class="flex">
 | 
			
		||||
            <span class="left">
 | 
			
		||||
@@ -99,6 +99,12 @@ export default {
 | 
			
		||||
    uni.setNavigationBarTitle({title: this.listName})
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    previewImage(images, img) {
 | 
			
		||||
      uni.previewImage({
 | 
			
		||||
        urls: images.map(v => v.url),
 | 
			
		||||
        current: img
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getType() {
 | 
			
		||||
      this.$http.post(`/app/appcontentmoduleinfo/listByName?names=${this.listName}`).then((res) => {
 | 
			
		||||
        if (res.code == 0) {
 | 
			
		||||
@@ -113,14 +119,20 @@ export default {
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    tabClick(row) {
 | 
			
		||||
      this.tabIndex = row.showIndex
 | 
			
		||||
    tabClick(index, row) {
 | 
			
		||||
      this.tabIndex = index
 | 
			
		||||
      this.categoryId = row.id
 | 
			
		||||
      this.current = 1
 | 
			
		||||
      this.getList()
 | 
			
		||||
    },
 | 
			
		||||
    search() {
 | 
			
		||||
      this.current = 1
 | 
			
		||||
      this.getList()
 | 
			
		||||
    },
 | 
			
		||||
    getList() {
 | 
			
		||||
      this.$http.post('/app/appcontentinfo/list', null, {
 | 
			
		||||
        params: {
 | 
			
		||||
          size: 6,
 | 
			
		||||
          size: 20,
 | 
			
		||||
          current: this.current,
 | 
			
		||||
          areaId: this.areaId,
 | 
			
		||||
          title: this.keyword,
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="img-list" v-if="data.files && data.files.length">
 | 
			
		||||
      <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>
 | 
			
		||||
</template>
 | 
			
		||||
@@ -52,6 +52,12 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {},
 | 
			
		||||
  methods: {
 | 
			
		||||
    previewImage(images, img) {
 | 
			
		||||
      uni.previewImage({
 | 
			
		||||
        urls: images.map(v => v.url),
 | 
			
		||||
        current: img
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    getDetail() {
 | 
			
		||||
      this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
 
 | 
			
		||||
@@ -82,6 +82,10 @@ export default {
 | 
			
		||||
            return this.$u.toast('请输入发布组织')
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          if (!this.forms.content) {
 | 
			
		||||
            return this.$u.toast('请输入正文')
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          const imgs = []
 | 
			
		||||
          if (this.forms.images) {
 | 
			
		||||
            this.forms.images.map((e) => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user