feat: 新增部分页面静态页面
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<view class="header-wrap" :style="headerStyle">
|
||||
<view class="header-bg"></view>
|
||||
<view class="header-inner">
|
||||
<image class="avatar" :src="userInfo.avatar || defautAvatar"></image>
|
||||
<image class="avatar" :src="userInfo.avatar || defautAvatar" @tap="sheep.$router.go('/pages/user/info')"></image>
|
||||
<view class="user-meta" v-if="userInfo.nickname">
|
||||
<view class="user-name">{{ userInfo.nickname + `(${userInfo.mobile})` }}</view>
|
||||
<view class="user-status" @click="handleStatusToggle">
|
||||
@@ -23,14 +23,15 @@
|
||||
<view class="stats-item">
|
||||
<text class="stats-title">今日预计收入(元)</text>
|
||||
<text class="stats-value"> {{ formatMoney(todayIncome) }} </text>
|
||||
<view class="stats-link" @click="openAccount">
|
||||
<view class="stats-link" @tap="sheep.$router.go('/pages/user/account/index')">
|
||||
<!-- @click="openAccount" -->
|
||||
我的账户 <uni-icons type="right" size="13"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="stats-item">
|
||||
<text class="stats-title">今日完成单量(单)</text>
|
||||
<text class="stats-value"> {{ todayOrders }} </text>
|
||||
<view class="stats-link" @click="openOrders">
|
||||
<view class="stats-link" @tap="sheep.$router.go('/pages/user/order/orderRecord')">
|
||||
订单统计 <uni-icons type="right" size="13"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
@@ -43,11 +44,11 @@
|
||||
<image class="shortcut-icon" src="/static/img/order1.png" mode="aspectFit" />
|
||||
<text class="shortcut-text">考勤排班</text>
|
||||
</view>
|
||||
<view class="shortcut" @click="openSalary">
|
||||
<view class="shortcut" @tap="sheep.$router.go('/pages/user/salary/salaryManage')">
|
||||
<image class="shortcut-icon" src="/static/img/order2.png" mode="aspectFit" />
|
||||
<text class="shortcut-text">薪资助手</text>
|
||||
</view>
|
||||
<view class="shortcut" @click="openSetting">
|
||||
<view class="shortcut" @tap="sheep.$router.go('/pages/public/setting')">
|
||||
<!-- <image class="shortcut-icon" src="/static/img/edit.png" mode="aspectFit" /> -->
|
||||
<view class="shortcut-icon">
|
||||
<uni-icons type="gear" size="43"></uni-icons>
|
||||
@@ -214,7 +215,6 @@
|
||||
|
||||
onPageScroll(() => {});
|
||||
|
||||
// 跳转/交互方法(保留路由调用位置,用户可按需实现)
|
||||
function goBack() {
|
||||
uni.navigateBack();
|
||||
}
|
||||
@@ -224,31 +224,13 @@
|
||||
url: '/pages/public/webview?type=account'
|
||||
});
|
||||
}
|
||||
|
||||
function openOrders() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/order-list'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function openAttendance() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/public/faq'
|
||||
});
|
||||
}
|
||||
|
||||
function openSalary() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/public/richtext'
|
||||
});
|
||||
}
|
||||
|
||||
function openSetting() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/public/setting'
|
||||
});
|
||||
}
|
||||
|
||||
function login() {
|
||||
showAuthModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user