Commit aa927852 by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents f72e04ef eba32cd9
Showing 1 changed file with 11 additions and 1 deletions
...@@ -5,6 +5,7 @@ export default { ...@@ -5,6 +5,7 @@ export default {
...mapState("audio", ["isEnd", "isStart"]), ...mapState("audio", ["isEnd", "isStart"]),
}, },
onLaunch: function () { onLaunch: function () {
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation(); //解除锁定屏幕方向 plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("landscape-primary"); plus.screen.lockOrientation("landscape-primary");
...@@ -13,7 +14,16 @@ export default { ...@@ -13,7 +14,16 @@ export default {
keepScreenOn: true, keepScreenOn: true,
}); });
}, },
onShow: function () {}, onShow: function () {
const userInfo = uni.$storage.get('userInfo') || {}
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.reLaunch({
url: "/pages/common/login",
})
}
},
onHide: function () { onHide: function () {
if (this.isStart && !this.isEnd) { if (this.isStart && !this.isEnd) {
console.log("录音"); console.log("录音");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!