123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <template>
- <view>
- <u-navbar :is-back="false" :border-bottom="false"><img class="homeLogo" src="/static/img/homeLogo.png" alt=""></u-navbar>
- <view class="home-head">
- <view class="homeTab">
- <u-tabs :list="tabList" :current="current" @change="change" :show-bar="false" active-color="#333" inactive-color="#c4c0c0"></u-tabs>
- </view>
- <view class="homeAdd">
- <u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
- <span>荆州市</span>
- </view>
- </view>
- <view class="homeWrap">
- <u-swiper :list="wrapList" height="300" border-radius="24"></u-swiper>
- </view>
- <view class="homeUser">
- <view class="homeUser-item">
- <view class="homeUser-add">
- <u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
- <span>荆州</span>
- </view>
- <view class="homeUser-text">
- <view class="homeUser-name">
- <span>刘子琪</span>
- <u-icon custom-prefix="custom-icon" name="women-line" color="#FF695B"></u-icon>
- </view>
- <view class="homeUser-info">
- 24岁 · 160cm · 51kg
- </view>
- </view>
- <u-image class="homeUser-img" src="/static/img/user1.jpg" height="330" mode="aspectFill"></u-image>
- </view>
- <view class="homeUser-item">
- <view class="homeUser-add">
- <u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
- <span>荆州</span>
- </view>
- <view class="homeUser-text">
- <view class="homeUser-name">
- <span>刘子琪</span>
- <u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
- </view>
- <view class="homeUser-info">
- 24岁 · 160cm · 51kg
- </view>
- </view>
- <u-image src="/static/img/user2.jpg" height="330" mode="aspectFill"></u-image>
- </view>
- <view class="homeUser-item">
- <view class="homeUser-add">
- <u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
- <span>荆州</span>
- </view>
- <view class="homeUser-text">
- <view class="homeUser-name">
- <span>刘子琪</span>
- <u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
- </view>
- <view class="homeUser-info">
- 24岁 · 160cm · 51kg
- </view>
- </view>
- <u-image src="/static/img/user3.jpg" height="330" mode="aspectFill"></u-image>
- </view>
- <view class="homeUser-item">
- <view class="homeUser-add">
- <u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
- <span>荆州</span>
- </view>
- <view class="homeUser-text">
- <view class="homeUser-name">
- <span>刘子琪</span>
- <u-icon custom-prefix="custom-icon" name="women-line" color="#FF695B"></u-icon>
- </view>
- <view class="homeUser-info">
- 24岁 · 160cm · 51kg
- </view>
- </view>
- <u-image src="/static/img/user4.jpg" height="330" mode="aspectFill"></u-image>
- </view>
-
- <u-divider color="#B6BDC3" style="margin-top:20px;">已经到底了</u-divider>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- tabList: [{
- name: '最新'
- }, {
- name: '最热'
- }],
- current: 0,
- wrapList: [{
- image: 'http://rccs.oss-cn-hangzhou.aliyuncs.com/jp-xqjy/banner.png',
- },
- {
- image: 'http://rccs.oss-cn-hangzhou.aliyuncs.com/jp-xqjy/banner.png',
- },
- {
- image: 'http://rccs.oss-cn-hangzhou.aliyuncs.com/jp-xqjy/banner.png',
- }
- ],
- }
- },
- methods: {
- change(index) {
- this.current = index;
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .homeLogo{
- margin-left: 15px;
- height: 28px;
- width: 148px;
- }
- .home-head{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding-right: 15px;
- position: fixed;
- left: 0;
- right: 0;
- top: 55px;
- background-color: #fff;
- z-index: 99;
- .homeAdd{
- color: #FF5E5E;
- span{
- margin-left: 3px;
- }
- }
- }
- .homeWrap{
- padding:0 15px;
- margin-top: 44px;
- }
- .homeUser{
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- padding: 15px;
- .homeUser-item{
- width: 48%;
- height: 165px;
- margin-bottom: 15px;
- position: relative;
- color: #fff;
- border-radius: 12px;
- overflow: hidden;
- .homeUser-add{
- position: absolute;
- z-index: 9;
- right: 10px;
- top: 10px;
- background: rgba(0,0,0,0.5);
- padding:2px 5px;
- border-radius: 12px;
- span{
- margin-left: 3px;
- font-size: 14px;
- }
- }
- .homeUser-text{
- position: absolute;
- z-index: 9;
- left:0px ;
- bottom: 0px;
- right: 0;
- padding: 10px;
- background: linear-gradient( 180deg,rgba(0,0,0,0),rgba(0,0,0,0.5));
- }
- .homeUser-name{
- display: flex;
- align-items: center;
- span{
- margin-right: 3px;
- }
- }
- .homeUser-info{
- margin-top: 3px;
- }
- .homeUser-img{
- position: relative;
- z-index: 0;
- }
- }
- }
- </style>
|