You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "wrap" >
< image src = "@/static/bg.jpg" class = "bkg" alt = "" / >
< view class = "main" >
< view class = "main-wrap" >
< image src = "@/static/index_logo.png" class = "logo" alt = "" / >
< image src = "@/static/index_words.png" class = "words" alt = "" / >
< / view >
< / view >
< view class = "support" >
技术支撑 : 江苏有线苏州分公司
< / view >
< / view >
< / template >
< script >
import { isNull } from "@/common/util.js"
export default {
data ( ) {
return {
userInfo : { }
}
} ,
onLoad ( ) {
setTimeout ( ( ) => {
this . getUserInfo ( )
} , 2000 )
} ,
methods : {
async getUserInfo ( ) {
const res = await this . $u . api . user ( )
this . $u . vuex ( 'vuex_user' , res ) ;
this . userInfo = res ;
if ( isNull ( res . mobile ) ) {
uni . redirectTo ( {
url : '/pages/login/index'
} )
} else {
uni . redirectTo ( {
url : '/pages/me/me'
} )
}
}
}
}
< / script >
< style scoped lang = "scss" >
. wrap {
width : 100 vw ;
height : 100 vh ;
position : relative ;
font - size : 0 ;
. bkg {
width : 100 vw ;
height : 100 vh ;
position : absolute ;
top : 0 ;
left : 0 ;
}
. main {
width : 100 vw ;
height : 100 vh ;
overflow : scroll ;
position : relative ;
z - index : 9 ;
& - wrap {
position : relative ;
z - index : 8 ;
margin - top : 100 rpx ;
& > image {
margin : 0 auto ;
display : block ;
margin - top : 40 rpx ;
}
. logo {
width : 250 rpx ;
height : 70 rpx ;
margin - left : 40 rpx ;
}
. words {
width : 205 rpx ;
height : 664 rpx ;
margin - top : 200 rpx
}
}
}
. support {
position : absolute ;
bottom : 10 rpx ;
width : 100 % ;
font - size : 24 rpx ;
color : # 888 ;
font - family : '宋体' ;
opacity : 1 ;
text - align : center ;
z - index : 9
}
}
< / style >