Browse Source

正式上线前集中优化改进

2.0
kola-web 1 week ago
parent
commit
fc96ca235d
  1. 2
      project.config.json
  2. 12
      src/app.ts
  3. 34
      src/components/popup/index.scss
  4. 9
      src/components/popup/index.wxml
  5. 35
      src/doctor/pages/askDoctor/index.scss
  6. 7
      src/doctor/pages/askDoctor/index.ts
  7. 14
      src/doctor/pages/askDoctor/index.wxml
  8. BIN
      src/images/icon124.png
  9. BIN
      src/images/icon125.png
  10. BIN
      src/images/icon126.png
  11. 34
      src/pages/ask/index.scss
  12. 2
      src/pages/ask/index.ts
  13. 9
      src/pages/ask/index.wxml
  14. 17
      src/pages/index/index.scss
  15. 8
      src/pages/index/index.wxml
  16. 27
      src/pages/my/index.ts
  17. 4
      src/pages/my/index.wxml
  18. 34
      src/patient/pages/askPatient/index.scss
  19. 2
      src/patient/pages/askPatient/index.ts
  20. 9
      src/patient/pages/askPatient/index.wxml

2
project.config.json

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

12
src/app.ts

@ -25,16 +25,16 @@ App<IAppOption>({
globalData: { globalData: {
// dev // dev
// appid:wxa4ece062e60e93a5 // appid:wxa4ece062e60e93a5
url: 'https://m.wtx.hbraas.com', // url: 'https://m.wtx.hbraas.com',
upFileUrl: 'https://m.wtx.hbraas.com/', // upFileUrl: 'https://m.wtx.hbraas.com/',
imageUrl: 'https://m.wtx.hbraas.com/GeneB/', // imageUrl: 'https://m.wtx.hbraas.com/GeneB/',
// pro // pro
// appid:wx96104303877e3fd9 老的正式环境,已弃用 // appid:wx96104303877e3fd9 老的正式环境,已弃用
// appid:wxfc95e2961d481f58 // appid:wxfc95e2961d481f58
// url: 'https://m.hbgene.hbsaas.com', url: 'https://m.hbgene.hbsaas.com',
// upFileUrl: 'https://m.hbgene.hbsaas.com/', upFileUrl: 'https://m.hbgene.hbsaas.com/',
// imageUrl: 'https://m.hbgene.hbsaas.com/GeneB/', imageUrl: 'https://m.hbgene.hbsaas.com/GeneB/',
Timestamp: new Date().getTime(), Timestamp: new Date().getTime(),

34
src/components/popup/index.scss

@ -1217,6 +1217,40 @@
} }
} }
.popup20 {
.badge {
position: relative;
z-index: 1;
display: block;
margin: 0 auto;
width: 220rpx;
height: 278rpx;
}
.container {
margin-top: -150rpx;
padding: 166rpx 60rpx 48rpx;
background: linear-gradient(180deg, #ffe8e4 0%, #ffffff 56.28%, #ffffff 100%);
border-radius: 48rpx;
.title {
text-align: center;
font-size: 32rpx;
color: #010105;
}
.submit {
margin: 32rpx auto 0;
width: 440rpx;
height: 88rpx;
font-size: 32rpx;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(184deg, #f23a2f 0%, #fc684f 100%);
border-radius: 84rpx 84rpx 84rpx 84rpx;
}
}
}
.close { .close {
margin: 32rpx auto 0; margin: 32rpx auto 0;
display: block; display: block;

9
src/components/popup/index.wxml

@ -380,6 +380,15 @@
</view> </view>
</view> </view>
</view> </view>
<view class="popup20" wx:elif="{{type==='touristsInviteCode'}}">
<image class="badge" src="{{imageUrl}}icon125.png?t={{Timestamp}}"></image>
<view class="container">
<view class="title">
请您扫描医生专属邀约码加入
</view>
<view class="submit" bind:tap="handleOk">我知道了</view>
</view>
</view>
<image <image
wx:if="{{params.close}}" wx:if="{{params.close}}"
class="close" class="close"

35
src/doctor/pages/askDoctor/index.scss

@ -231,7 +231,7 @@ page {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: linear-gradient( 356deg, #1D6BFF 0%, #4F8DFF 100%); background: linear-gradient(356deg, #1d6bff 0%, #4f8dff 100%);
} }
} }
} }
@ -314,6 +314,21 @@ page {
} }
} }
} }
.module-list-none {
margin-top: 156px;
.icon {
margin: 0 auto;
display: block;
width: 466rpx;
height: 276rpx;
}
.content {
margin: 38rpx 0 0;
text-align: center;
font-size: 32rpx;
color: #abaeb4;
}
}
.place { .place {
height: 15vh; height: 15vh;
} }
@ -386,6 +401,21 @@ page {
} }
} }
} }
.list-none {
margin-top: 26px;
.icon {
margin: 0 auto;
display: block;
width: 310rpx;
height: 184rpx;
}
.content {
margin: 8rpx 0 0;
text-align: center;
font-size: 28rpx;
color: rgba(1, 1, 5, 0.4);
}
}
.submit { .submit {
margin-top: 24rpx; margin-top: 24rpx;
width: 690rpx; width: 690rpx;
@ -398,5 +428,8 @@ page {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 64rpx 64rpx 64rpx 64rpx; border-radius: 64rpx 64rpx 64rpx 64rpx;
&.dsiable{
background: #cfd1d5;
}
} }
} }

