|
|
@@ -8,7 +8,7 @@
|
|
|
<img src="@mobile/assets/images/guide-1.png" />
|
|
|
</SwipeItem>
|
|
|
<SwipeItem>
|
|
|
- <img src="@mobile/assets/images/guide-2.png" @click="skip(onLoad)" />
|
|
|
+ <img src="@mobile/assets/images/guide-2.png" @click="skip(init())" />
|
|
|
</SwipeItem>
|
|
|
</Swipe>
|
|
|
</div>
|
|
|
@@ -26,7 +26,6 @@ import plus from '@/utils/h5plus'
|
|
|
const { logining, initBaseData } = useLogin()
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
-const onLoad = initBaseData(true) // 初始化数据
|
|
|
const countdown = 1 // 倒计时秒数
|
|
|
|
|
|
const state = reactive({
|
|
|
@@ -36,6 +35,9 @@ const state = reactive({
|
|
|
rate: 100, // 目标进度
|
|
|
})
|
|
|
|
|
|
+const init = () => initBaseData(true) // 初始化数据
|
|
|
+const onLoad = state.showGuide ? Promise.resolve() : init()
|
|
|
+
|
|
|
// 倒计时
|
|
|
const timer = window.setInterval(() => {
|
|
|
state.second--
|
|
|
@@ -82,7 +84,7 @@ const tryInit = () => {
|
|
|
cancelButtonText: '退出',
|
|
|
confirmButtonText: '重试'
|
|
|
}).then(() => {
|
|
|
- skip(initBaseData(true))
|
|
|
+ skip(init())
|
|
|
}).catch(() => {
|
|
|
plus.quit()
|
|
|
})
|