<script setup>
import { onLaunch, onShow, onError } from '@dcloudio/uni-app'

import { NxInit } from './nx'
import $store from '@/nx/store'
// #ifdef APP-PLUS
import * as urovo from '@/uni_modules/zzjc-urovo'
// #endif
onLaunch(async () => {
  // 加载nx底层依赖
  await NxInit()
  // #ifdef APP-PLUS
  let sysInfo = uni.getSystemInfoSync()
  let brand = sysInfo.brand.toLowerCase()
  if (brand === 'chainway') {
    plus.screen.lockOrientation('landscape')
  }
  urovo.scanRegister(data => {
    console.log('优博讯扫码结果：' + data)
    $store('biz').scanQRInfo = data
  })
  // #endif
})

onError(err => {
  console.log('AppOnError:', err)
})

onShow(() => {})
</script>

<style lang="scss">
@import '@/uview-plus/index.scss';
@import '@/nx/scss/index.scss';
#u-a-p > div {
  z-index: 99999 !important;
}
body {
  font-size: 16px;
}
@font-face {
  font-family: 'zzjc-lcd';
  src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAQQAA0AAAAADNgAAAO6AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCWhEIColEhk4LIAABNgIkAyoEIAWILgdAG1sKAI7RS+dwknLKwRCOFCJ62I82+05UkhDNk0toJKgnoWEW8UYotAuZLN4ogW/0ul/7EucnQS2Yf8HMQ1ALgRPXku5MpmeuEm86VZ/nmOmibc+Hf8ET2dCiAmfjYWSBbhR9kVjhi+cndnx0eOZncg/xTozVeOFDCPDF/mEXfL++dWY6NAG9YBwUglAQDCjQkgf5og3qXj3Gg2SS/GQLBUY0iDe/gHyqjBb1fzrUZzh7nqiQF4VbQAuYZXNVT+q3M9JBNwGFAosSZTT/GYjW9Zq/zZvmNWIZTjuQUSmAbekt0dCKbeefjfoTgPmMaRoFGADMg92QI0BeAloBBSA4FBaLweIweFwrw/Acy7E8z3NiScPiOYkamVPoS1uVTKZzfL6vj5HyZFZq64bllpZPwXRsu1PzqxR5MI0r1ETvndkWy2DFNJGBHfSVPc2AMxCVjboO5ch5uR0SUkEHRAEol8eOumGDytORSX162TbqIaWFybLSpkU7nVAe8DOGLs4CXuz+/t2Hd01+UT5OX6hnfhvOL70IrDPP+jjq5A8XAs9uxsva9uOdTM/dOPNsXeD7PJFxPN4++tPhc3YzsO4FislD9YrTj9cNxlgX8xQS4pVxzepk0GLTJlbyrD+Vo6dCHY+/5XmT8gU+rSjtco+V1VNq5zWu3YVXu6q1bc7ZaoKZ+1XmTk6O8e0BAYFdi1Whfc7ZXwULU71WfZ0H5F89A50oQGBN6M9/IIYgmOvb84QHkDsgC3x0PP9mwoVk1fEJGBCLBxQIAo4BYDlXBMCEcjmCN4vC2YMWLjbQytkPtJETjnZ8CtGBSj06IbfRBdlANypb0cMrN4i91K/ow5QX+nlVBQbxNUscun2fFqRVBByHBISiHxTJCmjpDoMR5B1YfhHAUWIHj0klBD5pgkjINJwwMWERnx1EiboBmVASFPHlDxdK9RNd97OiyIxZpnljRoxapFq3SGVnZZMhQfZTdjbq+eNNbX1vt7GrPwddzOeD20bEMxcbJpt+sG23rS/eA6NLOBY+FLBl1TjNJM0QbG2Na5PaEHCObsiYJVPwjsDyYMRODqhhUpWaMW2RqpFuxJJJA+bhwDnzpSvK9yBWBKTkReh1unkLxupglVUiqy8Ycf5kTGui1Wpz1SyXhcLysktcaNUBKDr4+3WLZmVKksRgBRMZxkzelcAwwJRIMw1Hsj7DMP7a5D9IMAbMRG2a0BU4bp5Oh5u2c083WVio/b4owkSddVAY08AB5DO5cufBkxdvPnz58RcAAAA=')
    format('woff2');
  src: url('~@/static/font/zzjc-lcd.ttf') format('truetype');
}

.zzjc-lcd {
  font-family: 'zzjc-lcd' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