7
src/doctor/pages/askDoctor/index.ts

@ -39,6 +39,7 @@ Page({
questionActiveList: [] as any[], questionActiveList: [] as any[],
headerQuestionList: [] as any, headerQuestionList: [] as any,
isRequestEnd: false,
isLoad: false, isLoad: false,
isFinish: false, isFinish: false,
messageList: [ messageList: [
@ -142,6 +143,7 @@ Page({
isVisitAdl: res.isVisitAdl, isVisitAdl: res.isVisitAdl,
adlMsgId: res.adlMsgId, adlMsgId: res.adlMsgId,
isLoad: false, isLoad: false,
isRequestEnd: true,
isFinish: nextMsgId === res.nextMsgId, isFinish: nextMsgId === res.nextMsgId,
}) })
this.filterCreateTime() this.filterCreateTime()
@ -241,7 +243,6 @@ Page({
handleSendWord() { handleSendWord() {
const { messageList, wordList, wordIndex, userInfo } = this.data const { messageList, wordList, wordIndex, userInfo } = this.data
const { wordId, word } = wordList[wordIndex] const { wordId, word } = wordList[wordIndex]
console.log(wordList[wordIndex])
this.setData({ this.setData({
messageList: [ messageList: [
...messageList, ...messageList,
@ -303,8 +304,8 @@ Page({
Clinic: clinic, Clinic: clinic,
ClinicType: clinicType, ClinicType: clinicType,
}, },
doctorAvatar: doctorAvatar, doctorAvatar,
doctorName: doctorName, doctorName,
}, },
], ],
}) })

14
src/doctor/pages/askDoctor/index.wxml

@ -1,3 +1,5 @@
<page-meta page-style="{{ messageListShow ? 'overflow: hidden;' : '' }}" />
<navbar fixed title="问医生" custom-style="background:{{background}}" back> <navbar fixed title="问医生" custom-style="background:{{background}}" back>
<van-icon name="arrow-left" slot="left" size="18px" color="#000" bind:tap="handleBack" /> <van-icon name="arrow-left" slot="left" size="18px" color="#000" bind:tap="handleBack" />
</navbar> </navbar>
@ -100,6 +102,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="module-list-none" wx:if="{{!messageList.length && isRequestEnd}}">
<image class="icon" src="{{imageUrl}}icon126.png?t={{Timestamp}}"></image>
<view class="content">常见的问题正在更新中哦~</view>
</view>
<view id="place" class="place"></view> <view id="place" class="place"></view>
</scroll-view> </scroll-view>
</view> </view>
@ -127,7 +133,7 @@
> >
<view class="popup-message"> <view class="popup-message">
<view class="title">发送消息</view> <view class="title">发送消息</view>
<view class="list"> <view class="list" wx:if="{{wordList.length}}">
<view <view
class="l-item {{wordIndex===index && 'active'}}" class="l-item {{wordIndex===index && 'active'}}"
wx:for="{{wordList}}" wx:for="{{wordList}}"
@ -138,7 +144,11 @@
{{item.word}} {{item.word}}
</view> </view>
</view> </view>
<view class="submit" bind:tap="handleSendWord">发送</view> <view class="list-none" wx:else>
<image class="icon" src="{{imageUrl}}icon126.png?t={{Timestamp}}"></image>
<view class="content">常见的回答正在更新中哦~</view>
</view>
<view class="submit {{!wordList.length && 'dsiable'}}" bind:tap="handleSendWord">发送</view>
</view> </view>
</van-popup> </van-popup>

BIN
src/images/icon124.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
src/images/icon125.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
src/images/icon126.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

34
src/pages/ask/index.scss

@ -67,6 +67,21 @@ page {
} }
} }
} }
.module-list-none {
margin-top: 156px;
.icon {
margin: 0 auto;
display: block;
width: 466rpx;
height: 276rpx;
}
.content {
margin: 38rpx 0 0;
text-align: center;
font-size: 32rpx;
color: #ABAEB4;
}
}
.date { .date {
padding-top: 20rpx; padding-top: 20rpx;
font-size: 28rpx; font-size: 28rpx;
@ -550,11 +565,20 @@ page {
color: rgba(40, 48, 49, 1); color: rgba(40, 48, 49, 1);
} }
} }
.none { .list-none {
display: block; margin-top: 26px;
margin: 30rpx auto; .icon {
width: 344rpx; margin: 0 auto;
max-height: 302rpx; display: block;
width: 310rpx;
height: 184rpx;
}
.content {
margin: 8rpx 0 0;
text-align: center;
font-size: 28rpx;
color: rgba(1, 1, 5, 0.4);
}
} }
} }
} }

