From 11f33ef0050a63c00100b6651bbd66808f532fd2 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 27 Aug 2025 11:02:35 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E4=B8=93=E9=A2=98fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/request.js | 2 ++ subPackages/activity/agriculturalProdNH.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/request.js b/static/js/request.js index 1f7dd1f..f81f834 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -5,6 +5,8 @@ import store from '@/store'; // const DEV_API_URL = 'https://api.cloud.sz-trip.com'; const DEV_API_URL = 'https://api.sutenong.com' const PROD_API_URL = 'https://api.sutenong.com'; +// const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; +// const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; // 获取token diff --git a/subPackages/activity/agriculturalProdNH.vue b/subPackages/activity/agriculturalProdNH.vue index 16a7f3d..60908e9 100644 --- a/subPackages/activity/agriculturalProdNH.vue +++ b/subPackages/activity/agriculturalProdNH.vue @@ -17,7 +17,7 @@ - 返回活动页 + From 1d3800ec2f627dfbf86cbd9a441c300b2865d340 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 27 Aug 2025 11:22:20 +0800 Subject: [PATCH 02/16] fix --- subPackages/activity/jitoumi.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/subPackages/activity/jitoumi.vue b/subPackages/activity/jitoumi.vue index df786ab..7d7814c 100644 --- a/subPackages/activity/jitoumi.vue +++ b/subPackages/activity/jitoumi.vue @@ -6,8 +6,8 @@ - + @@ -42,7 +42,7 @@ list: [], viewNum: 5, headImg: '', - + couponImg: '', showGoTop: false, } }, @@ -61,6 +61,10 @@ title:res.data.title }) }); + this.Post({id:2391},'/api/multimedia/detail').then(res => { + this.couponImg = res.data.head_img + }); + }, // 产品列表 From 65c7c4c022e1da8f404842416bdcd9ab21a42286 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 27 Aug 2025 11:38:02 +0800 Subject: [PATCH 03/16] =?UTF-8?q?=E7=89=B9=E4=BA=A7=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPackages/techan/index.vue | 117 +++++++++++++++++++++-------------- 1 file changed, 69 insertions(+), 48 deletions(-) diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index 383d7e5..792fb81 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -33,54 +33,57 @@ - - - 综合 - - - 销量 - - - - - - - 价格 - - - - - + + - - - - - {{item.title}} - - - {{tag}} + + + + + 综合 + + + 销量 + + + - - - {{item.price/100}} - ¥{{item.market_price/100}} - - - + + + + 价格 + + + + + + + + {{item.title}} + + + {{tag}} + + + + {{item.price/100}} + ¥{{item.market_price/100}} + - - - 暂无数据 - - - - - - + + + + + + + + + 暂无数据 + + + + @@ -140,7 +143,6 @@ @@ -644,7 +645,6 @@ height: 1rpx; flex: 1; display: flex; - flex-direction: column; background: #FFFFFF; } @@ -655,9 +655,9 @@ font-weight: bold; font-size: 27rpx; color: #000000; - height: 107rpx; + height: 100rpx; flex-shrink: 0; - padding: 0 32rpx; + padding: 0 20rpx; &>view{ display: flex; min-width: 70rpx; @@ -680,7 +680,7 @@ background: white; .item { width: 100%; - padding:0 32rpx 32rpx 32rpx; + padding:0 20rpx 32rpx 20rpx; display: flex; .item-img { width: 161rpx; @@ -1081,4 +1081,25 @@ .active-search-item{ color: #6A8A2D; } + +.goods-container{ + .left-box{ + width: 180rpx; + background: #F3F3F3; + height: 100%; + flex-shrink: 0; + overflow-x: hidden; + overflow-y: auto; + } + .right-box{ + height: 100%; + flex: 1; + width: 100rpx; + background: white; + display: flex; + flex-direction: column; + } +} + + From d2e910ead102cba75667126d451df05ee5af7b87 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 27 Aug 2025 14:19:34 +0800 Subject: [PATCH 04/16] =?UTF-8?q?=E9=94=80=E9=87=8F=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 +-- pages.json | 6 ++++ subPackages/activity/coffeeClub.vue | 51 +++++++++++++++++++++++++++++ subPackages/search/techanResult.vue | 5 +-- subPackages/techan/index.vue | 5 +-- 5 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 subPackages/activity/coffeeClub.vue diff --git a/App.vue b/App.vue index 98337fa..622310b 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ uni.setStorageSync('SHFlag', true) this.Post({id:2388},'/api/multimedia/detail').then(res => { if (res && res.data) { - let SHFlag = res.data.company_name == 1 ? true : false - // let SHFlag = res.data.ext_link == 1 ? true : false + // let SHFlag = res.data.company_name == 1 ? true : false + let SHFlag = res.data.ext_link == 1 ? true : false uni.setStorageSync('SHFlag', SHFlag) return } else { diff --git a/pages.json b/pages.json index 21d73af..a28d9f3 100644 --- a/pages.json +++ b/pages.json @@ -337,6 +337,12 @@ "style": { "navigationBarTitleText" : "水八仙之首—苏州芡实 (鸡头米)" } + }, + { + "path": "activity/coffeeClub", + "style": { + "navigationBarTitleText" : "" + } } ] }], diff --git a/subPackages/activity/coffeeClub.vue b/subPackages/activity/coffeeClub.vue new file mode 100644 index 0000000..2307c81 --- /dev/null +++ b/subPackages/activity/coffeeClub.vue @@ -0,0 +1,51 @@ + + + + + \ No newline at end of file diff --git a/subPackages/search/techanResult.vue b/subPackages/search/techanResult.vue index 15fd9bf..d6aa464 100644 --- a/subPackages/search/techanResult.vue +++ b/subPackages/search/techanResult.vue @@ -16,11 +16,12 @@ 综合 - 销量 + + 销量 价格 diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index 383d7e5..dd06dbd 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -38,11 +38,12 @@ 综合 - 销量 + + 销量 价格 From b0d23c107e318d81a0ac7621f54ee449dceb489c Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Thu, 28 Aug 2025 14:50:45 +0800 Subject: [PATCH 05/16] =?UTF-8?q?=E7=89=B9=E4=BA=A7=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPackages/techan/index.vue | 73 ++++++++++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 8 deletions(-) diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index 186d31e..63a7bed 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -33,8 +33,11 @@ - - + + + {{item.name}} + @@ -247,8 +250,13 @@ headImg: "https://cgc.js-dyyj.com/uploads/20250513/f8b255f965efcd71b6843e4b72c3f1f3.png", type_pid: 20, + // 第一层分类 typeParam: [], typeIndex: 0, + // 第二层分类 + typeChild: [], + typeChildIndex: 0, + list:[], finished: false, @@ -309,30 +317,50 @@ this.typePopShow = e.show }, + // 获取第一层分类 getTypeTags () { this.Post({ pid: this.type_pid },'/api/product/tag_list').then(res => { this.typeParam = res.data || [] - - this.getList() + this.getChildType() + // this.getList() // 初始化选中位置 this.changeSelectPosition(this.typeIndex) }) }, - - changeType (item, i) { if (this.typeIndex!== i) { this.typeIndex=i this.finished = false this.list = [] - this.getList() + this.getChildType() + // this.getList() this.showTypes(false) } this.changeSelectPosition(i) }, + // 第二层分类 + getChildType (pid) { + let id = this.typeParam[this.typeIndex].id + if (pid) { id = pid } + this.Post({pid: id},'/api/product/tag_list').then(res => { + this.typeChild = res.data || [] + this.typeChildIndex = 0 + this.getList() + }) + }, + changeChildType (item,i) { + if (this.typeChildIndex!== i) { + this.typeChildIndex=i + this.finished = false + this.list = [] + this.getChildType() + this.getList() + } + }, + changeSearchParm(value) { this.search_type = value @@ -343,13 +371,17 @@ // 根据产品分类获取产品列表 getList(){ + if (!this.typeChild[this.typeChildIndex] || !this.typeChild[this.typeChildIndex].id) { + return + } + let param = {} if (this.search_type == 1) { param = {order: 'asc',sort:'sales_number'} } if (this.search_type == 2) { param = {order: 'desc',sort:'sales_number'} } if (this.search_type == 3) { param = {order: 'asc',sort:'price'} } if (this.search_type == 4) { param = {order: 'desc',sort:'price'} } this.Post({ - tag_id: this.typeParam[this.typeIndex].id, + tag_id: this.typeChild[this.typeChildIndex].id, offset: this.list.length, limit: 10, ...param @@ -1091,6 +1123,31 @@ flex-shrink: 0; overflow-x: hidden; overflow-y: auto; + .left-type-item{ + width: 100%; + font-weight: bold; + font-size: 27rpx; + color: #000000; + position: relative; + padding: 26rpx 0; + display: flex; + align-items: center; + .name-item{ + width: 100%; + min-height: 53rpx; + text-align: center; + display: flex; + align-items: center; + justify-content: center; + padding: 0 20rpx; + } + &.active { + background: white; + .name-item{ + border-left: 7rpx solid #6A8A2D;; + } + } + } } .right-box{ height: 100%; From c1059f5795002785f6de4e342dfd35e747e665f2 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Thu, 28 Aug 2025 16:38:32 +0800 Subject: [PATCH 06/16] 1 --- static/js/request.js | 8 ++++---- subPackages/techan/index.vue | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/static/js/request.js b/static/js/request.js index f81f834..95c629b 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -3,10 +3,10 @@ import store from '@/store'; // 定义 API URL // const DEV_API_URL = 'https://api.cloud.sz-trip.com'; -const DEV_API_URL = 'https://api.sutenong.com' -const PROD_API_URL = 'https://api.sutenong.com'; -// const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; -// const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; +// const DEV_API_URL = 'https://api.sutenong.com' +// const PROD_API_URL = 'https://api.sutenong.com'; +const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; +const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; // 获取token diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index 63a7bed..b33d5d6 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -356,7 +356,6 @@ this.typeChildIndex=i this.finished = false this.list = [] - this.getChildType() this.getList() } }, From e0f2672b1296e71fd3f322b812df44c93514ee9a Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Fri, 29 Aug 2025 16:31:08 +0800 Subject: [PATCH 07/16] =?UTF-8?q?=E7=89=B9=E4=BA=A7=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- static/js/request.js | 8 ++++---- subPackages/techan/index.vue | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/App.vue b/App.vue index 622310b..98337fa 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ uni.setStorageSync('SHFlag', true) this.Post({id:2388},'/api/multimedia/detail').then(res => { if (res && res.data) { - // let SHFlag = res.data.company_name == 1 ? true : false - let SHFlag = res.data.ext_link == 1 ? true : false + let SHFlag = res.data.company_name == 1 ? true : false + // let SHFlag = res.data.ext_link == 1 ? true : false uni.setStorageSync('SHFlag', SHFlag) return } else { diff --git a/static/js/request.js b/static/js/request.js index 95c629b..f81f834 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -3,10 +3,10 @@ import store from '@/store'; // 定义 API URL // const DEV_API_URL = 'https://api.cloud.sz-trip.com'; -// const DEV_API_URL = 'https://api.sutenong.com' -// const PROD_API_URL = 'https://api.sutenong.com'; -const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; -const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; +const DEV_API_URL = 'https://api.sutenong.com' +const PROD_API_URL = 'https://api.sutenong.com'; +// const DEV_API_URL = 'https://swsz.api.js-dyyj.com'; +// const PROD_API_URL = 'https://swsz.api.js-dyyj.com'; const NEWAPIURL = process.env.NODE_ENV === 'development' ? DEV_API_URL : PROD_API_URL; // 获取token diff --git a/subPackages/techan/index.vue b/subPackages/techan/index.vue index b33d5d6..9f240c9 100644 --- a/subPackages/techan/index.vue +++ b/subPackages/techan/index.vue @@ -33,7 +33,7 @@ - + {{item.name}} @@ -370,8 +370,9 @@ // 根据产品分类获取产品列表 getList(){ - if (!this.typeChild[this.typeChildIndex] || !this.typeChild[this.typeChildIndex].id) { - return + let tag_id = this.typeParam[this.typeIndex].id; + if (this.typeChild[this.typeChildIndex]&&this.typeChild[this.typeChildIndex].id) { + tag_id = this.typeChild[this.typeChildIndex].id } let param = {} @@ -380,7 +381,7 @@ if (this.search_type == 3) { param = {order: 'asc',sort:'price'} } if (this.search_type == 4) { param = {order: 'desc',sort:'price'} } this.Post({ - tag_id: this.typeChild[this.typeChildIndex].id, + tag_id: tag_id, offset: this.list.length, limit: 10, ...param From aee329ee18f0e8c487f47074b3fe956a6f2c00ef Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 3 Sep 2025 11:56:26 +0800 Subject: [PATCH 08/16] =?UTF-8?q?=E8=8B=8F=E8=B6=85=E4=B8=93=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 + subPackages/activity/agriculturalProd.vue | 2 +- subPackages/activity/suchao.vue | 265 ++++++++++++++++++++++ 3 files changed, 272 insertions(+), 1 deletion(-) create mode 100644 subPackages/activity/suchao.vue diff --git a/pages.json b/pages.json index a28d9f3..6c3b448 100644 --- a/pages.json +++ b/pages.json @@ -338,6 +338,12 @@ "navigationBarTitleText" : "水八仙之首—苏州芡实 (鸡头米)" } }, + { + "path": "activity/suchao", + "style": { + "navigationBarTitleText" : "跟着苏超逛时味苏州补给站" + } + }, { "path": "activity/coffeeClub", "style": { diff --git a/subPackages/activity/agriculturalProd.vue b/subPackages/activity/agriculturalProd.vue index e033532..ed07fb1 100644 --- a/subPackages/activity/agriculturalProd.vue +++ b/subPackages/activity/agriculturalProd.vue @@ -14,7 +14,7 @@ + src="https://static.ticket.sz-trip.com/uploads/20250902/fbb790d1c51d067d30cef50b34f06286.png"> diff --git a/subPackages/activity/suchao.vue b/subPackages/activity/suchao.vue new file mode 100644 index 0000000..aaa9e1c --- /dev/null +++ b/subPackages/activity/suchao.vue @@ -0,0 +1,265 @@ + + + + + \ No newline at end of file From 2b3f6c5a46a46b7ad780b3d71f478d81bfa36592 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 8 Sep 2025 16:34:54 +0800 Subject: [PATCH 09/16] 1 --- pages/index/index.vue | 2 +- static/js/request.js | 8 +++-- subPackages/activity/suchao.vue | 44 +++++++++++++++++++++----- subPackages/techan/selfPickUpPoint.vue | 2 +- 4 files changed, 43 insertions(+), 13 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index c202818..f9668da 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -138,7 +138,7 @@ }, // 离开当前页面时获取定位 onHide() { - // this.getLocation() + this.getLocation() }, onReady() { this.initRectInfo() diff --git a/static/js/request.js b/static/js/request.js index f81f834..cfb2213 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -51,9 +51,11 @@ Vue.prototype.Post = (params = {}, apiurl) => { params.token = token; } return new Promise((resolve, reject) => { - uni.showLoading({ - title: '加载中' - }); + if (!params.noShowLoading) { + uni.showLoading({ + title: '加载中' + }); + } uni.request({ method: params.method || 'GET', url: Vue.prototype.NEWAPIURL + apiurl, diff --git a/subPackages/activity/suchao.vue b/subPackages/activity/suchao.vue index aaa9e1c..1f44b0d 100644 --- a/subPackages/activity/suchao.vue +++ b/subPackages/activity/suchao.vue @@ -5,10 +5,11 @@ - + + 活动规则 @@ -44,10 +45,8 @@ viewNum: 4, headImg: '', couponList: [ - {id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/ecbb6d745d444fa838649e67b9901ac8.png"}, - {id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/0d0e31d8cc6b3eef8fa83016b9dd93dd.png"}, - {id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/7762e7eea2e005d8c16587f7065e6d3e.png"}, - {id: null, img: "https://static.ticket.sz-trip.com/uploads/20250903/fcd19b70b45f80509b0363ef72902974.png"}, + {id: null, img: "https://static.ticket.sz-trip.com/uploads/20250904/6bb90a456a4800a99df91b97197fbc76.png"}, + {id: null, img: "https://static.ticket.sz-trip.com/uploads/20250904/a20709036f31e6979c9ae84c543a8538.png"}, ], isReceive: true, @@ -75,15 +74,27 @@ } }); }, + goRule (id) { + uni.navigateTo({ + url:"/subPackages/activity/commonRule?id="+id + }) + }, // 产品列表 getGoods() { + // 太慢了 先请求5条 this.Post({ tag_id: 101, offset: 0, - limit: 999, + limit: 5, },'/api/product/get_product_by_tag_subject').then(res => { this.list = res.data.list + this.Post({ + tag_id: 101,offset: 0, + limit: 999,noShowLoading: true, + },'/api/product/get_product_by_tag_subject').then(res => { + this.list = res.data.list + }) }) }, @@ -150,12 +161,29 @@ display: block; } } + .rule{ + width: 109rpx; + height: 41rpx; + background: #319F56; + border-radius: 7rpx 0rpx 0rpx 7rpx; + font-weight: 600; + font-size: 24rpx; + color: #FFFFFF; + + position: absolute; + top: 20rpx; + right: 0; + display: flex; + align-items: center; + justify-content: center; + line-height: 41rpx; + } .coupon-box{ - height: 466rpx; + height: 293rpx; background: #F4FFFE; border-radius:0 0 25rpx 25rpx; position: relative; - padding: 40rpx 26rpx 0; + padding: 80rpx 26rpx 0; overflow: hidden; margin-bottom: 44rpx; diff --git a/subPackages/techan/selfPickUpPoint.vue b/subPackages/techan/selfPickUpPoint.vue index 3a0c84e..cd5893a 100644 --- a/subPackages/techan/selfPickUpPoint.vue +++ b/subPackages/techan/selfPickUpPoint.vue @@ -51,7 +51,7 @@ this.getList() }, onShow(options) { - + this.getLocation() }, methods: { From c47c2b89e63d40a1fd8b59903e7f0a35dc5cd2dd Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 9 Sep 2025 11:28:54 +0800 Subject: [PATCH 10/16] =?UTF-8?q?=E8=8B=8F=E5=BC=8F=E6=9C=88=E9=A5=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 + subPackages/activity/mooncake.vue | 287 ++++++++++++++++++++++++++++++ 2 files changed, 293 insertions(+) create mode 100644 subPackages/activity/mooncake.vue diff --git a/pages.json b/pages.json index 6c3b448..85ec147 100644 --- a/pages.json +++ b/pages.json @@ -349,6 +349,12 @@ "style": { "navigationBarTitleText" : "" } + }, + { + "path": "activity/mooncake", + "style": { + "navigationBarTitleText" : "苏式月饼" + } } ] }], diff --git a/subPackages/activity/mooncake.vue b/subPackages/activity/mooncake.vue new file mode 100644 index 0000000..d0fa1f3 --- /dev/null +++ b/subPackages/activity/mooncake.vue @@ -0,0 +1,287 @@ + + + + + \ No newline at end of file From 43669f95d757e6fc8278ef9d0bbc1b757a83e64c Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 10 Sep 2025 09:53:44 +0800 Subject: [PATCH 11/16] 1 --- App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index 98337fa..622310b 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ uni.setStorageSync('SHFlag', true) this.Post({id:2388},'/api/multimedia/detail').then(res => { if (res && res.data) { - let SHFlag = res.data.company_name == 1 ? true : false - // let SHFlag = res.data.ext_link == 1 ? true : false + // let SHFlag = res.data.company_name == 1 ? true : false + let SHFlag = res.data.ext_link == 1 ? true : false uni.setStorageSync('SHFlag', SHFlag) return } else { From 743c03eb8aab358ac5d6809125642ed267b7ad1f Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 10 Sep 2025 15:06:51 +0800 Subject: [PATCH 12/16] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E8=A7=84=E5=88=99?= =?UTF-8?q?=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- subPackages/activity/commonRule.vue | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index 622310b..98337fa 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ uni.setStorageSync('SHFlag', true) this.Post({id:2388},'/api/multimedia/detail').then(res => { if (res && res.data) { - // let SHFlag = res.data.company_name == 1 ? true : false - let SHFlag = res.data.ext_link == 1 ? true : false + let SHFlag = res.data.company_name == 1 ? true : false + // let SHFlag = res.data.ext_link == 1 ? true : false uni.setStorageSync('SHFlag', SHFlag) return } else { diff --git a/subPackages/activity/commonRule.vue b/subPackages/activity/commonRule.vue index b6e77e2..9cc4fec 100644 --- a/subPackages/activity/commonRule.vue +++ b/subPackages/activity/commonRule.vue @@ -43,4 +43,7 @@ min-height: 100vh; padding-bottom: 60rpx; } + .content{ + padding: 0 30rpx; + } \ No newline at end of file From 1e335bcf43d39b397dca6594cbd1f637d1db6c7e Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 16 Sep 2025 09:29:22 +0800 Subject: [PATCH 13/16] =?UTF-8?q?=E7=BB=BF=E8=89=B2=E6=9C=89=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 10 +- pages/user/user.vue | 140 ++++++++++- subPackages/activity/greenOrganic.vue | 332 ++++++++++++++++++++++++++ subPackages/sales/index.vue | 10 +- subPackages/sales/indexs.vue | 10 +- subPackages/techan/cartOrder.vue | 4 + subPackages/techan/cartOrder1.vue | 3 + 7 files changed, 499 insertions(+), 10 deletions(-) create mode 100644 subPackages/activity/greenOrganic.vue diff --git a/pages.json b/pages.json index 85ec147..747f1e4 100644 --- a/pages.json +++ b/pages.json @@ -287,13 +287,13 @@ { "path" : "sales/index", "style" : { - "navigationBarTitleText" : "不时不食" + "navigationBarTitleText" : "" } }, { "path" : "sales/indexs", "style" : { - "navigationBarTitleText" : "限时特惠" + "navigationBarTitleText" : "" } }, { @@ -355,6 +355,12 @@ "style": { "navigationBarTitleText" : "苏式月饼" } + }, + { + "path": "activity/greenOrganic", + "style": { + "navigationBarTitleText" : "绿色有机标准认证" + } } ] }], diff --git a/pages/user/user.vue b/pages/user/user.vue index f7c70bd..d604832 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -52,14 +52,14 @@ - + + + + + + @@ -137,8 +177,8 @@ isShow: true }, { - src: 'https://static.ticket.sz-trip.com/shiweisuzhou/images/user/lxwm.png', - title: '联系客服', + src: 'https://static.ticket.sz-trip.com/shiweisuzhou/images/user/lxkf.png', + title: '联系我们', path: '', isShow: true }, @@ -301,7 +341,7 @@ // }, gotoUrl(item, index) { if (index == 2) { - // this.$refs.popup.open() + this.$refs.kfpopup.open() return; } if (index == 4) { @@ -676,4 +716,92 @@ } } } + +/* 弹窗内容容器 */ +.kf-popup-content { + width: 100%; + background-color: #fff; + border-top-left-radius: 16px; + border-top-right-radius: 16px; + overflow: hidden; + .popup-header { + display: flex; + justify-content: center; + align-items: center; + padding: 16px; + position: relative; + border-bottom: 1px solid #f5f5f5; + } + .title { + font-size: 18px; + font-weight: bold; + } + + .close-icon { + position: absolute; + right: 16px; + font-size: 20px; + color: #999; + } + + /* 弹窗内容区 */ + .popup-body { + padding: 10px 0; + } + + /* 联系项样式 */ + .contact-item { + display: flex; + align-items: center; + padding: 16px 20px; + border-bottom: 1px solid #f5f5f5; + } + + + + .info { + flex: 1; + } + + .label { + font-size: 16px; + display: block; + margin-bottom: 4px; + } + + .detail { + font-size: 14px; + color: #666; + } + + .arrow { + width: 20px; + height: 20px; + color: #ccc; + font-size: 18px; + } +} + +.concat-btn{ + /* 清除默认背景和边框 */ + background: none; + border: none; + padding: 0; + margin: 0; + + /* 清除默认圆角 */ + border-radius: 0; + + /* 清除默认文字样式 */ + color: inherit; + font-size: inherit; + line-height: inherit; + + /* 清除点击效果(灰色背景) */ + -webkit-tap-highlight-color: transparent; + text-align: left; +} + + + \ No newline at end of file diff --git a/subPackages/activity/greenOrganic.vue b/subPackages/activity/greenOrganic.vue new file mode 100644 index 0000000..2a8fdb7 --- /dev/null +++ b/subPackages/activity/greenOrganic.vue @@ -0,0 +1,332 @@ + + + + + \ No newline at end of file diff --git a/subPackages/sales/index.vue b/subPackages/sales/index.vue index c3c2e12..d52e0ca 100644 --- a/subPackages/sales/index.vue +++ b/subPackages/sales/index.vue @@ -28,7 +28,7 @@ }, mounted() { // 头图 - this.getHeadImg(2374).then(res => {this.headImg = res}) + this.getHeadImg(2374) this.getList() }, onReachBottom() { @@ -37,6 +37,14 @@ },1000) }, methods: { + getHeadImg (id) { + this.Post({id},'/api/multimedia/detail').then(res => { + this.headImg = res.data.head_img + uni.setNavigationBarTitle({ + title:res.data.title + }) + }); + }, getList() { this.Post({ offset: this.list.length, diff --git a/subPackages/sales/indexs.vue b/subPackages/sales/indexs.vue index cd79cc1..f8a85bf 100644 --- a/subPackages/sales/indexs.vue +++ b/subPackages/sales/indexs.vue @@ -28,7 +28,7 @@ }, mounted() { // 头图 - this.getHeadImg(2375).then(res => {this.headImg = res}) + this.getHeadImg(2375) this.getList() }, onReachBottom() { @@ -37,6 +37,14 @@ },1000) }, methods: { + getHeadImg (id) { + this.Post({id},'/api/multimedia/detail').then(res => { + this.headImg = res.data.head_img + uni.setNavigationBarTitle({ + title:res.data.title + }) + }); + }, getList() { this.Post({ offset: this.list.length, diff --git a/subPackages/techan/cartOrder.vue b/subPackages/techan/cartOrder.vue index fd15253..a97c55a 100644 --- a/subPackages/techan/cartOrder.vue +++ b/subPackages/techan/cartOrder.vue @@ -430,6 +430,10 @@ export default { // 赋值全局地址 this.contacts = item + this.orderList.forEach(v=>{ + v.contacts = JSON.parse(JSON.stringify(this.contacts)) + }) + if (this.flag) { this.getPost(); diff --git a/subPackages/techan/cartOrder1.vue b/subPackages/techan/cartOrder1.vue index 470a975..c77bffd 100644 --- a/subPackages/techan/cartOrder1.vue +++ b/subPackages/techan/cartOrder1.vue @@ -423,6 +423,9 @@ export default { // 赋值全局地址 this.contacts = item + this.orderList.forEach(v=>{ + v.contacts = JSON.parse(JSON.stringify(this.contacts)) + }) if (this.flag) { this.getPost(); From c9c46f330ec3a70c424a3b619777cf2ecb6f3e77 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 16 Sep 2025 14:18:51 +0800 Subject: [PATCH 14/16] =?UTF-8?q?=E7=BB=BF=E8=89=B2=E6=9C=89=E6=9C=BA/9-11?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- subPackages/activity/greenOrganic.vue | 58 +++++++++++++-------- subPackages/techan/cartOrder.vue | 46 ++++++++++++++++ subPackages/techan/cartOrder1.vue | 46 ++++++++++++++++ subPackages/techan/detail.vue | 75 +++++++++++++++++++++++++++ subPackages/techan/order.vue | 49 ++++++++++++++++- subPackages/user/travelerList.vue | 53 +++++++++++++++---- 7 files changed, 295 insertions(+), 34 deletions(-) diff --git a/manifest.json b/manifest.json index 0ffd542..9d6278d 100644 --- a/manifest.json +++ b/manifest.json @@ -64,7 +64,7 @@ "desc" : "获取用户位置" } }, - "requiredPrivateInfos" : [ "getLocation", "onLocationChange", "startLocationUpdate" ] + "requiredPrivateInfos" : [ "getLocation", "onLocationChange", "startLocationUpdate","chooseAddress" ] }, "mp-alipay" : { "usingComponents" : true diff --git a/subPackages/activity/greenOrganic.vue b/subPackages/activity/greenOrganic.vue index 2a8fdb7..7fb866b 100644 --- a/subPackages/activity/greenOrganic.vue +++ b/subPackages/activity/greenOrganic.vue @@ -2,22 +2,26 @@ - + - - + + - + + + - + + @@ -42,7 +46,7 @@ 查看更多 - + @@ -72,30 +76,32 @@ typeList: [ { id: 104,title: "绿色食品",viewNum:6, list: [], - img:"https://static.ticket.sz-trip.com/uploads/20250915/d0f14bd53f532c48a2d5bd22bca1158f.png", - imgs:"https://static.ticket.sz-trip.com/uploads/20250915/d0f14bd53f532c48a2d5bd22bca1158f.png", - textImg: "https://static.ticket.sz-trip.com/uploads/20250915/cd9a01bfa17006675d0294847f20caa8.png", + img:"https://static.ticket.sz-trip.com/uploads/20250916/70b50a9d3f0b70454763e7146ac0a4d1.png", + imgs:"https://static.ticket.sz-trip.com/uploads/20250916/3b251683c250cf6669378266ed786de4.png", + textImg: "https://static.ticket.sz-trip.com/uploads/20250916/e03b1f9e7a9880d2c7f67ee6b4a58643.png", }, { id: 105,title: "有机农产品",viewNum:6, list: [], - img:"https://static.ticket.sz-trip.com/uploads/20250915/cd09a87a9c154f07b7f470aa1e62049c.png", - imgs:"https://static.ticket.sz-trip.com/uploads/20250915/1eb123c06d0f0bd860e107cf4adf57a8.png", - textImg:"https://static.ticket.sz-trip.com/uploads/20250915/6f8105990a5d701d5b384ce22c05d28e.png", + img:"https://static.ticket.sz-trip.com/uploads/20250916/600b3f0ca1b6582da3dc128f98cc1ea9.png", + imgs:"https://static.ticket.sz-trip.com/uploads/20250916/9692497b22091c3e3d3d69bf9c4fd311.png", + textImg:"https://static.ticket.sz-trip.com/uploads/20250916/51606f5e0a94c364a8237777e5398aaa.png", }, { id: 106,title: "名特优新",viewNum:6, list: [], - img:"https://static.ticket.sz-trip.com/uploads/20250915/2148b40317d93d6ed2a710ff3488f3b7.png", - imgs:"https://static.ticket.sz-trip.com/uploads/20250915/c5140db3128bb15f4e34b68ddf31b644.png", - textImg:"https://static.ticket.sz-trip.com/uploads/20250915/bfa055d9cacd07e839c3219e0c198459.png", + img:"https://static.ticket.sz-trip.com/uploads/20250916/9810f9261e137b354132063fced2d43c.png", + imgs:"https://static.ticket.sz-trip.com/uploads/20250916/2b3cfb94571cd911af3cca2b4027438c.png", + textImg:"https://static.ticket.sz-trip.com/uploads/20250916/d99a160fb1caa3eb56697344fc08df46.png", }, { id: 107,title: "农产品地理标志",viewNum:6, list: [], - img:"https://static.ticket.sz-trip.com/uploads/20250915/cb572317ca0cdeba972d430c7fea2b5d.png", - imgs:"https://static.ticket.sz-trip.com/uploads/20250915/8fbde0a77dca289c96100581b550c511.png", - textImg:"https://static.ticket.sz-trip.com/uploads/20250915/697ecdc92a344884ddbb6982ca453031.png", + img:"https://static.ticket.sz-trip.com/uploads/20250916/6c8216888e1224e9534309bde2a87a14.png", + imgs:"https://static.ticket.sz-trip.com/uploads/20250916/37d84af1f692cce86158ff0784fefb73.png", + textImg:"https://static.ticket.sz-trip.com/uploads/20250916/898fda5fdc950817faa0bfd318f1fa95.png", }, ], showGoTop: false, + + show: true, } }, onLoad(option) { @@ -106,6 +112,16 @@ }, methods: { + changeTypeIndex (i) { + if (this.typeIndex==i) { + return + } + this.show = false + setTimeout(()=>{ + this.typeIndex = i; + this.show = true; + },300) + }, getHeadImg (id) { this.Post({id},'/api/multimedia/detail').then(res => { this.headImg = res.data.head_img @@ -237,14 +253,13 @@ .type-container{ display: flex; flex-wrap: nowrap; - margin: 0 0 32rpx; width: 100%; overflow-y: hidden; overflow-x: auto; padding:0 26rpx; .type-item{ height: 88rpx; - margin-right: 13rpx; + margin-right: 10rpx; flex-shrink: 0; image{ width: 100%; @@ -261,7 +276,8 @@ width: 238.67rpx } .type-item:nth-of-type(4){ - width: 307.33rpx + width: 307.33rpx; + margin-right: 0; } } diff --git a/subPackages/techan/cartOrder.vue b/subPackages/techan/cartOrder.vue index a97c55a..98ab6ab 100644 --- a/subPackages/techan/cartOrder.vue +++ b/subPackages/techan/cartOrder.vue @@ -167,6 +167,12 @@ 添加收货地址 + @@ -261,6 +267,29 @@ export default { onReady () { }, methods: { + // 获取微信地址 + getWXAddress () { + let _this = this; + uni.chooseAddress({ + success: (res) => { + _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.getAddressList2() + }) + } + }) + }, + getAddressList2 () { + this.Post({ + contactType: "CONSIGNEE", + offset: '0', + limit: '100' + }, '/api/uservice/user/getContactOrConsignee').then(res => { + if (res) { + this.addressList = res.data || [] + } + }) + }, + // 只处理邮寄 handleOrderGoods () { let orderList = this.$store.state.user.techanOrderList; @@ -1221,4 +1250,21 @@ view { font-weight: bold; } } + .wx-address{ + width: 201rpx; + height: 53rpx; + background: #6A8A2D; + border-radius: 9rpx; + font-weight: 500; + font-size: 24rpx; + color: #FFFFFF; + display: flex; + align-items: center; + justify-content: center; + + .wx-icon{ + width: 26.67rpx; + height: 26.67rpx; + } + } \ No newline at end of file diff --git a/subPackages/techan/cartOrder1.vue b/subPackages/techan/cartOrder1.vue index c77bffd..2d69934 100644 --- a/subPackages/techan/cartOrder1.vue +++ b/subPackages/techan/cartOrder1.vue @@ -167,6 +167,12 @@ 添加收货地址 + @@ -261,6 +267,29 @@ export default { onReady () { }, methods: { + // 获取微信地址 + getWXAddress () { + let _this = this; + uni.chooseAddress({ + success: (res) => { + _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.getAddressList2() + }) + } + }) + }, + getAddressList2 () { + this.Post({ + contactType: "CONSIGNEE", + offset: '0', + limit: '100' + }, '/api/uservice/user/getContactOrConsignee').then(res => { + if (res) { + this.addressList = res.data || [] + } + }) + }, + // 只处理邮寄/自提、自提 handleOrderGoods () { let orderList = this.$store.state.user.techanOrderList; @@ -1215,4 +1244,21 @@ view { font-weight: bold; } } + .wx-address{ + width: 201rpx; + height: 53rpx; + background: #6A8A2D; + border-radius: 9rpx; + font-weight: 500; + font-size: 24rpx; + color: #FFFFFF; + display: flex; + align-items: center; + justify-content: center; + + .wx-icon{ + width: 26.67rpx; + height: 26.67rpx; + } + } \ No newline at end of file diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue index d5e6343..8fd5da0 100644 --- a/subPackages/techan/detail.vue +++ b/subPackages/techan/detail.vue @@ -41,6 +41,58 @@ {{ item }} + + + + + + + 绿色食品 + LB-15-23120620620830 + + + 查看 + + + + + + + + 中国有机产品 + LB-15-23120620620830 + + + 查看 + + + + + + + + 江苏食用农产品合格证 + LB-15-23120620620830 + + + 查看 + + + + + + + + 农产品地理标志 + LB-15-23120620620830 + + + 查看 + + + + + @@ -192,6 +244,12 @@ this.getCartList() }, methods: { + viewImage () { + uni.previewImage({ + urls: ["https://static.ticket.sz-trip.com/uploads/20250916/927117700e11004a0c332b535bb249b6.png"] + }) + }, + changPopShow (e) { this.popShow = e.show }, @@ -968,4 +1026,21 @@ top: -10rpx; right: -6rpx; } + +.cert-item{ + width: 100%; + height: 93.33rpx; + padding: 3.33rpx 23rpx 3.33rpx 3.33rpx; + background: #EBF4D7; + font-weight: 500; + font-size: 24rpx; + color: #6A8A2D; + border-radius: 7rpx; + margin-top: 13rpx; + image{ + height: 100%; + width: 86.67rpx; + flex-shrink: 0; + } +} \ No newline at end of file diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue index 5621c5d..2e1ea79 100644 --- a/subPackages/techan/order.vue +++ b/subPackages/techan/order.vue @@ -137,8 +137,14 @@ - 添加收货地址 + + @@ -239,6 +245,29 @@ export default { // }) }, methods: { + // 获取微信地址 + getWXAddress () { + let _this = this; + uni.chooseAddress({ + success: (res) => { + _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.getAddressList2() + }) + } + }) + }, + getAddressList2 () { + this.Post({ + contactType: "CONSIGNEE", + offset: '0', + limit: '100' + }, '/api/uservice/user/getContactOrConsignee').then(res => { + if (res) { + this.addressList = res.data || [] + } + }) + }, + handleOrderGoods () { let orderList = this.$store.state.user.techanOrderList; if (!Array.isArray(orderList) || orderList.length<=0) { @@ -1182,4 +1211,22 @@ view { font-weight: bold; } } + + .wx-address{ + width: 201rpx; + height: 53rpx; + background: #6A8A2D; + border-radius: 9rpx; + font-weight: 500; + font-size: 24rpx; + color: #FFFFFF; + display: flex; + align-items: center; + justify-content: center; + + .wx-icon{ + width: 26.67rpx; + height: 26.67rpx; + } + } \ No newline at end of file diff --git a/subPackages/user/travelerList.vue b/subPackages/user/travelerList.vue index f22e066..a6afec2 100644 --- a/subPackages/user/travelerList.vue +++ b/subPackages/user/travelerList.vue @@ -92,6 +92,18 @@ {{showType ? '添加收货地址' : '添加联系人'}} + + @@ -107,7 +119,7 @@ }; }, onLoad(option) { - this.showType = option.showType + this.showType = option.showType || 0 console.log(this.showType) }, onShow() { @@ -185,7 +197,20 @@ uni.navigateTo({ url: url }); - } + }, + + // 获取微信地址 + getWXAddress () { + let _this = this; + uni.chooseAddress({ + success: (res) => { + _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.init() + }) + } + }) + }, + } } @@ -337,21 +362,27 @@ bottom: 0; left: 0; width: 100%; - height: 200rpx; + height: 153rpx; background-color: #fff; + box-shadow: 0rpx 0rpx 13rpx 0rpx rgba(82,82,82,0.25); + display: flex; + align-items: center; + justify-content: center; .btn { width: 697rpx; - line-height: 80rpx; + height: 73rpx; + line-height: 73rpx; background: #6A8A2D; - border-radius: 37rpx; - font-weight: 500; - font-size: 36rpx; - color: #fff; + border-radius: 11rpx; + font-weight: bold; + font-size: 32rpx; + color: #FFFFFF; text-align: center; - position: fixed; - bottom: 53rpx; - left: 26.67rpx; } } + .wx-icon{ + width: 30rpx; + height: 30rpx; + } From 142b48b829c2cf7129bea1af966891f4ee24e130 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 16 Sep 2025 17:54:00 +0800 Subject: [PATCH 15/16] 1 --- App.vue | 4 +-- subPackages/activity/greenOrganic.vue | 41 +++++++++++++++++++++++---- 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/App.vue b/App.vue index 98337fa..622310b 100644 --- a/App.vue +++ b/App.vue @@ -8,8 +8,8 @@ uni.setStorageSync('SHFlag', true) this.Post({id:2388},'/api/multimedia/detail').then(res => { if (res && res.data) { - let SHFlag = res.data.company_name == 1 ? true : false - // let SHFlag = res.data.ext_link == 1 ? true : false + // let SHFlag = res.data.company_name == 1 ? true : false + let SHFlag = res.data.ext_link == 1 ? true : false uni.setStorageSync('SHFlag', SHFlag) return } else { diff --git a/subPackages/activity/greenOrganic.vue b/subPackages/activity/greenOrganic.vue index 7fb866b..b6ff051 100644 --- a/subPackages/activity/greenOrganic.vue +++ b/subPackages/activity/greenOrganic.vue @@ -6,13 +6,24 @@ - + + + + + + + + + + @@ -78,30 +89,31 @@ id: 104,title: "绿色食品",viewNum:6, list: [], img:"https://static.ticket.sz-trip.com/uploads/20250916/70b50a9d3f0b70454763e7146ac0a4d1.png", imgs:"https://static.ticket.sz-trip.com/uploads/20250916/3b251683c250cf6669378266ed786de4.png", - textImg: "https://static.ticket.sz-trip.com/uploads/20250916/e03b1f9e7a9880d2c7f67ee6b4a58643.png", + textImg: "https://static.ticket.sz-trip.com/uploads/20250916/277332c4b9e2e9c52eff288f131bc290.png", }, { id: 105,title: "有机农产品",viewNum:6, list: [], img:"https://static.ticket.sz-trip.com/uploads/20250916/600b3f0ca1b6582da3dc128f98cc1ea9.png", imgs:"https://static.ticket.sz-trip.com/uploads/20250916/9692497b22091c3e3d3d69bf9c4fd311.png", - textImg:"https://static.ticket.sz-trip.com/uploads/20250916/51606f5e0a94c364a8237777e5398aaa.png", + textImg:"https://static.ticket.sz-trip.com/uploads/20250916/b9f991050bfaaee598e2d91cd731801f.png", }, { id: 106,title: "名特优新",viewNum:6, list: [], img:"https://static.ticket.sz-trip.com/uploads/20250916/9810f9261e137b354132063fced2d43c.png", imgs:"https://static.ticket.sz-trip.com/uploads/20250916/2b3cfb94571cd911af3cca2b4027438c.png", - textImg:"https://static.ticket.sz-trip.com/uploads/20250916/d99a160fb1caa3eb56697344fc08df46.png", + textImg:"https://static.ticket.sz-trip.com/uploads/20250916/40dc980c379e382d2e43dfc6d2cfc5f8.png", }, { id: 107,title: "农产品地理标志",viewNum:6, list: [], img:"https://static.ticket.sz-trip.com/uploads/20250916/6c8216888e1224e9534309bde2a87a14.png", imgs:"https://static.ticket.sz-trip.com/uploads/20250916/37d84af1f692cce86158ff0784fefb73.png", - textImg:"https://static.ticket.sz-trip.com/uploads/20250916/898fda5fdc950817faa0bfd318f1fa95.png", + textImg:"https://static.ticket.sz-trip.com/uploads/20250916/3b7395a773381ebe93c224528100e0c8.png", }, ], showGoTop: false, show: true, + scrollIntoView: "item-0", } }, onLoad(option) { @@ -121,6 +133,17 @@ this.typeIndex = i; this.show = true; },300) + + this.$nextTick(()=>{ + let index=i-1; + if (index<0) {index=0} + // 小程序:使用scroll-into-view + this.scrollIntoView = `item-${index}`; + // 强制刷新(解决偶发不滚动问题) + setTimeout(() => { + this.scrollIntoView = `item-${index}`; + }, 100); + }) }, getHeadImg (id) { this.Post({id},'/api/multimedia/detail').then(res => { @@ -280,6 +303,12 @@ margin-right: 0; } } + .type-container.type-scroll{ + height: 90rpx; + padding: 0; + padding-left: 20rpx; + box-sizing: border-box; + } .column-product{ width: 335rpx; From b770bbf58d50028eb494d57213fcb3e1ecb266bd Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 17 Sep 2025 11:46:33 +0800 Subject: [PATCH 16/16] =?UTF-8?q?9-11=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPackages/techan/cartOrder.vue | 6 +-- subPackages/techan/cartOrder1.vue | 6 +-- subPackages/techan/detail.vue | 71 +++++++++++-------------------- subPackages/techan/order.vue | 6 +-- subPackages/user/travelerList.vue | 10 ++--- 5 files changed, 40 insertions(+), 59 deletions(-) diff --git a/subPackages/techan/cartOrder.vue b/subPackages/techan/cartOrder.vue index 98ab6ab..5bd6c1b 100644 --- a/subPackages/techan/cartOrder.vue +++ b/subPackages/techan/cartOrder.vue @@ -167,12 +167,12 @@ 添加收货地址 - + @@ -272,7 +272,7 @@ export default { let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.getAddressList2() }) } diff --git a/subPackages/techan/cartOrder1.vue b/subPackages/techan/cartOrder1.vue index 2d69934..43d4783 100644 --- a/subPackages/techan/cartOrder1.vue +++ b/subPackages/techan/cartOrder1.vue @@ -167,12 +167,12 @@ 添加收货地址 - + @@ -272,7 +272,7 @@ export default { let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.getAddressList2() }) } diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue index 8fd5da0..fa74132 100644 --- a/subPackages/techan/detail.vue +++ b/subPackages/techan/detail.vue @@ -42,49 +42,19 @@ - - - + + + + + + - 绿色食品 - LB-15-23120620620830 - - - 查看 - - - - - - - - 中国有机产品 - LB-15-23120620620830 - - - 查看 - - - - - - - - 江苏食用农产品合格证 - LB-15-23120620620830 - - - 查看 - - - - - - - - 农产品地理标志 - LB-15-23120620620830 + 绿色食品 + 中国有机产品 + 江苏食用农产品合格证 + 农产品地理标志 + {{item.number}} 查看 @@ -220,6 +190,7 @@ cartNum: 0, supplierInfo: null, + certObj: null, }; }, onPageScroll(e){ @@ -244,10 +215,14 @@ this.getCartList() }, methods: { - viewImage () { - uni.previewImage({ - urls: ["https://static.ticket.sz-trip.com/uploads/20250916/927117700e11004a0c332b535bb249b6.png"] - }) + viewImage (item) { + let image = ""; + if (item.image) { + image = this.showImg(item.image) + uni.previewImage({ + urls: [image] + }) + } }, changPopShow (e) { @@ -269,6 +244,12 @@ } this.info = res.data; this.sku = res.data.sku || [] + if (res.data.product_certification_data) { + try { + this.certObj = JSON.parse(res.data.product_certification_data) + console.log(this.certObj["1"]) + } catch (e) {} + } this.getSupplierInfo(res.data.supplier_id) this.shareParam = {title: this.info.title, imageUrl: this.info.headimg} diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue index 2e1ea79..88b08e2 100644 --- a/subPackages/techan/order.vue +++ b/subPackages/techan/order.vue @@ -138,12 +138,12 @@ 添加收货地址 - + @@ -250,7 +250,7 @@ export default { let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.getAddressList2() }) } diff --git a/subPackages/user/travelerList.vue b/subPackages/user/travelerList.vue index a6afec2..2e36d27 100644 --- a/subPackages/user/travelerList.vue +++ b/subPackages/user/travelerList.vue @@ -89,11 +89,11 @@ - + - + @@ -204,7 +204,7 @@ let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.init() }) }