|
@@ -9,56 +9,60 @@
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
- <view class="two">
|
|
|
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#F5F5F5"
|
|
|
- indicator-active-color="#007AFF" :autoplay="false">
|
|
|
- <swiper-item class="swiper-item" v-for="(item,index) in moduleList" :key="index">
|
|
|
- <view class="list" v-for="(as,indexs) in item" :key="indexs" @tap="toChange(as)">
|
|
|
- <image class="image" :src="as.url&&as.url.length>0?as.url[0].url:''" mode="aspectFill">
|
|
|
- </image>
|
|
|
- <text class="text">{{ as.name }}</text>
|
|
|
- </view>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- </view>
|
|
|
- <view class="thr">
|
|
|
- <uni-notice-bar speed='50' showGetMore='true' moreText='更多' @getmore="toMore" show-icon scrollable
|
|
|
- :text="content" />
|
|
|
- </view>
|
|
|
- <view class="four">
|
|
|
- <tabs :tabs="tabs" @tabsChange="tabsChange">
|
|
|
- <view class="tabsList">
|
|
|
- <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
|
|
|
- <view class="list-scroll-view">
|
|
|
- <!-- 瀑布流布局列表 -->
|
|
|
- <view class="pubuBox">
|
|
|
- <view class="pubuItem">
|
|
|
- <view class="list" v-for="(item, index) in list" :key="index" @tap="toInfo(item)">
|
|
|
- <image :src="item.file&&item.file.length>0?item.file[0].url:''" mode="widthFix">
|
|
|
- </image>
|
|
|
- <view class="title"> <!-- 这是没有高度的父盒子(下半部分) -->
|
|
|
- <view class="title_1">{{ item.title }}</view>
|
|
|
- <view class="title_2">
|
|
|
- <view class="left">
|
|
|
- {{item.contact_name||'暂无昵称'}}
|
|
|
- </view>
|
|
|
- <view class="right" @tap.stop="toLike(item)">
|
|
|
- <text v-if="item.is_like" class="iconfont icon-aixin1"></text>
|
|
|
- <text else class="iconfont icon-aixin"></text>
|
|
|
- {{item.like_num||'0'}}
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="two">
|
|
|
+ <swiper class="swiper" circular :indicator-dots="true" indicator-color="#F5F5F5"
|
|
|
+ indicator-active-color="#007AFF" :autoplay="false">
|
|
|
+ <swiper-item class="swiper-item" v-for="(item,index) in moduleList" :key="index">
|
|
|
+ <view class="list" v-for="(as,indexs) in item" :key="indexs" @tap="toChange(as)">
|
|
|
+ <image class="image" :src="as.url&&as.url.length>0?as.url[0].url:''" mode="aspectFill">
|
|
|
+ </image>
|
|
|
+ <text class="text">{{ as.name }}</text>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ </view>
|
|
|
+ <view class="thr">
|
|
|
+ <uni-notice-bar speed='50' showGetMore='true' moreText='更多' @getmore="toMore" show-icon scrollable
|
|
|
+ :text="content" />
|
|
|
+ </view>
|
|
|
+ <view class="four">
|
|
|
+ <tabs :tabs="tabs" @tabsChange="tabsChange">
|
|
|
+ <view class="tabsList">
|
|
|
+ <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
|
|
|
+ <view class="list-scroll-view">
|
|
|
+ <!-- 瀑布流布局列表 -->
|
|
|
+ <view class="pubuBox">
|
|
|
+ <view class="pubuItem">
|
|
|
+ <view class="list" v-for="(item, index) in list" :key="index"
|
|
|
+ @tap="toInfo(item)">
|
|
|
+ <image :src="item.file&&item.file.length>0?item.file[0].url:''"
|
|
|
+ mode="widthFix">
|
|
|
+ </image>
|
|
|
+ <view class="title"> <!-- 这是没有高度的父盒子(下半部分) -->
|
|
|
+ <view class="title_1">{{ item.title }}</view>
|
|
|
+ <view class="title_2">
|
|
|
+ <view class="left">
|
|
|
+ {{item.contact_name||'暂无昵称'}}
|
|
|
+ </view>
|
|
|
+ <view class="right" @tap.stop="toLike(item)">
|
|
|
+ <text v-if="item.is_like" class="iconfont icon-aixin1"></text>
|
|
|
+ <text else class="iconfont icon-aixin"></text>
|
|
|
+ {{item.like_num||'0'}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="is_bottom" v-if="is_bottom">
|
|
|
+ <text>{{config.bottom_title}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="is_bottom" v-if="is_bottom">
|
|
|
- <text>{{config.bottom_title}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </scroll-view>
|
|
|
- </view>
|
|
|
- </tabs>
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
+ </tabs>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -242,7 +246,7 @@
|
|
|
padding: 0 0 2vw 0;
|
|
|
|
|
|
.swiper {
|
|
|
- height: 65vw;
|
|
|
+ height: 70vw;
|
|
|
|
|
|
.list {
|
|
|
.image {
|
|
@@ -253,107 +257,117 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .two {
|
|
|
+ .bottom {
|
|
|
+ position: absolute;
|
|
|
+ top: 65vw;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ background-color: var(--mainColor);
|
|
|
+ border-radius: 20px;
|
|
|
+ padding: 2vw 0 0 0;
|
|
|
|
|
|
- .swiper {
|
|
|
- height: 50vw;
|
|
|
+ .two {
|
|
|
|
|
|
- .swiper-item {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- flex-wrap: wrap;
|
|
|
+ .swiper {
|
|
|
+ height: 50vw;
|
|
|
|
|
|
- .list {
|
|
|
+ .swiper-item {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- width: 20vw;
|
|
|
- padding: 1vw 0 0 0;
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
|
- .image {
|
|
|
- width: 15vw;
|
|
|
- height: 15vw;
|
|
|
- border-radius: 15vw;
|
|
|
- box-shadow: 0 0 5px var(--f1Color);
|
|
|
- }
|
|
|
+ .list {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ width: 20vw;
|
|
|
+ padding: 1vw 0 0 0;
|
|
|
|
|
|
- .text {
|
|
|
- font-size: var(--font14Size);
|
|
|
- margin-top: 5px;
|
|
|
- color: var(--f85Color);
|
|
|
+ .image {
|
|
|
+ width: 15vw;
|
|
|
+ height: 15vw;
|
|
|
+ border-radius: 15vw;
|
|
|
+ box-shadow: 0 0 5px var(--f1Color);
|
|
|
+ }
|
|
|
+
|
|
|
+ .text {
|
|
|
+ font-size: var(--font14Size);
|
|
|
+ margin-top: 5px;
|
|
|
+ color: var(--f85Color);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .thr {
|
|
|
- padding: 0 2vw;
|
|
|
- }
|
|
|
-
|
|
|
- .four {
|
|
|
- background-color: var(--footColor);
|
|
|
-
|
|
|
- .tabsList {
|
|
|
- position: relative;
|
|
|
- width: 100vw;
|
|
|
- height: 80vh;
|
|
|
+ .thr {
|
|
|
+ padding: 0 2vw;
|
|
|
+ }
|
|
|
|
|
|
- .pubuBox {
|
|
|
- padding: 2vw;
|
|
|
- }
|
|
|
+ .four {
|
|
|
+ background-color: var(--footColor);
|
|
|
|
|
|
- .pubuItem {
|
|
|
- column-count: 2;
|
|
|
- column-gap: 2vw;
|
|
|
- }
|
|
|
+ .tabsList {
|
|
|
+ position: relative;
|
|
|
+ width: 100vw;
|
|
|
+ height: 80vh;
|
|
|
|
|
|
- .list {
|
|
|
- box-sizing: border-box;
|
|
|
- border-radius: 2vw;
|
|
|
- overflow: hidden;
|
|
|
- background-color: var(--mainColor);
|
|
|
- break-inside: avoid;
|
|
|
- /*避免在元素内部插入分页符*/
|
|
|
- box-sizing: border-box;
|
|
|
- margin-bottom: 2vw;
|
|
|
- }
|
|
|
-
|
|
|
- .list image {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
+ .pubuBox {
|
|
|
+ padding: 2vw;
|
|
|
+ }
|
|
|
|
|
|
- .title {
|
|
|
- padding: 2vw;
|
|
|
+ .pubuItem {
|
|
|
+ column-count: 2;
|
|
|
+ column-gap: 2vw;
|
|
|
+ }
|
|
|
|
|
|
- .title_1 {
|
|
|
- font-size: var(--font14Size);
|
|
|
- line-height: 4vw;
|
|
|
- text-overflow: -o-ellipsis-lastline;
|
|
|
+ .list {
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 2vw;
|
|
|
overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- line-clamp: 2;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- min-height: 6vw;
|
|
|
- max-height: 20vw;
|
|
|
+ background-color: var(--mainColor);
|
|
|
+ break-inside: avoid;
|
|
|
+ /*避免在元素内部插入分页符*/
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-bottom: 2vw;
|
|
|
}
|
|
|
|
|
|
- .title_2 {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- font-size: var(--font12Size);
|
|
|
- color: var(--f69Color);
|
|
|
- padding: 1vw 0;
|
|
|
+ .list image {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title {
|
|
|
+ padding: 2vw;
|
|
|
|
|
|
- .right {
|
|
|
+ .title_1 {
|
|
|
+ font-size: var(--font14Size);
|
|
|
+ line-height: 4vw;
|
|
|
+ text-overflow: -o-ellipsis-lastline;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ line-clamp: 2;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ min-height: 6vw;
|
|
|
+ max-height: 20vw;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title_2 {
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: var(--font12Size);
|
|
|
+ color: var(--f69Color);
|
|
|
+ padding: 1vw 0;
|
|
|
+
|
|
|
+ .right {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- text:first-child {
|
|
|
- padding: 0 1vw 0 0;
|
|
|
+ text:first-child {
|
|
|
+ padding: 0 1vw 0 0;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|