market_reduce_weixin/weixin_reduction/App.vue

31 lines
538 B
Vue
Raw Normal View History

2024-07-11 09:50:57 +08:00
<script>
export default {
onLaunch: function (option) {
console.log('App Launch', option);
},
onShow: function (option) {
const param = option;
if (param.query.code) {
uni.setStorageSync('global_key_app', param.query.code);
}
if (param.referrerInfo.extraData) {
try {
uni.setStorageSync('global_key', param.referrerInfo.extraData.code);
} catch (e) {
// error
}
}
},
onHide: function () {
console.log('App Hide');
}
};
</script>
<style>
/*每个页面公共css */
page {
height: 100%;
}
</style>