Merge branch 'main' of https://git.1024tool.vip/xz/doctor-mini into main
This commit is contained in:
commit
e593e0cd7a
@ -24,10 +24,10 @@ function request(url, method = 'GET', data = {}) {
|
||||
setTimeout(() => {
|
||||
|
||||
if(res.data.code && res.data.code == 10103){
|
||||
// wx.removeStorageSync('access_token');
|
||||
// wx.switchTab({
|
||||
// url: '/pages/my/index',
|
||||
// })
|
||||
wx.removeStorageSync('access_token');
|
||||
wx.switchTab({
|
||||
url: '/pages/my/index',
|
||||
})
|
||||
reject(res.data);
|
||||
} else {
|
||||
console.log(res.data)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 4945922 */
|
||||
src: url('//at.alicdn.com/t/c/font_4945922_o43abax97g.woff2?t=1750755738154') format('woff2'),
|
||||
url('//at.alicdn.com/t/c/font_4945922_o43abax97g.woff?t=1750755738154') format('woff'),
|
||||
url('//at.alicdn.com/t/c/font_4945922_o43abax97g.ttf?t=1750755738154') format('truetype');
|
||||
src: url('//at.alicdn.com/t/c/font_4945922_182jbfyzero.woff2?t=1750774471454') format('woff2'),
|
||||
url('//at.alicdn.com/t/c/font_4945922_182jbfyzero.woff?t=1750774471454') format('woff'),
|
||||
url('//at.alicdn.com/t/c/font_4945922_182jbfyzero.ttf?t=1750774471454') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
@ -13,6 +13,14 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-yanjing_yincang:before {
|
||||
content: "\e6cc";
|
||||
}
|
||||
|
||||
.icon-yanjing-xianshi:before {
|
||||
content: "\e668";
|
||||
}
|
||||
|
||||
.icon-gouxuan:before {
|
||||
content: "\e608";
|
||||
}
|
||||
@ -100,6 +108,3 @@
|
||||
.icon-xiangji:before {
|
||||
content: "\e609";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2,16 +2,9 @@
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "首页",
|
||||
"usingComponents": {
|
||||
"t-tabs": "tdesign-miniprogram/tabs/tabs",
|
||||
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
|
||||
"t-swiper": "tdesign-miniprogram/swiper/swiper",
|
||||
"t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav",
|
||||
"t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh",
|
||||
"t-message": "tdesign-miniprogram/message/message",
|
||||
"t-button": "tdesign-miniprogram/button/button",
|
||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||
"nav": "/components/nav",
|
||||
"card": "/components/card",
|
||||
"ec-canvas": "../../ec-canvas/ec-canvas"
|
||||
"ec-canvas": "../../ec-canvas/ec-canvas",
|
||||
"t-col": "tdesign-miniprogram/col/col",
|
||||
"t-row": "tdesign-miniprogram/row/row"
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,6 +16,79 @@
|
||||
}
|
||||
|
||||
|
||||
|
||||
.group_2 {
|
||||
overflow-wrap: break-word;
|
||||
color: rgba(144,147,153,1);
|
||||
font-size: 24rpx;
|
||||
font-family: Alibaba-PuHuiTi-R;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
line-height: 34rpx;
|
||||
margin: 24rpx 0 0 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
padding: 28rpx;
|
||||
.box_1 {
|
||||
border-radius: 100%;
|
||||
background-image: url(https://lanhu-dds-backend.oss-cn-beijing.aliyuncs.com/merge_image/imgs/e2d2f77550f64a02bebd425d1db7d2e3_mergeImage.png);
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border: 1px solid rgba(248,248,248,1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.text-group_1 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 16rpx 0 16rpx 24rpx;
|
||||
}
|
||||
.text_2 {
|
||||
overflow-wrap: break-word;
|
||||
color: rgba(17,17,17,1);
|
||||
font-size: 36rpx;
|
||||
font-family: Alibaba-PuHuiTi-M;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
line-height: 36rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
.text_3 {
|
||||
overflow-wrap: break-word;
|
||||
color: rgba(96,98,102,1);
|
||||
font-size: 28rpx;
|
||||
font-family: Alibaba-PuHuiTi-R;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
line-height: 28rpx;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
.text_4 {
|
||||
color: rgba(96,98,102,1);
|
||||
font-size: 24rpx;
|
||||
text-align: left;
|
||||
line-height: 24rpx;
|
||||
margin: 28rpx 0 0 0rpx;
|
||||
margin-left: 24rpx;
|
||||
}
|
||||
.box_2 {
|
||||
background-color: rgba(255,93,93,0.000000);
|
||||
border-radius: 100%;
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 16rpx 0 88rpx 250rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.group_1 {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
@ -44,10 +117,31 @@
|
||||
|
||||
.home-content {
|
||||
// height: calc(100% - @nav-bar-height);
|
||||
background-color: #F8F8F8;
|
||||
padding: 28rpx;
|
||||
padding-bottom: 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
border-radius: 40rpx 40rpx 0rpx 0rpx;
|
||||
.text_1{
|
||||
font-size: 36rpx;
|
||||
color: var(--td-text-color);
|
||||
}
|
||||
.core-indicators{
|
||||
.box_2{
|
||||
margin-top: 24rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 24rpx;
|
||||
box-shadow: 0 0 30rpx 0 rgba(0,0,0,0.1);
|
||||
padding: 24rpx;
|
||||
.box_2_item{
|
||||
text-align: center;
|
||||
height: 200rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.item-title-img{
|
||||
height: 36rpx;
|
||||
// width: auto;
|
||||
|
||||
@ -5,7 +5,35 @@
|
||||
<text class="iconfont icon-fanhui image_2" bind:tap="toBack"></text>
|
||||
<text lines="1" class="text_1">患者详情页</text>
|
||||
</view>
|
||||
<view class="group_2">
|
||||
<view class="box_1"></view>
|
||||
<view class="text-group_1">
|
||||
<text lines="1" class="text_2">张知梦<text lines="1" decode="true" class="text_4">女 · 2岁5个月</text></text>
|
||||
<text lines="1" class="text_3">下次随访时间:2025-12-12</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="home-content">
|
||||
|
||||
<view class="core-indicators">
|
||||
<text lines="1" class="text_1">核心指标</text>
|
||||
<view class="box_2">
|
||||
<t-row>
|
||||
<t-col span="12" t-class="dark">
|
||||
<view class="box_2_item">
|
||||
<view>术后时长3个月</view>
|
||||
</view>
|
||||
</t-col>
|
||||
<t-col span="12" t-class="light">
|
||||
<view >高危/PELD 12</view>
|
||||
<view></view>
|
||||
</t-col>
|
||||
<t-col span="12" t-class="dark">col-8</t-col>
|
||||
</t-row>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item-title">
|
||||
<image class="item-title-icon" src="../../assets/images/home/icon_1.svg"></image>
|
||||
宝宝成长曲线</view>
|
||||
|
||||
@ -10,21 +10,21 @@ Page({
|
||||
getCodeText: '获取验证码',
|
||||
mobile: '13888888888',
|
||||
password: 'doctor2025',
|
||||
|
||||
showPassword: false,
|
||||
},
|
||||
|
||||
|
||||
|
||||
onLoad(options) {
|
||||
|
||||
|
||||
},
|
||||
bindKeyInput(e){
|
||||
bindKeyInput(e) {
|
||||
const { mode } = e.currentTarget.dataset;
|
||||
this.setData({
|
||||
[mode]: e.detail.value
|
||||
})
|
||||
},
|
||||
async login() {
|
||||
async login() {
|
||||
// 验证手机号
|
||||
if (!this.data.mobile) {
|
||||
wx.showToast({
|
||||
@ -49,8 +49,8 @@ Page({
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const res = await request('doctor/login', 'post', {
|
||||
password: aesCryptoJS(this.data.password),
|
||||
mobile: this.data.mobile
|
||||
@ -59,16 +59,17 @@ Page({
|
||||
wx.switchTab({
|
||||
url: `/pages/my/index`,
|
||||
});
|
||||
// if (res.is_personal_information_complete) {
|
||||
// wx.switchTab({
|
||||
// url: `/pages/my/index`,
|
||||
// });
|
||||
// } else {
|
||||
// wx.navigateTo({
|
||||
// url: `/pages/my/info-edit/index`,
|
||||
// });
|
||||
// }
|
||||
},
|
||||
|
||||
},
|
||||
toBack() {
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
togglePassword() {
|
||||
this.setData({
|
||||
showPassword: !this.data.showPassword
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
@ -98,14 +98,19 @@
|
||||
border-radius: 24rpx;
|
||||
margin-top: 32rpx;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
justify-content: flex-center;
|
||||
|
||||
padding: 32rpx 40rpx 34rpx 40rpx;
|
||||
}
|
||||
.image-text_2 {
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
.yanjing{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
.thumbnail_2 {
|
||||
font-size: 40rpx;
|
||||
@ -114,7 +119,6 @@
|
||||
transform: translateY(4rpx);
|
||||
}
|
||||
.text-group_3 {
|
||||
overflow-wrap: break-word;
|
||||
// color: rgba(170,170,170,1);
|
||||
font-size: 32rpx;
|
||||
letter-spacing: 0rpx;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<view class="box_1">
|
||||
<view class="image_1"></view>
|
||||
<view class="image-wrapper_1">
|
||||
<text class="iconfont icon-fanhui image_2"></text>
|
||||
<text class="iconfont icon-fanhui image_2" bind:tap="toBack"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box_2">
|
||||
@ -18,8 +18,10 @@
|
||||
</view>
|
||||
<view class="section_2">
|
||||
<view class="image-text_2">
|
||||
<text class="iconfont icon-mima thumbnail_2"></text>
|
||||
<input lines="1" type="number" class="text-group_3" placeholder="请输入密码" data-mode="password" value="{{password}}"></input>
|
||||
<text class="iconfont icon-mima1 thumbnail_2"></text>
|
||||
<input lines="1" type="text" class="text-group_3" placeholder="请输入密码" data-mode="password" password="{{!showPassword}}" value="{{password}}"></input>
|
||||
<text class="iconfont icon-yanjing_yincang yanjing" wx:if="{{!showPassword}}" bindtap="togglePassword"></text>
|
||||
<text class="iconfont icon-yanjing-xianshi yanjing" wx:if="{{showPassword}}" bindtap="togglePassword"></text>
|
||||
</view>
|
||||
<!-- <view class="block_1"></view>
|
||||
<text lines="1" class="text_3" bind:tap="getCode">{{getCodeText}}</text> -->
|
||||
|
||||
@ -1,16 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"t-cell": "tdesign-miniprogram/cell/cell",
|
||||
"t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
|
||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||
"t-divider": "tdesign-miniprogram/divider/divider",
|
||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||
"t-image": "tdesign-miniprogram/image/image",
|
||||
"t-navbar": "tdesign-miniprogram/navbar/navbar",
|
||||
"t-grid": "tdesign-miniprogram/grid/grid",
|
||||
"t-grid-item": "tdesign-miniprogram/grid-item/grid-item",
|
||||
"t-tag": "tdesign-miniprogram/tag/tag",
|
||||
"nav": "/components/nav"
|
||||
"t-button": "tdesign-miniprogram/button/button"
|
||||
}
|
||||
}
|
||||
|
||||
@ -175,12 +175,14 @@
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 120rpx;
|
||||
}
|
||||
}
|
||||
.block_4 {
|
||||
height: 120rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 4rpx 0 0 24rpx;
|
||||
align-items: center;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
.text-group_4 {
|
||||
display: flex;
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
<view class="section_2" wx:if="{{isLogin}}" >
|
||||
<view class="image_5">
|
||||
<image src="../../assets/images/my/doctor.png" class=""></image>
|
||||
<image src="../../assets/images/logo.jpg" class=""></image>
|
||||
</view>
|
||||
|
||||
<view class="block_4">
|
||||
@ -23,7 +23,7 @@
|
||||
</view>
|
||||
<view class="section_2" wx:if="{{!isLogin}}" bind:tap="onLogin">
|
||||
<view class="image_5">
|
||||
<image src="../../assets/images/my/doctor.png" class=""></image>
|
||||
<image src="../../assets/images/logo.jpg" class=""></image>
|
||||
</view>
|
||||
|
||||
<view class="block_4">
|
||||
|
||||
@ -5,8 +5,10 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
username: '',
|
||||
list: []
|
||||
},
|
||||
page: 1,
|
||||
|
||||
handleClick(e){
|
||||
wx.navigateTo({
|
||||
@ -14,12 +16,19 @@ Page({
|
||||
})
|
||||
},
|
||||
async getList() {
|
||||
const res = await request('doctor/patients')
|
||||
const res = await request('doctor/patients', {
|
||||
username: this.data.username,
|
||||
page: this.page,
|
||||
page_size: 20
|
||||
})
|
||||
this.setData({
|
||||
list: res.list
|
||||
})
|
||||
},
|
||||
|
||||
changeUsername(){
|
||||
this.page = 1
|
||||
this.getList()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
|
||||
@ -45,20 +45,27 @@
|
||||
.box_3 {
|
||||
background-color: rgba(255,255,255,1.000000);
|
||||
border-radius: 40rpx;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 36rpx 12rpx 0 0;
|
||||
padding: 24rpx 432rpx 24rpx 24rpx;
|
||||
padding: 0 24rpx;
|
||||
height: 78rpx;
|
||||
}
|
||||
.image-text_1 {
|
||||
width: 246rpx;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
// justify-content: space-between;
|
||||
line-height: 78rpx;
|
||||
input{
|
||||
flex: auto;
|
||||
height: 78rpx;
|
||||
border: none;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.thumbnail_1 {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
margin-right: 20rpx;
|
||||
// flex: auto;
|
||||
}
|
||||
.text-group_1 {
|
||||
overflow-wrap: break-word;
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<view class="box_3">
|
||||
<view class="image-text_1">
|
||||
<text class="iconfont icon-sousuo thumbnail_1"></text>
|
||||
<text lines="1" class="text-group_1">请输入患者姓名</text>
|
||||
<input lines="1" class="text-group_1" placeholder="请输入患者姓名" value="{{username}}" bindinput="changeUsername"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box_4">
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="block_2">
|
||||
<!-- <view class="block_2">
|
||||
<view class="image-text_3">
|
||||
<view class="box_7"></view>
|
||||
<view class="text-group_3">
|
||||
@ -84,7 +84,7 @@
|
||||
<text lines="1" class="text_19">术后3月</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<image src="https://lanhu-oss-2537-2.lanhuapp.com/SketchPng5307b1af86169f255826abaf863153204cb2945f88383eb8f7ba6d59f57697e1" class="image_3"></image>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user