init version kelfy-mini for new gitea

This commit is contained in:
terry.wang
2025-11-13 13:38:59 +08:00
commit 493fa4f1e1
763 changed files with 55626 additions and 0 deletions

178
pages/selectBg/selectBg.js Normal file
View File

@@ -0,0 +1,178 @@
// pages/selectBg/selectBg.js
var app = getApp()
let common = require('../../config/common.js')
Page({
/**
* 页面的初始数据
*/
data: {
list:[],
show:false,
name:'',
painId:'',
relate:'',
card:'',
cardNum:'',
menuList:[
// {name:"病理报告单",id:'0'},
{name:"检查报告单",id:'2'},
{name:"检验报告单",id:'1'},
]
},
naviToMsg(e){
let cardNum = this.data.cardNum
console.log(e.currentTarget.dataset.item.id)
let id = e.currentTarget.dataset.item.id
wx.navigateTo({
url: '/pages/bgMsg/bgMsg?cardNum='+cardNum+'&id='+id,
})
},
getPerList(){
wx.request({
url:'https://fy.btlsoln.com:8443/getPatientByOpenid?openid',
method:"GET",
data:{
openid:app.globalData.openId
},
header: {
'content-type': 'application/json'
},
success: (res)=> {
console.log(res,"患者")
if(res.data.length > 0){
let data = res.data
data.map((item,index) => {
if(item.TYPE == 0){
this.setData({
name:item.TRUE_NAME,
painId:item.PATIENT_ID,
relate:item.RELATE,
cardNum:item.MEDICAL_CARD,
cardType:item.CARD_TYPE
})
}
})
this.setData({
list:data
})
}else{
wx.showModal({
title: '',
content: '您还未绑定就诊人,请先绑定就诊人信息!',
cancelText:"否",
confirmText:'是',
success: function(res) {
if (res.confirm) {
wx.navigateTo({
url: '/pages/userMsgDel/userMsgDel?state=0',
})
}else{
wx.switchTab({
url: '/pages/index/index',
})
}
}
})
}
}
})
},
showPop(){
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
confirm(e){
console.log(e.currentTarget.dataset.item)
let user = e.currentTarget.dataset.item
this.setData({
name:user.TRUE_NAME,
painId:user.PATIENT_ID,
relate:user.RELATE,
card:user.ID_CARD,
show:false,
cardNum:user.MEDICAL_CARD
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
if(app.globalData.openId == ""||app.globalData.openId==null){
wx.showToast({title: '加载中', icon: 'loading', duration: 30000});
common.checkGlobalOpenId().then(res=>{
app.globalData.openId = res
this.getPerList()
wx.hideToast();
},
err=>{
//初始化失败,弹框提示
})
}else{
this.getPerList()
}
// this.getPerList()
// this.setData({
// name:app.globalData.name,
// painId:app.globalData.painId,
// type:app.globalData.relate,
// card:app.globalData.sfId,
// cardNum:app.globalData.cardNum
// })
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
wx.setNavigationBarTitle({
title: "选择报告类型",
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -0,0 +1,5 @@
{
"usingComponents": {
"van-popup": "@vant/weapp/popup/index"
}
}

View File

@@ -0,0 +1,53 @@
<view class="main">
<view class="content">
<view class="item">
<view class="up">
<view class="name">{{name}}</view>
<view class="msg">
<view wx:if="{{relate == 0}}" class="t1">本人</view>
<view wx:elif="{{relate == 1}}" class="t1">子女</view>
<view wx:elif="{{relate == 2}}" class="t1">夫妻 </view>
<view wx:elif="{{relate == 3}}" class="t1">父母 </view>
<view wx:elif="{{relate == 4}}" class="t1">朋友 </view>
<view class="icon" bindlongtap="qiehuan" bindtap="showPop"></view>
</view>
</view>
<view class="down">
<view>{{cardNum}}</view>
<view>切换就诊人</view>
</view>
</view>
<view class="bt">选择查询报告类型</view>
<view class="item2" wx:for="{{menuList}}" wx:key="item" data-item="{{item}}" bindtap="naviToMsg">
<view class="name2">{{item.name}}</view>
<view class="icon2">></view>
</view>
</view>
<van-popup
show="{{ show }}"
round
closeable
position="bottom"
bind:close="onClose">
<view class="popWrap">
<view class="title1">选择就诊人</view>
<view class="userWrap">
<view class="userItem" wx:for="{{list}}" wx:key="item" data-item="{{item}}" bindtap="confirm">
<view class="msg1">
<view class="up1">
<view class="name1">{{item.TRUE_NAME}}</view>
<view wx:if="{{item.RELATE == 0}}" class="guanxi1">本人</view>
<view wx:elif="{{item.RELATE == 1}}" class="guanxi1">子女</view>
<view wx:elif="{{item.RELATE == 2}}" class="guanxi1">夫妻 </view>
<view wx:elif="{{item.RELATE == 3}}" class="guanxi1">父母 </view>
<view wx:elif="{{item.RELATE == 4}}" class="guanxi1">朋友 </view>
</view>
<view class="down1">{{item.MEDICAL_CARD}}</view>
<!-- <view class="down1">{{item.ID_CARD}}</view> -->
</view>
<view class="icon1">></view>
</view>
</view>
</view>
</van-popup>
</view>

View File

@@ -0,0 +1,180 @@
/* pages/record/record.wxss */
.main{
margin: 30rpx 0;
width: 750rpx;
}
.content{
width: 90%;
margin: 0 auto;
}
.item{
height: 200rpx;
width: 100%;
border-radius: 5rpx;
margin: 40rpx auto;
box-shadow:0px 0px 5rpx #e2e2e2;
background: rgba(245,249,255);
padding: 30rpx;
box-sizing: border-box;
}
.up{
height: 80rpx;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.name{
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
color: #333;
}
.msg{
flex: 1;
height: 70rpx;
line-height: 80rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.t1{
height: 50rpx;
width: 130rpx;
text-align: center;
line-height: 50rpx;
font-size:33rpx;
border-radius: 25rpx;
color: rgba(45,135,255);
background: rgba(226,237,254);
}
.mr{
font-size: 30rpx;
color: #666;
}
.down{
height: 80rpx;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
line-height: 80rpx;
font-size: 30rpx;
color: #666;
}
.icon{
height: 50rpx;
width: 50rpx;
padding: 10rpx;
box-sizing: border-box;
border-radius: 50%;
background-color: rgba(0,110,255);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAZpJREFUaEPtV7tKBEEQrIoEf8Bc/AFzES8yEMFEEMFEBD9AMFVjwdhEzBTMhItMVMz9ATH3BwSzkoWLltu9me7hZlZnk022uuvRM80SA384cP6oAnInWBOoCTgdqCPkNNAN/98JSNoCsEfywG2lsYA5AUnrAF4nfa9Inhg5uGAmAZJWAby3Ol+QPHexMYCjBUhaAfBRAvmGQ5QASUsAvkohHyVA0iKA75LIBwuQtADgp0X+xTCyZgjJ0TTwzBGStAzg09w5EZDkVK69AiStAXhLxMFVJlqApF0AD66uCcFRAiRtTJ03cq5zH6J/5hkIKZLzmyogp/vBeyA3yb7+f3eEJKkg509JXkZt4oIEHJK87TKzc4QKEbBNcmw6A5Ke5zxC7eU5YsDizH6IJTV/cWctszZJPoUYmFVAB/kdko8h5LPugQ7y+yTvQ8lnE9BB/ojkTQz5bAKaxpKuARxPCPdelaZbKNYJy/eS7gCMSTZv05P1EJsYt0BVQAoXPTVqAh73UmBrAilc9NSoCXjcS4GtCaRw0VNj8An8AqTHZDFDvpKtAAAAAElFTkSuQmCC);
background-size:100%;
background-repeat: no-repeat;
}
.popWrap{
height: 100%;
width: 100%;
padding: 10rpx;
box-sizing: border-box;
}
.title1{
height: 100rpx;
width: 100%;
line-height: 100rpx;
text-align: center;
font-size: 33rpx;
color: #333;
}
.userWrap{
height: 100%;
width: 95%;
margin: 0 auto;
}
.userWrap :last-child{
border-bottom: none;
}
.userItem{
height: 160rpx;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1rpx solid #f8f8f8;
}
.msg1{
height: 160rpx;
width: 500rpx;
}
.up1{
height: 80rpx;
width: 100%;
display: flex;
align-items: center
}
.name1{
font-size: 33rpx;
height: 80rpx;
color: #333;
line-height: 80rpx;
}
.guanxi1{
height: 60rpx;
width: 120rpx;
margin-left: 20rpx;
background: rgba(228,240,255);
border-radius: 30rpx;
text-align: center;
line-height: 80rpx;
color: rgba(0,110,255);
font-size: 32rpx;
display: flex;
justify-content: center;
align-items: center;
}
.down1{
height: 80rpx;
width: 100%;
font-size: 33rpx;
color: rgb(158, 154, 154);
line-height: 80rpx;
}
.icon1{
color: rgb(180, 179, 179);
padding-right:15rpx ;
}
.bt{
height: 100rpx;
width: 100%;
font-size: 35rpx;
color: #333;
line-height: 100rpx;
border-bottom: 3rpx solid #f8f8f8;
display: flex;
align-items: center;
}
.item2{
height: 120rpx;
width: 100%;
line-height: 120rpx;
border-bottom: 3rpx solid #f8f8f8;
display: flex;
justify-content: space-between;
align-items: center;
}
.name2{
height: 120rpx;
width: 350rpx;
font-size: 33rpx;
color: #666;
}
.icon2{
height: 120rpx;
width: 80rpx;
text-align: center;
color: #e2e2e2;
font-size: 35rpx;
}