feat: 完善淘宝小程序拍照、报告与登录流程
接入本地实时识别和自动三连拍,调整报告裁切、商品跳转、分享标题及居中页眉;完善游客会话、后台渠道隔离、部署脚本与回归测试。
This commit is contained in:
+12
-2
@@ -10,11 +10,21 @@ App({
|
||||
payload: null
|
||||
},
|
||||
|
||||
onShareAppMessage: function () {
|
||||
return require('./utils/share').message();
|
||||
},
|
||||
|
||||
onLaunch: function () {
|
||||
// 预取语音清单(失败静默,不影响主流程)
|
||||
require('./utils/voice.js').init();
|
||||
require('./utils/api.js').resetForLaunch();
|
||||
// The login screen needs no native audio player. voice.play() creates its
|
||||
// context lazily when spoken guidance is actually needed.
|
||||
},
|
||||
onShow: function () {
|
||||
var api = require('./utils/api.js');
|
||||
if (api.hasSession() && !api.isGuest()) api.restore().catch(function () {});
|
||||
},
|
||||
onHide: function () {
|
||||
require('./utils/api.js').suspendSession();
|
||||
require('./utils/voice.js').stop(true);
|
||||
},
|
||||
// 真机上看不到 console:开发版里把未捕获异常弹出到屏幕上,方便截图定位。
|
||||
|
||||
Reference in New Issue
Block a user