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.

128 lines
2.2 KiB

4 years ago
<script>
// app.js
// require('./page-extend');
export default {
data() {
return {};
},
onLaunch() {
var that = this;
uni.getSystemInfo({
success(res) {
//获取屏幕的宽成功
that.globalData.screenWidth = res.screenWidth;
4 years ago
// #ifdef MP-ALIPAY
that.globalData.screenWidth = res.windowWidth;
// #endif
4 years ago
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: 32rpx;
}
.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: 200rpx 0;
box-sizing: border-box;
}
/* 无内容提示 */
.no_content {
text-align: center;
}
.no_content .img {
width: 130px;
height: 89px;
margin: 180rpx auto 60rpx auto;
}
.no_content .warn {
font-size: 16px;
color: #7b7b7b;
}
</style>