This commit is contained in:
renjianbo0118
2023-05-14 00:33:17 +08:00
parent 04bd5c3641
commit 548fe4a47b
6 changed files with 107 additions and 95 deletions

View File

@@ -13,20 +13,40 @@ Page({
itemView: [ itemView: [
{ {
icon: "诊前约号", icon: "诊前约号",
title: "诊前约号" title: "全程陪诊",
price:"200",
describe:"服务内容:排队 预约 挂号 缴费 取药 记录医嘱"
}, },
{ {
icon: "代办买药", icon: "诊前约号",
title: "代办买药" title: "诊前约号",
price:"20",
describe:"服务内容:协助办理完成挂号"
},
// {
// icon: "代办买药",
// title: "代办买药",
// price:"30",
// describe:"服务内容:协助代理买药"
// },
{
icon: "取送结果",
title: "代办问诊",
price:"50",
describe:"服务内容:使用病人或者家属取检查报告化验单向医生问明情况"
}, },
{ {
icon: "取送结果", icon: "取送结果",
title: "取送结果" title: "取送结果",
price:"50",
describe:"服务内容:包括给病人或者家属取检查报告化验单等"
}, },
{ // {
icon: "出入院办理", // icon: "出入院办理",
title: "出入院办理" // title: "出入院办理",
} // price:"100",
// describe:"协助办理出入院手续"
// }
], ],
hospitalData: [ hospitalData: [
{ {
@@ -69,7 +89,16 @@ Page({
* 诊前约号、代办买药、取送结果、出入院办理、就医陪诊、园内护理 * 诊前约号、代办买药、取送结果、出入院办理、就医陪诊、园内护理
*/ */
itemClick (options) { itemClick (options) {
console.log(options.currentTarget.dataset.id) // console.log(options.currentTarget.dataset.id)
let item = JSON.stringify(options.currentTarget.dataset.item);
// console.log("传递的item" + item);
console.log("传递的item" + item);
wx.navigateTo({
// url: "/pages/peizhen/peizhendetail?servername=" + options.currentTarget.dataset.id,
url: "/pages/peizhen/peizhendetail?item=" + item,
});
}, },

View File

@@ -14,7 +14,7 @@
</view> </view>
<view class="item-view"> <view class="item-view">
<block wx:for="{{itemView}}" wx:key="id"> <block wx:for="{{itemView}}" wx:key="id">
<view class="item-list" bindtap="itemClick" data-id="{{item.title}}"> <view class="item-list" bindtap="itemClick" data-id="{{item.title}}" data-item="{{item}}">
<view class="item-image"> <view class="item-image">
<image src="../image/home/{{item.icon}}.png" mode="aspectFit"></image> <image src="../image/home/{{item.icon}}.png" mode="aspectFit"></image>
</view> </view>

View File

@@ -23,28 +23,44 @@ Page({
version_number: '1.0', version_number: '1.0',
height: '', height: '',
url: app.globalData.url, url: app.globalData.url,
ceshi: [{ itemView: [
"hospitalId": null, {
"userName": "admin", icon: "诊前约号",
"userId": 1, title: "全程陪诊",
"age": 24, price:"200",
"address": "清华科技园一单元", describe:"服务内容:排队 预约 挂号 缴费 取药 记录医嘱"
"city": "陕西省 咸阳市", },
"experience": "18年", {
"introduce": "刘德华 (Andy Lau),1961年9月27日出生于中国香港新界大埔镇泰亨村[325],毕业于第十期无线艺员训练班,中国香港男演员、歌手、制片人、作词人、中国残疾人福利基金会副理事长。", icon: "诊前约号",
"isMarry": "1", title: "诊前约号",
"nickName": "蒲仁飞", price:"20",
"sex": "汉", describe:"服务内容:协助办理完成挂号"
"userType": "B", },
"avatar": "http://118.25.179.82:8080/rlztest/2023-04-07/ebe08486-b96e-4a9e-bd17-11b868aeee00.jpg", // {
"phonenumber": "18792702166", // icon: "代办买药",
"name": "蒲仁飞", // title: "代办买药",
"facePic": "http://118.25.179.82:8080/rlztest/2023-04-07/ebe08486-b96e-4a9e-bd17-11b868aeee00.jpg", // price:"30",
"frontIdentity": "http://118.25.179.82:8080/rlztest/2023-04-07/ddc4a4ac-4a8d-41c2-8177-9e53c9a2843e.jpg", // describe:"服务内容:协助代理买药"
"backIdentity": "http://118.25.179.82:8080/rlztest/2023-04-07/7a6960e2-05fd-4899-a534-21fbc5032c4d.jpg", // },
"state": "1", {
"identityNo": "612324169855241822" icon: "取送结果",
}] title: "代办问诊",
price:"50",
describe:"服务内容:使用病人或者家属取检查报告化验单向医生问明情况"
},
{
icon: "取送结果",
title: "取送结果",
price:"50",
describe:"服务内容:包括给病人或者家属取检查报告化验单等"
},
// {
// icon: "出入院办理",
// title: "出入院办理",
// price:"100",
// describe:"协助办理出入院手续"
// }
],
}, },
onChange(e) { onChange(e) {
this.setData({ this.setData({

View File

@@ -20,9 +20,9 @@
<!--index.wxml--> <!--index.wxml-->
<view class="contar"> <view class="contar">
<view class="tejiashangpin"> <view class="tejiashangpin">
<view class="Discount" wx:if="{{ceshi.length}}"> <view class="Discount" wx:if="{{itemView.length}}">
<view wx:for="{{ceshi}}" wx:key="{{index}}" wx:for-item="item" class="flex-item bc_green" style='display:flex;background-color: white;margin-right: 10rpx;margin-bottom: 24rpx;'> <view wx:for="{{itemView}}" wx:key="{{index}}" wx:for-item="item" class="flex-item bc_green" style='display:flex;background-color: white;margin-right: 10rpx;margin-bottom: 24rpx;'>
<view class="Group" bindtap="details" data-item="{{item}}"> <view class="Group" bindtap="details" data-item="{{item}}">
<view class="Group-image"> <view class="Group-image">
<image src="../image/abc.png"></image> <image src="../image/abc.png"></image>
@@ -30,14 +30,14 @@
<view class="content"> <view class="content">
<view style="display: flex; flex-direction:row;align-items : flex-end;"> <view style="display: flex; flex-direction:row;align-items : flex-end;">
<view class="title1">{{"全程陪诊"}}</view> <view class="title1">{{item.title}}</view>
<view class="title2">({{"陪护员"}})</view> <view class="title2"></view>
<view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view> <view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view>
<view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view> <view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view>
<view class="title4">{{200}}元</view> <view class="title4">{{item.price}}元</view>
</view> </view>
<view class="tejia"> <view class="tejia">
<view class="Price2">{{"排队 预约 挂号 缴费 取药 记录医嘱等"}}</view> <view class="Price2">{{item.describe}}</view>
</view> </view>
</view> </view>
</view> </view>
@@ -45,52 +45,6 @@
<view wx:for="{{ceshi}}" wx:key="{{index}}" wx:for-item="item" class="flex-item bc_green" style='display:flex;background-color: white;margin-right: 10rpx;margin-bottom: 24rpx;'>
<view class="Group" bindtap="details" data-item="{{item}}">
<view class="Group-image">
<image src="../image/abc.png"></image>
</view>
<view class="content">
<view style="display: flex; flex-direction:row;align-items : flex-end;">
<view class="title1">{{"诊前预约"}}</view>
<view class="title2">({{"陪护员"}})</view>
<view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view>
<view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view>
<view class="title4">{{20}}元</view>
</view>
<view class="tejia">
<view class="Price2">{{"协助办理完成挂号"}}</view>
</view>
</view>
</view>
</view>
<view wx:for="{{ceshi}}" wx:key="{{index}}" wx:for-item="item" class="flex-item bc_green" style='display:flex;background-color: white;margin-right: 10rpx;margin-bottom: 24rpx;'>
<view class="Group" bindtap="details" data-item="{{item}}">
<view class="Group-image">
<image src="../image/abc.png"></image>
</view>
<view class="content">
<view style="display: flex; flex-direction:row;align-items : flex-end;">
<view class="title1">{{"送取结果"}}</view>
<view class="title2">({{"陪护员"}})</view>
<view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view>
<view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view>
<view class="title4">{{50}}元</view>
</view>
<view class="tejia">
<view class="Price2">{{"包括给病人或者家属取检查报告化验单等"}}</view>
</view>
</view>
</view>
</view>
</view> </view>
</view> </view>
</view> </view>

View File

@@ -45,7 +45,7 @@ Page({
clock: '', clock: '',
address: '', address: '',
danjia: 0.01,//单位为元 danjia: 0.01,//单位为元
beizhu: '', beizhu: ''
}, },
@@ -127,14 +127,17 @@ Page({
wx.request({ wx.request({
url: app.globalData.url + '/system/order/insertOrderPz', url: app.globalData.url + '/system/order/insertOrderPz',
data: { data: {
startTime: this.data.seckill_start, bId: "",//陪护人员id
bId: this.data.item.userId, cId: wx.getStorageSync('uid'),//患者id
yuguMoney: this.data.paymoney, yuguMoney: "1",//金额
price: this.data.danjia,// yuliu9: "2",//订单大类1-陪护 2-陪诊
priceType: "1",//1是按天 yuliu10: "1",//订单类型1-全程陪诊,2-诊前约号3-送取报告4-待办问诊
hospitalId: this.data.item.hospitalId, hospitalId: this.data.item.hospitalId,
cId: wx.getStorageSync('uid'), startTime: this.data.seckill_start,
remark: this.data.beizhu, yuliu11:"18691577328",//患者电话
yuliu12:"无",//特殊要求
yuliu13:"东泰城市之光",//送达地址
yuliu14:"610526198701180018"//患者身份证号
}, },
method: 'POST', method: 'POST',
header: { header: {
@@ -221,11 +224,21 @@ Page({
statusBarHeight: statusBarHeight, statusBarHeight: statusBarHeight,
height: 46 + statusBarHeight, height: 46 + statusBarHeight,
}); });
// var that = this;
// this.setData({
// servername: e.servername
// })
// console.log('servername==' + this.data.servername)
var that = this; var that = this;
let item = JSON.parse(e.item); let item = JSON.parse(e.item);
that.setData({ that.setData({
item: item item: item
}); });
console.log("进入订单详情的title==" + that.data.item.title)
}, },
/** /**
* 拨打电话 * 拨打电话

View File

@@ -10,14 +10,14 @@
</view> </view>
<view class="content"> <view class="content">
<view style="display: flex; flex-direction:row;align-items : flex-end;"> <view style="display: flex; flex-direction:row;align-items : flex-end;">
<view class="title1">{{"全程陪诊"}}</view> <view class="title1">{{item.title}}</view>
<view class="title2"></view> <view class="title2"></view>
<view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view> <view wx:if="{{item.sex==1}}" class="title3">{{"男"}}</view>
<view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view> <view wx:if="{{item.sex==0}}" class="title3">{{"女"}}</view>
<view class="title4">{{"200"}}元</view> <view class="title4">{{item.price}}元</view>
</view> </view>
<view class="tejia"> <view class="tejia">
<view class="Price2">{{"排队 预约 挂号 缴费 取药 记录医嘱等"}}</view> <view class="Price2">{{item.describe}}</view>
</view> </view>
</view> </view>
</view> </view>