|
@@ -4,6 +4,28 @@
|
|
|
<uni-nav-bar :fixed="true" height="180rpx" title="社区中心" color="#FFF" left-icon="home" backgroundColor="rgb(0,0,0,0)" :border="false" @clickLeft="onHome"/>
|
|
|
|
|
|
<view class="community-top">
|
|
|
+ <view class="swiper-item">
|
|
|
+ <swiper
|
|
|
+ indicator-dots="true"
|
|
|
+ autoplay="true"
|
|
|
+ interval="2000"
|
|
|
+ duration="500"
|
|
|
+ >
|
|
|
+ <swiper-item
|
|
|
+ v-for="(item, index) in bannerList"
|
|
|
+ :key="index"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <view class="swiper-img" style="width: 100%">
|
|
|
+ <image
|
|
|
+ :src="item.imageUrl"
|
|
|
+ style="width: 100%; height: 150px"
|
|
|
+ @click="goInfo(item)"
|
|
|
+ ></image>
|
|
|
+ </view>
|
|
|
+ </swiper-item>
|
|
|
+ </swiper>
|
|
|
+ </view>
|
|
|
<view class="section1">
|
|
|
<view class="caption">
|
|
|
<view class="left">正在上演</view>
|
|
@@ -97,6 +119,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ bannerList: [],
|
|
|
topList:[],//顶部剧场活动列表
|
|
|
PerformerList:[],//获取主持人信息列表
|
|
|
queryForm:{
|
|
@@ -193,6 +216,7 @@
|
|
|
}
|
|
|
},
|
|
|
onShow(){
|
|
|
+ this.initBanner();
|
|
|
this.onSearchTop();
|
|
|
this.onSearchPerformer();
|
|
|
|
|
@@ -203,7 +227,13 @@
|
|
|
_this.onSearch();
|
|
|
},
|
|
|
methods:{
|
|
|
-
|
|
|
+ //活动详情页
|
|
|
+ goInfo(item) {
|
|
|
+ console.log(item.other_link);
|
|
|
+ uni.navigateTo({
|
|
|
+ url: item.other_link,
|
|
|
+ });
|
|
|
+ },
|
|
|
initSearchArea(){
|
|
|
let _this=this;
|
|
|
_this.$http.request('zc/searcharea',{}, "", "", hideLoading).then(res => {
|
|
@@ -304,7 +334,27 @@
|
|
|
_this.PerformerList=res.data.dataList;
|
|
|
}).catch(err => {})
|
|
|
},
|
|
|
-
|
|
|
+ //轮播图
|
|
|
+ initBanner() {
|
|
|
+ let _this = this;
|
|
|
+ this.$http
|
|
|
+ .request(
|
|
|
+ "banner/search",
|
|
|
+ {
|
|
|
+ page: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ type: 3,
|
|
|
+ },
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ hideLoading
|
|
|
+ )
|
|
|
+ .then((res) => {
|
|
|
+ console.log("112", res);
|
|
|
+ _this.bannerList = res.data.dataList;
|
|
|
+ })
|
|
|
+ .catch((err) => {});
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|