feat(taobao): add native mini program with shared backend
Preserve H5 flows while adding Taobao identity, native capture, reports and isolated local development. Fix canceled province selection and expired-session logout. Record passing local regressions, two pre-existing H5 assertion failures and pending platform validation.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/* ═════ 1'me 肌肤状态检测 · 淘宝小程序 ═════
|
||||
* 复用 H5 版业务逻辑与后端接口(POST /api/skin-analyze),channel 固定为 'taobao' */
|
||||
App({
|
||||
globalData: {
|
||||
// 档案(profile 页填写):{ real_age, gender, region, daily_skin_type }
|
||||
profile: null,
|
||||
// 三连拍 dataURL,送检口径固定为 [正脸, 左脸, 右脸](与 H5 photosByView 一致)
|
||||
photos: null,
|
||||
// 检测接口返回:{ result, side, face_rectangle }
|
||||
payload: null
|
||||
},
|
||||
|
||||
onLaunch: function () {
|
||||
// 预取语音清单(失败静默,不影响主流程)
|
||||
require('./utils/voice.js').init();
|
||||
},
|
||||
onHide: function () {
|
||||
require('./utils/voice.js').stop(true);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user