版本不兼容时可以到浏览器下载安装包
This commit is contained in:
@@ -6,34 +6,15 @@
|
||||
</view>
|
||||
</custom-nav-bar>
|
||||
<view class="entry-list">
|
||||
<view class="entry-item" @click="goReportWork">
|
||||
<image class="entry-icon" src="/static/images/baogong.png" mode="aspectFit" />
|
||||
<text class="entry-text">每日报工</text>
|
||||
<view
|
||||
v-for="item in entryList"
|
||||
:key="item.text"
|
||||
class="entry-item"
|
||||
@click="handleEntryClick(item)"
|
||||
>
|
||||
<image class="entry-icon" :src="item.icon" mode="aspectFit" />
|
||||
<text class="entry-text">{{ item.text }}</text>
|
||||
</view>
|
||||
<view class="entry-item" @click="goConstruction">
|
||||
<image class="entry-icon" src="/static/images/shigong.png" mode="aspectFit" />
|
||||
<text class="entry-text">施工进度</text>
|
||||
</view>
|
||||
<view class="entry-item" @click="goTask">
|
||||
<image class="entry-icon" src="/static/images/task.png" mode="aspectFit"></image>
|
||||
<text class="entry-text">任务中心</text>
|
||||
</view>
|
||||
<view class="entry-item" @click="goSchedule">
|
||||
<image class="entry-icon" src="/static/images/paichan.png" mode="aspectFit"></image>
|
||||
<text class="entry-text">项目排产</text>
|
||||
</view>
|
||||
<view class="entry-item" @click="goExpress">
|
||||
<image class="entry-icon" src="/static/images/express.svg" mode="aspectFit"></image>
|
||||
<text class="entry-text">快递信息</text>
|
||||
</view>
|
||||
<view class="entry-item" @click="goProject">
|
||||
<image class="entry-icon" src="/static/images/project.png" mode="aspectFit"></image>
|
||||
<text class="entry-text">项目中心</text>
|
||||
</view>
|
||||
<view class="entry-item" @click="goStock">
|
||||
<image class="entry-icon" src="/static/images/stock.png" mode="aspectFit"></image>
|
||||
<text class="entry-text">库存盘点</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@@ -53,6 +34,52 @@ export default {
|
||||
// 页面加载时调用getUserProfile
|
||||
this.fetchUserProfile();
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
entryList: [
|
||||
{
|
||||
text: '每日报工',
|
||||
icon: '/static/images/baogong.png',
|
||||
url: '/pages/workbench/reportWork/reportWork',
|
||||
},
|
||||
{
|
||||
text: '施工进度',
|
||||
icon: '/static/images/shigong.png',
|
||||
url: '/pages/workbench/construction/construction',
|
||||
},
|
||||
{
|
||||
text: '任务中心',
|
||||
icon: '/static/images/task.png',
|
||||
url: '/pages/workbench/task/task',
|
||||
},
|
||||
{
|
||||
text: '项目排产',
|
||||
icon: '/static/images/paichan.png',
|
||||
url: '/pages/workbench/reportSchedule/reportSchedule',
|
||||
},
|
||||
{
|
||||
text: '快递信息',
|
||||
icon: '/static/images/express.svg',
|
||||
url: '/pages/workbench/express/express',
|
||||
},
|
||||
{
|
||||
text: '项目中心',
|
||||
icon: '/static/images/project.png',
|
||||
url: '/pages/workbench/project/project',
|
||||
},
|
||||
{
|
||||
text: '库存盘点',
|
||||
icon: '/static/images/stock.png',
|
||||
url: '/pages/workbench/wms/wms',
|
||||
},
|
||||
{
|
||||
text: '线上营销',
|
||||
icon: '/static/images/yingxiao.png',
|
||||
url: '/pages/workbench/sales/sales',
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 获取用户个人信息
|
||||
async fetchUserProfile() {
|
||||
@@ -66,41 +93,11 @@ export default {
|
||||
console.error('获取用户个人信息失败:', error);
|
||||
}
|
||||
},
|
||||
goReportWork() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/reportWork/reportWork'
|
||||
});
|
||||
handleEntryClick(item) {
|
||||
if (item.url) {
|
||||
uni.navigateTo({ url: item.url });
|
||||
}
|
||||
},
|
||||
goConstruction() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/construction/construction'
|
||||
});
|
||||
},
|
||||
goTask() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/task/task'
|
||||
})
|
||||
},
|
||||
goSchedule() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/reportSchedule/reportSchedule'
|
||||
})
|
||||
},
|
||||
goExpress() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/express/express'
|
||||
})
|
||||
},
|
||||
goProject() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/project/project'
|
||||
})
|
||||
},
|
||||
goStock() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/workbench/wms/wms'
|
||||
})
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user