2
src/pages/ask/index.ts

@ -31,6 +31,7 @@ Page({
questionActiveList: [] as any[], questionActiveList: [] as any[],
headerQuestionList: [] as any, headerQuestionList: [] as any,
isRequestEnd: false,
isLoad: false, isLoad: false,
isFinish: false, isFinish: false,
messageList: [] as IMessageItem[], messageList: [] as IMessageItem[],
@ -72,6 +73,7 @@ Page({
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
headerQuestionList: res.list, headerQuestionList: res.list,
isRequestEnd: true,
}) })
}) })
}, },

9
src/pages/ask/index.wxml

@ -82,6 +82,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="module-list-none" wx:if="{{!headerQuestionList.length && !messageList.length && isRequestEnd}}">
<image class="icon" src="{{imageUrl}}icon124.png?t={{Timestamp}}"></image>
<view class="content">常见的问题正在更新中哦~</view>
</view>
<view id="place" class="place"></view> <view id="place" class="place"></view>
</scroll-view> </scroll-view>
</view> </view>
@ -114,7 +118,10 @@
<view class="content">{{item.Question}}</view> <view class="content">{{item.Question}}</view>
<van-icon color="#ADB3B4" name="arrow" /> <van-icon color="#ADB3B4" name="arrow" />
</view> </view>
<image class="none" src="{{imageUrl}}none.png" mode="widthFix" wx:if="{{!questionActiveList.length}}"></image> <view class="list-none" wx:if="{{!questionActiveList.length}}">
<image class="icon" src="{{imageUrl}}icon124.png?t={{Timestamp}}"></image>
<view class="content">常见的问题正在更新中哦~</view>
</view>
</view> </view>
</view> </view>
</view> </view>

17
src/pages/index/index.scss

