You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
203 lines
4.0 KiB
Vue
203 lines
4.0 KiB
Vue
<!-- // <script>
|
|
//
|
|
// export default {
|
|
// onLaunch: function() {
|
|
// console.log('App Launch')
|
|
// },
|
|
// onShow: function() {
|
|
// console.log('App Show')
|
|
// },
|
|
// onHide: function() {
|
|
// console.log('App Hide')
|
|
// }
|
|
// }
|
|
// </script> -->
|
|
<script setup>
|
|
import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
|
import { onLoad,onLaunch } from "@dcloudio/uni-app"
|
|
import {useStore} from '@/store/index.js'
|
|
const store = useStore()
|
|
onLaunch((e) => {
|
|
console.log('App onLaunch')
|
|
let userInfo = uni.getStorageSync('userInfo')
|
|
let operation_info = uni.getStorageSync('operation_info')
|
|
if(userInfo) { // 已经登录过
|
|
store.userInfo = userInfo
|
|
}
|
|
if(operation_info) {
|
|
store.operation_info = operation_info
|
|
}
|
|
uni.getSystemInfo({
|
|
success:function(res){
|
|
// console.log(res.screenHeight)
|
|
store.systemInfo = res
|
|
// sHeight.value = res.screenHeight
|
|
}
|
|
})
|
|
// 获取测试结果背景图
|
|
store.getBgList()
|
|
})
|
|
</script>
|
|
<style lang="scss">
|
|
/*每个页面公共css */
|
|
.page-bg-gray{
|
|
background: rgb(248, 248, 248);
|
|
}
|
|
.page-box{
|
|
/* height: 100%;
|
|
overflow: scroll; */
|
|
min-height: 100%;
|
|
}
|
|
uni-page-body,page{
|
|
height: 100%;
|
|
}
|
|
page{
|
|
font-size: 28rpx;
|
|
}
|
|
.text-ellipsis-1{ /*超出部分省略号 单行*/
|
|
overflow:hidden;
|
|
text-overflow: ellipsis;
|
|
-webkit-line-clamp: 1;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
/* min-height: 38rpx; */
|
|
}
|
|
.text-ellipsis-2{ /*超出部分省略号 双行*/
|
|
overflow:hidden;
|
|
text-overflow: ellipsis;
|
|
-webkit-line-clamp: 2;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
/* min-height: 38rpx; */
|
|
}
|
|
.icon-custom{
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
}
|
|
.small-text{
|
|
color: gray !important;
|
|
font-size: 24rpx;
|
|
font-weight: 100 !important;
|
|
}
|
|
.bold-text{
|
|
font-weight: 600;
|
|
font-size: 36rpx;
|
|
}
|
|
.margin-line{
|
|
height: 20rpx;
|
|
width: 100%;
|
|
background-color: rgb(248, 248, 248);
|
|
}
|
|
.clearCss{
|
|
opacity: 0 !important;
|
|
}
|
|
.shim{/* 垫片 */
|
|
width: 100%;
|
|
height: 140rpx;
|
|
}
|
|
.big-text{
|
|
font-size: 80rpx;
|
|
/* font-weight: 600; */
|
|
}
|
|
.red-text{
|
|
color: red;
|
|
}
|
|
.line{
|
|
height: 2rpx;
|
|
width: 100%;
|
|
background-color: #e7e7e7;
|
|
}
|
|
.num-show{
|
|
position: absolute;
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
color: white;
|
|
background: #7cc4e8;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
top: -24rpx;
|
|
right: -10rpx;
|
|
border: 2rpx solid white;
|
|
}
|
|
/* 通用卡片样式 */
|
|
.u-card{
|
|
background-color: white;
|
|
.u-card-row:last-child{
|
|
border-bottom: unset;
|
|
}
|
|
.u-card-row{
|
|
padding: 40rpx;
|
|
border-bottom: 2rpx solid #e7e7e7;
|
|
.u-card-row-btn{
|
|
color: #086EC7;
|
|
}
|
|
.u-card-row-top,.u-card-row-content{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.u-card-row-top{
|
|
padding-bottom: 40rpx;
|
|
.u-card-left{
|
|
|
|
}
|
|
.u-card-right{
|
|
.u-card-right-btn{
|
|
color:#7cc4e8
|
|
}
|
|
}
|
|
}
|
|
.u-card-row-content{
|
|
.u-card-left{
|
|
// width: 50%;
|
|
}
|
|
.u-card-right{
|
|
// width: 50%;
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 弹出窗样式
|
|
.popup-content{
|
|
padding-top: 40rpx;
|
|
background-color: white;
|
|
border-radius: 20rpx 20rpx 0 0;
|
|
overflow: scroll;
|
|
}
|
|
.small-btn-css{
|
|
background: #7CC4E8;
|
|
color: white;
|
|
padding: 6rpx 40rpx;
|
|
border-radius: 40rpx;
|
|
font-size: 28rpx;
|
|
white-space: nowrap;
|
|
margin-left: 10rpx;
|
|
position: relative;
|
|
}
|
|
.cancel-btn{
|
|
display: block;
|
|
margin-top: 20rpx;
|
|
.add-btn{
|
|
background: white !important;
|
|
color: black !important;
|
|
border: 2rpx solid #7cc4e8 !important;
|
|
}
|
|
}
|
|
.invalidCss{
|
|
background-color: #767676 !important;
|
|
}
|
|
:deep(){
|
|
.uni-popup__wrapper{
|
|
bottom: -34px;
|
|
}
|
|
.popup-content{
|
|
bottom: -34px;
|
|
padding-bottom: 34px;
|
|
background-color: white;
|
|
}
|
|
}
|
|
</style>
|