| | |
| | | <script> |
| | | export default { |
| | | onLaunch: function() { |
| | | console.log('App Launch') |
| | | }, |
| | | onShow: function() { |
| | | console.log('App Show') |
| | | }, |
| | | onHide: function() { |
| | | console.log('App Hide') |
| | | export default { |
| | | onLaunch: function () { |
| | | console.log('App Launch') |
| | | |
| | | // 初始化默认应用设置 |
| | | let appSettings = uni.getStorageSync('appSettings') |
| | | if (!appSettings) { |
| | | appSettings = { |
| | | orderReviewRequired: false, |
| | | orderPakinRequiresMainList: false, |
| | | orderDetlMultiSelect: false, |
| | | orderCombNeedSplit: true, |
| | | orderCombSeparator: ';', |
| | | orderCombArrayIndex: 0, |
| | | orderCombStartPos: 3 |
| | | } |
| | | uni.setStorageSync('appSettings', appSettings) |
| | | } |
| | | }, |
| | | onShow: function () { |
| | | console.log('App Show') |
| | | }, |
| | | onHide: function () { |
| | | console.log('App Hide') |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | /*每个页面公共css */ |
| | | @import "@/uni_modules/uview-ui/index.scss"; |
| | | @import "colorui/main.css"; |
| | | @import "colorui/icon.css"; |
| | | /*每个页面公共css */ |
| | | @import '@/uni_modules/uview-ui/index.scss'; |
| | | @import 'colorui/main.css'; |
| | | @import 'colorui/icon.css'; |
| | | |
| | | /* 引入字体文件 */ |
| | | @font-face { |
| | | font-family: a4; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); |
| | | font-weight: normal; |
| | | font-style: normal; |
| | | } |
| | | /* 引入字体文件 */ |
| | | @font-face { |
| | | font-family: a4; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); |
| | | font-weight: normal; |
| | | font-style: normal; |
| | | } |
| | | |
| | | @font-face { |
| | | font-family: a3; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Light.ttf') format('truetype'); |
| | | font-weight: 300; |
| | | font-style: normal; |
| | | } |
| | | @font-face { |
| | | font-family: a3; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Light.ttf') format('truetype'); |
| | | font-weight: 300; |
| | | font-style: normal; |
| | | } |
| | | |
| | | @font-face { |
| | | font-family: a1; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Bold.ttf') format('truetype'); |
| | | font-weight: bold; |
| | | font-style: normal; |
| | | } |
| | | @font-face { |
| | | font-family: a1; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Bold.ttf') format('truetype'); |
| | | font-weight: bold; |
| | | font-style: normal; |
| | | } |
| | | |
| | | @font-face { |
| | | font-family: a2; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Black.ttf') format('truetype'); |
| | | font-weight: 900; |
| | | font-style: normal; |
| | | } |
| | | </style> |
| | | @font-face { |
| | | font-family: a2; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Black.ttf') format('truetype'); |
| | | font-weight: 900; |
| | | font-style: normal; |
| | | } |
| | | </style> |