宜兴数字资产-善卷洞
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.
 
 
 
 

133 lines
2.9 KiB

<template>
<view class="bg">
<image class="back-icon" src="/static/back.png" @click="goBack()"></image>
<!-- 善纹 -->
<view class="content" v-if="type==1">
<image class="head-title" src="/static/3/head_title.png">
<view class="line"></view>
<view class="head-img-container">
<image :class="['head-img','head-img-'+i]" @click="changeCurrent(i)"
v-for="(item,i) in 7" :key="i" :src="currentIndex==i?`/static/3/head_${i}_active.png`:`/static/3/head_${i}.png`" >
</view>
<view class="line" style="background: #FCF1E6;margin-top: 24rpx;"></view>
<image style="width: 100%;margin-top: 32rpx;" :src="`/static/3/${currentIndex}.png`" mode="widthFix"></image>
<image style="width: 100%;margin-top: 32rpx;" :src="`/static/3/${currentIndex}_content.png`" mode="widthFix"></image>
<image class="concat" src="/static/3/concat.png" @click="concat()"></image>
<view style="height: 450rpx;width: 100%;"></view>
</view>
<!-- 善温 -->
<view class="content" v-if="type==2">
<image class="head-title" src="/static/3/head_title_2.png" >
<view class="line"></view>
<image style="width: 100%;margin-top: 32rpx;" :src="`/static/3/second.png`" mode="widthFix"></image>
<image style="width: 100%;margin-top: 32rpx;" :src="`/static/3/second_content.png`" mode="widthFix"></image>
</view>
<!-- 善声 -->
<view class="content" v-if="type==3">
<image class="head-title" src="/static/3/head_title_3.png" >
<view class="line"></view>
<image style="width: 100%;margin-top: 32rpx;" :src="`/static/3/third.png`" mode="widthFix"></image>
<image style="width: 100%;margin-top: 32rpx;" :src="`/static/3/third_content.png`" mode="widthFix"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
headImgs: [],
currentIndex: 0,
type :0,
}
},
onLoad(options) {
this.type = 0
if (options.type) {
this.type = options.type
} else {
this.type = 1
}
},
methods: {
changeCurrent (i) {
this.currentIndex = i
}
},
}
</script>
<style lang="scss" scoped>
*{
box-sizing: border-box;
}
.bg{
width: 100%;
min-height: 100vh;
position: relative;
background: black;
}
.head-title{
width: 329rpx;
height: 74rpx;
display: block;margin: 0 auto;
}
.content{
width: 100%;
padding: 60rpx;
}
.line{
width: 100%;
height: 2rpx;
background: #FCF1E6;
margin: 32rpx 0;
}
.head-img-container{
display: flex;
justify-content:space-between;
flex-wrap: wrap;
padding: 0 10rpx;
.head-img{
width: 106rpx;
height: 106rpx;
margin: 0 20rpx;
margin-bottom: 32rpx;
}
.head-img.head-img-0{
margin-left: 0;
}
.head-img.head-img-3{
margin-right: 0;
}
.head-img.head-img-4{
margin-left: 76rpx;
}
.head-img.head-img-6{
margin-right: 76rpx;
}
}
.concat{
width: 569rpx;
height: 74rpx;
display: block;
margin: 84rpx auto 0;
}
</style>