From 66f25a30cd0534e4cf0d4401f43c2188e2549d0a Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 15 Jul 2025 10:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=82=A3=E8=80=85=E6=95=99?= =?UTF-8?q?=E8=82=B2=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.scss | 13 ++++++++++--- src/pages/index/index.ts | 17 +++++++++++++++++ src/pages/index/index.wxml | 5 ++++- src/pages/my/index.scss | 13 ++++++++++--- src/pages/my/index.ts | 17 +++++++++++++++++ src/pages/my/index.wxml | 5 ++++- 6 files changed, 62 insertions(+), 8 deletions(-) diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index 0268221..f321d38 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -60,9 +60,16 @@ justify-content: center; line-height: 1.4; box-sizing: border-box; - font-size: 30rpx; - color: rgba(255, 255, 255, 1); - font-weight: bold; + .c-title { + font-size: 30rpx; + color: rgba(255, 255, 255, 1); + font-weight: bold; + } + .c-content { + font-size: 36rpx; + color: rgba(255, 255, 255, 1); + font-weight: bold; + } } } .module1 { diff --git a/src/pages/index/index.ts b/src/pages/index/index.ts index 1eeefe2..6fcfdf3 100644 --- a/src/pages/index/index.ts +++ b/src/pages/index/index.ts @@ -25,6 +25,11 @@ Page({ guide: 0, guideShow: false, guideList: ['2-1', '2-2', '2-3'], + + applyWord: { + ApplyButtonWordOne: '', + ApplyButtonWordTwo: '', + }, }, onLoad() { app.waitLogin({ type: 0 }).then(() => { @@ -46,6 +51,18 @@ Page({ this.getBanner() this.getKnowledgeList() this.getQuestionList() + this.getApplyWord() + }) + }, + getApplyWord() { + wx.ajax({ + method: 'GET', + url: '?r=wtx/common/get-apply-word', + data: {}, + }).then((res) => { + this.setData({ + applyWord: res, + }) }) }, handleBindDoctor(id: string) { diff --git a/src/pages/index/index.wxml b/src/pages/index/index.wxml index c6ee023..9090f48 100644 --- a/src/pages/index/index.wxml +++ b/src/pages/index/index.wxml @@ -21,7 +21,10 @@ src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}" > - 患教活动报名 + + {{applyWord.ApplyButtonWordOne}} + {{applyWord.ApplyButtonWordTwo}} + { @@ -18,6 +22,7 @@ Page({ }) }) this.getGeneConfig() + this.getApplyWord() }) }, getGeneConfig() { @@ -28,6 +33,18 @@ Page({ }).then((res) => { this.setData({ showPatient: res === '1', + + this.getApplyWord() + }) + }, + getApplyWord() { + wx.ajax({ + method: 'GET', + url: '?r=wtx/common/get-apply-word', + data: {}, + }).then((res) => { + this.setData({ + applyWord: res, }) }) }, diff --git a/src/pages/my/index.wxml b/src/pages/my/index.wxml index e4485ee..6740ece 100644 --- a/src/pages/my/index.wxml +++ b/src/pages/my/index.wxml @@ -23,7 +23,10 @@ src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}" > - 患教活动报名 + + {{applyWord.ApplyButtonWordOne}} + {{applyWord.ApplyButtonWordTwo}} +