Browse Source

登录模块bug处理

main
kola-web 7 months ago
parent
commit
c628fa2041
  1. 1
      .gitignore
  2. BIN
      src/images/icon-file.png
  3. BIN
      src/images/icon-file1.png
  4. BIN
      src/images/icon-file2.png
  5. BIN
      src/images/icon-file3.png
  6. BIN
      src/images/login-title.png
  7. BIN
      src/images/set-info-bg.png
  8. BIN
      src/images/set-info-result-title.png
  9. BIN
      src/images/start-title.png
  10. 4
      src/miniprogram_npm/dayjs/index.js
  11. 11
      src/module1/pages/cHostipal/index.scss
  12. 2
      src/module1/pages/cHostipal/index.ts
  13. 6
      src/module1/pages/cHostipal/index.wxml
  14. 2
      src/module1/pages/login/index.ts
  15. 3
      src/module1/pages/sHostipal/index.scss
  16. 30
      src/module1/pages/sHostipal/index.ts
  17. 13
      src/module1/pages/sHostipal/index.wxml
  18. 1
      src/module1/pages/setCaseDoctor/index.wxml
  19. 1
      src/module1/pages/setDoctor/index.wxml
  20. 18
      src/module1/pages/setInfo/index.scss
  21. 40
      src/module1/pages/setInfo/index.ts
  22. 19
      src/module1/pages/setInfo/index.wxml
  23. 2
      src/module1/pages/setInfoResult/index.wxml
  24. 27
      src/module1/pages/userInfo/index.ts
  25. 9
      src/pages/cases/index.wxml
  26. 5
      src/pages/home/index.ts
  27. 2
      src/pages/home/index.wxml

1
.gitignore vendored

@ -1,3 +1,4 @@
node_modules node_modules
src/images/.svn src/images/.svn
miniprogram_npm miniprogram_npm
.idea

BIN
src/images/icon-file.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/images/icon-file1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
src/images/icon-file2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/images/icon-file3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
src/images/login-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 29 KiB

BIN
src/images/set-info-bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

After

Width:  |  Height:  |  Size: 228 KiB

BIN
src/images/set-info-result-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 53 KiB

BIN
src/images/start-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 39 KiB

4
src/miniprogram_npm/dayjs/index.js

File diff suppressed because one or more lines are too long

11
src/module1/pages/cHostipal/index.scss

