104 lines
2.5 KiB
Vue
104 lines
2.5 KiB
Vue
<template>
|
||
<view class="content">
|
||
<view class="header">首页</view>
|
||
<view class="userInfo-wrap">
|
||
<view class="userInfo">
|
||
<text class="p1">{{$store.getters.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="wrapper">
|
||
<view class="menu-wrap">
|
||
<view class="menu-item" v-for="(e, i) in menu" :key="i" @tap="toPage(e.url)">{{e.name}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import {handRequest} from '@/utils/api.js'
|
||
export default {
|
||
data() {
|
||
return {
|
||
menu: [{url: '/pages/ProductManage/SboProdProgress', name: '生箔生产进度'}, {url: '/pages/ProductManage/SboProcess', name: '生箔工序'}, {url: '/pages/ProductManage/BakeProcess', name: '烘烤工序'}, {url: '/pages/ProductManage/PointManage', name: '点位管理'}, {url: '/pages/ProductManage/EmptyPipeInStore', name: '空管入库'}, {url: '/pages/ProductManage/ZjCasing', name: '子卷套管'}, {url: '/pages/ProductManage/ZjDelivery', name: '子卷配送'}, {url: '/pages/ProductManage/ZjOutStore', name: '子卷出站'}]
|
||
};
|
||
},
|
||
mounted () {
|
||
// this._handRequest()
|
||
},
|
||
methods: {
|
||
async _handRequest () {
|
||
let res = await handRequest()
|
||
uni.showModal({
|
||
content: res.desc,
|
||
showCancel: false
|
||
})
|
||
},
|
||
toPage (url) {
|
||
uni.redirectTo({
|
||
url: url
|
||
})
|
||
},
|
||
Quit () {
|
||
this.$store.dispatch('delUserInfo')
|
||
uni.redirectTo({
|
||
url: '/pages/login/login'
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="stylus">
|
||
@import '../../common/style/mixin.styl';
|
||
.content
|
||
padding-top 0
|
||
.header
|
||
height 86rpx
|
||
_font(36rpx,86rpx,#333,,center)
|
||
.userInfo-wrap
|
||
_fj()
|
||
_wh(100%,160rpx)
|
||
padding 0 30rpx
|
||
background-color $red
|
||
_bis('../../static/image/info_bg.png',auto,100%,right,bottom)
|
||
border-radius 12rpx
|
||
margin-bottom 20rpx
|
||
.userInfo
|
||
_fj(,flex-start,column)
|
||
.p1
|
||
_font(34rpx,1,#fff)
|
||
padding-bottom 18rpx
|
||
.p2
|
||
_font(26rpx,1,#fff)
|
||
.exit
|
||
_fj()
|
||
height 47rpx
|
||
padding 0 15rpx
|
||
border 1px solid #FF967C
|
||
border-radius 20rpx
|
||
.icon-exit
|
||
_wh(22rpx, 22rpx)
|
||
_bis('../../static/image/exit.png',22rpx)
|
||
.exit-text
|
||
_font(24rpx,47rpx,#fff,,right)
|
||
padding-left 10rpx
|
||
.menu-wrap
|
||
_fj(flex-start,flex-start,,wrap)
|
||
align-content: flex-start
|
||
.menu-item
|
||
_fj(center)
|
||
_wh(30%, 120rpx)
|
||
margin-bottom 40rpx
|
||
border 1px solid #e74f1a
|
||
border-radius 5px
|
||
_font(26rpx, 60rpx,#e74f1a,,center)
|
||
&:nth-child(3n+2)
|
||
margin-left 5%
|
||
margin-right 5%
|
||
</style>
|