登录页样式修改

This commit is contained in:
2024-02-23 18:03:59 +08:00
parent 9cef00a472
commit 9df8b4b10f
22 changed files with 157 additions and 134 deletions

View File

@@ -1,6 +1,10 @@
<template>
<view class="content">
<view class="header">首页</view>
<view class="home_content">
<view class="zd-row header">
<view class="zd-col-8 home_title"></view>
<view class="zd-col-8 home_title">首页</view>
<view class="zd-col-8 home_title">首页</view>
</view>
<view class="userInfo-wrap">
<view class="userInfo">
<text class="p1">{{userName}}</text>
@@ -35,7 +39,7 @@
</template>
<script>
import {authority} from '@/utils/getData2.js'
import {authority, getBillsCount} from '@/utils/getData2.js'
export default {
data() {
return {
@@ -47,12 +51,18 @@
},
created () {
this._authority()
this._getBillsCount()
},
methods: {
async _authority () {
let res = await authority()
this.menuList = [...res.sonTree]
},
async _getBillsCount () {
let res = await getBillsCount()
console.log(res)
},
toPage1 (e) {
if (e.sonTree.length > 0) {
@@ -83,11 +93,19 @@
<style lang="stylus">
@import '../../common/style/mixin.styl';
.home_content
position relative
_wh(100%, 100%)
_bis(,'../../static/images/home_bg.jpg', 100%, 100%,bottom)
.zd_content
padding-top 0
.header
height 42px
_font(16px,42px,#333,,center)
height 120rpx
padding 0 30rpx 50rpx 30rpx
_bis(,'../../static/images/header_bg.png', 100%, 100%,bottom)
.home_title
_font(50rpx,60rpx,#fff,,center)
font-family: YouSheBiaoTiHei;
.userInfo-wrap
_fj()
_wh(calc(100% - 30px),80px)