首页图片获取,行业报告中行业新闻及详情页和新品发布及详情页接口对接完毕
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
return {
|
||||
id: '',
|
||||
detailList: [],
|
||||
// src: '/static/detail/cj_bg.png',
|
||||
features: '活冻鲍鱼,冻煮鲍鱼,鲍鱼罐头 佛跳墙,海螺片',
|
||||
business_introduce: '福建省海纳川食品有限公司是一家从事水产养殖,加工与销售为一体的现代化企业,公司主要加工:活冻鲍鱼,溏心皇金鲍,兰花蟹,黄金鲍片,佛跳墙,大盆菜,火锅小章鱼,鲨鱼礼盒等系列产品。公司位于福建省自由贸易试验区马尾片区,离全国大的水产交易市场--马尾名成水产市场不到一公里,这里交通方便,商贾云集,冷链物流通达全国。',
|
||||
showList: [{
|
||||
@@ -56,7 +55,7 @@
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log('认证厂家id', option.id);
|
||||
// console.log('认证厂家id', option.id);
|
||||
this.id = option.id
|
||||
this.getCertifiedCjDetail()
|
||||
},
|
||||
|
||||
@@ -18,19 +18,17 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
dateFormatXwDetail
|
||||
} from '../../utills/date.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
detailList: []
|
||||
// title: '2022近50款食品饮料新品,创新的方向都在这里',
|
||||
// time: '2022-12-03 09:59',
|
||||
// place: '第一食品资讯官方账号',
|
||||
// news: '<h1>一级标题</h1><br/><h2>二级标题</h2>'
|
||||
detailList: [],
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log('新闻详情id', option.id);
|
||||
this.id = option.id
|
||||
this.getNewsDetail()
|
||||
},
|
||||
@@ -38,9 +36,11 @@
|
||||
//获取行业新闻详情
|
||||
getNewsDetail() {
|
||||
this.$apiServe.getNewsDetail(this.id).then(res => {
|
||||
console.log('新闻详情页', res.data.data)
|
||||
|
||||
// console.log('新闻详情页', res.data.data)
|
||||
let detail = res.data.data
|
||||
detail.pub_time = dateFormatXwDetail(detail.pub_time)
|
||||
this.detailList = res.data.data
|
||||
|
||||
}).finally(_ => {})
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user