|
@@ -10,53 +10,30 @@
|
|
|
<view class="home-box" :style="`margin-top: ${globalData.navBarHeight}px `">
|
|
|
<view class="home-main">
|
|
|
<view class="custom-swiper" v-if="list3.length > 0">
|
|
|
- <up-swiper
|
|
|
- :list="list3"
|
|
|
- indicator
|
|
|
- indicatorMode="line"
|
|
|
- circular
|
|
|
- :height="'554rpx'"
|
|
|
- ></up-swiper>
|
|
|
+ <up-swiper :list="list3" indicator indicatorMode="line" circular :height="'554rpx'"></up-swiper>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <up-loadmore
|
|
|
- style="margin-top: 40rpx"
|
|
|
- :status="loadmoreInfo.status"
|
|
|
- :loadmoreText="loadmoreInfo.loadingText"
|
|
|
- :loadingText="loadmoreInfo.loadmoreText"
|
|
|
- :nomoreText="loadmoreInfo.nomoreText"
|
|
|
- @loadmore="handleLoadmore"
|
|
|
- v-if="userType == 1"
|
|
|
- />
|
|
|
+ <up-loadmore style="margin-top: 40rpx" :status="loadmoreInfo.status" :loadmoreText="loadmoreInfo.loadingText"
|
|
|
+ :loadingText="loadmoreInfo.loadmoreText" :nomoreText="loadmoreInfo.nomoreText" @loadmore="handleLoadmore"
|
|
|
+ v-if="userType == 1" />
|
|
|
</view>
|
|
|
|
|
|
<view class="Wrapper">
|
|
|
- <view class="home-g-bgc">
|
|
|
+ <view class="home-g-bgc">
|
|
|
<Client />
|
|
|
</view>
|
|
|
|
|
|
- <view class="home-grid2">
|
|
|
- <view class="hot-swiper" v-if="ValueZone.length > 0">
|
|
|
- <up-swiper
|
|
|
- :list="ValueZone"
|
|
|
- :indicator="false"
|
|
|
- indicatorMode="line"
|
|
|
- circular
|
|
|
- ></up-swiper>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="home-ranking home-grid2">
|
|
|
- <ServIces
|
|
|
- :leftList="leftList"
|
|
|
- :rightList="rightList"
|
|
|
- v-if="userType == 1"
|
|
|
- ></ServIces>
|
|
|
- <RankingList v-if="userType === 2" />
|
|
|
- </view>
|
|
|
+ <view class="hot-swiper" v-if="ValueZone.length > 0">
|
|
|
+ <up-swiper :list="ValueZone" :indicator="false" indicatorMode="line" circular></up-swiper>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="home-ranking">
|
|
|
+ <ServIces :leftList="leftList" :rightList="rightList" v-if="userType == 1"></ServIces>
|
|
|
+ <RankingList v-if="userType === 2" />
|
|
|
+ </view>
|
|
|
|
|
|
</view>
|
|
|
- <custom-tab-bar page="home" />
|
|
|
+ <custom-tab-bar page="home" class="customTabBar" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -288,69 +265,78 @@ onMounted(async () => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-onUnload(() => {})
|
|
|
+onUnload(() => { })
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
+.customTabBar {
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: 9999;
|
|
|
+}
|
|
|
|
|
|
+.home-banner {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-end;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 20rpx 16rpx;
|
|
|
+ color: #fff;
|
|
|
+ // position: fixed;
|
|
|
+ // top: 0px;
|
|
|
+ // left: 0px;
|
|
|
+ // right: 0;
|
|
|
+ z-index: 99;
|
|
|
+ // bottom: 150rpx;
|
|
|
+}
|
|
|
|
|
|
- .home-banner {
|
|
|
- display: flex;
|
|
|
- align-items: flex-end;
|
|
|
- justify-content: space-between;
|
|
|
- // background: rgba(255, 255, 255, 1);
|
|
|
- // background-color: #ED806A;
|
|
|
- // background-color: rgba(221, 60, 62, 1);
|
|
|
- // box-shadow: 0rpx 0rpx 0rpx rgba(0, 0, 0, 0), 0rpx 0rpx 0rpx rgba(0, 0, 0, 0),
|
|
|
- // 0rpx 2.08rpx 4.17rpx rgba(0, 0, 0, 0.05);
|
|
|
- padding: 20rpx 16rpx;
|
|
|
- color: #fff;
|
|
|
- // position: fixed;
|
|
|
- top: 0px;
|
|
|
- left: 0px;
|
|
|
- right: 0;
|
|
|
- z-index: 99;
|
|
|
- bottom: 150rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .home-box {
|
|
|
- padding-bottom: 150rpx;
|
|
|
- }
|
|
|
+.home-box {
|
|
|
+ padding-bottom: 150rpx;
|
|
|
+}
|
|
|
|
|
|
- .home-banner-left {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- width: 30%;
|
|
|
- z-index: 110;
|
|
|
- }
|
|
|
+.home-banner-left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 30%;
|
|
|
+ z-index: 110;
|
|
|
+}
|
|
|
|
|
|
- .Wrapper{
|
|
|
- background: rgba(255, 255, 255, 1);
|
|
|
- // background: red;
|
|
|
- // position: absolute;
|
|
|
- // top: 309px;
|
|
|
- // left: 0;
|
|
|
- // right: 0;
|
|
|
- // bottom: 0;
|
|
|
- border-radius: 20rpx 20rpx 0rpx 0rpx;
|
|
|
- z-index: 130;
|
|
|
+.Wrapper {
|
|
|
+ background: rgba(255, 255, 255, 1);
|
|
|
+ // background: red;
|
|
|
+ position: absolute;
|
|
|
+ top: 309px;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ border-radius: 20rpx 20rpx 0rpx 0rpx;
|
|
|
+ z-index: 130;
|
|
|
}
|
|
|
|
|
|
- .home-main {
|
|
|
- padding: 12px 16px 0;
|
|
|
- z-index: 99;
|
|
|
- }
|
|
|
+.home-main {
|
|
|
+ padding: 12px 16px 0;
|
|
|
+ z-index: 99;
|
|
|
+}
|
|
|
|
|
|
- .home-ranking {
|
|
|
- padding: 24rpx 16px;
|
|
|
- }
|
|
|
+.home-ranking {
|
|
|
+ padding: 24rpx 16px;
|
|
|
+}
|
|
|
|
|
|
.hot-box-title {
|
|
|
+ margin-top: 24rpx;
|
|
|
padding: 0 32rpx;
|
|
|
}
|
|
|
|
|
|
.hot-swiper {
|
|
|
- padding: 24rpx 32rpx 0;
|
|
|
+ // padding: 24rpx 32rpx 0;
|
|
|
+ width: 704rpx;
|
|
|
+ height: 180rpx;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ background: linear-gradient(180deg, #FEF9ED 0%, #FFF9F3 100%);
|
|
|
+ margin-top: 40rpx;
|
|
|
+ margin-right: 23rpx;
|
|
|
+ margin-left: 23rpx;
|
|
|
}
|
|
|
|
|
|
.hot-box {
|
|
@@ -365,20 +351,15 @@ onUnload(() => {})
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.home-grid{
|
|
|
+.home-grid {
|
|
|
margin-top: 220rpx;
|
|
|
}
|
|
|
|
|
|
-// .home-grid2 {
|
|
|
-// margin-bottom: 32rpx;
|
|
|
-// background: #fff;
|
|
|
-// padding: 12px 0;
|
|
|
-// border-radius: 8px;
|
|
|
-// }
|
|
|
+
|
|
|
|
|
|
.home-g-bgc {
|
|
|
- background: #f7f7f7;
|
|
|
- padding: 24rpx;
|
|
|
+ background: rgba(255, 255, 255, 1);
|
|
|
+ padding: -2rpx;
|
|
|
}
|
|
|
|
|
|
.custom-swiper {
|