1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <script>
- export default {
- globalData: {
- selectedInfo: null, // 去下单的信息
- type: null //记录订单详情页取消通过navigateTo回到订单列表页的状态
- },
- onLaunch: function() {
- const openid = uni.getStorageSync('openId')
- const userInfo = uni.getStorageSync('userInfo')
- if (openid && userInfo.companyName) {
- uni.switchTab({
- url: '/pages/goods/goodList/goodList'
- })
- }
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style>
- /*每个页面公共css */
- #app {
- height: 100%;
- }
- page {
- height: 100%;
- background-color: #F3F4F6;
- ;
- }
- * {
- box-sizing: border-box;
- }
- </style>
|