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

105
pages/bgXq/bgXq.js Normal file
View File

@@ -0,0 +1,105 @@
// pages/bgXq/bgXq.js
Page({
/**
* 页面的初始数据
*/
data: {
name:'',
sex:'',
age:'',
reprq:'',
HisOrderName:'',
list:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options,"接受")
this.setData({
name:options.name,
sex:options.sex,
age:options.age,
reprq:options.reprq,
HisOrderName:options.HisOrderName,
id:options.id
})
let repno = options.repno
let cardno = options.cardno
wx.request({
url:'https://fy.btlsoln.com:8443/his/getInspectReport?cardno&ksrq&repno&jsrq&lb&brlx',
method:"GET",
data:{
ksrq:'',
jsrq:'',
repno:repno,
cardno:cardno,
lb:'1',
brlx:"1"
},
header: {
'content-type': 'application/json'
},
success: (res)=> {
console.log(res,"报告详情")
this.setData({
list:res.data.list
})
}
})
wx.setNavigationBarTitle({
title: '报告详情',
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

3
pages/bgXq/bgXq.json Normal file
View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

34
pages/bgXq/bgXq.wxml Normal file
View File

@@ -0,0 +1,34 @@
<!--pages/bgXq/bgXq.wxml-->
<view class="main">
<view class="content">
<view class="item1">
<view class="up">
<view>姓名:{{name}}</view>
<view>性别:{{sex}}</view>
<view>年龄:{{age}}</view>
</view>
<view class="down">报告日期:{{reprq}}</view>
</view>
<view class="item2" wx:if="{{id == 2}}">
<view class="msgItem" wx:for="{{list}}" wx:key="item">
<view>{{item.xmdm}}{{item.xmjg}}</view>
</view>
</view>
<view class="item3" wx:if="{{id == 1}}">
<view class="xmTitle">
<view>名称</view>
<view>代码</view>
<view>结果</view>
<view>单位</view>
<view>参考值</view>
</view>
<view class="xmMsg"wx:for="{{list}}" wx:key="item">
<view>{{item.xmmc}}</view>
<view>{{item.xmdm}}</view>
<view>{{item.xmjg}}</view>
<view>{{item.xmdw}}</view>
<view>{{item.jgckz}}</view>
</view>
</view>
</view>
</view>

102
pages/bgXq/bgXq.wxss Normal file
View File

@@ -0,0 +1,102 @@
/* pages/bgXq/bgXq.wxss */
.main{
margin: 30rpx 0;
width: 750rpx;
}
.content{
width: 90%;
margin: 0 auto;
}
.item1{
height: 200rpx;
width: 100%;
padding: 10rpx;
box-sizing: border-box;
border-radius: 10rpx;
background: rgba(245,249,255);
box-shadow:0px 0px 15rpx #e2e2e2;
display: flex;
flex-direction: column;
}
.up{
height: 50%;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 35rpx;
color: #333;
}
.down{
height: 50%;
width: 100%;
display: flex;
align-items: center;
font-size: 30rpx;
color: #666;
}
.item2{
width: 100%;
margin-top: 50rpx;
padding: 10rpx 20rpx;
box-sizing: border-box;
border-radius: 10rpx;
background: #fff;
box-shadow:0px 0px 15rpx #e2e2e2;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.msgItem{
width: 100%;
display: flex;
padding: 20rpx 0;
font-size: 33rpx;
color: #666;
}
.item3{
width: 100%;
margin-top: 50rpx;
border-radius: 10rpx;
background: #fff;
box-shadow:0px 0px 15rpx #e2e2e2;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.xmTitle{
height: 100rpx;
width: 100%;
display: flex;
align-items: center;
border-bottom: 1rpx solid #e2e2e2;
}
.xmMsg{
width: 100%;
display: flex;
padding: 0 20rpx;
box-sizing: border-box;
align-items: center;
border-bottom: 1rpx solid #e2e2e2;
}
.xmMsg view{
width: 20%;
padding: 20rpx 0;
word-wrap:break-word;
font-size: 25rpx;
color: #333;
display: flex;
justify-content: center;
align-items: center;
}
.xmTitle view{
height: 100rpx;
width: 20%;
font-size: 30rpx;
color: #666;
display: flex;
justify-content: center;
align-items: center;
}