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.
98 lines
1.9 KiB
98 lines
1.9 KiB
5 months ago
|
<template>
|
||
|
<view class="bg">
|
||
|
<image class="back-icon" src="/static/back.png" @click="goBack()"></image>
|
||
|
|
||
|
<view class="content">
|
||
|
<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>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
headImgs: [],
|
||
|
currentIndex: 0
|
||
|
}
|
||
|
},
|
||
|
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;
|
||
|
}
|
||
|
.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>
|