@ -31,7 +31,7 @@
z-index: 1; z-index: 1;
margin-top: -80rpx; margin-top: -80rpx;
padding: 42rpx 40rpx; padding: 42rpx 40rpx;
background: linear-gradient(346deg, #f7f7fa 0%, #ffe5dc 100%); background: linear-gradient(14deg, #f7f7fa 0%,#f7f7fa 40%, #ffe5dc 100%);
border-radius: 32rpx 32rpx 0 0; border-radius: 32rpx 32rpx 0 0;
.apply { .apply {
position: relative; position: relative;
@ -247,6 +247,21 @@
} }
} }
} }
.module-list-none {
margin-top: 26px;
.icon {
margin: 0 auto;
display: block;
width: 310rpx;
height: 184rpx;
}
.content {
margin: 8rpx 0 0;
text-align: center;
font-size: 28rpx;
color: rgba(1, 1, 5, 0.4);
}
}
} }
} }
} }

8
src/pages/index/index.wxml

@ -23,7 +23,7 @@
<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 class="content">
<view class="c-title" wx:if="{{applyWord.ApplyButtonWordOne}}">{{applyWord.ApplyButtonWordOne}}</view> <view class="c-title" wx:if="{{applyWord.ApplyButtonWordOne}}">{{applyWord.ApplyButtonWordOne}}</view>
<view class="c-content" wx:if="{{applyWord.ApplyButtonWordTwo}}">{{applyWord.ApplyButtonWordTwo}}</view> <view class="c-content" wx:if="{{applyWord.ApplyButtonWordTwo}}">{{applyWord.ApplyButtonWordTwo}}</view>
</view> </view>
<image <image
wx:if="{{userInfo.ApplyIntentionId}}" wx:if="{{userInfo.ApplyIntentionId}}"
@ -61,7 +61,7 @@
<image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon1.png?t={{Timestamp}}"></image>
</view> </view>
</view> </view>
<view class="module-list"> <view class="module-list" wx:if="{{questionList.length}}">
<view class="module-item" wx:for="{{questionList}}" wx:key="Id" bindtap="handleAskItem" data-id="{{item.Id}}"> <view class="module-item" wx:for="{{questionList}}" wx:key="Id" bindtap="handleAskItem" data-id="{{item.Id}}">
<view class="item-header"> <view class="item-header">
<image class="icon" src="{{imageUrl}}icon2.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon2.png?t={{Timestamp}}"></image>
@ -77,6 +77,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="module-list-none" wx:else>
<image class="icon" src="{{imageUrl}}icon124.png?t={{Timestamp}}"></image>
<view class="content">常见的问题正在更新中哦~</view>
</view>
</view> </view>
</view> </view>
</view> </view>

27
src/pages/my/index.ts

