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}}
+