调整
This commit is contained in:
+23
-10
@@ -8,6 +8,7 @@
|
||||
<u-grid-item
|
||||
v-for="(listItem,listIndex) in list"
|
||||
:key="listIndex"
|
||||
@click="navTo(listItem.url)"
|
||||
>
|
||||
<image class="icons" src="/static/image/icon.png" mode=""></image>
|
||||
<text class="grid-text">{{listItem.title}}</text>
|
||||
@@ -31,7 +32,7 @@
|
||||
<view class="title">备货单</view>
|
||||
<u-grid :border="false" col="5" >
|
||||
<u-grid-item
|
||||
v-for="(listItem,listIndex) in list"
|
||||
v-for="(listItem,listIndex) in list2"
|
||||
:key="listIndex"
|
||||
@click="navTo('/pages/stock/stock_list')"
|
||||
>
|
||||
@@ -51,19 +52,21 @@
|
||||
return {
|
||||
list: [
|
||||
{
|
||||
title: '备货单审批'
|
||||
title: '备货单审批',
|
||||
url:''
|
||||
},
|
||||
{
|
||||
title: '备货单审批'
|
||||
title: '借用审批',
|
||||
url:'/pages/approval/borrow_approval'
|
||||
},
|
||||
{
|
||||
title: '备货单审批'
|
||||
},
|
||||
title: '归还审批',
|
||||
url:'/pages/approval/return_approval'
|
||||
}
|
||||
],
|
||||
list2: [
|
||||
{
|
||||
title: '备货单审批'
|
||||
},
|
||||
{
|
||||
title: '备货单审批'
|
||||
title: '备货单'
|
||||
}
|
||||
],
|
||||
bannerList: [],
|
||||
@@ -71,11 +74,21 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
if (!uni.getStorageSync('token')) {}
|
||||
if (uni.getStorageSync('token')) {
|
||||
this.getinfo()
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
methods: {
|
||||
getinfo(){
|
||||
request({
|
||||
url:'common/user/info',
|
||||
method:'get',
|
||||
}).then(res => {
|
||||
this.userinfo=res.data.data.user
|
||||
})
|
||||
},
|
||||
navTo(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
||||
Reference in New Issue
Block a user