123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <script>
- import time from "@/common/time.js"
- export default {
- onLaunch: function() {
- console.log('App Launch')
- // 启动初始化
- // 煤矿鉴别-名称
- uni.setStorageSync('mine_code', 'ningdongyunying');
- // uni.setStorageSync('mine_code', 'shicaocun');
- // uni.setStorageSync('mine_code', 'meihuajing');
- // uni.setStorageSync('mine_code', 'zaoquan');
- // uni.setStorageSync('mine_code', 'qingshuiying');
- // uni.setStorageSync('mine_code', 'wuyegongsi');
- // uni.setStorageSync('mine_code', 'jinjiaqu');
- // uni.setStorageSync('mine_code', 'yangchangwan');
- },
- onShow: function() {
- console.log('App Show')
- uni.setStorageSync('onShow', new Date().format("yyyy-MM-dd h:m"))
- },
- onHide: function() {
- console.log('App Hide')
- this.$api.user_recordDuration({
- start_date: uni.getStorageSync('onShow'),
- end_date: new Date().format("yyyy-MM-dd h:m")
- }).then((res) => {
- // console.log(res)
- })
- }
- }
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @font-face {
- font-family: my-fzdbsjt;
- src: url('~@/static/font/FangZhengDaBiaoSongJianTi-1.ttf');
- }
- page {
- // font-family: $tdw-base-font;
- }
- .status_bar {
- height: var(--status-bar-height);
- width: 100%;
- }
- </style>
|