Browse Source

合并患者教育申请

2.0
kola-web 2 weeks ago
parent
commit
66f25a30cd
  1. 7
      src/pages/index/index.scss
  2. 17
      src/pages/index/index.ts
  3. 5
      src/pages/index/index.wxml
  4. 7
      src/pages/my/index.scss
  5. 17
      src/pages/my/index.ts
  6. 5
      src/pages/my/index.wxml

7
src/pages/index/index.scss

@ -60,10 +60,17 @@ @@ -60,10 +60,17 @@
justify-content: center;
line-height: 1.4;
box-sizing: border-box;
.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 {
margin-top: 54rpx;

17
src/pages/index/index.ts

@ -25,6 +25,11 @@ Page({ @@ -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({ @@ -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) {

5
src/pages/index/index.wxml

@ -21,7 +21,10 @@ @@ -21,7 +21,10 @@
src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}"
></image>
<image wx:else class="a-img" src="{{imageUrl}}index-apply.png?t={{Timestamp}}"></image>
<view class="content">患教活动报名</view>
<view class="content">
<view class="c-title" wx:if="{{applyWord.ApplyButtonWordOne}}">{{applyWord.ApplyButtonWordOne}}</view>
<view class="c-content" wx:if="{{applyWord.ApplyButtonWordTwo}}">{{applyWord.ApplyButtonWordTwo}}</view>
</view>
<image
wx:if="{{userInfo.ApplyIntentionId}}"
class="a-label"

7
src/pages/my/index.scss

@ -76,10 +76,17 @@ page { @@ -76,10 +76,17 @@ page {
justify-content: center;
line-height: 1.4;
box-sizing: border-box;
.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;
}
}
}
.list {
margin-top: 48rpx;

17
src/pages/my/index.ts

@ -7,6 +7,10 @@ Page({ @@ -7,6 +7,10 @@ Page({
popupParams: {},
showPatient: false,
applyWord: {
ApplyButtonWordOne: '',
ApplyButtonWordTwo: '',
},
},
onShow() {
app.waitLogin({ type: 0 }).then(() => {
@ -18,6 +22,7 @@ Page({ @@ -18,6 +22,7 @@ Page({
})
})
this.getGeneConfig()
this.getApplyWord()
})
},
getGeneConfig() {
@ -28,6 +33,18 @@ Page({ @@ -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,
})
})
},

5
src/pages/my/index.wxml

@ -23,7 +23,10 @@ @@ -23,7 +23,10 @@
src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}"
></image>
<image wx:else class="a-img" src="{{imageUrl}}index-apply.png?t={{Timestamp}}"></image>
<view class="content">患教活动报名</view>
<view class="content">
<view class="c-title" wx:if="{{applyWord.ApplyButtonWordOne}}">{{applyWord.ApplyButtonWordOne}}</view>
<view class="c-content" wx:if="{{applyWord.ApplyButtonWordTwo}}">{{applyWord.ApplyButtonWordTwo}}</view>
</view>
<image
wx:if="{{userInfo.ApplyIntentionId}}"
class="a-label"

Loading…
Cancel
Save