| | |
| | | <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, |
| | | containerBindingFields: [ |
| | | { field: 'maktx', label: 'container.matName' }, |
| | | { field: 'specs', label: 'container.matSpec' }, |
| | | { field: 'batch', label: 'container.matBatch' }, |
| | | { field: 'anfme', label: 'container.matQty' } |
| | | ], |
| | | containerBindingEditFields: [ |
| | | { |
| | | field: 'batch', |
| | | label: 'container.matBatch', |
| | | type: 'text' |
| | | }, |
| | | { |
| | | field: 'anfme', |
| | | label: 'container.matQty', |
| | | type: 'number' |
| | | } |
| | | ] |
| | | } |
| | | uni.setStorageSync('appSettings', appSettings) |
| | | } |
| | | }, |
| | | onShow: function () { |
| | | console.log('App Show') |
| | | }, |
| | | onHide: function () { |
| | | console.log('App Hide') |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | /*每个页面公共css */ |
| | | body { |
| | | background-color: #f1f1f1; |
| | | color: #606266; |
| | | font-family: Helvetica Neue, Helvetica, sans-serif; |
| | | } |
| | | <style lang="scss"> |
| | | /*每个页面公共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: 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: a2; |
| | | src: url('@/static/family/HarmonyOS_Sans_SC_Black.ttf') format('truetype'); |
| | | font-weight: 900; |
| | | font-style: normal; |
| | | } |
| | | </style> |