2023/5/24调试医院列表
This commit is contained in:
@@ -17,13 +17,15 @@ Page({
|
||||
icon: "全程陪诊",
|
||||
title: "全程陪诊",
|
||||
price:"200",
|
||||
describe:"服务内容:排队 预约 挂号 缴费 取药 记录医嘱"
|
||||
describe:"服务内容:排队 预约 挂号 缴费 取药 记录医嘱",
|
||||
ordertype:"1"
|
||||
},
|
||||
{
|
||||
icon: "诊前约号",
|
||||
title: "诊前约号",
|
||||
price:"20",
|
||||
describe:"服务内容:协助办理完成挂号"
|
||||
describe:"服务内容:协助办理完成挂号",
|
||||
ordertype:"2"
|
||||
},
|
||||
// {
|
||||
// icon: "代办买药",
|
||||
@@ -35,13 +37,15 @@ Page({
|
||||
icon: "代办问诊",
|
||||
title: "代办问诊",
|
||||
price:"100",
|
||||
describe:"服务内容:使用病人或者家属取检查报告化验单向医生问明情况"
|
||||
describe:"服务内容:使用病人或者家属取检查报告化验单向医生问明情况",
|
||||
ordertype:"4"
|
||||
},
|
||||
{
|
||||
icon: "取送结果",
|
||||
title: "取送结果",
|
||||
price:"50",
|
||||
describe:"服务内容:包括给病人或者家属取检查报告化验单等"
|
||||
describe:"服务内容:包括给病人或者家属取检查报告化验单等",
|
||||
ordertype:"3"
|
||||
},
|
||||
// {
|
||||
// icon: "出入院办理",
|
||||
@@ -104,7 +108,7 @@ Page({
|
||||
|
||||
go_peihu(){
|
||||
wx.navigateTo({
|
||||
url: '/pages/peihu/peihu',
|
||||
url: '/pages/peihu/peihu?' + "hospitalId=" + "",
|
||||
})
|
||||
},
|
||||
//获取医院列表
|
||||
@@ -140,10 +144,11 @@ Page({
|
||||
* 医院列表
|
||||
*/
|
||||
listItemTap(options){
|
||||
console.log(options),
|
||||
console.log(options.currentTarget.dataset.id),
|
||||
wx.navigateTo({
|
||||
url: '/pages/peihu/peihu',
|
||||
url: '/pages/peihu/peihu?' + "hospitalId=" + options.currentTarget.dataset.id,
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,32 +3,38 @@ var app = getApp();
|
||||
Page({
|
||||
data: {
|
||||
option1: [{
|
||||
text: '全部医院',
|
||||
text: '切换医院',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
text: '西京医院',
|
||||
text: '西安市高新医院',
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
text: '陕西省人民医院',
|
||||
text: '第四军医大学西京医院',
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
text: '陕西省人民医院1',
|
||||
value: 5
|
||||
text: '陕西省人民医院',
|
||||
value: 3
|
||||
},
|
||||
],
|
||||
value1: 0,
|
||||
version_number: '1.0',
|
||||
height: '',
|
||||
url: app.globalData.url,
|
||||
hospitalId:''
|
||||
},
|
||||
onChange(e) {
|
||||
this.setData({
|
||||
timeData: e.detail,
|
||||
});
|
||||
|
||||
shuChange: function (e) {
|
||||
console.log(e.detail);
|
||||
|
||||
this.setData({
|
||||
hospitalId: e.detail
|
||||
})
|
||||
this.getBannerAndCat();
|
||||
},
|
||||
|
||||
//生命周期回调——监听小程序启动或切前台。
|
||||
onShow: function () {
|
||||
this.getBannerAndCat();
|
||||
@@ -41,7 +47,7 @@ Page({
|
||||
header: app.getRequestHeader(),
|
||||
method: 'GET',
|
||||
data: {
|
||||
|
||||
hospitalId:this.data.hospitalId
|
||||
},
|
||||
success: (res) => {
|
||||
var resp = res.data;
|
||||
@@ -67,12 +73,16 @@ Page({
|
||||
back(e){
|
||||
wx.navigateBack()
|
||||
},
|
||||
onLoad() {
|
||||
onLoad: function (e) {
|
||||
var statusBarHeight = wx.getSystemInfoSync().statusBarHeight;
|
||||
this.setData({
|
||||
statusBarHeight: statusBarHeight,
|
||||
height: 46 + statusBarHeight,
|
||||
});
|
||||
console.log('e.hospitalId' + e.hospitalId);
|
||||
this.setData({
|
||||
hospitalId: e.hospitalId
|
||||
})
|
||||
},
|
||||
changeDateTime1(e) {
|
||||
this.setData({
|
||||
|
||||
@@ -1,49 +1,47 @@
|
||||
|
||||
<view class="area1">
|
||||
<image style="height: 336rpx;width: 100%;" src="../image/home_bj.png"></image>
|
||||
<image style="height: 336rpx;width: 100%;" src="../image/home_bj.png"></image>
|
||||
</view>
|
||||
<view style="margin-top: -200rpx;">
|
||||
<!-- <image style="width: 25rpx;height: 50rpx;" src="../image/right.png"></image> -->
|
||||
<view class="" style="display: flex; flex-direction:row;justify-content: center;font-size: 34rpx;color: #ffffff;">{{"服务列表"}}</view>
|
||||
<!-- <image style="width: 25rpx;height: 50rpx;" src="../image/right.png"></image> -->
|
||||
<view class="" style="display: flex; flex-direction:row;justify-content: center;font-size: 34rpx;color: #ffffff;">{{"服务列表"}}</view>
|
||||
</view>
|
||||
|
||||
<view style="display: flex; flex-direction:row;align-items : flex-end; height: 40rpx;margin-top: -40rpx;margin-left: 20rpx;"bindtap="back">
|
||||
<image style="width: 20rpx;height: 35rpx;" src="../image/left.png"></image>
|
||||
<view style="display: flex; flex-direction:row;align-items : flex-end; height: 40rpx;margin-top: -40rpx;margin-left: 20rpx;" bindtap="back">
|
||||
<image style="width: 20rpx;height: 35rpx;" src="../image/left.png"></image>
|
||||
</view>
|
||||
|
||||
<view class="substance" style="margin-top: 186rpx;">
|
||||
<van-dropdown-menu active-color="#1989fa">
|
||||
<van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" />
|
||||
</van-dropdown-menu>
|
||||
<van-dropdown-menu active-color="#1989fa">
|
||||
<van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bind:change="shuChange"/>
|
||||
</van-dropdown-menu>
|
||||
</view>
|
||||
|
||||
<!--index.wxml-->
|
||||
<view class="contar">
|
||||
<view class="tejiashangpin">
|
||||
<view class="Discount" wx:if="{{special_offer.length}}">
|
||||
<view class="tejiashangpin">
|
||||
<view class="Discount" wx:if="{{special_offer.length}}">
|
||||
|
||||
<view wx:for="{{special_offer}}" 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="{{item.facePic}}"></image>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
||||
<view style="display: flex; flex-direction:row;align-items : flex-end;">
|
||||
<view class="title1">{{item.nickName}}</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">{{item.experience}}经验</view>
|
||||
</view>
|
||||
<view class="tejia">
|
||||
<view class="Price2">{{item.introduce}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:for="{{special_offer}}" 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="{{item.facePic}}"></image>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
||||
<view style="display: flex; flex-direction:row;align-items : flex-end;">
|
||||
<view class="title1">{{item.nickName}}</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">{{item.experience}}经验</view>
|
||||
</view>
|
||||
<view class="tejia">
|
||||
<view class="Price2">{{item.introduce}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -13,16 +13,16 @@ Page({
|
||||
value: 10
|
||||
},
|
||||
{
|
||||
text: '西京医院',
|
||||
value: 11
|
||||
text: '第四军医大学西京医院',
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
text: '陕西省人民医院',
|
||||
value: 12
|
||||
value: 3
|
||||
},
|
||||
{
|
||||
text: '红会医院',
|
||||
value: 13
|
||||
text: '西安市高新医院',
|
||||
value: 1
|
||||
},
|
||||
],
|
||||
objectIndex: 0, //默认显示位置
|
||||
@@ -134,14 +134,14 @@ Page({
|
||||
|
||||
var that = this;
|
||||
wx.request({
|
||||
url: app.globalData.url + '/system/order/insertOrderPz',
|
||||
url: app.globalData.url + '/system/order/insertOrderPzz',
|
||||
data: {
|
||||
bId: "1", //陪护人员id
|
||||
cId: wx.getStorageSync('uid'), //患者id
|
||||
yuguMoney: "1", //金额
|
||||
yuliu9: "2", //订单大类1-陪护 2-陪诊
|
||||
yuliu10: "1", //订单类型1-全程陪诊,2-诊前约号3-送取报告4-待办问诊
|
||||
hospitalId: this.data.item.hospitalId,
|
||||
yuliu10: this.data.item.ordertype, //订单类型1-全程陪诊,2-诊前约号3-送取报告4-待办问诊
|
||||
hospitalId: this.data.objectArray[this.data.objectIndex].value,
|
||||
startTime: this.data.seckill_start,
|
||||
yuliu11: "18691577328", //患者电话
|
||||
yuliu12: "无", //特殊要求
|
||||
@@ -163,6 +163,8 @@ Page({
|
||||
wx.navigateTo({
|
||||
url: '/shopping/pages/paysuccess/paysuccess?' + "order_id=" + that.data.order_id,
|
||||
});
|
||||
|
||||
|
||||
// console.log('timeStamp==' + res.data.data.timeStamp)
|
||||
// console.log('nonceStr==' + res.data.data.nonceStr)
|
||||
// console.log('package==' + res.data.data.package)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<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">{{item.price}}元</view>
|
||||
<view class="title4">{{item.price}}元/次</view>
|
||||
</view>
|
||||
<view class="tejia">
|
||||
<view class="Price2">{{item.describe}}</view>
|
||||
|
||||
Reference in New Issue
Block a user