@ -12,6 +12,13 @@ page {
vertical-align: -6rpx; vertical-align: -6rpx;
} }
} }
.wait {
padding: 16rpx;
font-size: 28rpx;
color: #f77900;
text-align: center;
background-color: #FFF7E8;
}
.page { .page {
padding: 32rpx; padding: 32rpx;
border-radius: 16rpx; border-radius: 16rpx;
@ -30,12 +37,12 @@ page {
color: rgba(133, 133, 133, 1); color: rgba(133, 133, 133, 1);
&.required::before { &.required::before {
margin-right: 10rpx; margin-right: 10rpx;
content: '*'; content: "*";
color: rgba(206, 52, 31, 1); color: rgba(206, 52, 31, 1);
} }
&::before { &::before {
margin-right: 28rpx; margin-right: 28rpx;
content: ''; content: "";
} }
} }
.content { .content {

2
src/module1/pages/cHostipal/index.ts

@ -37,7 +37,7 @@ Page({
url: "?r=takeda/reg/last-apply-hospital", url: "?r=takeda/reg/last-apply-hospital",
data: {}, data: {},
}).then((res) => { }).then((res) => {
if (!Array.isArray(res)) { if (!Array.isArray(res) && res.AuditStatus !== 1) {
this.setData({ this.setData({
applyHostipal: res, applyHostipal: res,

6
src/module1/pages/cHostipal/index.wxml

@ -1,6 +1,9 @@
<view class="reject" wx:if="{{applyHostipal && applyHostipal.AuditStatus===2}}"> <view class="reject" wx:if="{{applyHostipal && applyHostipal.AuditStatus===2}}">
<image class="icon" src="{{imageUrl}}icon-error.png?t={{Timestamp}}"></image> <image class="icon" src="{{imageUrl}}icon-error.png?t={{Timestamp}}"></image>
审核不通过原因:{{applyHostipal.RejectReason}}。 审核不通过原因:{{applyHostipal.RejectReason}}
</view>
<view class="wait" wx:if="{{applyHostipal && applyHostipal.AuditStatus===0}}">
您提交的{{applyHostipal.Name}}医院信息正在审核中
</view> </view>
<view class="page"> <view class="page">
<view class="form"> <view class="form">
@ -89,7 +92,6 @@
<van-popup show="{{ showArea }}" round position="bottom"> <van-popup show="{{ showArea }}" round position="bottom">
<van-cascader <van-cascader
wx:if="{{ showArea }}"
value="{{ cascaderValue }}" value="{{ cascaderValue }}"
title="请选择所在地区" title="请选择所在地区"
options="{{ area }}" options="{{ area }}"

2
src/module1/pages/login/index.ts

@ -115,7 +115,7 @@ Page({
submitCallback() { submitCallback() {
app.globalData.isLogin = 1; app.globalData.isLogin = 1;
app.waitLogin().then(() => { app.waitLogin().then(() => {
wx.reLaunch({ url: "/module1/pages/index/index" }); wx.reLaunch({ url: "/module1/pages/setInfo/index" });
}); });
}, },
handleProtool() { handleProtool() {

3
src/module1/pages/sHostipal/index.scss

@ -63,6 +63,7 @@ page {
font-weight: bold; font-weight: bold;
} }
.tag { .tag {
margin-left: 12rpx;
vertical-align: 2px; vertical-align: 2px;
padding: 0 8rpx; padding: 0 8rpx;
line-height: 32rpx; line-height: 32rpx;
@ -98,7 +99,7 @@ page {
font-size: 28rpx; font-size: 28rpx;
line-height: 72rpx; line-height: 72rpx;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
border-radius: 32rpx; border-radius: 82rpx;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%); background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
} }
} }

30
src/module1/pages/sHostipal/index.ts

@ -2,8 +2,6 @@ const app = getApp<IAppOption>();
Page({ Page({
data: { data: {
prev: "",
showArea: false, showArea: false,
fieldNames: { text: "label", value: "value", children: "children" }, fieldNames: { text: "label", value: "value", children: "children" },
@ -26,12 +24,7 @@ Page({
area: [], area: [],
}, },
onLoad(options) { onLoad() {
if (options.prev) {
this.setData({
prev: decodeURIComponent(options.prev),
});
}
app.waitLogin(true).then(() => { app.waitLogin(true).then(() => {
this.getHostipalDict(); this.getHostipalDict();
this.getList(); this.getList();
@ -121,21 +114,14 @@ Page({
handleSelect(e: any) { handleSelect(e: any) {
const { index } = e.currentTarget.dataset; const { index } = e.currentTarget.dataset;
const { prev, list } = this.data; const { list } = this.data;
const item: any = list[index]; const item: any = list[index];
if (prev) { const eventChannel = this.getOpenerEventChannel();
const isParams = this.data.prev.includes("?"); eventChannel.emit("acceptDataFromOpenedPage", {
wx.redirectTo({ hid: item.HospitalId,
url: `${this.data.prev}${isParams ? "&" : "?"}hid=${item.HospitalId}&hname=${item.ShortName || item.Name}`, hname: item.ShortName || item.Name,
}); });
} else { wx.navigateBack();
const eventChannel = this.getOpenerEventChannel();
eventChannel.emit("acceptDataFromOpenedPage", {
hid: item.HospitalId,
hname: item.ShortName || item.Name,
});
wx.navigateBack();
}
}, },
handlePushDoctor() { handlePushDoctor() {
wx.navigateTo({ wx.navigateTo({

13
src/module1/pages/sHostipal/index.wxml

@ -9,9 +9,9 @@
<input <input
model:value="{{search}}" model:value="{{search}}"
class="input" class="input"
placeholder-class="搜索医院名称" placeholder-class="place-input"
type="text" type="text"
placeholder="搜索" placeholder="搜索医院名称"
confirm-type="search" confirm-type="search"
bindconfirm="handleSearch" bindconfirm="handleSearch"
/> />
@ -24,11 +24,9 @@
<view class="list"> <view class="list">
<view class="list-item" wx:for="{{list}}" wx:key="HospitalId" bind:tap="handleSelect" data-index="{{index}}"> <view class="list-item" wx:for="{{list}}" wx:key="HospitalId" bind:tap="handleSelect" data-index="{{index}}">
<view class="title"> <view class="title">
<view class="name"> <view class="name">{{item.ShortName || item.Name}}</view>
{{item.ShortName || item.Name}} <view class="tag">
<view class="tag"> {{hospitalClassification[item.HospitalClassification]}}{{hospitalLevel[item.HospitalLevel]}}
{{hospitalClassification[item.HospitalClassification]}}{{hospitalLevel[item.HospitalLevel]}}
</view>
</view> </view>
</view> </view>
<view class="site"> <view class="site">
@ -47,7 +45,6 @@
<van-popup show="{{ showArea }}" round position="bottom"> <van-popup show="{{ showArea }}" round position="bottom">
<van-cascader <van-cascader
wx:if="{{ showArea }}"
value="{{ cascaderValue }}" value="{{ cascaderValue }}"
title="请选择所在地区" title="请选择所在地区"
options="{{ area }}" options="{{ area }}"

1
src/module1/pages/setCaseDoctor/index.wxml

@ -81,7 +81,6 @@
<van-popup show="{{ showArea }}" round position="bottom"> <van-popup show="{{ showArea }}" round position="bottom">
<van-cascader <van-cascader
wx:if="{{ showArea }}"
value="{{ cascaderValue }}" value="{{ cascaderValue }}"
title="请选择所在地区" title="请选择所在地区"
options="{{ area }}" options="{{ area }}"

1
src/module1/pages/setDoctor/index.wxml

@ -88,7 +88,6 @@
<van-popup show="{{ showArea }}" round position="bottom"> <van-popup show="{{ showArea }}" round position="bottom">
<van-cascader <van-cascader
wx:if="{{ showArea }}"
value="{{ cascaderValue }}" value="{{ cascaderValue }}"
title="请选择所在地区" title="请选择所在地区"
options="{{ area }}" options="{{ area }}"

18
src/module1/pages/setInfo/index.scss

@ -1,5 +1,18 @@
.page { .page {
overflow: hidden; overflow: hidden;
.reject {
padding: 20rpx 32rpx;
background-color: #ffedea;
font-size: 28rpx;
color: #ed4f39;
display: flex;
align-items: center;
gap: 16rpx;
.icon {
width: 32rpx;
height: 32rpx;
}
}
.container { .container {
margin-top: 244rpx; margin-top: 244rpx;
padding: 32rpx 32rpx 250rpx; padding: 32rpx 32rpx 250rpx;
@ -22,7 +35,10 @@
display: flex; display: flex;
align-items: top; align-items: top;
border-bottom: 1px solid rgba(224, 224, 224, 0.5); border-bottom: 1px solid rgba(224, 224, 224, 0.5);
line-height: 1; line-height: 1;
&.row-center{
align-items: center;
}
.label { .label {
padding-right: 10rpx; padding-right: 10rpx;
flex-shrink: 0; flex-shrink: 0;

40
src/module1/pages/setInfo/index.ts

@ -5,6 +5,7 @@ Page({
applyDoctorInfo: null, applyDoctorInfo: null,
applyHostipalInfo: null, applyHostipalInfo: null,
inviteName: "", inviteName: "",
RejectReason: "",
DoctorLevel: {}, DoctorLevel: {},
DoctorTitleType: {}, DoctorTitleType: {},
@ -19,18 +20,13 @@ Page({
RegisterImg: "", RegisterImg: "",
PositionImg: "", PositionImg: "",
}, },
onLoad(options) { onLoad() {
if (options.hid) {
this.setData({
HospitalId: options.hid,
HospitalName: options.hname,
});
}
app.waitLogin(true).then(() => { app.waitLogin(true).then(() => {
this.getApplyDoctor(); this.getApplyDoctor();
this.getLoastApplyHostipal(); this.getLoastApplyHostipal();
this.getDoctorDict(); this.getDoctorDict();
const doctorId = app.globalData.scene?.doctorId; const doctorId = app.globalData.scene?.doctorId;
if (doctorId) { if (doctorId) {
this.getDoctorInfo(doctorId); this.getDoctorInfo(doctorId);
} }
@ -55,6 +51,8 @@ Page({
QualificationImg: res.QualificationImg, QualificationImg: res.QualificationImg,
RegisterImg: res.RegisterImg, RegisterImg: res.RegisterImg,
PositionImg: res.PositionImg, PositionImg: res.PositionImg,
RejectReason: res.AuditStatus === 2 ? res.RejectReason : "",
}); });
} }
}); });
@ -102,8 +100,17 @@ Page({
}); });
}, },
handleHostipal() { handleHostipal() {
wx.redirectTo({ wx.navigateTo({
url: `/module1/pages/sHostipal/index?prev=${encodeURIComponent("/module1/pages/setInfo/index")}`, url: "/module1/pages/sHostipal/index",
events: {
acceptDataFromOpenedPage: (data) => {
this.setData({
HospitalId: data.hid,
HospitalName: data.hname,
});
},
},
success: () => {},
}); });
}, },
handleTitleType(e) { handleTitleType(e) {
@ -113,7 +120,7 @@ Page({
}); });
}, },
handleSubmit() { handleSubmit() {
const { let {
AuditId, AuditId,
Name, Name,
HospitalId, HospitalId,
@ -125,6 +132,11 @@ Page({
RegisterImg, RegisterImg,
PositionImg, PositionImg,
} = this.data; } = this.data;
const scene = app.globalData.scene;
if (scene?.doctorId) {
InviteDoctorId = scene.doctorId;
}
if (!Name) { if (!Name) {
wx.showToast({ wx.showToast({
title: "请输入姓名", title: "请输入姓名",
@ -189,11 +201,17 @@ Page({
PositionImg, PositionImg,
}, },
}).then((res) => { }).then((res) => {
wx.navigateTo({ app.globalData.scene = null;
wx.reLaunch({
url: `/module1/pages/setInfoResult/index?isf=${res.isFollow}&iname=${res.InviteDoctorName}`, url: `/module1/pages/setInfoResult/index?isf=${res.isFollow}&iname=${res.InviteDoctorName}`,
}); });
}); });
}, },
handleChangeHostipal() {
wx.navigateTo({
url: "/module1/pages/cHostipal/index",
});
},
}); });
export {}; export {};

19
src/module1/pages/setInfo/index.wxml

@ -2,22 +2,28 @@
class="page" class="page"
style="background: url({{imageUrl}}set-info-bg.png?r={{Timestamp}}) no-repeat top center/100% 356rpx;" style="background: url({{imageUrl}}set-info-bg.png?r={{Timestamp}}) no-repeat top center/100% 356rpx;"
> >
<view class="reject" wx:if="{{RejectReason}}">
<image class="icon" src="{{imageUrl}}icon-error.png?t={{Timestamp}}"></image>
审核不通过原因:{{RejectReason}}
</view>
<view class="container"> <view class="container">
<view class="invite" wx:if="{{inviteName}}">{{inviteName}}医生为您的邀约医生</view> <view class="invite" wx:if="{{inviteName}}">{{inviteName}}医生为您的邀约医生</view>
<view class="invite" wx:else>您没有邀约医生,可能会影响您的审核</view>
<view class="card"> <view class="card">
<view class="row"> <view class="row row-center">
<view class="label required">您的姓名</view> <view class="label required">您的姓名</view>
<view class="content"> <view class="content">
<input <input
model:value="{{Name}}" model:value="{{Name}}"
class="input" class="input"
maxlength="12"
placeholder-class="place-input" placeholder-class="place-input"
placeholder="请输入您的真实姓名" placeholder="请输入您的真实姓名"
type="text" type="text"
/> />
</view> </view>
</view> </view>
<view class="row"> <view class="row row-center">
<view class="label required">所在医院</view> <view class="label required">所在医院</view>
<view class="error-wrap"> <view class="error-wrap">
<view class="select-wrap" bind:tap="handleHostipal"> <view class="select-wrap" bind:tap="handleHostipal">
@ -27,7 +33,11 @@
<view class="error" wx:if="{{applyHostipalInfo && applyHostipalInfo.AuditStatus===0}}"> <view class="error" wx:if="{{applyHostipalInfo && applyHostipalInfo.AuditStatus===0}}">
您提交的{{applyHostipalInfo.ShortName || applyHostipalInfo.Name}}医院信息待审核 您提交的{{applyHostipalInfo.ShortName || applyHostipalInfo.Name}}医院信息待审核
</view> </view>
<view class="error" wx:if="{{applyHostipalInfo && applyHostipalInfo.AuditStatus===2}}"> <view
class="error"
wx:if="{{applyHostipalInfo && applyHostipalInfo.AuditStatus===2}}"
bind:tap="handleChangeHostipal"
>
您提交的{{applyHostipalInfo.ShortName || applyHostipalInfo.Name}}医院信息已驳回 去修改> 您提交的{{applyHostipalInfo.ShortName || applyHostipalInfo.Name}}医院信息已驳回 去修改>
</view> </view>
</view> </view>
@ -53,6 +63,7 @@
type="text" type="text"
placeholder="请输入" placeholder="请输入"
model:value="{{OtherTitle}}" model:value="{{OtherTitle}}"
maxlength="10"
/> />
</view> </view>
</view> </view>
@ -63,7 +74,7 @@
<view class="credentials"> <view class="credentials">
<view class="c-title"> <view class="c-title">
<view class="tip">请上传高清图片</view> <view class="tip">请上传高清图片</view>
<view class="ex">查看示例</view> <!-- <view class="ex">查看示例</view> -->
</view> </view>
<view class="files"> <view class="files">
<uploadFile class="upload" bind:file="handleFile" data-key="RegisterImg"> <uploadFile class="upload" bind:file="handleFile" data-key="RegisterImg">

2
src/module1/pages/setInfoResult/index.wxml

@ -9,7 +9,7 @@
<view class="notice"> <view class="notice">
<view wx:if="{{InviteDoctorName}}"> <view wx:if="{{InviteDoctorName}}">
已将信息提交给 已将信息提交给
<text class="link">王大志医生</text> <text class="link">{{InviteDoctorName}}医生</text>
</view> </view>
审核通过后,您可进入罕心守护项目 审核通过后,您可进入罕心守护项目
</view> </view>

27
src/module1/pages/userInfo/index.ts

@ -1,4 +1,4 @@
const _app = getApp<IAppOption>() const _app = getApp<IAppOption>();
Page({ Page({
data: { data: {
@ -8,12 +8,29 @@ Page({
onLoad() {}, onLoad() {},
changePhone() { changePhone() {
wx.navigateTo({ wx.navigateTo({
url: '/module1/pages/changePhone/index', url: "/module1/pages/changePhone/index",
}) });
}, },
handleBrief() { handleBrief() {
this.setData({ this.setData({
popupBriefShow: true, popupBriefShow: true,
}) });
}, },
}) handleLoginOut() {
wx.showModal({
title: "确认退出登录?",
success(res) {
if (res.confirm) {
wx.ajax({
method: "POST",
url: "?r=takeda/account/reg-logout",
}).then((res) => {
wx.reLaunch({
url: "/module1/pages/login/index",
});
});
}
},
});
},
});

9
src/pages/cases/index.wxml

@ -51,7 +51,7 @@
mode="date" mode="date"
bind:change="handleSearch" bind:change="handleSearch"
> >
<view class="date-content">{{submitTimeBegin||'开始'}}</view> <view class="date-content">{{submitTimeBegin || '开始'}}</view>
</picker> </picker>
- -
<picker <picker
@ -80,7 +80,7 @@
mode="date" mode="date"
bind:change="handleSearch" bind:change="handleSearch"
> >
<view class="date-content">{{feedbackTimeBegin||'开始'}}</view> <view class="date-content">{{feedbackTimeBegin || '开始'}}</view>
</picker> </picker>
- -
<picker <picker
@ -107,7 +107,7 @@
<view class="row"> <view class="row">
<view class="label">地区</view> <view class="label">地区</view>
<view class="picker-content" bind:tap="handleArea"> <view class="picker-content" bind:tap="handleArea">
<view class="content">{{cityName+countyName || '地区'}}</view> <view class="content">{{cityName + countyName || '地区'}}</view>
<van-icon name="arrow-down" /> <van-icon name="arrow-down" />
</view> </view>
</view> </view>
@ -293,7 +293,7 @@
</view> </view>
</view> </view>
<view class="site"> <view class="site">
{{item.ProvinceName === item.CityName ? '':item.ProvinceName}} {{item.ProvinceName === item.CityName ? '' : item.ProvinceName}}
{{item.CityName}}{{item.CountyName}}{{item.Address}} {{item.CityName}}{{item.CountyName}}{{item.Address}}
</view> </view>
</view> </view>
@ -344,7 +344,6 @@
<van-popup show="{{ showArea }}" round position="bottom"> <van-popup show="{{ showArea }}" round position="bottom">
<van-cascader <van-cascader
wx:if="{{ showArea }}"
value="{{ cascaderValue }}" value="{{ cascaderValue }}"
title="请选择所在地区" title="请选择所在地区"
options="{{ area }}" options="{{ area }}"

5
src/pages/home/index.ts

@ -36,4 +36,9 @@ Page({
}); });
} }
}, },
handleSure() {
this.setData({
show1: false,
});
},
}); });

2
src/pages/home/index.wxml

@ -24,7 +24,7 @@
<view></view> <view></view>
后续病例可邀约对方参与 后续病例可邀约对方参与
</view> </view>
<view class="sure">确认</view> <view class="sure" bind:tap="handleSure">确认</view>
</view> </view>
</view> </view>
</van-popup> </van-popup>

Loading…
Cancel
Save