diff --git a/components/news/news.vue b/components/news/news.vue
index e95a466..d3f0f81 100644
--- a/components/news/news.vue
+++ b/components/news/news.vue
@@ -32,7 +32,7 @@
}
},
created() {
- this.imgUrl = uni.getStorageSync('img_url')
+ this.imgUrl = uni.getStorageSync('img_url')
this.getNews()
},
methods: {
@@ -41,8 +41,8 @@
pageSize: 3,
pageNum: 1
}).then(res => {
- // console.log('行业新闻', res.data.data)
let newsData = res.data.data
+ console.log('新闻', newsData);
for (const item of newsData) {
item.pub_time_str = dateFormat(item.pub_time_str)
}
diff --git a/components/productsBtn/productsBtn.vue b/components/productsBtn/productsBtn.vue
index a2df4a3..006beb6 100644
--- a/components/productsBtn/productsBtn.vue
+++ b/components/productsBtn/productsBtn.vue
@@ -74,14 +74,17 @@
getHistoryOrCollection() {
this.$apiServe.getHistoryOrCollection(this.type).then(res => {
let data = res.data.data
- console.log('历史记录或收藏', data);
- for (const item of data) {
- let tag = item.tags
- this.tagsArray = tag.split(',')
- item.tags = this.tagsArray[0]
- item.create_time = dateFormatHistory(item.create_time)
+ if (data) {
+ for (const item of data) {
+ let tag = item.tags
+ if (tag) {
+ this.tagsArray = tag.split(',')
+ item.tags = this.tagsArray[0]
+ }
+ item.create_time = dateFormatHistory(item.create_time)
+ }
+ this.productList = data
}
- this.productList = data
}).finally(_ => {
})
diff --git a/packageReport/certifiedCjDetail/certifiedCjDetail.vue b/packageReport/certifiedCjDetail/certifiedCjDetail.vue
index e33c8f0..aa07e3f 100644
--- a/packageReport/certifiedCjDetail/certifiedCjDetail.vue
+++ b/packageReport/certifiedCjDetail/certifiedCjDetail.vue
@@ -57,15 +57,15 @@
}
},
onLoad(option) {
- this.imgUrl = uni.getStorageSync('img_url')
+ this.imgUrl = uni.getStorageSync('img_url')
this.id = option.id
this.getCertifiedCjDetail()
this.getCsTel()
- if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
- this.isLoad = false
- return
- }
- this.isLoad = true
+ // if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
+ // this.isLoad = false
+ // return
+ // }
+ // this.isLoad = true
},
methods: {
//获取客服电话
@@ -77,10 +77,15 @@
//获取认证厂家详情
getCertifiedCjDetail() {
this.$apiServe.getCertifiedCjDetail(this.id).then(res => {
- // console.log('认证厂家详情页', res.data)
+ if (res.data.code === -1) {
+ this.isLoad = false
+ }
+ console.log('认证厂家详情页', res.data)
if (res.data.data) {
let data = res.data.data
- data.images = data.images.split(';')
+ if (data.images) {
+ data.images = data.images.split(';')
+ }
this.detailList = data
} else {
this.$toast.warn('没有更多详情了')
diff --git a/packageReport/newsDetail/newsDetail.vue b/packageReport/newsDetail/newsDetail.vue
index ddc3f51..cff0af1 100644
--- a/packageReport/newsDetail/newsDetail.vue
+++ b/packageReport/newsDetail/newsDetail.vue
@@ -36,7 +36,6 @@
//获取行业新闻详情
getNewsDetail() {
this.$apiServe.getNewsDetail(this.id).then(res => {
- // console.log('新闻详情页', res.data.data)
if (res.data.data) {
let detail = res.data.data
detail.pub_time = dateFormatXwDetail(detail.pub_time)
diff --git a/packageSearch/goods-category-search/category-index.vue b/packageSearch/goods-category-search/category-index.vue
index fd096fc..57df36e 100644
--- a/packageSearch/goods-category-search/category-index.vue
+++ b/packageSearch/goods-category-search/category-index.vue
@@ -16,7 +16,7 @@
-
+
{{item.name}}
@@ -87,7 +87,7 @@
-
+
发布日期
{{item1.pub_time_str}}
@@ -444,11 +444,11 @@
}
.name {
- width: 126px;
+ // width: 126px;
text-align: center;
.no-active {
- font-size: 28rpx;
+ font-size: 24rpx;
font-family: PingFang-SC-Medium, PingFang-SC;
font-weight: 500;
color: #616161;
@@ -500,7 +500,7 @@
line-height: 1;
.title {
- font-size: 32rpx;
+ font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #343434;
@@ -518,7 +518,7 @@
border-radius: 25% 0 0 0;
.title {
- font-size: 32rpx;
+ font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #14CA65;
@@ -669,6 +669,7 @@
.publish-date-box {
display: flex;
align-items: center;
+ font-size: 22rpx;
}
}
diff --git a/pages/detail/productsDetail/productsDetail.vue b/pages/detail/productsDetail/productsDetail.vue
index e8e3d29..9807372 100644
--- a/pages/detail/productsDetail/productsDetail.vue
+++ b/pages/detail/productsDetail/productsDetail.vue
@@ -280,11 +280,6 @@