|
@ -3,35 +3,40 @@ |
|
|
<view class="heritagePath"> |
|
|
<view class="heritagePath"> |
|
|
<navbar title="遗产路径" leftClick @leftClick="$utils.navigateBack" /> |
|
|
<navbar title="遗产路径" leftClick @leftClick="$utils.navigateBack" /> |
|
|
<view class="heritagePath-img"> |
|
|
<view class="heritagePath-img"> |
|
|
<image src="../static/situation/four.png" mode="aspectFill"> |
|
|
|
|
|
|
|
|
<!-- <image src="../static/situation/four.png" mode="aspectFill"> --> |
|
|
|
|
|
<uv-swiper |
|
|
|
|
|
:list="banner.path" |
|
|
|
|
|
indicator |
|
|
|
|
|
height="420rpx" |
|
|
|
|
|
keyName="imageContent"></uv-swiper> |
|
|
</view> |
|
|
</view> |
|
|
<view class="heritagePath-button"> |
|
|
<view class="heritagePath-button"> |
|
|
<view @click="isShow = 0" :class="{ fontColor:isShow == 0}">路径定制</view> |
|
|
|
|
|
<view @click="isShow = 1" :class="{ fontColor:isShow == 1}">推荐路径</view> |
|
|
|
|
|
|
|
|
<view @click="setPath(1)" :class="{ fontColor: queryParams.isPay == 1}">路径定制</view> |
|
|
|
|
|
<view @click="setPath(0)" :class="{ fontColor: queryParams.isPay == 0}">推荐路径</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="heritagePath-card" v-for="(item,index) in 10" |
|
|
|
|
|
@click="$utils.navigateTo('/pages_order/service/StudyAndPathDetail?type=1&id=' + item.id)" |
|
|
|
|
|
|
|
|
<view class="heritagePath-card" v-for="(item,index) in list" |
|
|
|
|
|
@click="$utils.navigateTo('/pages_order/service/StudyAndPathDetail?type=0&id=' + item.id)" |
|
|
:key="index"> |
|
|
:key="index"> |
|
|
<view class="heritagePath-card-box"> |
|
|
<view class="heritagePath-card-box"> |
|
|
<view class="heritagePath-card-pic"> |
|
|
<view class="heritagePath-card-pic"> |
|
|
<view class="heritagePath-card-img"> |
|
|
<view class="heritagePath-card-img"> |
|
|
<image src="../static/situation/four.png" mode="aspectFill" /> |
|
|
|
|
|
|
|
|
<image :src="item.amusementImage[0]" mode="aspectFill" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="heritagePath-card-imgs"> |
|
|
|
|
|
|
|
|
<view class="heritagePath-card-imgs"v-if="item.amusementImage[1]"> |
|
|
<view> |
|
|
<view> |
|
|
<image src="../static/situation/four.png" mode="aspectFill" /> |
|
|
|
|
|
|
|
|
<image :src="item.amusementImage[1]" mode="aspectFill" /> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
|
|
|
<image src="../static/situation/four.png" mode="aspectFill" /> |
|
|
|
|
|
|
|
|
<view v-if="item.amusementImage[2]"> |
|
|
|
|
|
<image :src="item.amusementImage[2]" mode="aspectFill" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="heritagePath-card-font"> |
|
|
<view class="heritagePath-card-font"> |
|
|
<view class="heritagePath-card-font-one"> |
|
|
<view class="heritagePath-card-font-one"> |
|
|
<view style="font-size: 28rpx; font-weight: 600;">景德镇一日游</view> |
|
|
|
|
|
<view style="font-size: 20rpx; color: #999999;" v-if="isShow == 0">¥300起</view> |
|
|
|
|
|
|
|
|
<view style="font-size: 28rpx; font-weight: 600;">{{ item.amusementTitle }}</view> |
|
|
|
|
|
<view style="font-size: 20rpx; color: #999999;" v-if="item.isPay == '1'">¥{{ item.amusementPrice }}起</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="heritagePath-card-font-button" v-if="isShow == 0">线上预订</view> |
|
|
|
|
|
|
|
|
<view class="heritagePath-card-font-button" v-if="item.isPay == '1'">线上预订</view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="height: 40rpx;" /> |
|
|
<view style="height: 40rpx;" /> |
|
|
</view> |
|
|
</view> |
|
@ -41,14 +46,41 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
|
|
|
import { mapState } from 'vuex' |
|
|
export default { |
|
|
export default { |
|
|
|
|
|
mixins : [mixinsList], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
isShow: 0 |
|
|
|
|
|
|
|
|
isShow: 0, |
|
|
|
|
|
mixinsListApi : 'queryAmusementList', |
|
|
|
|
|
list : [], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed : { |
|
|
|
|
|
...mapState(['banner']), |
|
|
|
|
|
}, |
|
|
|
|
|
onLoad() { |
|
|
|
|
|
this.queryParams.isPay = 1 |
|
|
|
|
|
this.queryParams.amusementType = 0 |
|
|
|
|
|
}, |
|
|
|
|
|
onShow() { |
|
|
|
|
|
this.getData() |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
setPath(i){ |
|
|
|
|
|
this.queryParams.isPay = i |
|
|
|
|
|
this.getData() |
|
|
|
|
|
}, |
|
|
|
|
|
getDataThen(result){ |
|
|
|
|
|
this.list.forEach(n => n.amusementImage = |
|
|
|
|
|
n.amusementImage ? |
|
|
|
|
|
n.amusementImage.split(',') : []) |
|
|
|
|
|
}, |
|
|
|
|
|
// 在发出请求前,返回结果会作为参数,将替换调queryParams |
|
|
|
|
|
beforeGetData(){ |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
@ -56,12 +88,6 @@ |
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
.heritagePath { |
|
|
.heritagePath { |
|
|
.heritagePath-img { |
|
|
.heritagePath-img { |
|
|
height: 400rpx; |
|
|
|
|
|
|
|
|
|
|
|
image { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.heritagePath-button { |
|
|
.heritagePath-button { |
|
@ -105,6 +131,7 @@ |
|
|
height: 320rpx; |
|
|
height: 320rpx; |
|
|
width: 400rpx; |
|
|
width: 400rpx; |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
|
|
|
flex: 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.heritagePath-card-imgs { |
|
|
.heritagePath-card-imgs { |
|
@ -116,6 +143,7 @@ |
|
|
height: 156rpx; |
|
|
height: 156rpx; |
|
|
width: 260rpx; |
|
|
width: 260rpx; |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
|
|
|
flex: 1; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|