景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

220 lines
4.6 KiB

<template>
<view class="page">
<view class="banner">
<uv-swiper
:list="bannerList"
indicator
height="620rpx"
indicatorStyle="bottom: 100rpx;"
keyName="url"></uv-swiper>
<view class="top">
<view class="search">
<uv-search
placeholder="请输入搜索服务"
:showAction="false"
search-icon-size="40rpx"
v-model="keyword"></uv-search>
</view>
<view class="title">
<image src="/static/image/home/title.png" mode=""></image>
</view>
</view>
</view>
<view class="content">
<view class="grid">
<uv-grid :border="false"
:col="5">
<uv-grid-item
v-for="(item,index) in baseList"
@click="$utils.navigateTo(item.path)"
:key="index">
<image class="grid-icon" :src="item.icon" mode="aspectFill"></image>
<text class="grid-text">{{item.title}}</text>
</uv-grid-item>
</uv-grid>
</view>
<view class="video-title">
视频中的景徳镇
</view>
<videoList ref="videoList"/>
</view>
<PrivacyAgreementPoup/>
<tabber select="0"/>
</view>
</template>
<script>
import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
import videoList from '@/components/list/videoList.vue'
export default {
components : {
PrivacyAgreementPoup,
videoList,
},
data() {
return {
baseList : [
{
icon : '/static/image/home/g1.png',
title : '申遗历程',
path : '/pages_order/service/applyRelic',
},
{
icon : '/static/image/home/g2.png',
title : '遗产概况',
path : '/pages_order/service/situation',
},
{
icon : '/static/image/home/g3.png',
title : '遗产讲述',
path : '/pages_order/service/tellList?type=0',
},
{
icon : '/static/image/home/g4.png',
title : '达人同游',
path : '/pages_order/service/tellList?type=1',
},
{
icon : '/static/image/home/g5.png',
title : '遗产路径',
path : '/pages_order/service/heritagePath',
},
{
icon : '/static/image/home/g6.png',
title : '我要跟拍',
path : '/pages_order/service/following' ,
},
{
icon : '/static/image/home/g7.png',
title : '非遗体验',
path : '/pages_order/service/experience',
},
{
icon : '/static/image/home/g8.png',
title : '无忧服务',
path : '/pages_order/service/carefree',
},
{
icon : '/static/image/home/g9.png',
title : '文创好物',
path : '/pages_order/product/productList',
},
{
icon : '/static/image/home/g10.png',
title : '我要帮助',
path : '',
},
],
bannerList: [
{
url: 'https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img',
},
{
url: 'https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img',
},
{
url: 'https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img',
},
],
productList: [],
keyword : '',
}
},
computed : {
},
onPullDownRefresh(){
this.$refs.videoList.queryVideoList()
this.queryBannerList()
},
onShow() {
this.$refs.videoList.queryVideoList()
this.queryBannerList()
},
//滚动到屏幕底部
onReachBottom() {
this.$refs.videoList.loadMoreData()
},
methods: {
queryBannerList(){
this.$api('queryBannerList', res => {
uni.stopPullDownRefresh()
if(res.code == 200){
this.bannerList = res.result
}
})
},
}
}
</script>
<style scoped lang="scss">
.page{
.banner{
position: relative;
.top{
position: absolute;
top: var(--status-bar-height);
left: 0;
padding-top: 30rpx;
display: flex;
width: 100%;
flex-direction: column;
align-items: center;
.search{
width: 400rpx;
margin-left: -100rpx;
/deep/ .uv-search__content__icon{
padding: 30rpx 0;
}
}
.title{
image{
width: 600rpx;
height: 300rpx;
}
}
}
}
.content{
position: relative;
margin-top: -60rpx;
.grid{
padding-bottom: 30rpx;
background-color: #fff;
border-radius: 60rpx;
box-shadow: 0 0 10rpx 10rpx #00000033;
.grid-icon{
width: 80rpx;
height: 80rpx;
margin-bottom: 10rpx;
margin-top: 30rpx;
}
.grid-text{
font-size: 24rpx;
font-weight: 900;
}
}
.video-title{
padding: 20rpx 30rpx;
background-color: $uni-color;
color: #fff;
font-weight: 900;
font-size: 24rpx;
margin: 10rpx 20rpx;
margin-top: 30rpx;
width: fit-content;
border-radius: 20rpx;
}
}
}
</style>