hookehuyr

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

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