From 0053ddd3e4e30e4e26479cc99877afb053386134 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 13 Sep 2024 10:14:44 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=8D=83=E5=8E=BF=E5=90=8D=E5=93=81):[#232?= =?UTF-8?q?5,=20#2326]=E5=8D=83=E5=8E=BF=E5=90=8D=E5=93=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=8E=BF=E5=9F=8E=E7=9B=B4=E6=8E=A5=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E5=8E=BF=E5=9F=8E=E8=AF=A6=E6=83=85=E9=A1=B5=E4=B8=94=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BA=A7=E5=93=81tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_product/views/famousList.vue | 2 +- pkg_product/views/famousQianxianShop.vue | 123 +++++++++++++++++++++-- 2 files changed, 113 insertions(+), 12 deletions(-) diff --git a/pkg_product/views/famousList.vue b/pkg_product/views/famousList.vue index e6a45ab..23e7e8f 100644 --- a/pkg_product/views/famousList.vue +++ b/pkg_product/views/famousList.vue @@ -299,7 +299,7 @@ export default { }).exec() }, countyItemClick(item) { - uni.navigateTo({ url: `/pkg_product/views/famousQianxian?id=${item.id}` }) + uni.navigateTo({ url: `/pkg_product/views/famousQianxianShop?id=${item.id}` }) } } } diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue index 9450a52..757a7f8 100644 --- a/pkg_product/views/famousQianxianShop.vue +++ b/pkg_product/views/famousQianxianShop.vue @@ -213,6 +213,11 @@ + @@ -283,6 +288,11 @@ + @@ -485,6 +495,51 @@ + + + + + + + + + + + + + + + + @@ -526,17 +581,20 @@ import { getCountyFamousIndustry, getCountyFamousIndustryProject, getCountyFamousInvestmentFile, - getCountyFamousVillage + getCountyFamousVillage, + getCountyFamousCityDetail } from '@/api/qianxian' import {formatDateTime} from '@/utils' import {getUrlParam} from '@/utils/common.js' import imgBox from '@/components/imageTypeSet/imagebox.vue' +import XddProductItem from '@/components/xdd-product-item' import cookie from '@/utils/store/cookie' import { pageListenMixins } from '@/mixins/pageListenMixins' export default { components: { - imgBox + imgBox, + XddProductItem }, mixins: [pageListenMixins], data() { @@ -568,7 +626,8 @@ export default { { text: '资讯', value: 0, isShow: true }, { text: '文化', value: 1, isShow: true }, { text: '攻略', value: 2, isShow: true }, - { text: '产业', value: 3, isShow: true } + { text: '产业', value: 3, isShow: true }, + { text: '产品', value: 4, isShow: true } ], // 资讯 infoArray: [], @@ -593,7 +652,10 @@ export default { { name: '招商政策', icon: '/page/qianxian/icon-03.png' }, { name: '村屋出租', icon: '/page/qianxian/icon-07.png' } ], - industryTabIndex: 0 + industryTabIndex: 0, + // 产品 + leftList: [], + rightList: [], } }, // 必须在页面加 onPageScroll(e){} ,才能滑动显示背景 @@ -662,6 +724,23 @@ export default { this.villageList = data.records || [] } }) + getCountyFamousCityDetail(this.id).then(res => { + const { success, data } = res + if (success) { + const products = data.products || [] + products.map((item, index) => { + item.isOldBrand = 0 + item.isLandmarkGoods = 0 + item.isCountyFamous = 1 + if (index % 2 === 0) { + this.leftList.push(item) + } + if (index % 2 === 1) { + this.rightList.push(item) + } + }) + } + }) }, getShopDetailReq() { const _this = this @@ -1186,9 +1265,9 @@ export default { } } .top-tab { - padding: 40rpx 0 20rpx 0; + padding: 40rpx 20rpx 20rpx 20rpx; .tab { - margin: 0 20rpx; + width: 20%; .tab-item { height: 52rpx; padding: 0 30rpx; @@ -1366,16 +1445,14 @@ export default { } } .pic-list { - // display: flex; - // flex-wrap: wrap; - width: 100%; + width: 660rpx; padding: 30rpx 0 0 0; + margin: 0 auto; .item { - // width: calc(50% - 10rpx); margin: 0 20rpx 20rpx 0; .img { display: block; - width: 100%; + width: 320rpx; height: 360rpx; border-radius: 16rpx; } @@ -1654,10 +1731,34 @@ export default { } } } +.good-list-wrap { + background-color: #f6f6f6; + .loadend { + width: 100%; + } +} +.good-list-cont { + position: relative; + z-index: 2; + display: flex; + justify-content: space-between; + padding: 0 21rpx 21rpx 21rpx; + .list-cont-left, + .list-cont-right { + width: calc(50% - 11rpx); + } + .item { + position: relative; + margin: 21rpx 0 0 0; + } +} .tab-no-data { text-align: center; font-size: 32rpx; color: #999; line-height: 200rpx; } +.no-data-loadend { + width: 100%; +}