|
@@ -1,14 +1,25 @@
|
|
|
-<script lang="ts" setup>
|
|
|
-import { ref } from 'vue'
|
|
|
-const indexActive = ref(1)
|
|
|
-const carousel = ref()
|
|
|
-// elementui走马灯组件bug:item只有两个时变换的方向有问题
|
|
|
-// fix:多增加一份item,自定义轮播点
|
|
|
-const handlerCarouselChange = (cur:number)=> {
|
|
|
- if(cur === 1 || cur === 3) {
|
|
|
- indexActive.value = 2
|
|
|
- }else {
|
|
|
- indexActive.value = 1
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ middleware: 'user',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ indexActive: 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // elementui走马灯组件bug:item只有两个时变换的方向有问题
|
|
|
+ // fix:多增加一份item,自定义轮播点
|
|
|
+ handlerCarouselChange (cur) {
|
|
|
+ if(cur === 1 || cur === 3) {
|
|
|
+ this.indexActive = 2
|
|
|
+ }else {
|
|
|
+ this.indexActive = 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ openInterface (){
|
|
|
+ this.$store.commit('OPEN_LOGIN', true)
|
|
|
+ this.$store.commit('SET_INTERFACE', 'register')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -242,7 +253,7 @@ const handlerCarouselChange = (cur:number)=> {
|
|
|
<div class="free_signup">
|
|
|
<p>开启17PDF Reader高效办公学习旅程</p>
|
|
|
<span>现在注册即送10张格式转换券!</span>
|
|
|
- <a>立即注册</a>
|
|
|
+ <a class="cursor-pointer" @click="openInterface">立即注册</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|