From e2fe10fd790b0c9929f8530f0f44f833c43cbe94 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 25 Aug 2025 16:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B8=A1=E5=A4=B4=E7=B1=B3=E4=B8=93=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 + pages/index/index.vue | 3 +- subPackages/activity/agriculturalProd.vue | 2 +- subPackages/activity/jitoumi.vue | 218 ++++++++++++++++++++++ subPackages/food/detail.vue | 16 +- 5 files changed, 235 insertions(+), 10 deletions(-) create mode 100644 subPackages/activity/jitoumi.vue diff --git a/pages.json b/pages.json index cc6d14a..21d73af 100644 --- a/pages.json +++ b/pages.json @@ -331,6 +331,12 @@ "style": { "navigationBarTitleText" : "" } + }, + { + "path": "activity/jitoumi", + "style": { + "navigationBarTitleText" : "水八仙之首—苏州芡实 (鸡头米)" + } } ] }], diff --git a/pages/index/index.vue b/pages/index/index.vue index b5307cf..c202818 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -31,7 +31,6 @@ - @@ -203,6 +202,8 @@ }, // 广告跳转 gotoBannerDetail(item) { + + if (this.SHFlag) { return } // 1产品详情 2功能模块 3外部链接 4外部小程序 switch (item.jump_type){ diff --git a/subPackages/activity/agriculturalProd.vue b/subPackages/activity/agriculturalProd.vue index 0e9ec6e..e033532 100644 --- a/subPackages/activity/agriculturalProd.vue +++ b/subPackages/activity/agriculturalProd.vue @@ -16,7 +16,7 @@ - + diff --git a/subPackages/activity/jitoumi.vue b/subPackages/activity/jitoumi.vue new file mode 100644 index 0000000..df786ab --- /dev/null +++ b/subPackages/activity/jitoumi.vue @@ -0,0 +1,218 @@ + + + + + \ No newline at end of file diff --git a/subPackages/food/detail.vue b/subPackages/food/detail.vue index de4b2b5..047d56d 100644 --- a/subPackages/food/detail.vue +++ b/subPackages/food/detail.vue @@ -236,7 +236,7 @@ }, goMap () { - if (!this.info.lat || !this.info.lon) { + if (!this.info.scene_lat || !this.info.scene_lon) { uni.showToast({ title: '暂未配置地理位置', icon: 'none' @@ -245,13 +245,13 @@ } uni.openLocation({ - latitude: Number(this.info.lat), - longitude: Number(this.info.lon), - name: this.info.title, - address: this.info.address, - success: function () { - console.log('success'); - } + latitude: Number(this.info.scene_lat), + longitude: Number(this.info.scene_lon), + name: this.info.scene_name, + address: this.info.scene_address, + // success: function () { + // console.log('success'); + // } }); },