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 @@
justify-content: center; justify-content: center;
line-height: 1.4; line-height: 1.4;
box-sizing: border-box; box-sizing: border-box;
.c-title {
font-size: 30rpx; font-size: 30rpx;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
font-weight: bold; font-weight: bold;
} }
.c-content {
font-size: 36rpx;
color: rgba(255, 255, 255, 1);
font-weight: bold;
}
}
} }
.module1 { .module1 {
margin-top: 54rpx; margin-top: 54rpx;

17
src/pages/index/index.ts

@ -25,6 +25,11 @@ Page({
guide: 0, guide: 0,
guideShow: false, guideShow: false,
guideList: ['2-1', '2-2', '2-3'], guideList: ['2-1', '2-2', '2-3'],
applyWord: {
ApplyButtonWordOne: '',
ApplyButtonWordTwo: '',
},
}, },
onLoad() { onLoad() {
app.waitLogin({ type: 0 }).then(() => { app.waitLogin({ type: 0 }).then(() => {
@ -46,6 +51,18 @@ Page({
this.getBanner() this.getBanner()
this.getKnowledgeList() this.getKnowledgeList()
this.getQuestionList() 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) { handleBindDoctor(id: string) {

5
src/pages/index/index.wxml

@ -21,7 +21,10 @@
src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}" src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}"
></image> ></image>
<image wx:else class="a-img" src="{{imageUrl}}index-apply.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 <image
wx:if="{{userInfo.ApplyIntentionId}}" wx:if="{{userInfo.ApplyIntentionId}}"
class="a-label" class="a-label"

7
src/pages/my/index.scss

@ -76,10 +76,17 @@ page {
justify-content: center; justify-content: center;
line-height: 1.4; line-height: 1.4;
box-sizing: border-box; box-sizing: border-box;
.c-title {
font-size: 30rpx; font-size: 30rpx;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
font-weight: bold; font-weight: bold;
} }
.c-content {
font-size: 36rpx;
color: rgba(255, 255, 255, 1);
font-weight: bold;
}
}
} }
.list { .list {
margin-top: 48rpx; margin-top: 48rpx;

17
src/pages/my/index.ts

@ -7,6 +7,10 @@ Page({
popupParams: {}, popupParams: {},
showPatient: false, showPatient: false,
applyWord: {
ApplyButtonWordOne: '',
ApplyButtonWordTwo: '',
},
}, },
onShow() { onShow() {
app.waitLogin({ type: 0 }).then(() => { app.waitLogin({ type: 0 }).then(() => {
@ -18,6 +22,7 @@ Page({
}) })
}) })
this.getGeneConfig() this.getGeneConfig()
this.getApplyWord()
}) })
}, },
getGeneConfig() { getGeneConfig() {
@ -28,6 +33,18 @@ Page({
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
showPatient: res === '1', 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 @@
src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}" src="{{imageUrl}}index-apply-end.png?t={{Timestamp}}"
></image> ></image>
<image wx:else class="a-img" src="{{imageUrl}}index-apply.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 <image
wx:if="{{userInfo.ApplyIntentionId}}" wx:if="{{userInfo.ApplyIntentionId}}"
class="a-label" class="a-label"

Loading…
Cancel
Save