@ -3,9 +3,12 @@ const app = getApp<IAppOption>()
Page({ Page({
data: { data: {
popupShow: false, popupShow: false,
popupType: 'stayTuned', // popupType: 'stayTuned',
popupType: 'touristsInviteCode',
popupParams: {}, popupParams: {},
userInfo: {} as any,
showPatient: false, showPatient: false,
applyWord: { applyWord: {
ApplyButtonWordOne: '', ApplyButtonWordOne: '',
@ -91,6 +94,28 @@ Page({
popupShow: false, popupShow: false,
}) })
}, },
handlePopupOk() {
this.setData({
popupShow: false,
})
},
handlePatient(e) {
const { url, pname } = e.currentTarget.dataset
const { userInfo } = this.data
if (pname) {
app.mpBehavior({ PageName: pname })
}
if (userInfo.PatientId <= 0) {
this.setData({
popupShow: true,
popupType: 'touristsInviteCode',
})
return
}
wx.navigateTo({
url,
})
},
routerTo(e: any) { routerTo(e: any) {
const { url, pname } = e.currentTarget.dataset const { url, pname } = e.currentTarget.dataset
if (pname) { if (pname) {

4
src/pages/my/index.wxml

@ -37,7 +37,7 @@
<view class="list-header"> <view class="list-header">
<view class="name">切换身份</view> <view class="name">切换身份</view>
</view> </view>
<view class="item" bind:tap="routerTo" data-url="/patient/pages/login/index" data-pname="BTN_MY_SWITCHPATIENT"> <view class="item" bind:tap="handlePatient" data-url="/patient/pages/login/index" data-pname="BTN_MY_SWITCHPATIENT">
<image class="icon" src="{{imageUrl}}icon13.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon13.png?t={{Timestamp}}"></image>
<view class="wrap"> <view class="wrap">
<view class="name">我已开启基因治疗</view> <view class="name">我已开启基因治疗</view>
@ -56,4 +56,4 @@
</view> </view>
</view> </view>
<popup model:show="{{popupShow}}" type="{{popupType}}" params="{{popupParams}}" bind:cancel="handlePopupCancel"></popup> <popup model:show="{{popupShow}}" type="{{popupType}}" params="{{popupParams}}" bind:cancel="handlePopupCancel" bind:ok="handlePopupOk"></popup>

34
src/patient/pages/askPatient/index.scss

@ -307,6 +307,21 @@ page {
} }
} }
} }
.module-list-none {
margin-top: 156px;
.icon {
margin: 0 auto;
display: block;
width: 466rpx;
height: 276rpx;
}
.content {
margin: 38rpx 0 0;
text-align: center;
font-size: 32rpx;
color: #ABAEB4;
}
}
.place { .place {
height: 15vh; height: 15vh;
} }
@ -433,11 +448,20 @@ page {
color: rgba(40, 48, 49, 1); color: rgba(40, 48, 49, 1);
} }
} }
.none { .list-none {
display: block; margin-top: 26px;
margin: 30rpx auto; .icon {
width: 344rpx; margin: 0 auto;
max-height: 302rpx; display: block;
width: 310rpx;
height: 184rpx;
}
.content {
margin: 8rpx 0 0;
text-align: center;
font-size: 28rpx;
color: rgba(1, 1, 5, 0.4);
}
} }
} }
} }

2
src/patient/pages/askPatient/index.ts

@ -35,6 +35,7 @@ Page({
questionActiveList: [] as any[], questionActiveList: [] as any[],
headerQuestionList: [] as any, headerQuestionList: [] as any,
isRequestEnd: false,
isLoad: false, isLoad: false,
isFinish: false, isFinish: false,
messageList: [ messageList: [
@ -131,6 +132,7 @@ Page({
adlMsgId: res.adlMsgId, adlMsgId: res.adlMsgId,
isLoad: false, isLoad: false,
isFinish: nextMsgId === res.nextMsgId, isFinish: nextMsgId === res.nextMsgId,
isRequestEnd: true,
}) })
this.filterCreateTime() this.filterCreateTime()
if (!nextMsgId) { if (!nextMsgId) {

9
src/patient/pages/askPatient/index.wxml

@ -108,6 +108,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="module-list-none" wx:if="{{!messageList.length && isRequestEnd}}">
<image class="icon" src="{{imageUrl}}icon124.png?t={{Timestamp}}"></image>
<view class="content">常见的问题正在更新中哦~</view>
</view>
<view id="place" class="place"></view> <view id="place" class="place"></view>
</scroll-view> </scroll-view>
</view> </view>
@ -148,7 +152,10 @@
<view class="content">{{item.question}}</view> <view class="content">{{item.question}}</view>
<van-icon color="#ADB3B4" name="arrow" /> <van-icon color="#ADB3B4" name="arrow" />
</view> </view>
<image class="none" src="{{imageUrl}}none.png" mode="widthFix" wx:if="{{!questionActiveList.length}}"></image> <view class="list-none" wx:if="{{!questionActiveList.length}}">
<image class="icon" src="{{imageUrl}}icon124.png?t={{Timestamp}}"></image>
<view class="content">常见的问题正在更新中哦~</view>
</view>
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save