This commit is contained in:
renjianbo0118
2023-05-14 17:28:38 +08:00
parent 548fe4a47b
commit 4679845dcb
15 changed files with 120 additions and 38 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

View File

@@ -108,6 +108,12 @@ Page({
}) })
}, },
go_peihu(){
wx.navigateTo({
url: '/pages/peihu/peihu',
})
},
/** /**
* 医院列表 * 医院列表
*/ */

View File

@@ -36,7 +36,7 @@
<text class="sub-title">全程无忧</text> <text class="sub-title">全程无忧</text>
</view> </view>
</view> </view>
<view class="main-item"> <view class="main-item" bindtap="go_peihu">
<view> <view>
<image src="../image/home/院内陪护-back.png" mode="aspectFit"></image> <image src="../image/home/院内陪护-back.png" mode="aspectFit"></image>
</view> </view>

View File

@@ -49,3 +49,11 @@
</view> </view>
</view> </view>

View File

@@ -6,20 +6,27 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
show: true, //普通选择器:(普通数组)
actions: [ // array: ['请选择医院', '西京医院', '省人民医院', '红会医院'],
{ objectArray: [{
name: '选项', text: '请选择医院',
value: 10
}, },
{ {
name: '选项', text: '西京医院',
value: 11
}, },
{ {
name: '选项', text: '陕西省人民医院',
subname: '描述信息', value: 12
openType: 'share', },
{
text: '红会医院',
value: 13
}, },
], ],
objectIndex: 0, //默认显示位置
show: true,
height: '', height: '',
seckill_start: '请输入开始日期', seckill_start: '请输入开始日期',
time: 30 * 60 * 60 * 1000, time: 30 * 60 * 60 * 1000,
@@ -44,7 +51,7 @@ Page({
is_ok_click: false, is_ok_click: false,
clock: '', clock: '',
address: '', address: '',
danjia: 0.01,//单位为元 danjia: 0.01, //单位为元
beizhu: '' beizhu: ''
}, },
@@ -108,7 +115,9 @@ Page({
}); });
}, },
onClose() { onClose() {
this.setData({ show: false }); this.setData({
show: false
});
}, },
onSelect(event) { onSelect(event) {
@@ -127,17 +136,17 @@ Page({
wx.request({ wx.request({
url: app.globalData.url + '/system/order/insertOrderPz', url: app.globalData.url + '/system/order/insertOrderPz',
data: { data: {
bId: "",//陪护人员id bId: "", //陪护人员id
cId: wx.getStorageSync('uid'),//患者id cId: wx.getStorageSync('uid'), //患者id
yuguMoney: "1",//金额 yuguMoney: "1", //金额
yuliu9: "2",//订单大类1-陪护 2-陪诊 yuliu9: "2", //订单大类1-陪护 2-陪诊
yuliu10: "1",//订单类型1-全程陪诊,2-诊前约号3-送取报告4-待办问诊 yuliu10: "1", //订单类型1-全程陪诊,2-诊前约号3-送取报告4-待办问诊
hospitalId: this.data.item.hospitalId, hospitalId: this.data.item.hospitalId,
startTime: this.data.seckill_start, startTime: this.data.seckill_start,
yuliu11:"18691577328",//患者电话 yuliu11: "18691577328", //患者电话
yuliu12:"无",//特殊要求 yuliu12: "无", //特殊要求
yuliu13:"东泰城市之光",//送达地址 yuliu13: "东泰城市之光", //送达地址
yuliu14:"610526198701180018"//患者身份证号 yuliu14: "610526198701180018" //患者身份证号
}, },
method: 'POST', method: 'POST',
header: { header: {
@@ -303,5 +312,34 @@ Page({
login: function (e) { login: function (e) {
}, },
//普通选择器2:
bindPickerChange2: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
objectIndex: e.detail.value
})
console.log('picker发送选择改变,医院的id值为', this.data.objectArray[this.data.objectIndex].value)
},
}) })

View File

@@ -32,17 +32,22 @@
{{"陪护时间选择"}} {{"陪护时间选择"}}
</view> </view>
<!--选择器-->
<view class="row-wrap"> <view class="row-wrap">
<view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊医院</view> <view class="label" style="margin-left: 33rpx;">就诊医院</view>
<view class="label-right"> <view class="label-right">
<input model:value="{{goods_name}}" name="nickname" class="input" type="text" placeholder="请选择就诊医院" />
<picker bindchange="bindPickerChange2" value="{{objectIndex}}" range="{{objectArray}}" range-key="text">
<view class="picker">
{{objectArray[objectIndex].text}} >
</view>
</picker>
</view> </view>
</view> </view>
<!--end-->
<view class="row-wrap"> <view class="row-wrap">
<view class="xing" style="color: #FF6E6E;">*</view> <view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊人姓名</view> <view class="label">就诊人姓名</view>
@@ -51,7 +56,8 @@
</view> </view>
</view> </view>
<view class="row-wrap"> <view class="row-wrap">
<view class="label" style="margin-left: 33rpx;">就诊人电话</view> <view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊人电话</view>
<view class="label-right"> <view class="label-right">
<input model:value="{{original_price}}" name="nickname" class="input" type="text" placeholder="请输入就诊人电话" /> <input model:value="{{original_price}}" name="nickname" class="input" type="text" placeholder="请输入就诊人电话" />
</view> </view>
@@ -100,7 +106,7 @@
<view class="payment"> <view class="payment">
<view style="line-height: 56rpx;color:#333;"> <view style="line-height: 56rpx;color:#333;">
<text>总计金额:</text> <text>总计金额:</text>
<text style="font-size:40rpx;color:#FF8F1F;margin-left:20rpx;">{{paymoney}}</text> <text style="font-size:40rpx;color:#FF8F1F;margin-left:20rpx;">{{item.price}}</text>
<text>元</text> <text>元</text>
</view> </view>
<view class="immediately" bindtap="confirm_payy">购买服务</view> <view class="immediately" bindtap="confirm_payy">购买服务</view>
@@ -109,3 +115,16 @@

View File

@@ -402,3 +402,14 @@ image {
font-size: 28rpx; font-size: 28rpx;
padding-right: 30rpx; padding-right: 30rpx;
} }
/*选择器 */
.section__title{
margin-bottom: 20rpx;
}
.section{
margin: 50rpx 0;
font-size: 30rpx;
}