1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <script>
- import {
- initEid,
- startEid
- } from './mp_ecard_sdk/main'
- import getParamByName from 'get-param-by-name'
- export default {
- onLaunch: function(options) {
-
-
- if (options.query && options.query.qrCode) {
- const qrCodeValue = options.query.qrCode
- const hotelId = getParamByName("hotelId", qrCodeValue);
- uni.setStorageSync('hotelIdTemp', hotelId)
- }
-
- initEid()
- console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
- console.log('App Launch')
-
- const updateManager = uni.getUpdateManager();
-
- updateManager.onCheckForUpdate(function (res) {
-
-
-
- });
-
- updateManager.onUpdateReady(function (res) {
- uni.showModal({
- title: '更新提示',
- content: '新版本已经准备好,是否重启应用?',
- success(res) {
- if (res.confirm) {
-
- updateManager.applyUpdate();
- }
- }
- });
-
- });
-
- updateManager.onUpdateFailed(function (res) {
-
- });
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style lang="scss">
- @import "uview-ui/index.scss";
- /* #ifndef APP-NVUE */
- // 设置整个项目的背景色
- page {
- width: 100%;
- height: 100%;
- margin: 0;
- border: 0;
- }
- /* #endif */
- .example-info {
- font-size: 14px;
- color: #333;
- padding: 10px;
- }
- </style>
|