Browse Source

1.10.0bu版本bug处理

v1.10.0
kola-web 4 days ago
parent
commit
501b89e6dc
  1. 4
      project.private.config.json
  2. 2
      src/app.ts
  3. 7
      src/patient/pages/enterInfo/index.scss
  4. 15
      src/patient/pages/enterInfo/index.ts
  5. 1
      src/patient/pages/enterInfo/index.wxml
  6. 1
      src/patient/pages/liveDetail/index.scss
  7. 85
      src/patient/pages/liveDetail/index.ts
  8. 17
      src/patient/pages/personalInformation/index.scss
  9. 17
      src/patient/pages/personalInformation/index.ts
  10. 49
      src/patient/pages/personalInformation/index.wxml
  11. 2
      typings/index.d.ts

4
project.private.config.json

@ -26,8 +26,8 @@
"name": "患者-个人信息", "name": "患者-个人信息",
"pathName": "patient/pages/personalInformation/index", "pathName": "patient/pages/personalInformation/index",
"query": "bottom=1", "query": "bottom=1",
"scene": null, "launchMode": "default",
"launchMode": "default" "scene": null
}, },
{ {
"name": "patient/pages/liveResult/index", "name": "patient/pages/liveResult/index",

2
src/app.ts

@ -114,6 +114,8 @@ App<IAppOption>({
onShow(options) { onShow(options) {
if (options.query.scene) { if (options.query.scene) {
this.globalData.scene = parseScene(options.query.scene) this.globalData.scene = parseScene(options.query.scene)
} else if (options.query.proMethodId) {
this.globalData.scene.proMethodId = options.query.proMethodId
} }
}, },
startLogin(callback) { startLogin(callback) {

7
src/patient/pages/enterInfo/index.scss

@ -67,7 +67,7 @@
} }
.rt-content { .rt-content {
margin-top: 8rpx; margin-top: 8rpx;
font-size: 32rpx; font-size: 28rpx;
color: #adacb2; color: #adacb2;
font-weight: normal; font-weight: normal;
line-height: 52rpx; line-height: 52rpx;
@ -232,6 +232,11 @@
} }
} }
} }
.row-sub {
margin-top: 8rpx;
font-size: 28rpx;
color: #adacb2;
}
.tip { .tip {
margin-top: -24rpx; margin-top: -24rpx;
margin-left: 46rpx; margin-left: 46rpx;

15
src/patient/pages/enterInfo/index.ts

@ -115,7 +115,17 @@ Page({
app.mpBehavior({ PageName: 'BTN_PatientInfoComfirm' }) app.mpBehavior({ PageName: 'BTN_PatientInfoComfirm' })
if (this.data.submiting) return if (this.data.submiting) return
const { name, gender, ageRange, relationType, IsGraves, HasTedSurgery } = this.data const {
name,
gender,
ageRange,
relationType,
IsGraves,
HasTedSurgery,
isKnowTituyo,
isUseTituyo,
prescriptionImg,
} = this.data
const { registrationSource, registChannel, regBusinessId, WorkerId, IsAliQiWei } = app.globalData const { registrationSource, registChannel, regBusinessId, WorkerId, IsAliQiWei } = app.globalData
const { doctorId, inviteChan, proMethodId } = app.globalData.scene const { doctorId, inviteChan, proMethodId } = app.globalData.scene
let toast = '' let toast = ''
@ -152,6 +162,9 @@ Page({
regBusinessId, regBusinessId,
IsGraves, IsGraves,
HasTedSurgery, HasTedSurgery,
isKnowTituyo,
isUseTituyo,
prescriptionImg,
WorkerId, WorkerId,
inviteDoctorId: doctorId, inviteDoctorId: doctorId,
inviteChannel: inviteChan, inviteChannel: inviteChan,

1
src/patient/pages/enterInfo/index.wxml

@ -129,6 +129,7 @@
</block> </block>
</view> </view>
</uploadFile> </uploadFile>
<view class="row-sub">您可以上传您的诊断处方、住院小结等</view>
</block> </block>
</view> </view>
</view> </view>

1
src/patient/pages/liveDetail/index.scss

@ -193,7 +193,6 @@
margin-top: 32rpx; margin-top: 32rpx;
display: block; display: block;
height: 270rpx; height: 270rpx;
border-radius: 24rpx;
.p-code{ .p-code{
position: absolute; position: absolute;
top: 38rpx; top: 38rpx;

85
src/patient/pages/liveDetail/index.ts

@ -1,4 +1,6 @@
/* eslint-disable eqeqeq */
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { parseScene } from '../../../utils/util'
const app = getApp<IAppOption>() const app = getApp<IAppOption>()
let live_time: null | number = null let live_time: null | number = null
@ -18,6 +20,7 @@ Page({
lightList: [], lightList: [],
timeData: {}, timeData: {},
optionsScene: {} as any,
popupShow: false, popupShow: false,
popupType: 'popup6', // 登录失败弹窗 popupType: 'popup6', // 登录失败弹窗
@ -27,10 +30,21 @@ Page({
}, },
videoContext: {} as WechatMiniprogram.VideoContext, videoContext: {} as WechatMiniprogram.VideoContext,
onLoad(options) { onLoad(options) {
const scene = app.globalData.scene
this.setData({ this.setData({
id: options.id || scene.id, id: options.id,
}) })
if (options.scene) {
const optionsScene: any = parseScene(options.scene)
this.setData({
optionsScene: optionsScene || {},
id: options.id || optionsScene?.id,
})
} else if (options.proMethodId) {
this.setData({
'optionsScene.proMethodId': options.proMethodId,
})
}
if (live_time) { if (live_time) {
clearInterval(live_time) clearInterval(live_time)
} }
@ -45,7 +59,11 @@ Page({
}, },
onShow() { onShow() {
app.waitLogin({ type: [0, 1] }).then(() => { app.waitLogin({ type: [0, 1] }).then(() => {
app.mpBehavior({ PageName: 'PG_PatientLiveDetails' }) app.mpBehavior({
PageName: 'PG_PatientLiveDetails',
detailId: this.data.id,
promotionMethodId: this.data.optionsScene.proMethodId,
})
this.getDetail() this.getDetail()
this.setView() this.setView()
this.getLightList() this.getLightList()
@ -161,9 +179,7 @@ Page({
handleBanner() { handleBanner() {
const { detail, zdUserInfo, dateValue } = this.data const { detail, zdUserInfo, dateValue } = this.data
if (detail.IsSignUp && zdUserInfo.AuditStatus) { if (detail.IsSignUp && zdUserInfo.AuditStatus) {
// eslint-disable-next-line eqeqeq
if (zdUserInfo.AuditStatus == 1 || zdUserInfo.AuditStatus == 3 || zdUserInfo.AuditStatus == 4) { if (zdUserInfo.AuditStatus == 1 || zdUserInfo.AuditStatus == 3 || zdUserInfo.AuditStatus == 4) {
// eslint-disable-next-line eqeqeq
if (detail.SignUpStatus == 2) { if (detail.SignUpStatus == 2) {
if (detail.BeginTimeValue * 1 < dateValue * 1) { if (detail.BeginTimeValue * 1 < dateValue * 1) {
this.handleLive() this.handleLive()
@ -206,36 +222,47 @@ Page({
handleSignUp() { handleSignUp() {
const { SubscribeTemplateList } = this.data.detail const { SubscribeTemplateList } = this.data.detail
app.mpBehavior({ PageName: 'BTN_PatientLiveSign' }) app.mpBehavior({ PageName: 'BTN_PatientLiveSign' })
const { Type } = this.data.detail
const { UserType } = this.data.zdUserInfo
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: SubscribeTemplateList, tmplIds: SubscribeTemplateList,
complete: () => { success: (res) => {
wx.ajax({ const subscribe = SubscribeTemplateList.map((item) => {
method: 'POST', return res[item] === 'accept' ? 1 : 2
url: '?r=zd/activity/sign-up',
data: {
Id: this.data.id,
PreUserIdentity: UserType,
},
}).then((res) => {
app
.zdPermissionVerification(
3,
Type == 1 ? 1 : 10,
`/patient/pages/liveResult/index?id=${this.data.id}&rewardScore=${res.rewardScore}`,
this.data.id,
)
.then(() => {
wx.navigateTo({
url: `/patient/pages/liveResult/index?id=${this.data.id}&rewardScore=${res.rewardScore}`,
})
})
}) })
this.handleSignUpCallback(subscribe)
},
fail: () => {
this.handleSignUpCallback([2, 2])
}, },
}) })
}, },
handleSignUpCallback(res = [2, 2]) {
const { Type } = this.data.detail
const { UserType } = this.data.zdUserInfo
const optionsScene = this.data.optionsScene
wx.ajax({
method: 'POST',
url: '?r=zd/activity/sign-up',
data: {
Id: this.data.id,
PreUserIdentity: UserType,
promotionMethodId: optionsScene.proMethodId,
subscribe: [...res],
},
}).then((res) => {
app
.zdPermissionVerification(
3,
Type == 1 ? 1 : 10,
`/patient/pages/liveResult/index?id=${this.data.id}&rewardScore=${res.rewardScore}`,
this.data.id,
)
.then(() => {
wx.navigateTo({
url: `/patient/pages/liveResult/index?id=${this.data.id}&rewardScore=${res.rewardScore}`,
})
})
})
},
handleShare() { handleShare() {
this.setData({ this.setData({
shareShow: true, shareShow: true,

17
src/patient/pages/personalInformation/index.scss

@ -36,6 +36,11 @@ page {
color: #cf5375; color: #cf5375;
} }
} }
.row-sub {
margin-top: 8rpx;
font-size: 28rpx;
color: #ADACB2;
}
.row-content { .row-content {
padding-top: 24rpx; padding-top: 24rpx;
.input { .input {
@ -180,18 +185,17 @@ page {
} }
.check { .check {
position: absolute; position: absolute;
top: 50%; top: 0;
left: 50%; left: 0;
transform: translate(-50%, -50%);
font-size: 32rpx; font-size: 32rpx;
color: #ffffff; color: #ffffff;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 12rpx; gap: 12rpx;
width: 234rpx; width: 100%;
height: 76rpx; height: 100%;
background: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.3);
border-radius: 8rpx 8rpx 8rpx 8rpx; border-radius: 8rpx 8rpx 8rpx 8rpx;
.check-icon { .check-icon {
width: 36rpx; width: 36rpx;
@ -213,7 +217,6 @@ page {
} }
} }
.reject { .reject {
margin-top: 24rpx;
font-size: 32rpx; font-size: 32rpx;
color: #ef3939; color: #ef3939;
} }

17
src/patient/pages/personalInformation/index.ts

@ -99,14 +99,6 @@ Page({
this.setData({ this.setData({
dict: res, dict: res,
}) })
if (this.data.scrollBottom) {
wx.pageScrollTo({
scrollTop: 100000,
})
this.setData({
scrollBottom: '',
})
}
}) })
}, },
@ -117,6 +109,15 @@ Page({
this.handleChangeDiagnoseType({ detail: { value: [diagnoseTypeValue] } }) this.handleChangeDiagnoseType({ detail: { value: [diagnoseTypeValue] } })
this.handleDiagnoseTypeSave(false) this.handleDiagnoseTypeSave(false)
// this.handleTapRT(); // this.handleTapRT();
if (this.data.scrollBottom) {
wx.pageScrollTo({
scrollTop: 100000,
})
this.setData({
scrollBottom: '',
})
}
}, },
formatBorn(Birth) { formatBorn(Birth) {
let bron = '' let bron = ''

49
src/patient/pages/personalInformation/index.wxml

@ -163,29 +163,36 @@
</view> </view>
</view> </view>
<block wx:if="{{zdUserInfo.IsUseTituyo == 1 }}"> <block wx:if="{{zdUserInfo.IsUseTituyo == 1 }}">
<uploadFile class="upload" accept="image" bind:file="handleSetData"> <view class="row">
<view <view class="row-header">
class="mask" <view class="label">请上传您的处方证明</view>
wx:if="{{zdUserInfo.DrugsAuditStatus==1 || zdUserInfo.DrugsAuditStatus==3}}" </view>
catchtap="handleNoUpload" <view class="row-sub">处方证明审核通过后,即可享受平台全部服务</view>
></view> <uploadFile class="upload" accept="image" bind:file="handleSetData">
<view class="upload-container"> <view
<view class="upload-img" wx:if="{{zdUserInfo.PrescriptionImg}}"> class="mask"
<view class="del" catchtap="handleDelData" wx:if="{{zdUserInfo.DrugsAuditStatus==2}}"> wx:if="{{zdUserInfo.DrugsAuditStatus==1 || zdUserInfo.DrugsAuditStatus==3}}"
<image class="d-icon" src="{{imageUrl}}icon77.png?t={{Timestamp}}"></image> catchtap="handleNoUpload"
</view> ></view>
<image class="img" src="{{zdUserInfo.PrescriptionImg}}" mode="aspectFill"></image> <view class="upload-container">
<view class="check" wx:if="{{zdUserInfo.DrugsAuditStatus==1}}"> <view class="upload-img" wx:if="{{zdUserInfo.PrescriptionImg}}">
<image class="check-icon" src="{{imageUrl}}icon81.png?t={{Timestamp}}"></image> <view class="del" catchtap="handleDelData" wx:if="{{zdUserInfo.DrugsAuditStatus==2}}">
审核中... <image class="d-icon" src="{{imageUrl}}icon77.png?t={{Timestamp}}"></image>
</view>
<image class="img" src="{{zdUserInfo.PrescriptionImg}}" mode="aspectFill"></image>
<view class="check" wx:if="{{zdUserInfo.DrugsAuditStatus==1}}">
<image class="check-icon" src="{{imageUrl}}icon81.png?t={{Timestamp}}"></image>
审核中...
</view>
</view> </view>
<block wx:else>
<van-icon name="plus" style="font-size: 80rpx; color: rgba(173, 172, 178, 0.5)" />
</block>
</view> </view>
<block wx:else> </uploadFile>
<van-icon name="plus" style="font-size: 80rpx; color: rgba(173, 172, 178, 0.5)" /> <view class="reject" wx:if="{{zdUserInfo.DrugsAuditStatus==2}}">*审核不通过</view>
</block> <view class="row-sub" wx:else>您可以上传您的诊断处方、住院小结等</view>
</view> </view>
</uploadFile>
<view class="reject" wx:if="{{zdUserInfo.DrugsAuditStatus==2}}">*审核不通过</view>
</block> </block>
</block> </block>
</view> </view>

2
typings/index.d.ts vendored

@ -39,7 +39,7 @@ interface IAppOption {
checkLoginType: (type: pageType[] | 'any', backPath?: string) => boolean checkLoginType: (type: pageType[] | 'any', backPath?: string) => boolean
getMenuInfo: (arg0: WechatMiniprogram.Page.Instance<any, any>) => void getMenuInfo: (arg0: WechatMiniprogram.Page.Instance<any, any>) => void
getUserInfo: (type: 0 | 1 | 2) => Promise<never> getUserInfo: (type: 0 | 1 | 2) => Promise<never>
mpBehavior: (data: { doctor?: boolean; PageName: string }) => void mpBehavior: (data: { doctor?: boolean; PageName: string; detailId?: string; promotionMethodId?: string }) => void
oldMpBehavior: (data: { PositionId: string; OperateType: string; OperateId: string }) => void oldMpBehavior: (data: { PositionId: string; OperateType: string; OperateId: string }) => void
zdMpBehavior: (data: { PageName: string; doctor?: boolean }) => void zdMpBehavior: (data: { PageName: string; doctor?: boolean }) => void
zdGetTheme: () => Promise<'PATIENT'> zdGetTheme: () => Promise<'PATIENT'>

Loading…
Cancel
Save