|
@@ -5,16 +5,18 @@
|
|
|
@swiperight="moveSwiper(0)"
|
|
|
>
|
|
|
<div
|
|
|
- @click="skip(item.id)"
|
|
|
class="row"
|
|
|
:class="{ active: index === imgInd }"
|
|
|
v-for="(item, index) in imgList"
|
|
|
:key="index"
|
|
|
>
|
|
|
<!-- <p>{{ item.name }}</p> -->
|
|
|
- <img
|
|
|
- :src="require(`@/assets/img/Join/${item.id}.png`)" alt=""
|
|
|
- />
|
|
|
+ <div class="dingwei">
|
|
|
+ <div :class="{ activeBox: 0 === imgInd }" @click="skip('1')"></div>
|
|
|
+ <div :class="{ activeBox: 1 === imgInd }" @click="skip('2')"></div>
|
|
|
+ <div :class="{ activeBox: 2 === imgInd }" @click="skip('3')"></div>
|
|
|
+ </div>
|
|
|
+ <img :src="require(`@/assets/img/Join/${item.id}.png`)" alt="" />
|
|
|
</div>
|
|
|
</v-touch>
|
|
|
</template>
|
|
@@ -73,7 +75,7 @@ export default {
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
.JoinVo {
|
|
|
- touch-action: pan-y!important;
|
|
|
+ touch-action: pan-y !important;
|
|
|
padding: 20px 0 40px;
|
|
|
background-color: #f7f6f3;
|
|
|
.row {
|
|
@@ -83,9 +85,21 @@ export default {
|
|
|
width: 100%;
|
|
|
opacity: 0;
|
|
|
height: 0;
|
|
|
- &>img{
|
|
|
+ & > img {
|
|
|
width: 100%;
|
|
|
}
|
|
|
+ .dingwei {
|
|
|
+ position: absolute;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ & > div {
|
|
|
+ width: 30%;
|
|
|
+ }
|
|
|
+ .activeBox{
|
|
|
+ width: 40%;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.active {
|
|
|
opacity: 1;
|