From c06705afe700114fb8fe98f68be05ff16f192688 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 23 Sep 2024 17:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.wxss | 4 ++++ pages/index/index.js | 34 +++++++++++++++++++--------------- pages/index/index.wxml | 24 ++++++++++++------------ pages/index/index.wxss | 13 ++++++++----- project.private.config.json | 8 ++++---- subPackages/indexGQ/index.wxml | 2 +- subPackages/indexGQ/index.wxss | 2 +- 7 files changed, 49 insertions(+), 38 deletions(-) diff --git a/app.wxss b/app.wxss index cdecea9..779e439 100644 --- a/app.wxss +++ b/app.wxss @@ -140,6 +140,10 @@ page{ background-repeat: no-repeat; margin: 0 auto; } + +.no-scrollbar::-webkit-scrollbar{ + display: none; +} /* page { filter: grayscale(100%); } */ \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 4cc4882..068d161 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -98,14 +98,14 @@ Page({ bdList:[ { bg: 'linear-gradient(172deg, #FFF3E5, #FFD9AD);', - icon:'https://static.ticket.sz-trip.com/uploads/20240923/15ee44a960511cdcf276b5d8df472626.png', //游 - url:'https://m.cloud.sz-trip.com/OneDayTravelNew', - path:'', + icon:'https://static.ticket.sz-trip.com/uploads/20240923/15ee44a960511cdcf276b5d8df472626.png', //游 景点 + url:'', + path:'/pages/list/scene/index', }, { bg: 'linear-gradient(172deg, #E7F1FF, #ADD1FF);', - icon:'https://static.ticket.sz-trip.com/uploads/20240923/cd652f4bcfcef7f55863bf8587609ca4.png', //非玩不可 - path:'/pages/list/scene/index', + icon:'https://static.ticket.sz-trip.com/uploads/20240923/cd652f4bcfcef7f55863bf8587609ca4.png', //非玩不可 景点产品 + path:'/pages/list/night/index', url:'', }, { @@ -123,10 +123,13 @@ Page({ ], - list1:[], //非玩-景点 - list2:[], //非买-文创 - list3:[], //非游-一日游 - list4:[], //非看-剧场演出 + list1:[], //游-景点 + list2:[], //非晚-夜游 + list3:[], //非看-剧场演出 + list4:[], //非买-文创 + + + }, onLoad: function(options) { this.getHeight() @@ -247,7 +250,7 @@ Page({ }, getList() { let bdList = this.data.bdList - // 非玩不可--景点 + // 游--景点 commonApi._post("scene/get_scene_by_tag",{ tag_id:"4", limit:6, @@ -258,6 +261,7 @@ Page({ title:'', area_id:'' }).then(res=>{ + console.log('景点', res) res.data.list.map(item => { if (item.distance || item.distance == 0) { if (item.distance >= 1000) { @@ -278,19 +282,19 @@ Page({ limit: 6, }).then(res=>{ this.setData({ - list2:res.data.list + list4:res.data.list }) }) // 非游不可--线路一日游 commonApi._post('product/get_product_by_tag',{ - type_id: 23, - tag_id:17, + // type_id: 23, + tag_id: "10,11,12", offset: 0, limit: 6, sort: 'weight' }).then(res=>{ this.setData({ - list3:res.data.list + list2:res.data.list }) }) // 非看不可--剧场演出 @@ -305,7 +309,7 @@ Page({ title:'' }).then(res=>{ this.setData({ - list4:res.data.list + list3:res.data.list }) }) }, diff --git a/pages/index/index.wxml b/pages/index/index.wxml index ad62e9a..f1d6541 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -20,14 +20,14 @@ - + - + @@ -43,9 +43,9 @@ - + - + {{item.name}} {{item.begin_date}}-{{item.end_date}} @@ -56,7 +56,7 @@ - + @@ -80,8 +80,8 @@ - - + + 景点门票 @@ -127,14 +127,14 @@ - + - + @@ -150,7 +150,7 @@ - + 电子社保卡 @@ -201,7 +201,7 @@ - + @@ -235,7 +235,7 @@ {{item.price/100}} - {{(item.distance/1000)}}km + {{(item.distance)}} diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 69871b7..1f87819 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1040,10 +1040,13 @@ page { /* margin-bottom: 26.67rpx; */ } - +.ggfw-list{ + display: flex; + justify-content: space-around; +} .ggfw { - width: 132rpx; - margin:0 22rpx; + width: auto; + margin:0; } .ggfw image{ margin-bottom: 16.67rpx; @@ -1182,7 +1185,7 @@ page { height: 53rpx; background: rgba(255,250,245,0.3); border-radius: 13rpx; - border: 1px solid #FFFFFF; + /* border: 1px solid #FFFFFF; */ font-size: 32rpx; color: #FFFFFF; @@ -1396,7 +1399,7 @@ page { .buyMovie { width: 160rpx; height: 56rpx; - background: #078565; + background: #FF4848; color: #fff; border-radius: 20rpx; text-align: center; diff --git a/project.private.config.json b/project.private.config.json index e52bcf5..8591e8c 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -7,15 +7,15 @@ "miniprogram": { "list": [ { - "name": "pages/info/postProductInfo/index", - "pathName": "subPackages/index/index", + "name": "subPackages/indexs/index", + "pathName": "subPackages/indexs/index", "query": "", "launchMode": "default", "scene": null }, { - "name": "subPackages/indexs/index", - "pathName": "subPackages/indexGQ/index", + "name": "pages/info/postProductInfo/index", + "pathName": "subPackages/index/index", "query": "", "launchMode": "default", "scene": null diff --git a/subPackages/indexGQ/index.wxml b/subPackages/indexGQ/index.wxml index ad62e9a..f36a82d 100644 --- a/subPackages/indexGQ/index.wxml +++ b/subPackages/indexGQ/index.wxml @@ -150,7 +150,7 @@ - + 电子社保卡 diff --git a/subPackages/indexGQ/index.wxss b/subPackages/indexGQ/index.wxss index 69871b7..66c98e6 100644 --- a/subPackages/indexGQ/index.wxss +++ b/subPackages/indexGQ/index.wxss @@ -1396,7 +1396,7 @@ page { .buyMovie { width: 160rpx; height: 56rpx; - background: #078565; + background: #FF4848; color: #fff; border-radius: 20rpx; text-align: center;