hookehuyr

docs(pages): 为多个页面添加文件头注释并更新核销结果页文案

更新核销结果页的"扫码内容"为"预约码"以更准确描述内容
移除线下预约码页面的mock数据相关代码
<!--
* @Date: 2026-01-07 20:41:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-08 13:01:20
* @FilePath: /xyxBooking-weapp/src/pages/offlineBookingCode/index.vue
* @Description: 线下预约码页面
-->
<template>
<view class="offline-booking-code-page">
<view class="header-tip">
......@@ -33,39 +40,14 @@ const toHome = () => {
Taro.reLaunch({ url: '/pages/index/index' });
}
// TODO: Mock Data as per requirement
const getMockData = () => {
return [
{
name: '测试用户1',
id_number: '110101199003078888',
qr_code: 'OFFLINE_MOCK_QR_001',
datetime: '2026-01-08 08:30-10:30',
sort: 0
},
{
name: '测试用户2',
id_number: '110101199205126666',
qr_code: 'OFFLINE_MOCK_QR_002',
datetime: '2026-01-08 08:30-10:30',
sort: 0
}
];
}
onMounted(() => {
try {
const cachedData = Taro.getStorageSync('OFFLINE_QR_DATA');
if (cachedData && cachedData.length > 0) {
qrList.value = cachedData;
} else {
// Requirement 4: Mock data if no data
console.log('No cached data found, using mock data');
qrList.value = getMockData();
}
} catch (e) {
console.error('Read storage failed', e);
qrList.value = getMockData();
}
});
......
<!--
* @Date: 2026-01-08 13:01:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-08 13:08:22
* @FilePath: /xyxBooking-weapp/src/pages/verificationResult/index.vue
* @Description: 核销结果页面
-->
<template>
<view class="result-page">
<view class="result-content">
<icon type="success" size="64" color="#A67939"/>
<view class="msg">{{ msg }}</view>
<view class="info" v-if="resultContent">扫码内容: {{ resultContent }}</view>
<view class="info" v-if="resultContent">预约码: {{ resultContent }}</view>
<nut-button color="#A67939" class="back-btn" @tap="continueScan">继续核销</nut-button>
<!-- <nut-button type="default" class="home-btn" @tap="goHome">返回首页</nut-button> -->
</view>
......@@ -13,12 +20,12 @@
<script setup>
import { ref } from 'vue'
import { useRouter } from '@tarojs/taro'
import { useGo } from '@/hooks/useGo'
// import { useGo } from '@/hooks/useGo'
import { verifyTicketAPI } from '@/api/index'
import Taro, { useDidShow } from '@tarojs/taro'
const router = useRouter()
const go = useGo()
// const go = useGo()
const resultContent = ref('')
const msg = ref('核销成功')
......
<!--
* @Date: 2026-01-08 13:01:56
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-08 13:02:27
* @FilePath: /xyxBooking-weapp/src/pages/volunteerLogin/index.vue
* @Description: 义工登录页面
-->
<template>
<view class="login-page">
<view class="logo-section">
......
<!--
* @Date: 2026-01-08 13:02:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-08 13:02:39
* @FilePath: /xyxBooking-weapp/src/pages/weakNetwork/index.vue
* @Description: 弱网络提示页面
-->
<template>
<view class="weak-network-page">
<view class="content">
......