|
@ -1,20 +1,29 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="container"> |
|
|
<view class="container"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-banner-box"> |
|
|
<view class="ant-banner-box"> |
|
|
<image class="ant-banner" mode="scaleToFill" :src="bannerList[3].image"/> |
|
|
|
|
|
<view class="ant-title"> |
|
|
|
|
|
|
|
|
<!-- banner 部分 --> |
|
|
|
|
|
<swiper class="swiper " circular indicator-dots autoplay :interval="2000" |
|
|
|
|
|
:duration="500" indicator-active-color="#00a0ff" > |
|
|
|
|
|
<swiper-item v-for="(bannerItem,index) in bannerList" class="ant-title" :key="index" @click="toItem(index)"> |
|
|
|
|
|
<view class=""> |
|
|
|
|
|
<image :src="bannerItem.image" mode=""></image> |
|
|
|
|
|
</view> |
|
|
|
|
|
</swiper-item> |
|
|
|
|
|
</swiper> |
|
|
|
|
|
<!-- <image class="ant-banner" mode="scaleToFill" :src="bannerList[3].image" /> --> |
|
|
|
|
|
<!-- <view class=""> |
|
|
<p>一个有温度的家</p> |
|
|
<p>一个有温度的家</p> |
|
|
<p class="ant-font-24">超多房源|等你来挑</p> |
|
|
<p class="ant-font-24">超多房源|等你来挑</p> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="ant-float"> |
|
|
<view class="ant-float"> |
|
|
<view class="ant-flex-line"> |
|
|
<view class="ant-flex-line"> |
|
|
<view class="ant-select">江华</view> |
|
|
|
|
|
|
|
|
<view class="ant-select">江华</view> |
|
|
<!-- <input class="ant-input" value="" placeholder="试试输入你想住的地点"/> --> |
|
|
<!-- <input class="ant-input" value="" placeholder="试试输入你想住的地点"/> --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="ant-menu-card"> |
|
|
|
|
|
|
|
|
<view class="ant-menu-card"> |
|
|
<view class="ant-flex-line"> |
|
|
<view class="ant-flex-line"> |
|
|
<view class="ant-icon-menu"> |
|
|
<view class="ant-icon-menu"> |
|
|
<view class="ant-icon"> |
|
|
<view class="ant-icon"> |
|
@ -40,86 +49,87 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="ant-text">转租</view> |
|
|
<view class="ant-text">转租</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-content"> |
|
|
<view class="ant-content"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-content-page"> |
|
|
<view class="ant-content-page"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-flex-line"> |
|
|
<view class="ant-flex-line"> |
|
|
<view class="ant-page-title">好房源</view> |
|
|
<view class="ant-page-title">好房源</view> |
|
|
<view class="ant-page-span">平台甄选</view> |
|
|
<view class="ant-page-span">平台甄选</view> |
|
|
<view class="ant-page-span">品质保障</view> |
|
|
<view class="ant-page-span">品质保障</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-flex-line scroll-view_H_x"> |
|
|
<view class="ant-flex-line scroll-view_H_x"> |
|
|
<scroll-view class="scroll-view_H" scroll-x="true" lower-threshold="51" @scrolltolower="scrollTolowerHotList" > |
|
|
|
|
|
|
|
|
<scroll-view class="scroll-view_H" scroll-x="true" lower-threshold="51" |
|
|
|
|
|
@scrolltolower="scrollTolowerHotList"> |
|
|
<view class="ant-page-image-item" v-for="(item,index) in hotList"> |
|
|
<view class="ant-page-image-item" v-for="(item,index) in hotList"> |
|
|
<image class="ant-page-image-item" mode="aspectFill" :src="item.image === null? image:item.image"/> |
|
|
|
|
|
<view class="ant-img-tags"> |
|
|
|
|
|
|
|
|
<image class="ant-page-image-item" mode="aspectFill" |
|
|
|
|
|
:src="item.image ? item.image :image" /> |
|
|
|
|
|
<view class="ant-img-tags"> |
|
|
<!-- <view class="ant-tags-title">{{item.title}}</view> --> |
|
|
<!-- <view class="ant-tags-title">{{item.title}}</view> --> |
|
|
<view class="ant-tags-text">{{item.price}}元起</view> |
|
|
|
|
|
|
|
|
<view class="ant-tags-text">{{item.price}}元起{{item.image? '1':'2'}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-content-page"> |
|
|
<view class="ant-content-page"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-flex-line ant-head-line" @click="test"> |
|
|
<view class="ant-flex-line ant-head-line" @click="test"> |
|
|
<view class="ant-page-title">推荐房源</view> |
|
|
<view class="ant-page-title">推荐房源</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="ant-item-box" v-for="(item,index) in list" > |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="ant-item-box" v-for="(item,index) in list"> |
|
|
<view> |
|
|
<view> |
|
|
<image class="ant-item-image" mode="aspectFill" |
|
|
|
|
|
:src="item.image === null? image:item.image"/> |
|
|
|
|
|
|
|
|
<image class="ant-item-image" mode="aspectFill" :src="item.image? item.image : image" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="ant-item-content"> |
|
|
<view class="ant-item-content"> |
|
|
<view class="ant-item-title">{{item.title}}</view> |
|
|
<view class="ant-item-title">{{item.title}}</view> |
|
|
<view class="ant-item-span">{{item.titleText}}</view> |
|
|
|
|
|
|
|
|
<view class="ant-item-span">{{spliceText(item.titleText,0,39)}}</view> |
|
|
<view class="ant-item-span">{{item.address}}</view> |
|
|
<view class="ant-item-span">{{item.address}}</view> |
|
|
<view class="ant-item-span"><span>{{item.payType}}</span></view> |
|
|
<view class="ant-item-span"><span>{{item.payType}}</span></view> |
|
|
<view class="ant-item-price">{{item.price}} <span>元/月</span></view> |
|
|
<view class="ant-item-price">{{item.price}} <span>元/月</span></view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="content-end"> |
|
|
<view class="content-end"> |
|
|
<view class="line"/> |
|
|
|
|
|
|
|
|
<view class="line" /> |
|
|
<view class="center">湖南瀚海黎明·技术支持</view> |
|
|
<view class="center">湖南瀚海黎明·技术支持</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
export default{ |
|
|
|
|
|
data(){ |
|
|
|
|
|
return{ |
|
|
|
|
|
image:"https://vrlab-image4.ljcdn.com/release/auto3dhd/eba09229a901cb5cba66fda38f281405/screenshot/1657677701_15/pc0_m7ks1AA5Y.jpg?imageMogr2/quality/70/thumbnail/1024x", |
|
|
|
|
|
bannerList:[], |
|
|
|
|
|
addressList:[], |
|
|
|
|
|
classList:[], |
|
|
|
|
|
hotList:[], |
|
|
|
|
|
list:[], |
|
|
|
|
|
lock: true, |
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
image: "https://vrlab-image4.ljcdn.com/release/auto3dhd/eba09229a901cb5cba66fda38f281405/screenshot/1657677701_15/pc0_m7ks1AA5Y.jpg", |
|
|
|
|
|
bannerList: [], |
|
|
|
|
|
addressList: [], |
|
|
|
|
|
classList: [], |
|
|
|
|
|
hotList: [], |
|
|
|
|
|
list: [], |
|
|
|
|
|
lock: true, |
|
|
size: 20, |
|
|
size: 20, |
|
|
page: 1, |
|
|
page: 1, |
|
|
total: null, |
|
|
total: null, |
|
|
is_pull: 1, // 1是下拉刷新 2是上拉加载 |
|
|
is_pull: 1, // 1是下拉刷新 2是上拉加载 |
|
|
scrollPage: 1, //横向滚动 |
|
|
scrollPage: 1, //横向滚动 |
|
|
scrollSize:20, |
|
|
|
|
|
scrollTotal:null, |
|
|
|
|
|
|
|
|
scrollSize: 20, |
|
|
|
|
|
scrollTotal: null, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
@ -141,27 +151,29 @@ |
|
|
const size = this.size; |
|
|
const size = this.size; |
|
|
const total = this.total; |
|
|
const total = this.total; |
|
|
// 写下限制重复发 以及最后一页 |
|
|
// 写下限制重复发 以及最后一页 |
|
|
if(page * size > total) { |
|
|
|
|
|
|
|
|
if (page * size > total) { |
|
|
this.$functions.showToast('没有更多了') |
|
|
this.$functions.showToast('没有更多了') |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
this.getHouseListPage() |
|
|
this.getHouseListPage() |
|
|
}, |
|
|
}, |
|
|
// 好房源 向右加载 |
|
|
// 好房源 向右加载 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 隐藏微信h5的标题栏 |
|
|
// 隐藏微信h5的标题栏 |
|
|
onReady() { |
|
|
onReady() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
toItem(index){ |
|
|
|
|
|
console.log(index) |
|
|
|
|
|
}, |
|
|
//获取轮播图 |
|
|
//获取轮播图 |
|
|
getBannerList(){ |
|
|
|
|
|
|
|
|
getBannerList() { |
|
|
// this.getBannerList() |
|
|
// this.getBannerList() |
|
|
this.$api.getBannerList().then(res => { |
|
|
this.$api.getBannerList().then(res => { |
|
|
this.bannerList = res.result; |
|
|
|
|
|
|
|
|
this.bannerList = res.result; |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err,"错误信息") |
|
|
|
|
|
|
|
|
console.log(err, "错误信息") |
|
|
}); |
|
|
}); |
|
|
// this.$request('/job-dev/house/applet/banner',{},'GET', (res) => { |
|
|
// this.$request('/job-dev/house/applet/banner',{},'GET', (res) => { |
|
|
// this.bannerList = res; |
|
|
// this.bannerList = res; |
|
@ -170,11 +182,11 @@ |
|
|
// }) |
|
|
// }) |
|
|
}, |
|
|
}, |
|
|
//获取地区 |
|
|
//获取地区 |
|
|
getAddressList(){ |
|
|
|
|
|
|
|
|
getAddressList() { |
|
|
this.$api.getAddressList().then(res => { |
|
|
this.$api.getAddressList().then(res => { |
|
|
this.addressList = res.result; |
|
|
|
|
|
|
|
|
this.addressList = res.result; |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err,"错误信息") |
|
|
|
|
|
|
|
|
console.log(err, "错误信息") |
|
|
}); |
|
|
}); |
|
|
// this.$request('/job-dev/house/applet/indexListPage',{},'GET', (res) => { |
|
|
// this.$request('/job-dev/house/applet/indexListPage',{},'GET', (res) => { |
|
|
// this.addressList = res.records; |
|
|
// this.addressList = res.records; |
|
@ -182,11 +194,11 @@ |
|
|
// }) |
|
|
// }) |
|
|
}, |
|
|
}, |
|
|
//获取分类 |
|
|
//获取分类 |
|
|
getClassList(){ |
|
|
|
|
|
|
|
|
getClassList() { |
|
|
this.$api.getClassList().then(res => { |
|
|
this.$api.getClassList().then(res => { |
|
|
this.classList = res.result; |
|
|
|
|
|
|
|
|
this.classList = res.result; |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err,"错误信息") |
|
|
|
|
|
|
|
|
console.log(err, "错误信息") |
|
|
}); |
|
|
}); |
|
|
// this.$request('/job-dev/house/applet/indexClass',{},'GET', (res) => { |
|
|
// this.$request('/job-dev/house/applet/indexClass',{},'GET', (res) => { |
|
|
// this.classList = res.records; |
|
|
// this.classList = res.records; |
|
@ -194,12 +206,12 @@ |
|
|
// }) |
|
|
// }) |
|
|
}, |
|
|
}, |
|
|
// 向右滚动加载好房源 |
|
|
// 向右滚动加载好房源 |
|
|
scrollTolowerHotList () { |
|
|
|
|
|
|
|
|
scrollTolowerHotList() { |
|
|
// 是否已经是最后 |
|
|
// 是否已经是最后 |
|
|
const scrollPage = this.scrollPage; |
|
|
const scrollPage = this.scrollPage; |
|
|
const scrollSize = this.scrollSize; |
|
|
const scrollSize = this.scrollSize; |
|
|
const scrollTotal = this.scrollTotal; |
|
|
const scrollTotal = this.scrollTotal; |
|
|
if(scrollPage* scrollSize > scrollTotal) { |
|
|
|
|
|
|
|
|
if (scrollPage * scrollSize > scrollTotal) { |
|
|
this.$functions.showToast('没有更多了'); |
|
|
this.$functions.showToast('没有更多了'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -207,99 +219,109 @@ |
|
|
this.getHotList(); |
|
|
this.getHotList(); |
|
|
}, |
|
|
}, |
|
|
//获取好房源 |
|
|
//获取好房源 |
|
|
getHotList(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getHotList() { |
|
|
|
|
|
|
|
|
this.$api.getHotList().then(res => { |
|
|
this.$api.getHotList().then(res => { |
|
|
if(this.scrollTotal !== null){ |
|
|
|
|
|
this.scrollPage+=1; |
|
|
|
|
|
|
|
|
if (this.scrollTotal !== null) { |
|
|
|
|
|
this.scrollPage += 1; |
|
|
const hotList = this.hotList; |
|
|
const hotList = this.hotList; |
|
|
this.hotList = hotList.concat(res.result.records); |
|
|
this.hotList = hotList.concat(res.result.records); |
|
|
this.$functions.hideLoading(); |
|
|
this.$functions.hideLoading(); |
|
|
}else if(this.scrollTotal === null) { |
|
|
|
|
|
|
|
|
} else if (this.scrollTotal === null) { |
|
|
this.scrollSize = res.result.size; |
|
|
this.scrollSize = res.result.size; |
|
|
this.scrollTotal = res.result.total; |
|
|
this.scrollTotal = res.result.total; |
|
|
this.hotList = res.result.records; |
|
|
this.hotList = res.result.records; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err,"错误信息") |
|
|
|
|
|
|
|
|
console.log(err, "错误信息") |
|
|
}); |
|
|
}); |
|
|
// this.$request('/job-dev/house/applet/indexHotList',{},'GET', (res) => { |
|
|
// this.$request('/job-dev/house/applet/indexHotList',{},'GET', (res) => { |
|
|
// this.hotList = res.records; |
|
|
// this.hotList = res.records; |
|
|
// console.log(res.records) |
|
|
// console.log(res.records) |
|
|
// }) |
|
|
// }) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 截断字 |
|
|
|
|
|
spliceText(text,start_s,length_s) { |
|
|
|
|
|
const starts = start_s || 0; |
|
|
|
|
|
const lengths = length_s || 10; |
|
|
|
|
|
if(text.length < lengths){ |
|
|
|
|
|
return text; |
|
|
|
|
|
}else { |
|
|
|
|
|
return text.slice(starts,lengths) + "..."; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
//请求接口获得后台列表数据信息 = 推荐房源 |
|
|
//请求接口获得后台列表数据信息 = 推荐房源 |
|
|
getHouseListPage() { |
|
|
getHouseListPage() { |
|
|
// 区分上拉加载和下拉刷新 is_pull 下拉 1 上拉 2 |
|
|
// 区分上拉加载和下拉刷新 is_pull 下拉 1 上拉 2 |
|
|
const is_pull = this.is_pull; |
|
|
const is_pull = this.is_pull; |
|
|
this.$functions.showLoading(); |
|
|
this.$functions.showLoading(); |
|
|
this.$api.getHouseListPage().then(res => { |
|
|
this.$api.getHouseListPage().then(res => { |
|
|
// this.list = res.result; |
|
|
|
|
|
if(this.page === 1 || this.total == null || is_pull === 1) { |
|
|
|
|
|
this.total = res.result.total; |
|
|
|
|
|
this.size = res.result.size; |
|
|
|
|
|
} |
|
|
|
|
|
console.log(is_pull) |
|
|
|
|
|
if(is_pull === 1) { |
|
|
|
|
|
// 下拉 |
|
|
|
|
|
console.log(123132) |
|
|
|
|
|
this.page = 1; |
|
|
|
|
|
this.list = res.result.records; |
|
|
|
|
|
}else { |
|
|
|
|
|
// 加载 |
|
|
|
|
|
this.page +=1; |
|
|
|
|
|
this.list = this.list.concat(res.result.records); |
|
|
|
|
|
} |
|
|
|
|
|
this.$functions.hideLoading(); |
|
|
|
|
|
|
|
|
// this.list = res.result; |
|
|
|
|
|
if (this.page === 1 || this.total == null || is_pull === 1) { |
|
|
|
|
|
this.total = res.result.total; |
|
|
|
|
|
this.size = res.result.size; |
|
|
|
|
|
} |
|
|
|
|
|
console.log(is_pull) |
|
|
|
|
|
if (is_pull === 1) { |
|
|
|
|
|
// 下拉 |
|
|
|
|
|
console.log(123132) |
|
|
|
|
|
this.page = 1; |
|
|
|
|
|
this.list = res.result.records; |
|
|
|
|
|
// 停止下拉 |
|
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
|
} else { |
|
|
|
|
|
// 加载 |
|
|
|
|
|
this.page += 1; |
|
|
|
|
|
this.list = this.list.concat(res.result.records); |
|
|
|
|
|
} |
|
|
|
|
|
this.$functions.hideLoading(); |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
this.$functions.hideLoading(); |
|
|
this.$functions.hideLoading(); |
|
|
console.log(err,"错误信息") |
|
|
|
|
|
|
|
|
console.log(err, "错误信息") |
|
|
}); |
|
|
}); |
|
|
// this.$request('/job-dev/house/applet/indexListPage',{},'GET', (res) => { |
|
|
// this.$request('/job-dev/house/applet/indexListPage',{},'GET', (res) => { |
|
|
// this.list = res.records; |
|
|
// this.list = res.records; |
|
|
// console.log(res.records) |
|
|
// console.log(res.records) |
|
|
// }) |
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 下拉刷新 首页推荐房源分页下拉加载,上拉刷新。如果加载完了提示 没有更多了 |
|
|
// 下拉刷新 首页推荐房源分页下拉加载,上拉刷新。如果加载完了提示 没有更多了 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 上拉加载 |
|
|
// 上拉加载 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
<style lang="scss"> |
|
|
|
|
|
|
|
|
.container{ |
|
|
|
|
|
|
|
|
.container { |
|
|
background-color: #FFF !important; |
|
|
background-color: #FFF !important; |
|
|
position: relative; |
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-float{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-float { |
|
|
position: fixed; |
|
|
position: fixed; |
|
|
top: 60rpx; |
|
|
top: 60rpx; |
|
|
left: 24rpx; |
|
|
left: 24rpx; |
|
|
z-index: -2; |
|
|
z-index: -2; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-select{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-select { |
|
|
width: 120rpx; |
|
|
width: 120rpx; |
|
|
padding: 10rpx 24rpx; |
|
|
padding: 10rpx 24rpx; |
|
|
color: #fff; |
|
|
color: #fff; |
|
|
font-weight: bolder; |
|
|
font-weight: bolder; |
|
|
position: relative; |
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
.ant-select::after{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-select::after { |
|
|
content: ""; |
|
|
content: ""; |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: 8rpx; |
|
|
top: 8rpx; |
|
@ -310,54 +332,63 @@ |
|
|
border-right: 2rpx solid #FFF; |
|
|
border-right: 2rpx solid #FFF; |
|
|
transform: rotate(45deg); |
|
|
transform: rotate(45deg); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-input{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-input { |
|
|
height: 48rpx; |
|
|
height: 48rpx; |
|
|
min-width: 460rpx; |
|
|
min-width: 460rpx; |
|
|
line-height: 48rpx; |
|
|
line-height: 48rpx; |
|
|
background: rgba(255, 255, 255, .4); |
|
|
background: rgba(255, 255, 255, .4); |
|
|
border-radius: 8rpx; |
|
|
border-radius: 8rpx; |
|
|
padding: 6rpx 24rpx; |
|
|
padding: 6rpx 24rpx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
color: #333; |
|
|
color: #333; |
|
|
font-size: 20rpx; |
|
|
font-size: 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-input::placeholder{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-input::placeholder { |
|
|
color: #FFF; |
|
|
color: #FFF; |
|
|
font-size: 20rpx; |
|
|
font-size: 20rpx; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-banner-box{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-banner-box { |
|
|
position: fixed; |
|
|
position: fixed; |
|
|
top: 0; |
|
|
top: 0; |
|
|
z-index: -3; |
|
|
z-index: -3; |
|
|
background-color: #FFF; |
|
|
background-color: #FFF; |
|
|
|
|
|
|
|
|
.ant-banner{ |
|
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
.swiper{ |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 500rpx; |
|
|
|
|
|
image{ |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 500rpx; |
|
|
|
|
|
border-bottom-left-radius: 100rpx; |
|
|
|
|
|
border-bottom-right-radius: 100rpx; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
.ant-banner { |
|
|
width: 100vw; |
|
|
width: 100vw; |
|
|
height: 500rpx; |
|
|
height: 500rpx; |
|
|
border-bottom-left-radius: 100rpx; |
|
|
border-bottom-left-radius: 100rpx; |
|
|
border-bottom-right-radius: 100rpx; |
|
|
border-bottom-right-radius: 100rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-title{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-title { |
|
|
color: #FFF; |
|
|
color: #FFF; |
|
|
font-size: 42rpx; |
|
|
font-size: 42rpx; |
|
|
font-weight: bolder; |
|
|
font-weight: bolder; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
|
|
|
|
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: 45%; |
|
|
|
|
|
|
|
|
// top: 45%; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
line-height: 50rpx; |
|
|
line-height: 50rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-menu-card{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-menu-card { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
top: -40rpx; |
|
|
top: -40rpx; |
|
|
z-index: 1; |
|
|
z-index: 1; |
|
@ -368,25 +399,26 @@ |
|
|
min-height: 100rpx; |
|
|
min-height: 100rpx; |
|
|
padding: 24rpx; |
|
|
padding: 24rpx; |
|
|
box-shadow: 10rpx 10rpx 20rpx rgba(134, 136, 136, 0.2); |
|
|
box-shadow: 10rpx 10rpx 20rpx rgba(134, 136, 136, 0.2); |
|
|
|
|
|
|
|
|
.ant-icon-menu{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-icon-menu { |
|
|
width: 150rpx; |
|
|
width: 150rpx; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
|
|
|
|
|
|
.ant-icon{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-icon { |
|
|
width: 80rpx; |
|
|
width: 80rpx; |
|
|
height: 80rpx; |
|
|
height: 80rpx; |
|
|
margin: 8rpx auto; |
|
|
margin: 8rpx auto; |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
|
|
|
|
|
|
// border: 1rpx dashed red; |
|
|
// border: 1rpx dashed red; |
|
|
image{ |
|
|
|
|
|
|
|
|
image { |
|
|
width: 80rpx; |
|
|
width: 80rpx; |
|
|
height: 80rpx; |
|
|
height: 80rpx; |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-text{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-text { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
font-size: 22rpx; |
|
|
font-size: 22rpx; |
|
|
color: #222; |
|
|
color: #222; |
|
@ -396,47 +428,48 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-content{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-content { |
|
|
margin-top: 520rpx; |
|
|
margin-top: 520rpx; |
|
|
padding: 120rpx 24rpx 20rpx; |
|
|
padding: 120rpx 24rpx 20rpx; |
|
|
width: calc(100vw - 48rpx); |
|
|
width: calc(100vw - 48rpx); |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-content-page{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-content-page { |
|
|
border-radius: 16rpx; |
|
|
border-radius: 16rpx; |
|
|
min-height: 100rpx; |
|
|
min-height: 100rpx; |
|
|
padding: 24rpx 0; |
|
|
padding: 24rpx 0; |
|
|
margin-bottom: 24rpx; |
|
|
margin-bottom: 24rpx; |
|
|
|
|
|
|
|
|
.scroll-view_H{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.scroll-view_H { |
|
|
// width: 100%; |
|
|
// width: 100%; |
|
|
white-space: nowrap; |
|
|
white-space: nowrap; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 300rpx; |
|
|
height: 300rpx; |
|
|
} |
|
|
} |
|
|
.ant-page-title{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-page-title { |
|
|
color: #000; |
|
|
color: #000; |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
font-weight: bolder; |
|
|
font-weight: bolder; |
|
|
line-height: 62rpx; |
|
|
line-height: 62rpx; |
|
|
width: 140rpx; |
|
|
width: 140rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-head-line{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-head-line { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
border-bottom: 1rpx solid #ccc; |
|
|
border-bottom: 1rpx solid #ccc; |
|
|
margin-bottom: 20rpx; |
|
|
margin-bottom: 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-page-span{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-page-span { |
|
|
color: #aaa; |
|
|
color: #aaa; |
|
|
font-size: 20rpx; |
|
|
font-size: 20rpx; |
|
|
margin-right: 10rpx; |
|
|
margin-right: 10rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-page-image-item{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-page-image-item { |
|
|
display: inline-block; |
|
|
display: inline-block; |
|
|
border-radius: 4rpx; |
|
|
border-radius: 4rpx; |
|
|
width: 240rpx; |
|
|
width: 240rpx; |
|
@ -444,8 +477,8 @@ |
|
|
margin: 0 10rpx 0 0; |
|
|
margin: 0 10rpx 0 0; |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
.ant-img-tags{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-img-tags { |
|
|
background-color: rgba(255, 255, 255, .8); |
|
|
background-color: rgba(255, 255, 255, .8); |
|
|
width: calc(240rpx - 36rpx); |
|
|
width: calc(240rpx - 36rpx); |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
@ -454,58 +487,58 @@ |
|
|
left: 8rpx; |
|
|
left: 8rpx; |
|
|
padding: 20rpx 10rpx; |
|
|
padding: 20rpx 10rpx; |
|
|
border-radius: 4rpx; |
|
|
border-radius: 4rpx; |
|
|
|
|
|
|
|
|
.ant-tags-title{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-tags-title { |
|
|
line-height: 30rpx; |
|
|
line-height: 30rpx; |
|
|
color: #000; |
|
|
color: #000; |
|
|
font-size: 24rpx; |
|
|
font-size: 24rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-tags-text{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-tags-text { |
|
|
font-size: 18rpx; |
|
|
font-size: 18rpx; |
|
|
color: #888; |
|
|
color: #888; |
|
|
line-height: 40rpx; |
|
|
line-height: 40rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-item-box{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-item-box { |
|
|
display: flex; |
|
|
display: flex; |
|
|
min-height: 80rpx; |
|
|
min-height: 80rpx; |
|
|
margin-bottom: 20rpx; |
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
|
.ant-item-image{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-item-image { |
|
|
width: 200rpx; |
|
|
width: 200rpx; |
|
|
height: 200rpx; |
|
|
height: 200rpx; |
|
|
border-radius: 4rpx; |
|
|
border-radius: 4rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-item-content{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-item-content { |
|
|
color: #888; |
|
|
color: #888; |
|
|
font-size: 28rpx; |
|
|
font-size: 28rpx; |
|
|
line-height: 42rpx; |
|
|
line-height: 42rpx; |
|
|
padding: 0 20rpx; |
|
|
padding: 0 20rpx; |
|
|
|
|
|
|
|
|
.ant-item-title{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-item-title { |
|
|
color: #000; |
|
|
color: #000; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-item-span{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-item-span { |
|
|
color: #888; |
|
|
color: #888; |
|
|
line-height: 40rpx; |
|
|
line-height: 40rpx; |
|
|
font-size: 24rpx; |
|
|
font-size: 24rpx; |
|
|
|
|
|
|
|
|
span{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
span { |
|
|
margin-right: 20rpx; |
|
|
margin-right: 20rpx; |
|
|
font-size: 18rpx; |
|
|
font-size: 18rpx; |
|
|
background-color: #eee; |
|
|
background-color: #eee; |
|
@ -513,14 +546,14 @@ |
|
|
border-radius: 4rpx; |
|
|
border-radius: 4rpx; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.ant-item-price{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.ant-item-price { |
|
|
color: #4996f5; |
|
|
color: #4996f5; |
|
|
line-height: 48rpx; |
|
|
line-height: 48rpx; |
|
|
font-size: 34rpx; |
|
|
font-size: 34rpx; |
|
|
font-weight: bolder; |
|
|
font-weight: bolder; |
|
|
|
|
|
|
|
|
span{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
span { |
|
|
line-height: 42rpx; |
|
|
line-height: 42rpx; |
|
|
font-size: 22rpx; |
|
|
font-size: 22rpx; |
|
|
font-weight: normal; |
|
|
font-weight: normal; |
|
@ -528,13 +561,8 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
</style> |