feat(miniapp): align UI with H5 and harden device debugging
五个页面按 h5/css 的 style.css → ui-20261009 → ui-20261012 覆盖顺序逐条重排, 换算规则固定为 calc(N * var(--u)) → 2N rpx,固定 px 的字号保持 px。 - app.acss:换回 H5 设计 token(方角小倒角按钮 10rpx、卡片 14rpx、.chev 折线箭头) - splash/profile/history:底图与按钮文字图改用 H5 资源,隐私/政策弹窗按 H5 重排 - report:环形分用 conic-gradient、人脸裁切窗口叠加 face_maps、标记点百分比盒、 侧脸皱纹 pending/unavailable 文案;用 Playwright 抓 H5 94 个选择器几何比对, 整页高 2438.7 vs 2438.67 - camera:淘宝 <camera> 组件在真机整页崩溃(嵌了微信专有的 <cover-view>), 改为默认系统相机 + `config.nativeCamera` 开关 + pages/camtest 冒烟页验证组件 - permissions:淘宝用带前缀的 scope.camera(裸名返回 5022 Scope:camera信息不存在), 先试带前缀再退回裸名,拒绝后不再重复弹窗 - voice:非 HTTPS 资源导致的异常不再冒泡成整页崩溃;app.js 加开发版错误 toast - 开发版入口:权限诊断(启动页/相机页)、相机组件测试 - 测试 20/20(新增权限与相机能力用例)
This commit is contained in:
+21
-10
@@ -1,16 +1,27 @@
|
||||
// Public configuration only. AppSecret and Face++ keys stay on the server.
|
||||
//
|
||||
// Cloud test for 聚石塔 SAE:
|
||||
// cloudType 'tower' = 聚石塔云应用(不向网关传 domain)
|
||||
// cloudType 'empty' = 空应用/外部服务(传 domain,baseUrl 必须 HTTPS)
|
||||
// To go back to local direct:
|
||||
// transport: 'direct', baseUrl: 'http://127.0.0.1:18180', mvpLocal: true
|
||||
module.exports = {
|
||||
environment: 'development',
|
||||
cameraDebug: true, // Offline camera acceptance only; disabled outside local development.
|
||||
transport: 'direct', // Local development. Use 'cloud' with real gateway configuration.
|
||||
baseUrl: 'http://127.0.0.1:18180',
|
||||
assetBase: 'http://127.0.0.1:18180/assets/',
|
||||
cloudAppId: '',
|
||||
cloudEnv: 'online', // External/empty cloud applications use online
|
||||
basePath: '', // E.g. '/state' behind an existing reverse proxy
|
||||
// SAE/Java MVP page only: force the local Java backend without changing the main app config.
|
||||
// Set false and edit transport/baseUrl/cloudAppId above when testing the cloud gateway.
|
||||
mvpLocal: true,
|
||||
cameraDebug: false,
|
||||
transport: 'cloud',
|
||||
baseUrl: 'https://miniappcloud.taobao.com', // 'tower' 模式不参与请求;仅占位
|
||||
// 真机可通过公网 HTTPS 加载的静态资源(启动页底图、肤质卡、语音、商品图)。
|
||||
// 127.0.0.1 在手机上指向手机自己,会全部加载失败。
|
||||
assetBase: 'https://1me.xajuzi.com/state/assets/',
|
||||
cloudType: 'tower',
|
||||
cloudAppId: '', // 聚石塔默认云应用可留空;多个云应用时填关联页的 cloudAppId
|
||||
cloudEnv: 'test',
|
||||
basePath: '',
|
||||
// 淘宝 <camera> 组件在真机(SDK 2.9.4)上会整页崩溃,且 canIUse('camera') 是假阳性。
|
||||
// 关掉后拍照页改为「系统相机 / 相册」两条 my.chooseImage 通道(权限 scope.camera 已授予)。
|
||||
// 等确认组件可用后把这里改回 true 即可恢复页内取景。
|
||||
nativeCamera: false,
|
||||
mvpLocal: false,
|
||||
mvpBaseUrl: 'http://127.0.0.1:8080',
|
||||
mock: false,
|
||||
productItemIds: {} // Optional real Taobao item IDs keyed by tier 1/2/3
|
||||
|
||||
Reference in New Issue
Block a user