从 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>
71 lines
1.6 KiB
Vue
71 lines
1.6 KiB
Vue
<template>
|
|
<view class="u-cell-box">
|
|
<view class="u-cell-title" v-if="title" :style="[titleStyle]">
|
|
{{title}}
|
|
</view>
|
|
<view class="u-cell-item-box" :class="{'u-border-bottom u-border-top': border}">
|
|
<slot />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
/**
|
|
* cellGroup 单元格父组件Group
|
|
* @description cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。搭配u-cell-item
|
|
* @tutorial https://www.uviewui.com/components/cell.html
|
|
* @property {String} title 分组标题
|
|
* @property {Boolean} border 是否显示外边框(默认true)
|
|
* @property {Object} title-style 分组标题的的样式,对象形式,如{'font-size': '24rpx'} 或 {'fontSize': '24rpx'}
|
|
* @example <u-cell-group title="设置喜好">
|
|
*/
|
|
export default {
|
|
name: "u-cell-group",
|
|
props: {
|
|
// 分组标题
|
|
title: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
// 是否显示分组list上下边框
|
|
border: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
// 分组标题的样式,对象形式,注意驼峰属性写法
|
|
// 类似 {'font-size': '24rpx'} 和 {'fontSize': '24rpx'}
|
|
titleStyle: {
|
|
type: Object,
|
|
default () {
|
|
return {};
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
index: 0,
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import "../../libs/css/style.components.scss";
|
|
|
|
.u-cell-box {
|
|
width: 100%;
|
|
}
|
|
|
|
.u-cell-title {
|
|
padding: 30rpx 32rpx 10rpx 32rpx;
|
|
font-size: 30rpx;
|
|
text-align: left;
|
|
color: $u-tips-color;
|
|
}
|
|
|
|
.u-cell-item-box {
|
|
background-color: #FFFFFF;
|
|
flex-direction: row;
|
|
}
|
|
</style>
|