全局样式

This commit is contained in:
2024-03-25 10:12:56 +08:00
parent 0fc183df8c
commit c8d62ffb1f
19 changed files with 147 additions and 82 deletions

View File

@@ -23,7 +23,7 @@
<table>
<thead>
<tr>
<th>单据号</th>
<th class="fontcol1">单据号</th>
<th>状态</th>
<th>总重量</th>
<th>明细数</th>
@@ -41,7 +41,7 @@
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.bill_code === pkId}">
<td>{{e.bill_code}}</td>
<td class="fontcol1">{{e.bill_code}}</td>
<td>{{e.bill_status}}</td>
<td>{{e.total_qty}}</td>
<td>{{e.detail_count}}</td>
@@ -74,8 +74,8 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
// import {twoPdaIvtQuery} from '@/utils/getData2.js'
import {twoPdaIvtQuery} from '@/utils/mork2.js'
import {twoPdaIvtQuery} from '@/utils/getData2.js'
// import {twoPdaIvtQuery} from '@/utils/mork2.js'
export default {
components: {
NavBar,

View File

@@ -23,7 +23,7 @@
<table>
<thead>
<tr>
<th class="fontcol1">木箱号</th>
<th class="fontcol2">木箱号</th>
<th>点位编码</th>
<th>点位名称</th>
<th>重量</th>
@@ -34,7 +34,7 @@
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" @tap="_twoPdaIvtbBoxDtlQuery(e.package_box_sn)">
<td class="fontcol1">{{e.package_box_sn}}</td>
<td class="fontcol2">{{e.package_box_sn}}</td>
<td>{{e.point_code}}</td>
<td>{{e.point_name}}</td>
<td>{{e.box_weight}}</td>

View File

@@ -1,16 +1,25 @@
<template>
<view class="home_wraper">
<view class="zd_container">
<view class="header"><span class="page_name">首页</span></view>
<view class="zd_content">
<view class="header">首页</view>
<view class="userInfo-wrap">
<view class="userInfo">
<text v-if="userName !== ''" class="p1">{{userName}}</text>
<text class="p2">欢迎进入铜箔手持系统</text>
<view class="userInfo_wrap">
<view class="userInfo_content">
<view class="userInfo">
<text v-if="userName !== ''" class="p1">{{userName}}</text>
<text class="p2">欢迎进入铜箔手持系统</text>
</view>
<view class="exit" @tap="Quit">
<view class="icon-exit"></view>
<view class="exit-text">退出</view>
</view>
</view>
<view class="exit" @tap="Quit">
<view class="icon-exit"></view>
<view class="exit-text">退出</view>
</view>
<view class="zd-row relative jcflexstart tabs_wrap">
<view class="zd-col-6 tab_active" :style="{'left': tab === 2 ? '25%' : '0'}">
<view class="tab_line_active"></view>
</view>
<view class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 1}" @tap="changeTab(1)">一期</view>
<view class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 2}" @tap="changeTab(2)">二期</view>
</view>
<view class="zd_home_wrapper">
<view class="menu-wrap">
@@ -22,9 +31,6 @@
</view>
</view>
<view class="sec_menu_wraper" :class="show ? 'popshow' : 'pophide'">
<!-- <view class="cancel">
<view class="iconfont cancel_icon" @tap="show = false"></view>
</view> -->
<view class="line"></view>
<view class="sec_menu_w">
<view class="sec_menu-item" :style="{'background-image': 'url(' + require('../../static/image/menu/' + icon + '.png') + ')'}" v-for="(e, i) in secM" :key="i" @click="toPage2(e)">
@@ -42,11 +48,14 @@
export default {
data() {
return {
userName: '',
userName: 'admin',
menuList: [],
menuList1: [],
menuList2: [],
show: false,
secM: [],
icon: ''
icon: '',
tab: 1
};
},
created () {
@@ -58,7 +67,18 @@
methods: {
async _authority () {
let res = await authority()
this.menuList = [...res.result.sonTree]
this.menuList1 = [...res.result.sonTree1]
this.menuList2 = [...res.result.sonTree2]
this.menuList = [...this.menuList1]
},
changeTab (type) {
if (type === 1) {
this.menuList = [...this.menuList1]
this.tab = 1
} else {
this.menuList = [...this.menuList2]
this.tab = 2
}
},
toPage1 (e) {
if (e.sonTree.length > 0) {
@@ -85,38 +105,35 @@
<style lang="stylus">
@import '../../common/style/mixin.styl';
.home_wraper
_wh(100%, 100%)
overflow: hidden
.zd_content
padding 0 20rpx
height calc(100% - var(--status-bar-height) - 88rpx)
// background linear-gradient(to bottom, #f8e6db 0%, #f6f6f6 30%, #f6f6f6 100%)
margin-top calc(var(--status-bar-height) + 88rpx)
.header
_fj(center)
position fixed
left 0
top 0
padding-top var(--status-bar-height)
z-index 100
_wh(100%, calc(var(--status-bar-height) + 88rpx))
// background-color #f8e6db
_font(36rpx,88rpx,#333,,center)
.userInfo-wrap
_fj()
_wh(100%,160rpx)
z-index 200
padding var(--status-bar-height) 20rpx 0 20rpx
background-color #f6f6f6
.page_name
_font(36rpx, 88rpx, #444,700,center)
.zd_content
padding-top calc(var(--status-bar-height) + 88rpx)
padding-bottom 20rpx
.userInfo_wrap
_wh(100%,173rpx)
padding 0 30rpx
background-color $red
_bis('../../static/image/info_bg.png',auto,100%,right,bottom)
background linear-gradient(to bottom, $red1, $red3)
border-radius 12rpx
margin-bottom 24rpx
margin-bottom 68rpx
.userInfo_content
_fj()
_wh(100%, 100%)
_bis('../../static/image/info_bg.png',auto,100%,right,bottom)
.userInfo
_fj(,flex-start,column)
.p1
_font(32rpx,1,#fff)
_font(34rpx,1,#fff)
padding-bottom 18rpx
.p2
_font(28rpx,1,#fff)
_font(26rpx,1,#fff)
.exit
_fj()
height 48rpx
@@ -127,16 +144,16 @@
_wh(22rpx, 22rpx)
_bis('../../static/image/exit.png',22rpx)
.exit-text
_font(28rpx,48rpx,#fff,,right)
_font(24rpx,48rpx,#fff,,right)
padding-left 10rpx
.zd_home_wrapper
_wh(100%, calc(100% - 208rpx))
width 100%
background-color #fff
border-radius: 12rpx;
border-radius: 0 0 12rpx 12rpx;
padding: 24rpx 14rpx;
margin-bottom: 24rpx;
overflow-y auto
box-shadow 0 4rpx 10rpx 2rpx rgba(0,0,0,.1)
box-shadow 0 4rpx 4rpx 4rpx rgba(180, 182, 186, 0.4)
.menu-wrap
_wh(100%, auto)
_fj(flex-start,flex-start,,wrap)
@@ -229,4 +246,40 @@
background linear-gradient(to right, rgba(83, 191, 194,0.8) 0%, rgba(119, 198, 201,0.8) 100%)
.bgc_7
background linear-gradient(to right, rgba(244, 97, 61,0.8) 0%, rgba(245, 130, 102,0.8) 100%)
.tabs_wrap
border-radius 20rpx 20rpx 0 0
background-color #ecedef
margin-top 40rpx
.tab_item
z-index 1
_font(26rpx, 60rpx, #666,,center)
.tab_active
position absolute
bottom -4rpx
height 90rpx
border-radius 20rpx 20rpx 0 0
background-color #fff
box-shadow -4rpx -4rpx 4rpx rgba(180, 182, 186, 0.4)
// box-shadow -3px -3px 3px rgba(28,31,33,.1)
.tab_item_active
font-size 30rpx
color #000
font-weight 700
.tab_line_active
position absolute
left calc(50% - 30rpx)
bottom 0
_wh(60rpx, 6rpx)
background-color $blue
&:before
position absolute
top -6rpx
left 50%
transform translateX(-50%)
content ''
width: 0;
height: 0;
border-left: 6rpx solid transparent;
border-right: 6rpx solid transparent;
border-bottom: 6rpx solid $blue
</style>

View File

@@ -171,7 +171,7 @@
_font(28rpx, 28rpx,#333)
padding-left: 10rpx
.setup-text
_font(28rpx, 28rpx,$red,,right)
_font(28rpx, 28rpx,$red4,,right)
padding-left 25rpx
.bg
background-color: #fff;
@@ -180,7 +180,7 @@
width 100%
border-radius 46rpx
_font(36rpx,92rpx,#fff,,center)
background-color $red
background linear-gradient(45deg, $red1, $red3)
.zd_content
position: relative
height: 100%