#
zhou zhou
昨天 58b41dc039c5c9d1b758c9e190a7c35225ad7585
App.vue
@@ -1,17 +1,82 @@
<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 */
<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>