优化样式

This commit is contained in:
anhaogxs
2021-04-23 09:18:16 +08:00
parent 829daf1f61
commit d48c75fad4
3 changed files with 38 additions and 177 deletions

View File

@ -1,7 +1,7 @@
<template>
<view class="lottie-bg">
<view id="lottie">
<image src="@/static/live-logo.gif" rel="preload" mode="widthFix" style="width: 100%;" />
<image src="@/static/live-logo.gif" rel="preload" mode="widthFix" style="width: 100%" />
</view>
</view>
</template>
@ -61,11 +61,11 @@ export default {
console.log('loading home')
this.changeAuthorization(false)
let redirect = cookie.get('redirect').replace(/\ /g, '')
cookie.remove('redirect')
if (redirect && redirect.indexOf('/pages') != -1) {
this.$yrouter.replace({
path: '/pages' + redirect.split('/pages')[1],
})
cookie.remove('redirect')
} else {
this.$yrouter.switchTab({
path: '/pages/home/index',