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.
< script >
// app.js
// require('./page-extend');
export default {
data ( ) {
return { } ;
} ,
onLaunch ( ) {
var that = this ;
uni . getSystemInfo ( {
success ( res ) {
//获取屏幕的宽成功
that . globalData . screenWidth = res . screenWidth ;
// #ifdef MP-ALIPAY
that . globalData . screenWidth = res . windowWidth ;
// #endif
that . globalData . screenHeight = res . screenHeight ;
that . globalData . statusBarHeight = res . statusBarHeight ;
}
} ) ;
let userInfo = uni . getStorageSync ( 'userInfo' ) || null ;
if ( userInfo ) {
this . globalData . token = userInfo . token ;
this . globalData . uid = userInfo . uid ;
this . globalData . userInfo = userInfo ;
}
} ,
globalData : {
userInfo : null ,
token : null ,
uid : null
}
} ;
< / script >
< style lang = "scss" >
/* 注意要写在第一行, 同时给style标签加入lang="scss"属性 */
@ import "uview-ui/index.scss" ;
rich - text {
word - break : break - all ;
}
page {
background - color : # fafafa ;
font - family : PingFangSC - Medium , PingFang SC ;
color : # 181818 ;
- webkit - text - size - adjust : none ;
width : 100 % ;
overflow - x : hidden ;
height : 100 % ;
font - size : 32 rpx ;
}
. flex {
display : flex ;
}
. flexA {
display : flex ;
align - items : center ;
justify - content : space - between ;
}
. flexB {
display : flex ;
align - items : center ;
}
. flexC {
display : flex ;
justify - content : space - between ;
}
. jc - sa {
justify - content : space - around ;
}
. jc - sb {
justify - content : space - between ;
}
. jc - c {
justify - content : center ;
}
. fd - col {
flex - direction : column ;
}
. vt - al - md {
vertical - align : middle ;
}
button : : after {
border : none ! important ;
}
/* view{
background-color: #fff;
} */
. container {
height : 100 % ;
display : flex ;
flex - direction : column ;
align - items : center ;
justify - content : space - between ;
padding : 200 rpx 0 ;
box - sizing : border - box ;
}
/* 无内容提示 */
. no _content {
text - align : center ;
}
. no _content . img {
width : 130 px ;
height : 89 px ;
margin : 180 rpx auto 60 rpx auto ;
}
. no _content . warn {
font - size : 16 px ;
color : # 7 b7b7b ;
}
< / style >