dengjie commit : 代码完善

This commit is contained in:
clay
2023-01-09 18:03:51 +08:00
parent 9c0477da5c
commit c906a7d33a
16 changed files with 198 additions and 173 deletions

View File

@@ -9,7 +9,7 @@
export default {
data() {
return {
cjsShow: true,
cjsShow: true
}
},
methods: {

View File

@@ -46,12 +46,16 @@
//获取认证厂家详情
getCertifiedCjDetail() {
this.$apiServe.getCertifiedCjDetail(this.id).then(res => {
// console.log('认证厂家详情页', res.data.data)
let data = res.data.data
data.images = data.images.split(';')
this.detailList = data
// console.log('认证厂家详情页', res.data)
if (res.data.data) {
let data = res.data.data
data.images = data.images.split(';')
this.detailList = data
} else {
this.$toast.warn('没有更多详情了')
}
}).finally(_ => {})
},
}
}
}
</script>

View File

@@ -37,10 +37,13 @@
getNewsDetail() {
this.$apiServe.getNewsDetail(this.id).then(res => {
// console.log('新闻详情页', res.data.data)
let detail = res.data.data
detail.pub_time = dateFormatXwDetail(detail.pub_time)
this.detailList = res.data.data
if (res.data.data) {
let detail = res.data.data
detail.pub_time = dateFormatXwDetail(detail.pub_time)
this.detailList = res.data.data
} else {
this.$toast.warn('没有更多详情了')
}
}).finally(_ => {})
},
}