This commit is contained in:
左哥 2025-06-24 23:47:16 +08:00
parent 8913fd40a7
commit 1fb4055e46
14 changed files with 206 additions and 71 deletions

View File

@ -24,10 +24,10 @@ function request(url, method = 'GET', data = {}) {
setTimeout(() => { setTimeout(() => {
if(res.data.code && res.data.code == 10103){ if(res.data.code && res.data.code == 10103){
// wx.removeStorageSync('access_token'); wx.removeStorageSync('access_token');
// wx.switchTab({ wx.switchTab({
// url: '/pages/my/index', url: '/pages/my/index',
// }) })
reject(res.data); reject(res.data);
} else { } else {
console.log(res.data) console.log(res.data)

View File

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4945922 */ font-family: "iconfont"; /* Project id 4945922 */
src: url('//at.alicdn.com/t/c/font_4945922_o43abax97g.woff2?t=1750755738154') format('woff2'), src: url('//at.alicdn.com/t/c/font_4945922_182jbfyzero.woff2?t=1750774471454') format('woff2'),
url('//at.alicdn.com/t/c/font_4945922_o43abax97g.woff?t=1750755738154') format('woff'), url('//at.alicdn.com/t/c/font_4945922_182jbfyzero.woff?t=1750774471454') format('woff'),
url('//at.alicdn.com/t/c/font_4945922_o43abax97g.ttf?t=1750755738154') format('truetype'); url('//at.alicdn.com/t/c/font_4945922_182jbfyzero.ttf?t=1750774471454') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-yanjing_yincang:before {
content: "\e6cc";
}
.icon-yanjing-xianshi:before {
content: "\e668";
}
.icon-gouxuan:before { .icon-gouxuan:before {
content: "\e608"; content: "\e608";
} }
@ -100,6 +108,3 @@
.icon-xiangji:before { .icon-xiangji:before {
content: "\e609"; content: "\e609";
} }

View File

@ -2,16 +2,9 @@
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"usingComponents": { "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-button": "tdesign-miniprogram/button/button",
"t-icon": "tdesign-miniprogram/icon/icon", "ec-canvas": "../../ec-canvas/ec-canvas",
"nav": "/components/nav", "t-col": "tdesign-miniprogram/col/col",
"card": "/components/card", "t-row": "tdesign-miniprogram/row/row"
"ec-canvas": "../../ec-canvas/ec-canvas"
} }
} }

View File

@ -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 { .group_1 {
position: relative; position: relative;
z-index: 1; z-index: 1;
@ -44,10 +117,31 @@
.home-content { .home-content {
// height: calc(100% - @nav-bar-height); // height: calc(100% - @nav-bar-height);
background-color: #F8F8F8;
padding: 28rpx; padding: 28rpx;
padding-bottom: 0; padding-bottom: 0;
position: relative; position: relative;
z-index: 1; 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{ .item-title-img{
height: 36rpx; height: 36rpx;
// width: auto; // width: auto;

View File

@ -5,7 +5,35 @@
<text class="iconfont icon-fanhui image_2" bind:tap="toBack"></text> <text class="iconfont icon-fanhui image_2" bind:tap="toBack"></text>
<text lines="1" class="text_1">患者详情页</text> <text lines="1" class="text_1">患者详情页</text>
</view> </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">女&nbsp;·&nbsp;2岁5个月</text></text>
<text lines="1" class="text_3">下次随访时间2025-12-12</text>
</view>
</view>
<view class="home-content"> <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"> <view class="item-title">
<image class="item-title-icon" src="../../assets/images/home/icon_1.svg"></image> <image class="item-title-icon" src="../../assets/images/home/icon_1.svg"></image>
宝宝成长曲线</view> 宝宝成长曲线</view>

View File

@ -10,21 +10,21 @@ Page({
getCodeText: '获取验证码', getCodeText: '获取验证码',
mobile: '13888888888', mobile: '13888888888',
password: 'doctor2025', password: 'doctor2025',
showPassword: false,
}, },
onLoad(options) { onLoad(options) {
}, },
bindKeyInput(e){ bindKeyInput(e) {
const { mode } = e.currentTarget.dataset; const { mode } = e.currentTarget.dataset;
this.setData({ this.setData({
[mode]: e.detail.value [mode]: e.detail.value
}) })
}, },
async login() { async login() {
// 验证手机号 // 验证手机号
if (!this.data.mobile) { if (!this.data.mobile) {
wx.showToast({ wx.showToast({
@ -49,8 +49,8 @@ Page({
}); });
return; return;
} }
const res = await request('doctor/login', 'post', { const res = await request('doctor/login', 'post', {
password: aesCryptoJS(this.data.password), password: aesCryptoJS(this.data.password),
mobile: this.data.mobile mobile: this.data.mobile
@ -59,16 +59,17 @@ Page({
wx.switchTab({ wx.switchTab({
url: `/pages/my/index`, url: `/pages/my/index`,
}); });
// if (res.is_personal_information_complete) {
// wx.switchTab({ },
// url: `/pages/my/index`, toBack() {
// }); wx.navigateBack({
// } else { delta: 1,
// wx.navigateTo({ });
// url: `/pages/my/info-edit/index`, },
// });
// }
},
togglePassword() {
this.setData({
showPassword: !this.data.showPassword
});
},
}); });

View File

@ -98,14 +98,19 @@
border-radius: 24rpx; border-radius: 24rpx;
margin-top: 32rpx; margin-top: 32rpx;
flex-direction: row; flex-direction: row;
display: flex;
justify-content: flex-center;
padding: 32rpx 40rpx 34rpx 40rpx; padding: 32rpx 40rpx 34rpx 40rpx;
} }
.image-text_2 { .image-text_2 {
flex-direction: row;
display: flex; display: flex;
justify-content: space-between; position: relative;
.yanjing{
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
opacity: 0.7;
}
} }
.thumbnail_2 { .thumbnail_2 {
font-size: 40rpx; font-size: 40rpx;
@ -114,7 +119,6 @@
transform: translateY(4rpx); transform: translateY(4rpx);
} }
.text-group_3 { .text-group_3 {
overflow-wrap: break-word;
// color: rgba(170,170,170,1); // color: rgba(170,170,170,1);
font-size: 32rpx; font-size: 32rpx;
letter-spacing: 0rpx; letter-spacing: 0rpx;

View File

@ -2,7 +2,7 @@
<view class="box_1"> <view class="box_1">
<view class="image_1"></view> <view class="image_1"></view>
<view class="image-wrapper_1"> <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> </view>
<view class="box_2"> <view class="box_2">
@ -18,8 +18,10 @@
</view> </view>
<view class="section_2"> <view class="section_2">
<view class="image-text_2"> <view class="image-text_2">
<text class="iconfont icon-mima thumbnail_2"></text> <text class="iconfont icon-mima1 thumbnail_2"></text>
<input lines="1" type="number" class="text-group_3" placeholder="请输入密码" data-mode="password" value="{{password}}"></input> <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>
<!-- <view class="block_1"></view> <!-- <view class="block_1"></view>
<text lines="1" class="text_3" bind:tap="getCode">{{getCodeText}}</text> --> <text lines="1" class="text_3" bind:tap="getCode">{{getCodeText}}</text> -->

View File

@ -1,16 +1,6 @@
{ {
"navigationStyle": "custom", "navigationStyle": "custom",
"usingComponents": { "usingComponents": {
"t-cell": "tdesign-miniprogram/cell/cell", "t-button": "tdesign-miniprogram/button/button"
"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"
} }
} }

View File

@ -175,12 +175,14 @@
image{ image{
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 120rpx;
} }
} }
.block_4 { .block_4 {
height: 120rpx;
display: flex; display: flex;
flex-direction: column; align-items: center;
margin: 4rpx 0 0 24rpx; padding-left: 20rpx;
} }
.text-group_4 { .text-group_4 {
display: flex; display: flex;

View File

@ -12,7 +12,7 @@
<view class="section_2" wx:if="{{isLogin}}" > <view class="section_2" wx:if="{{isLogin}}" >
<view class="image_5"> <view class="image_5">
<image src="../../assets/images/my/doctor.png" class=""></image> <image src="../../assets/images/logo.jpg" class=""></image>
</view> </view>
<view class="block_4"> <view class="block_4">
@ -23,7 +23,7 @@
</view> </view>
<view class="section_2" wx:if="{{!isLogin}}" bind:tap="onLogin"> <view class="section_2" wx:if="{{!isLogin}}" bind:tap="onLogin">
<view class="image_5"> <view class="image_5">
<image src="../../assets/images/my/doctor.png" class=""></image> <image src="../../assets/images/logo.jpg" class=""></image>
</view> </view>
<view class="block_4"> <view class="block_4">

View File

@ -5,8 +5,10 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
username: '',
list: [] list: []
}, },
page: 1,
handleClick(e){ handleClick(e){
wx.navigateTo({ wx.navigateTo({
@ -14,12 +16,19 @@ Page({
}) })
}, },
async getList() { 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({ this.setData({
list: res.list list: res.list
}) })
}, },
changeUsername(){
this.page = 1
this.getList()
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载

View File

@ -45,20 +45,27 @@
.box_3 { .box_3 {
background-color: rgba(255,255,255,1.000000); background-color: rgba(255,255,255,1.000000);
border-radius: 40rpx; border-radius: 40rpx;
display: flex;
flex-direction: row;
margin: 36rpx 12rpx 0 0; margin: 36rpx 12rpx 0 0;
padding: 24rpx 432rpx 24rpx 24rpx; padding: 0 24rpx;
height: 78rpx;
} }
.image-text_1 { .image-text_1 {
width: 246rpx; width: 100%;
flex-direction: row;
display: flex; 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 { .thumbnail_1 {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin-right: 20rpx;
// flex: auto;
} }
.text-group_1 { .text-group_1 {
overflow-wrap: break-word; overflow-wrap: break-word;

View File

@ -9,7 +9,7 @@
<view class="box_3"> <view class="box_3">
<view class="image-text_1"> <view class="image-text_1">
<text class="iconfont icon-sousuo thumbnail_1"></text> <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> </view>
<view class="box_4"> <view class="box_4">
@ -43,7 +43,7 @@
</view> </view>
</view> </view>
<view class="block_2"> <!-- <view class="block_2">
<view class="image-text_3"> <view class="image-text_3">
<view class="box_7"></view> <view class="box_7"></view>
<view class="text-group_3"> <view class="text-group_3">
@ -84,7 +84,7 @@
<text lines="1" class="text_19">术后3月</text> <text lines="1" class="text_19">术后3月</text>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
<image src="https://lanhu-oss-2537-2.lanhuapp.com/SketchPng5307b1af86169f255826abaf863153204cb2945f88383eb8f7ba6d59f57697e1" class="image_3"></image> <image src="https://lanhu-oss-2537-2.lanhuapp.com/SketchPng5307b1af86169f255826abaf863153204cb2945f88383eb8f7ba6d59f57697e1" class="image_3"></image>