| | |
| | | <template> |
| | | <view class=""> |
| | | <view class="notice-list" @click="navToDetail(item.id,item.eventType,item.pdId)" v-for="(item,index) in data" :key="index"> |
| | | <view class="notice-list" @click="navToDetail(item.id,item.eventType,item.pdId)" v-for="(item,index) in data" |
| | | :key="index"> |
| | | <view v-if="item.url" class="notice-inner flex j-c-s-b"> |
| | | <view class="notice-list-left flex f-d-c j-c-s-b"> |
| | | <text class="notice-title f-26">{{item.title}}</text> |
| | | <view class="flex j-c-s-b a-i-c"> |
| | | <view class="flex a-i-c"> |
| | | <tag-cell v-if="item.dictValue" :text="item.dictValue" /> |
| | | <tag-cell v-if="item.dictValue" :text="item.dictValue" /> |
| | | <view class="flex a-i-c"> |
| | | <u-icon name="eye-fill" size="14" color="#CECECE"></u-icon> |
| | | <text class="f-24 c-99 ml-5">{{item.viewNumber}}</text> |
| | |
| | | |
| | | <script> |
| | | import tagCell from './tagCell' |
| | | import { minioBaseUrl } from '@/common/setting.js' |
| | | import { |
| | | minioBaseUrl |
| | | } from '@/common/setting.js' |
| | | export default { |
| | | name: "noticeList", |
| | | props: { |
| | | data: Array |
| | | data: Array, |
| | | pageType: String |
| | | }, |
| | | components: { |
| | | tagCell |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | setUrl(url){ |
| | | |
| | | setUrl(url) { |
| | | return `${minioBaseUrl}${url}` |
| | | }, |
| | | |
| | | navToDetail(id,type,pdId) { |
| | | if(type == 0 || type == 1){ |
| | | |
| | | navToDetail(id, type, pdId) { |
| | | if (this.pageType) { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/article/detail?id=${id}&type=${type}&pdId=${pdId}` |
| | | url: `/subPackage/article/detail?id=${id}&type=${this.pageType}` |
| | | }) |
| | | }else { |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/article/detail?id=${id}` |
| | | }) |
| | | } |
| | | |
| | | // if(type == 0 || type == 1){ |
| | | // uni.navigateTo({ |
| | | // url: `/subPackage/article/detail?id=${id}&type=${type}&pdId=${pdId}` |
| | | // }) |
| | | // }else { |
| | | // uni.navigateTo({ |
| | | // url: `/subPackage/article/detail?id=${id}` |
| | | // }) |
| | | // } |
| | | } |
| | | } |
| | | } |