- - - + + + + + + {{item.menu_name}} + + + + + @@ -89,12 +88,12 @@ - - + + - - - + + + @@ -107,6 +106,9 @@ {{item.title}} + + {{tag}} + {{item.price/100}} @@ -169,14 +171,14 @@ - + 更多 > - + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 8f9ea1c..76e79dc 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -2,18 +2,27 @@ /* 元旦修改 */ .bg{ - height: 100vh; + min-height: 100vh; overflow-x: hidden; overflow-y: auto; background-size: 100% 100%; background-repeat: no-repeat; /* background-color:#E8F9FA; */ + } -.swiper,.swiper image { - width: 100%; - display: block; - height: 908rpx; +.swiper{ + display: block; + width: 697rpx; + height: 340rpx; + margin: 0 auto; } +.swiper image { + display: block; + width: 100%; + height: 100%; + border-radius: 20rpx; +} + .top-box { display: flex; @@ -45,7 +54,7 @@ font-size: 25rpx; padding: 2rpx 5rpx; box-sizing: border-box; - background: rgba(255, 255, 255, 0.6); + background: #FFEEAD; } .search-box .iconfont { font-size: 30rpx; @@ -55,21 +64,17 @@ } .banner-main{ - position: absolute; - z-index: 3; + width: 100%; - left: 0; - bottom: 0rpx; - right: 0; display: flex; justify-content: space-between; - padding: 0rpx 20rpx 30rpx; + padding: 26rpx 20rpx 30rpx; box-sizing: border-box; /* background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2)) */ } .banner-main image{ - width: 173.33rpx; - height: 173.33rpx; + width: 156rpx; + height: 156rpx; } .swiper .wx-swiper-dots.wx-swiper-dots-horizontal { @@ -88,19 +93,21 @@ /* padding-top: 63rpx; */ } + .top-icons { display: flex; - padding:0 20rpx; - align-items: center; + flex-wrap: wrap; + border-radius: 20rpx; + background: #FFEEAD; } .top-icon-item { - margin-bottom: 20rpx; + margin-bottom: 37rpx; line-height: 37rpx; font-size: 25rpx; color: #000; text-align: center; flex-shrink: 0; - width: 20%; + width: 25%; display: flex; align-items: center; justify-content: center; @@ -131,7 +138,7 @@ margin: 0 25rpx; } .common-header-img{ - height: 106.67rpx; + width: 220.67rpx; } .small-swiper { @@ -185,6 +192,7 @@ flex-direction: column; justify-content: space-between; } + .season-hot{ display: flex; } @@ -218,6 +226,23 @@ height: 100%; border-radius: 0; } + .season-hot .tags{ + width: 100%; + display: flex; + flex-wrap: nowrap; + overflow-x: hidden; + } + .season-hot .tag{ + height: 27rpx; + border: 1px solid #FF8623; + line-height: 27rpx; + padding: 0 10rpx; + font-weight: 500; + font-size: 20rpx; + color: #FF8623; + margin-right: 8rpx; + flex-shrink: 0; + } .xsth-more { margin-top: 19.33rpx; @@ -761,14 +786,14 @@ .ggfw-list { display: grid; - grid-template-columns: repeat(4, 166rpx); + grid-template-columns: repeat(4, 157.33rpx); row-gap: 23rpx; justify-content: space-between; } .ggfw-list .ggfw { - width: 166rpx; - height: 133rpx; + width: 157.33rpx; + height: 130.67rpx; /* margin-bottom: 23rpx; */ } .ggfw image{ diff --git a/utils/https.js b/utils/https.js index d55ab84..b0f9a8b 100644 --- a/utils/https.js +++ b/utils/https.js @@ -1,8 +1,8 @@ var app = getApp(); import util from "../utils/util" // import userApi from "../utils/https/user.js"; -// const baseUrl = "https://test.api.cloud.sz-trip.com/api/"; -let baseUrl = "https://api.cloud.sz-trip.com/api/"; +const baseUrl = "https://test.api.cloud.sz-trip.com/api/"; +// let baseUrl = "https://api.cloud.sz-trip.com/api/"; const env = wx.getAccountInfoSync().miniProgram.envVersion if (env == 'develop1') { baseUrl = "https://test.api.cloud.sz-trip.com/api/"