feat: 新增部分页面静态页面
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
<view class="top-bg"></view>
|
||||
<view class="top-inner">
|
||||
<view class="user-info">
|
||||
<image class="user-avatar" :src="driverInfo.avatar || defaultAvatar" mode="cover" />
|
||||
<image class="user-avatar" @tap="sheep.$router.go('/pages/index/user')"
|
||||
:src="driverInfo.avatar || defaultAvatar" mode="cover" />
|
||||
<view class="user-meta">
|
||||
<!-- <text class="user-name">{{ driverInfo.nickName || '骑手姓名' }}</text> -->
|
||||
<text class="user-status" @click="toggleOnline">{{ driverInfo.isOnline ? '在线中' : '离线' }}</text>
|
||||
@@ -25,6 +26,9 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 输入用户单编码 弹窗 -->
|
||||
<order-code-popup :show="orderPopupShow" @close="orderPopupShow = false" @confirm="onConfirmCode" />
|
||||
|
||||
<!-- 订单列表 -->
|
||||
<scroll-view class="order-list" scroll-y="true" :style="{ height: listHeight + 'px' }">
|
||||
<view v-for="order in filteredOrders" :key="order.id" class="order-card">
|
||||
@@ -89,6 +93,7 @@
|
||||
import { ref, computed, onMounted } from 'vue';
|
||||
import sheep from '@/sheep';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
import OrderCodePopup from './components/order-code-popup.vue';
|
||||
|
||||
// 驿站/骑手信息(从 store 获取或 mock)
|
||||
const driverInfo = ref({
|
||||
@@ -211,10 +216,18 @@ function scanQr() {
|
||||
});
|
||||
}
|
||||
|
||||
const orderPopupShow = ref(false);
|
||||
|
||||
function openManualInput() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/user' // 示例跳转,按需替换为真实手动输入页面
|
||||
});
|
||||
// 打开手动输入弹窗(使用 uView Plus 的 up-popup)
|
||||
orderPopupShow.value = true;
|
||||
}
|
||||
|
||||
function onConfirmCode(payload) {
|
||||
// payload 包含 code, result, remark, images
|
||||
// 这里简单展示提示,实际应调用后端或触发下一步逻辑
|
||||
console.log('confirmed code:', payload);
|
||||
sheep.$helper && sheep.$helper.toast && sheep.$helper.toast('交接已确认');
|
||||
}
|
||||
|
||||
const headerStyle = ref({});
|
||||
|
||||
Reference in New Issue
Block a user