|
|
@@ -112,7 +112,7 @@
|
|
|
>
|
|
|
<view
|
|
|
class="park-box"
|
|
|
- v-for="(item) in parkList"
|
|
|
+ v-for="item in parkList"
|
|
|
:key="item.id"
|
|
|
@click="goParkDetailFn(item.id)"
|
|
|
>
|
|
|
@@ -206,12 +206,12 @@
|
|
|
class="notice-content-box"
|
|
|
v-for="(item, index) in attractList"
|
|
|
:key="index"
|
|
|
- style="justify-content: start;position: relative;"
|
|
|
- @click="goAttractDeatil(item.id,item.time_type)"
|
|
|
+ style="justify-content: start; position: relative"
|
|
|
+ @click="goAttractDeatil(item.id, item.time_type)"
|
|
|
>
|
|
|
- <view class="maskModal" v-if="item.time_type == 0">
|
|
|
- <text>敬请期待</text>
|
|
|
- </view>
|
|
|
+ <view class="maskModal" v-if="item.time_type == 0">
|
|
|
+ <text>敬请期待</text>
|
|
|
+ </view>
|
|
|
<image
|
|
|
:src="item.pic_url"
|
|
|
mode="aspectFill"
|
|
|
@@ -446,13 +446,13 @@ export default {
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.hideTabBar({});
|
|
|
- this.getActive();
|
|
|
+ this.getActive();
|
|
|
},
|
|
|
onLoad() {
|
|
|
- uni.showLoading({
|
|
|
- title: "加载中",
|
|
|
- mask: true,
|
|
|
- });
|
|
|
+ uni.showLoading({
|
|
|
+ title: "加载中",
|
|
|
+ mask: true,
|
|
|
+ });
|
|
|
this.getSwiperList();
|
|
|
this.getPark();
|
|
|
this.getNotice();
|
|
|
@@ -639,7 +639,10 @@ export default {
|
|
|
res.data.data.list.forEach((item) => {
|
|
|
item.pic_url = getApp().globalData.shareUrl + item.pic_url;
|
|
|
});
|
|
|
- this.attractList = res.data.data.list;
|
|
|
+ console.log(res.data.data.list);
|
|
|
+ this.attractList = res.data.data.list.filter(
|
|
|
+ (item) => item.show != 0
|
|
|
+ );
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|
|
|
@@ -728,8 +731,8 @@ export default {
|
|
|
url: "/pages/notice/notice_deatil?id=" + id,
|
|
|
});
|
|
|
},
|
|
|
- goAttractDeatil(id,type) {
|
|
|
- if(type == '0')return
|
|
|
+ goAttractDeatil(id, type) {
|
|
|
+ if (type == "0") return;
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/attract/attract_deatil?id=" + id,
|
|
|
});
|
|
|
@@ -826,9 +829,9 @@ export default {
|
|
|
.dot.active {
|
|
|
background: #ff4e54;
|
|
|
}
|
|
|
- .swiper-content {
|
|
|
+/* .swiper-content { */
|
|
|
/* border-radius: 0 0 10% 10%; */
|
|
|
-}
|
|
|
+/* } */
|
|
|
.page-nav-box {
|
|
|
width: 80%;
|
|
|
/* height: 320rpx; */
|
|
|
@@ -893,20 +896,20 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
.maskModal {
|
|
|
- width: 100%;
|
|
|
- position: absolute;
|
|
|
- background-color: rgba(0, 0, 0, 0.4);
|
|
|
- border-radius: 32rpx;
|
|
|
- height: 100%;
|
|
|
- top: 0;
|
|
|
- right: 0;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: #fff;
|
|
|
- font-size: 28rpx;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ background-color: rgba(0, 0, 0, 0.4);
|
|
|
+ border-radius: 32rpx;
|
|
|
+ height: 100%;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
.notice-content-font {
|
|
|
font-size: 26rpx;
|
|
|
color: #0d1937;
|