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>
</view>
</view>
<view class="main-item">
<view class="main-item" bindtap="go_peihu">
<view>
<image src="../image/home/院内陪护-back.png" mode="aspectFit"></image>
</view>

View File

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

View File

@@ -6,20 +6,27 @@ Page({
* 页面的初始数据
*/
data: {
show: true,
actions: [
{
name: '选项',
//普通选择器:(普通数组)
// array: ['请选择医院', '西京医院', '省人民医院', '红会医院'],
objectArray: [{
text: '请选择医院',
value: 10
},
{
name: '选项',
text: '西京医院',
value: 11
},
{
name: '选项',
subname: '描述信息',
openType: 'share',
text: '陕西省人民医院',
value: 12
},
{
text: '红会医院',
value: 13
},
],
objectIndex: 0, //默认显示位置
show: true,
height: '',
seckill_start: '请输入开始日期',
time: 30 * 60 * 60 * 1000,
@@ -108,7 +115,9 @@ Page({
});
},
onClose() {
this.setData({ show: false });
this.setData({
show: false
});
},
onSelect(event) {
@@ -303,5 +312,34 @@ Page({
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 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">
<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>
<!--end-->
<view class="row-wrap">
<view class="xing" style="color: #FF6E6E;">*</view>
<view class="label">就诊人姓名</view>
@@ -51,7 +56,8 @@
</view>
</view>
<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">
<input model:value="{{original_price}}" name="nickname" class="input" type="text" placeholder="请输入就诊人电话" />
</view>
@@ -100,7 +106,7 @@
<view class="payment">
<view style="line-height: 56rpx;color:#333;">
<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>
</view>
<view class="immediately" bindtap="confirm_payy">购买服务</view>
@@ -109,3 +115,16 @@

View File

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