From bebd889f287f2af647677467738753fcc5818076 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 25 六月 2024 14:42:55 +0800 Subject: [PATCH] feat:新增测试页面,称重页面去除默认0 --- App.vue | 53 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 45 insertions(+), 8 deletions(-) diff --git a/App.vue b/App.vue index 2ff8874..e7e6c3c 100644 --- a/App.vue +++ b/App.vue @@ -1,11 +1,48 @@ <script> -export default { - onShow() {}, - methods: {} -}; + import { mapState, mapMutations } from 'vuex'; + export default { + onLaunch() {}, + onHide() { + console.log('appvue闅愯棌鍚庡彴'); + this.changeisconnect(false); + console.log(this.globalisconnect, this.globalisUploadimg, this.globalisLogin); + + }, + onShow() { + console.log('appvue鏄剧ず'); + if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) { + if (!this.is_open_socket) { + this.$store.dispatch('websocketInit') + this.changeisconnect(false); + console.log('appvue鐨剋s'); + } + } + }, + methods: { + ...mapMutations(['changeisconnect']) + }, + computed: { + ...mapState(['globalisconnect', 'globalisUploadimg', 'globalisLogin', 'is_open_socket']) + } + }; </script> -<style lang="scss" scoped> -/*姣忎釜椤甸潰鍏叡css */ -@import '@/uni_modules/uview-ui/index.scss'; -</style> +<style lang="scss" + scoped> + /*姣忎釜椤甸潰鍏叡css */ + @import '@/uni_modules/uview-ui/index.scss'; + + @font-face { + font-family: siYuanLight; + src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuannormal.OTF'); + } + + @font-face { + font-family: weighting; + src: url('https://mx.jzeg.cn:9095/appimg/fonts/weighting.TTF'); + } + + body { + font-family: siYuanLight, sans-serif; + } +</style> \ No newline at end of file -- Gitblit v1.9.1