更新小程序仓库

This commit is contained in:
zoujiandong
2023-11-17 09:51:35 +08:00
parent 13f54a26df
commit 4506940c2d
936 changed files with 60022 additions and 0 deletions
+104
View File
@@ -0,0 +1,104 @@
// pages/prescriptDetail/prescriptDetail.js
const app = getApp()
import {prescriptionDetail} from "../../api/prescription"
import {throttle} from "../../utils/util"
Page({
/**
* 页面的初始数据
*/
data: {
prescript:null,
img_host:'https://oss.prod.applets.igandanyiyuan.com/applet/patient/static',
fromType:''
},
goBack(){
wx.navigateBack({
delta: 1,
})
},
goPayInfo:throttle(function(){
if(getCurrentPages().length>=8){
wx.reLaunch({
url: '/pages/payInfo/payInfo?order_prescription_id='+this.data.order_prescription_id+"&fromType="+this.data.fromType,
})
}else{
app.method.navigateTo({
url: '/pages/payInfo/payInfo?order_prescription_id='+this.data.order_prescription_id+"&fromType="+this.data.fromType
})
}
}),
handelprescriptionDetail(id){
prescriptionDetail(id).then(data=>{
this.setData({
prescript:data
})
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if(options.fromType){
this.setData({
fromType:options.fromType
})
}
this.setData({
order_prescription_id:options.order_prescription_id
})
this.handelprescriptionDetail(options.order_prescription_id)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
img_host:app.hostConfig().imghost
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
})
@@ -0,0 +1,8 @@
{
"usingComponents": {
"nav":"../../components/nav/nav",
"van-dialog": "@vant/weapp/dialog/index"
},
"navigationStyle":"custom",
"navigationBarTitleText": "肝胆相照互联网医院"
}
@@ -0,0 +1,32 @@
<!--pages/prescriptDetail/prescriptDetail.wxml-->
<nav navName="处方详情"></nav>
<view class="page {{prescript.prescription_status==2?'active':''}}">
<!-- <view class="ui-navigatorbar" style="background: #FFFFFF;border-bottom: 1rpx solid #E3E4E5;">
<image class="ui-navigatorbar-back" bindtap="goBack" src="../../assets/images/back.png" />
<view class="ui-title">处方详情</view>
</view> -->
<view class="form">
<view class="imgbox">
<image src="{{prescript.prescription_img_oss_path}}" class="prescription" ></image>
<image src="{{prescript.doctor_sign_image}}" mode="aspectFill" class="doctorSign" ></image>
<image src="{{prescript.pharmacist_sign_image}}" class="pharmacistSign" mode="aspectFill"></image>
<image src="{{prescript.hospital_sign_image}}" class="hospitalSign"></image>
</view>
<!-- 处方状态(1:待审核 2:待使用 3:已失效 4:已使用) -->
<image src="{{img_host+'/unuse.png'}}" class="zhang" wx:if="{{prescript.prescription_status==1}}"></image>
<image src="{{img_host+'/unuse.png'}}" class="zhang" wx:elif="{{prescript.prescription_status==2}}"></image>
<image src="{{img_host+'/nowork.png'}}" class="zhang" wx:elif="{{prescript.prescription_status==3}}"></image>
<image src="{{img_host+'/hasuse.png'}}" class="zhang" wx:else></image>
<view class="tips">
<view class="tip">1)处方有效期为3天,请及时结算;</view>
<view class="tip">2)本处方限于成都金牛欣欣相照互联网医院使用,自行下载配药不具有处方效力;</view>
<view class="tip">3)根据《医疗机构药事管理规定》第二十八条,为保障患者用药安全,药品一经发出,不得退换;</view>
<view class="tip">4)按照"网订店送"规定,处方由药店药师复核,确认用药无误签字后方可生效。</view>
</view>
</view>
<view class="pay" bindtap="goPayInfo" wx:if="{{prescript.prescription_status==2}}">去结算</view>
</view>
<van-dialog id="van-dialog" confirm-button-color="#3CC7C0" />
+153
View File
@@ -0,0 +1,153 @@
/* pages/prescriptDetail/prescriptDetail.wxss */
.page{
display: flex;
flex-direction: column;
background-color: #fff;
}
.imgbox{
width:100%;
height:0;
position: relative;
padding-bottom:141%;
}
.prescription{
position: absolute;
top:0px;
height:100%;
bottom:0px;
width: 100%;
}
.doctorSign{
position: absolute;
width:100rpx;
height:53rpx;
left:124rpx;
bottom:116rpx;
}
.doctorSign .signimg{
height:53rpx;
width:100%;
}
.pharmacistSign{
position: absolute;
width:168rpx;
height:85rpx;
left:405rpx;
bottom:96rpx;
}
.hospitalSign{
right:30rpx;
bottom:200rpx;
position: absolute;
width:160rpx;
height:160rpx;
}
.form{
margin-top: 172rpx;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
flex:1;
background: #FFFFFF;
padding:70rpx 32rpx 30rpx;
position: relative;
}
.cell:last-child .form{
border-bottom:none;
}
.title .status{
color: #EF4F20;
font-size: 28rpx;
}
.row .outdate{
color: #333;
font-size: 28rpx;
}
.title .date{
color:#000;
font-size: 34rpx;
}
.form .row{
display: flex;
line-height: 52rpx;
}
.row .unit{
color:#666;
font-weight: normal;
display: inline;
white-space: nowrap;
}
.row .bar{
margin:0 8rpx 1rpx;
color:#333;
}
.single{
display: inline-flex;
white-space: nowrap;
align-items: center;
position: relative;
margin-right:20rpx;
margin-left: 15rpx;
}
.single:first-child{
margin-left: 0;
}
.single::after{
content:"|";
color:#333;
position: absolute;
top:-3rpx;
right:-20rpx;
}
.single:last-child::after{
display: none;
}
.row .name{
color:#333;
font-size: 28rpx;
}
.zhang{
position: absolute;
top:-10rpx;
left:-15rpx;
width:249rpx;
height:249rpx;
}
.row .desc{
color:#333;
font-size: 28rpx;
font-weight: bold;
display: flex;
flex-wrap: wrap;
}
.tips{
padding:30rpx 32rpx 0rpx;
background-color: #fff;
}
.tip{
margin-top: 20rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 44rpx;
}
.pay{
display: flex;
margin:0 32rpx 20rpx;
align-items: center;
justify-content: center;
height: 94rpx;
background: #3CC7C0;
border-radius: 47rpx;
font-size: 36rpx;
font-weight: 400;
color: #FFFFFF;
}