feat: 质惠游 H5 一期 —— 门票模块全链路(微信公众号版)

从 xghmall(云闪付版湘工游)迁移民票模块,改造为微信公众号 H5:

- 技术栈沿用 uni-app + Vue2 + uView(含定制版日历组件)
- 登录/支付独立成层(common/auth.js、common/pay.js):
  一期假登录(测试手机号)+ 模拟支付,后端微信接口就绪后只换这两处
- 登录页重写:短信验证码 + 公众号网页授权(code 换用户信息)预留
- 门票列表页为入口页(进页必须登录),加订单悬浮按钮
- 支付成功页接通:查看订单/继续逛逛 + 订单状态轮询
- 详情页定位导航改用 uni.openLocation + 高德网页兜底
- 出行人页:身份证 18 位格式校验,删除死的删除按钮,修正证件类型回显笔误
- 清理云闪付 SDK、支付宝授权、死页面引用等残留

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
xuchao
2026-07-21 00:43:59 +08:00
co-authored by Claude Opus 4.8
commit 4190565eb7
192 changed files with 35664 additions and 0 deletions
+82
View File
@@ -0,0 +1,82 @@
// xuchao: 票种类型映射(门票详情、订单详情用)
const skuType = [{
value: '不限人群',
label: '1'
}, {
value: '成人票',
label: '2'
}, {
value: '双人票',
label: '3'
}, {
value: '亲子票(1大1小)',
label: '4'
}, {
value: '家庭票(2大2小)',
label: '5'
}, {
value: '学生票',
label: '6'
}, {
value: '儿童票',
label: '7'
}, {
value: '老人票',
label: '8'
}, {
value: '单人票',
label: '9'
}, {
value: '三人票',
label: '10'
}, {
value: '家庭票(2大1小)',
label: '11'
}, {
value: '青年票',
label: '12'
}, {
value: '军人票',
label: '13'
}, {
value: '残疾票',
label: '14'
}, {
value: '教师人票',
label: '15'
}, {
value: '大学生票',
label: '16'
}, {
value: '团队票',
label: '17'
}, {
value: '男士票',
label: '18'
}, {
value: '女士票',
label: '19'
}, {
value: '中学生票',
label: '20'
}, {
value: '中/高考考生特惠票',
label: '21'
}, {
value: '情侣票',
label: '22'
}, {
value: '婴幼儿票',
label: '23'
}, {
value: '非中国大陆籍游客专享票',
label: '24'
}]
// xuchao: 票种编号转名称
export const getSkuType = (e) => {
let arr = skuType.filter(item => {
return item.label == e
})
return arr.length ? arr[0].value : ''
}