From 222a0fabb09bd25f98e0753b66b0f407751240a3 Mon Sep 17 00:00:00 2001 From: donqi Date: Wed, 22 Jun 2022 17:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ay-qrcode/ay-qrcode.vue | 4 +- pages/index/index-home.vue | 4 +- pages/index/index.vue | 13 +- pages/my/new-serv.vue | 1023 +++++++++-------- .../order-manage/modal/edit-time-arrange.vue | 4 +- pages/order-manage/modal/pay-qrcode.vue | 16 +- pages/order-manage/order-manage.vue | 56 +- 7 files changed, 603 insertions(+), 517 deletions(-) diff --git a/components/ay-qrcode/ay-qrcode.vue b/components/ay-qrcode/ay-qrcode.vue index 76e7bfa..b827f6e 100644 --- a/components/ay-qrcode/ay-qrcode.vue +++ b/components/ay-qrcode/ay-qrcode.vue @@ -366,8 +366,8 @@ .canvas-qrcode { margin: auto; - display: inline-block; - float: left; + // display: inline-block; + // float: left; } diff --git a/pages/index/index-home.vue b/pages/index/index-home.vue index 159bb68..4df7932 100644 --- a/pages/index/index-home.vue +++ b/pages/index/index-home.vue @@ -6,10 +6,10 @@ + :style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.deptLogoUrl + ');'"> - {{curUserInfo.name}} + {{curUserInfo.deptName}} diff --git a/pages/index/index.vue b/pages/index/index.vue index f5bf32f..0aff32d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -29,9 +29,12 @@ curPageCode: 'indexPage' } }, - onLoad() { + onLoad(options) { this.loadData(); - this.bindEvent(); + this.bindEvent(); + if (options && options.menuCode) { + this.changeCurPageCode(options.menuCode) + } }, onUnload() { this.offEvent(); @@ -62,7 +65,11 @@ uni.$off('getCurPageInfo') }, changeCurPageCode(targetPageCode) { - this.$refs.moduleBar.navChangeByCode(targetPageCode, true); + // #ifdef MP + this.$nextTick(() => { + this.$refs.moduleBar.navChangeByCode(targetPageCode, true); + }) + // #endif } } } diff --git a/pages/my/new-serv.vue b/pages/my/new-serv.vue index 506f5eb..dc4bd38 100644 --- a/pages/my/new-serv.vue +++ b/pages/my/new-serv.vue @@ -1,483 +1,556 @@ -