用户登录流程开发接口对接
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="guide-swiper">
|
||||
<button class="guide-btn" size="default">开启我的易货之旅</button>
|
||||
<view class="guide-swiper" v-if="show">
|
||||
<button class="guide-btn" size="default" @click="openApp">开启我的易货之旅</button>
|
||||
<swiper @change="swiperChange">
|
||||
<swiper-item v-for="(item, index) in swiperArray" :key="index">
|
||||
<view class="swiper-content">
|
||||
@@ -30,6 +30,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
swiperCurrent: 0,
|
||||
swiperArray : [{
|
||||
title : "打造B2B2C",
|
||||
@@ -42,9 +43,28 @@
|
||||
}]
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 检查是否直接进入首页
|
||||
uni.showLoading()
|
||||
let spread = this.$store.getters.getSpread || uni.getStorageSync('spread')
|
||||
setTimeout(()=>{
|
||||
uni.hideLoading()
|
||||
if(!spread){
|
||||
this.$Router.pushTab({name: 'Equity'})
|
||||
return
|
||||
}
|
||||
// 此处请求轮播屏数据
|
||||
this.show = true
|
||||
}, 500)
|
||||
},
|
||||
methods:{
|
||||
swiperChange(e){
|
||||
this.swiperCurrent = e.detail.current
|
||||
},
|
||||
// 进入首页
|
||||
openApp(){
|
||||
this.$store.commit('setSpread', false)
|
||||
this.$Router.pushTab({name: 'Equity'})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user