From 5edddeb02826d03e83dd415ce8613f400f5414b2 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 30 Jun 2025 10:36:16 +0800 Subject: [PATCH] 1 --- app.js | 2 +- pages/index/index.wxml | 5 +++-- pages/index/index.wxss | 4 ++++ pages/info/sceneProductInfo/index.js | 12 ++++++++++-- pages/info/sceneProductInfo/index.wxml | 8 ++++---- pages/user/suggest/suggest.js | 2 +- project.private.config.json | 7 +++++++ 7 files changed, 30 insertions(+), 10 deletions(-) diff --git a/app.js b/app.js index 2d5ffd9..3a8efc4 100644 --- a/app.js +++ b/app.js @@ -38,7 +38,7 @@ App({ // 获取前端配置文件 commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest118? true : false; + data.isTest = data.isTest122? true : false; data.indexSeason = null this.globalData.configJson = data }).then(() => { diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 20bf1cd..8e70eab 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -5,7 +5,8 @@ + bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular + indicator-dots indicator-active-color="#fff"> @@ -254,7 +255,7 @@ {{item.price/100}} - 已售{{item.sales_number}} + 已售{{item.sales_number + (item.virtual_sales_number ||0)}} diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 20c4489..4e3ef2f 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -72,6 +72,10 @@ height: 173.33rpx; } +.swiper .wx-swiper-dots.wx-swiper-dots-horizontal { + margin-bottom: -10rpx; + } + .main-content{ /* background-color:#E8F9FA; */ margin-top: -10rpx; diff --git a/pages/info/sceneProductInfo/index.js b/pages/info/sceneProductInfo/index.js index 53b5501..ad3822d 100644 --- a/pages/info/sceneProductInfo/index.js +++ b/pages/info/sceneProductInfo/index.js @@ -10,6 +10,9 @@ Page({ * 页面的初始数据 */ data: { + id: null, + isBook: false, + info: null, bookingInfo: null, bookingInfoTitle: "", @@ -65,8 +68,10 @@ Page({ } if (options.ZTPoint) {this.setData({ZTPoint: options.ZTPoint})} + // 是否书展产品 标题产品详情 开园为活动 去掉政策 this.setData({ - id: options.id + id: options.id, + isBook: [962712,"962712"].includes(options.id), }) commonApi._post("scene/detail", { id: options.id @@ -215,7 +220,7 @@ Page({ item.rate = Number(item.rate) }) this.setData({ - comment: res.data.list.splice(0, 2), + comment: res.data.list.splice(0, 5), commentTotal: res.data.total }) let arr = this.data.comment @@ -232,6 +237,9 @@ Page({ comment: arr }) }) + + + }, // 获取日期 changeDate: function (e) { diff --git a/pages/info/sceneProductInfo/index.wxml b/pages/info/sceneProductInfo/index.wxml index edec2ec..3712229 100644 --- a/pages/info/sceneProductInfo/index.wxml +++ b/pages/info/sceneProductInfo/index.wxml @@ -1,6 +1,6 @@ - + @@ -17,8 +17,8 @@ - 开园时间:{{info.open_time}} - 优待政策 | 景点介绍 + {{isBook?"活动":"开园"}}时间:{{info.open_time}} + 优待政策 | 景点介绍 地址:{{info.address}} @@ -248,7 +248,7 @@ 查看全部点评 - + diff --git a/pages/user/suggest/suggest.js b/pages/user/suggest/suggest.js index d445941..27cdf34 100644 --- a/pages/user/suggest/suggest.js +++ b/pages/user/suggest/suggest.js @@ -13,7 +13,7 @@ Page({ formData:{ username: "", mobile: null, - content:"" + content:"", }, safeBottom:app.globalData.safeBottom, diff --git a/project.private.config.json b/project.private.config.json index 765bd8e..12064dd 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -6,6 +6,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/pbService/web/index", + "pathName": "pages/pbService/web/index", + "query": "weburl=https%3A%2F%2Fm.cloud.sz-trip.com%2Fwangzhe", + "launchMode": "default", + "scene": null + }, { "name": "pages/login/index", "pathName": "pages/login/index",