Browse Source

患者教育申请 动态控制

master
kola-web 2 weeks ago
parent
commit
f4b4ae1d89
  1. 2
      project.config.json
  2. 12
      src/app.ts
  3. 23
      src/pages/index/index.scss
  4. 17
      src/pages/index/index.ts
  5. 4
      src/pages/index/index.wxml
  6. 23
      src/pages/my/index.scss
  7. 18
      src/pages/my/index.ts
  8. 4
      src/pages/my/index.wxml

2
project.config.json

@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
],
"include": []
},
"appid": "wx96104303877e3fd9",
"appid": "wxa4ece062e60e93a5",
"scripts": {
"beforeCompile": "pnpm run beforeCompile",
"beforePreview": "pnpm run beforeCompile",

12
src/app.ts

@ -17,15 +17,15 @@ App<IAppOption>({ @@ -17,15 +17,15 @@ App<IAppOption>({
globalData: {
// dev
// appid:wxa4ece062e60e93a5
// url: 'https://m.wtx.hbraas.com',
// upFileUrl: 'https://m.wtx.hbraas.com/',
// imageUrl: 'https://m.wtx.hbraas.com/GeneB/',
url: 'https://m.wtx.hbraas.com',
upFileUrl: 'https://m.wtx.hbraas.com/',
imageUrl: 'https://m.wtx.hbraas.com/GeneB/',
// pro
// appid:wx96104303877e3fd9
url: 'https://m.gene.hbsaas.com',
upFileUrl: 'https://m.gene.hbsaas.com/',
imageUrl: 'https://m.gene.hbsaas.com/GeneB/',
// url: 'https://m.gene.hbsaas.com',
// upFileUrl: 'https://m.gene.hbsaas.com/',
// imageUrl: 'https://m.gene.hbsaas.com/GeneB/',
Timestamp: new Date().getTime(),
scene: {},

23
src/pages/index/index.scss

@ -44,6 +44,29 @@ @@ -44,6 +44,29 @@
width: 115rpx;
height: 60rpx;
}
.content {
padding: 20rpx 0;
position: absolute;
left: 260rpx;
top: -4rpx;
width: 8em;
height: 100%;
display: flex;
flex-direction: column;
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

@ -15,6 +15,11 @@ Page({ @@ -15,6 +15,11 @@ Page({
pageTop: '',
background: 'transparent',
applyWord: {
ApplyButtonWordOne: '',
ApplyButtonWordTwo: '',
},
},
onLoad() {
app.waitLogin().then(() => {
@ -31,6 +36,18 @@ Page({ @@ -31,6 +36,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,
})
})
},
getBanner() {

4
src/pages/index/index.wxml

@ -21,6 +21,10 @@ @@ -21,6 +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 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"

23
src/pages/my/index.scss

@ -62,6 +62,29 @@ page { @@ -62,6 +62,29 @@ page {
width: 115rpx;
height: 60rpx;
}
.content {
padding: 20rpx 0;
position: absolute;
left: 260rpx;
top: -4rpx;
width: 8em;
height: 100%;
display: flex;
flex-direction: column;
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;

18
src/pages/my/index.ts

@ -5,6 +5,11 @@ Page({ @@ -5,6 +5,11 @@ Page({
popupShow: false,
popupType: 'stayTuned',
popupParams: {},
applyWord: {
ApplyButtonWordOne: '',
ApplyButtonWordTwo: '',
},
},
onLoad() {
app.waitLogin().then(() => {
@ -16,6 +21,19 @@ Page({ @@ -16,6 +21,19 @@ Page({
Days: userInfo.Days.replace(/(\d+)/g, '<span style="font-size: 20px;color: rgba(242, 58, 47, 1);">$1</span>'),
})
})
this.getApplyWord()
})
},
getApplyWord() {
wx.ajax({
method: 'GET',
url: '?r=wtx/common/get-apply-word',
data: {},
}).then((res) => {
this.setData({
applyWord: res,
})
})
},
onChooseAvatar(e) {

4
src/pages/my/index.wxml

@ -23,6 +23,10 @@ @@ -23,6 +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 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