This commit is contained in:
曹辉 2023-05-22 09:47:19 +08:00
parent f8a8893dde
commit a09141faa8
9 changed files with 745 additions and 34 deletions

View File

@ -122,7 +122,7 @@
</view> </view>
</view> </view>
<view class="service" @tap="gonursestation"> <view class="service" @tap="gonursestation">
<view class="serviceorder">护理站服务订单</view> <view class="serviceorder">服务订单</view>
<image src="../../static/huijiantou.png" mode=""></image> <image src="../../static/huijiantou.png" mode=""></image>
</view> </view>
<!-- <view class="service" style="top:1100rpx" @tap=""> <!-- <view class="service" style="top:1100rpx" @tap="">

View File

@ -153,9 +153,9 @@
patientId: null, patientId: null,
useritem: null, //optionsuser useritem: null, //optionsuser
consumableTotalPrice: 0, // consumableTotalPrice: 0, //
disablingCondition: null, // disablingCondition: undefined, //
orderlist: { orderlist: {
disablingCondition: null, disablingCondition: undefined,
orderCount: 1, orderCount: 1,
patientId: '', patientId: '',
stationId: '', stationId: '',
@ -204,7 +204,6 @@
}) })
}, },
onLoad(options) { onLoad(options) {
this.disablingCondition = null
var that = this var that = this
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
if (value) { if (value) {
@ -238,11 +237,12 @@
that.patientId = value that.patientId = value
// //
getAppPatientList(that.patientId).then(response => { getAppPatientList(that.patientId).then(response => {
if (response.data.disablingCondition == 'NOT_DISABLED') { if (response.data.disablingCondition == 'DISABLED') {
that.checkboxlist[1].checked = true
} else if (response.data.disablingCondition == 'DISABLED') {
that.checkboxlist[0].checked = true that.checkboxlist[0].checked = true
that.disablingCondition = 'DISABLED' that.disablingCondition = 'DISABLED'
} else {
that.checkboxlist[1].checked = true
that.disablingCondition = 'NOT_DISABLED'
} }
that.personInfo = response.data that.personInfo = response.data
that.personInfo.address = response.data.areaName + response.data.address that.personInfo.address = response.data.areaName + response.data.address
@ -389,12 +389,10 @@
}, },
// checkboxcheckbox-group // checkboxcheckbox-group
checkboxGroupChangetwo(e) { checkboxGroupChangetwo(e) {
if (e[0] == '否') { if (e[0] == '是') {
this.disablingCondition = 'NOT_DISABLED'
} else if (e[0] == '是') {
this.disablingCondition = 'DISABLED' this.disablingCondition = 'DISABLED'
} else { } else {
this.disablingCondition = null this.disablingCondition = 'NOT_DISABLED'
} }
this.orderlist.disablingCondition = this.disablingCondition this.orderlist.disablingCondition = this.disablingCondition
}, },

View File

@ -334,7 +334,7 @@
// //
gopzyh() { gopzyh() {
uni.navigateTo({ uni.navigateTo({
url: `/pages/nursestation/nursestation?nurseStationId=${13}` url: `/pages/nursestation/nursestation?nurseStationId=${13}&hospitalcare=${true}`
}) })
}, },
// //

View File

@ -0,0 +1,141 @@
<template>
<view class="app">
<view class="userinfo">
<view class="item">
<span>姓名</span>
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='5' />
</view>
<view class="item">
<span>电话</span>
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='11' />
</view>
<view class="item">
<span>医院</span>
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='20' />
</view>
<view class="item">
<span>科室</span>
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='20' />
</view>
<view class="item">
<span>病床号</span>
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='20' />
</view>
<view class="item" style="border: none;" @tap='timepicker=true'>
<span>时间</span>
<u-input :clearable='false' disabled type="text" placeholder='请选择服务时间' />
</view>
</view>
<picker v-model="timepicker" @confirm='confirm'></picker>
</view>
</template>
<script>
import baseurl from '@/api/baseurl.js'
import picker from '../picker/picker.vue'
export default {
components: {
picker
},
data() {
return {
timepicker: false,
}
},
onShow() {
},
onLoad(options) {
},
methods: {
confirm(e) {
console.log(e)
}
}
}
</script>
<style lang="scss">
.app {
padding: 10rpx 0 0;
.userinfo {
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 5rpx;
width: 96%;
margin: 0 auto 20rpx;
padding-bottom: 5rpx;
.item {
width: 94%;
margin: 0 auto;
height: 120rpx;
line-height: 120rpx;
border-bottom: 1rpx solid #D8D4D4;
position: relative;
::v-deep .u-radio__label {
width: 150rpx !important;
height: 120rpx !important;
line-height: 120rpx;
}
::v-deep .u-radio-group {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 170rpx;
}
::v-deep .u-radio {
padding-left: 10rpx;
width: 150rpx !important;
height: 120rpx !important;
}
.address {
position: absolute;
left: 25%;
top: 50%;
width: 75%;
transform: translateY(-50%);
display: inline-block;
height: 120rpx;
line-height: 120rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
span {
display: inline-block;
line-height: 120rpx;
height: 120rpx;
width: 25%;
font-size: 36rpx;
}
::v-deep .u-input__input {
height: 120rpx;
font-size: 30rpx;
}
::v-deep .uni-input-wrapper {
display: inline-block;
height: 120rpx;
line-height: 120rpx;
}
::v-deep u-input {
height: 120rpx;
line-height: 120rpx;
position: absolute;
left: 25%;
top: 50%;
width: 75%;
transform: translateY(-50%);
}
}
}
}
</style>

View File

@ -24,11 +24,13 @@
phonecode: undefined, phonecode: undefined,
logincode: undefined, logincode: undefined,
timer: undefined, timer: undefined,
scenenurseStationId: undefined
}; };
}, },
onShow() { onShow() {
this.phonecode = undefined this.phonecode = undefined
this.logincode = undefined this.logincode = undefined
this.scenenurseStationId = uni.getStorageSync('scenenurseStationId');
}, },
methods: { methods: {
getPhoneNumberp(val) { getPhoneNumberp(val) {
@ -80,6 +82,7 @@
uni.clearStorageSync(); uni.clearStorageSync();
createMobileToken().then(res => { createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token) uni.setStorageSync("token", res.data.token)
uni.setStorageSync("scenenurseStationId", this.scenenurseStationId)
that.login() that.login()
}) })
}, },

View File

@ -162,6 +162,9 @@
itemList, itemList,
productInformation, productInformation,
} from '@/api/nursestation/nursestation.js'; } from '@/api/nursestation/nursestation.js';
import {
createMobileToken
} from '@/api/login/index.js'
import baseurl from '@/api/baseurl.js' import baseurl from '@/api/baseurl.js'
export default { export default {
data() { data() {
@ -202,6 +205,7 @@
distance: null, // distance: null, //
nurseClassifyInfoId: '', //id nurseClassifyInfoId: '', //id
scrollTop: 0, scrollTop: 0,
hospitalcare: false,
} }
}, },
onShow() { onShow() {
@ -213,9 +217,19 @@
}, },
onLoad(options) { onLoad(options) {
let that = this let that = this
this.GetBanner()
this.nurseStationId = options.nurseStationId this.nurseStationId = options.nurseStationId
this.distance = options.distance this.hospitalcare = options.hospitalcare
// scene 使 decodeURIComponent scene
if (options.scene) {
this.nurseStationId = decodeURIComponent(options.scene)
this.hospitalcare = true
if (this.nurseStationId) {
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
})
uni.setStorageSync("scenenurseStationId", this.nurseStationId)
}
}
}, },
methods: { methods: {
//swiper //swiper
@ -254,8 +268,6 @@
this.autoplay = true this.autoplay = true
} }
}, },
//
GetBanner() {},
// banner // banner
splits(url) { splits(url) {
if (url.indexOf('.') != -1) { if (url.indexOf('.') != -1) {
@ -298,24 +310,18 @@
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
const value2 = uni.getStorageSync('patientId'); const value2 = uni.getStorageSync('patientId');
if (value && value2) { if (value && value2) {
AppIdentification(value2).then(res => { if (this.hospitalcare) {
if (res.code == 200) { const scenenurseStationId = uni.getStorageSync('scenenurseStationId');
if (res.data.loginFlag) { if (scenenurseStationId) {
that.usershow = false uni.navigateTo({
uni.navigateTo({ url: '/pages/hospitalcare/hospitalcare'
url: `/pages/appointmenttime/appointmenttime?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
})
} else {
that.usershow = true
}
} else if (res.code == 9999) {} else {
that.$refs.uToast.show({
title: res.msg,
type: 'error',
url: '/pages/login/login'
}) })
} else {
that.goAppIdentification(value2, item)
} }
}) } else {
that.goAppIdentification(value2, item)
}
} else { } else {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '未登录,请先登录', title: '未登录,请先登录',
@ -324,9 +330,31 @@
}) })
} }
}, },
goAppIdentification(value, item) {
let that = this
AppIdentification(value).then(res => {
if (res.code == 200) {
if (res.data.loginFlag) {
that.usershow = false
uni.navigateTo({
url: `/pages/appointmenttime/appointmenttime?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
})
} else {
that.usershow = true
}
} else if (res.code == 9999) {} else {
that.$refs.uToast.show({
title: res.msg,
type: 'error',
url: '/pages/login/login'
})
}
})
},
getInfo() { getInfo() {
introductionList(this.nurseStationId).then(res => { introductionList(this.nurseStationId).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.distance = res.data.distance
this.Banners = [] this.Banners = []
this.tabList = [{ this.tabList = [{
name: '全部', name: '全部',

View File

@ -242,7 +242,7 @@
paySign: response.data.paySign, paySign: response.data.paySign,
success: function(res) { success: function(res) {
uni.setStorageSync("Refresh", 'Refresh') uni.setStorageSync("Refresh", 'Refresh')
this.goodsOrderinfo() that.goodsOrderinfo()
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '支付成功', title: '支付成功',
type: 'success', type: 'success',

541
pages/picker/picker.vue Normal file
View File

@ -0,0 +1,541 @@
<template>
<u-popup :maskCloseAble="maskCloseAble" mode="bottom" :popup="false" v-model="value" length="auto"
:safeAreaInsetBottom="safeAreaInsetBottom" @close="close" :z-index="uZIndex">
<view class="u-datetime-picker">
<view class="u-picker-header" @touchmove.stop.prevent="">
<view class="u-btn-picker u-btn-picker--tips" :style="{ color: cancelColor }" hover-class="u-opacity"
:hover-stay-time="150" @tap="getResult('cancel')">{{cancelText}}</view>
<view class="u-picker__title">{{ title }}</view>
<view class="u-btn-picker u-btn-picker--primary" :style="{ color: moving ? cancelColor : confirmColor }"
hover-class="u-opacity" :hover-stay-time="150" @touchmove.stop="" @tap.stop="getResult('confirm')">
{{confirmText}}
</view>
</view>
<view class="u-picker-body">
<picker-view :value="valueArr" @change="change" class="u-picker-view" @pickstart="pickstart"
@pickend="pickend">
<picker-view-column v-if="!reset && params.year" style="flex:6">
<view class="u-column-item" v-for="(item, index) in years" :key="index">
{{ item }}
<text class="u-text" v-if="showTimeTag"></text>
</view>
</picker-view-column>
<picker-view-column v-if="!reset && params.month" style="flex:5">
<view class="u-column-item" v-for="(item, index) in months" :key="index">
{{ formatNumber(item) }}
<text class="u-text" v-if="showTimeTag"></text>
</view>
</picker-view-column>
<picker-view-column v-if="!reset && params.day" style="flex:5">
<view class="u-column-item" v-for="(item, index) in days" :key="index">
{{ formatNumber(item) }}
<text class="u-text" v-if="showTimeTag"></text>
</view>
</picker-view-column>
<picker-view-column style="flex:2">
<view class="u-column-item">
<text class="u-text"></text>
</view>
</picker-view-column>
<picker-view-column v-if="!reset && params.endmonth" style="flex:5">
<view class="u-column-item" v-for="(item, index) in months" :key="index">
{{ formatNumber(item) }}
<text class="u-text" v-if="showTimeTag"></text>
</view>
</picker-view-column>
<picker-view-column v-if="!reset && params.endday" style="flex:5">
<view class="u-column-item" v-for="(item, index) in enddays" :key="index">
{{ formatNumber(item) }}
<text class="u-text" v-if="showTimeTag"></text>
</view>
</picker-view-column>
</picker-view>
</view>
</view>
</u-popup>
</template>
<script>
/**
* picker picker弹出选择器
* @description 此选择器有两种弹出模式一是时间模式可以配置年秒参数 二是地区模式可以配置省区参数
* @tutorial https://www.uviewui.com/components/picker.html
* @property {Object} params 需要显示的参数见官网说明
* @property {String} mode 模式选择region-地区类型time-时间类型默认time
* @property {String Number} start-year 可选的开始年份mode=time时有效默认1950
* @property {String Number} end-year 可选的结束年份mode=time时有效默认2050
* @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配默认false
* @property {Boolean} show-time-tag 时间模式时是否显示后面的年月日中文提示
* @property {String} cancel-color 取消按钮的颜色默认#606266
* @property {String} confirm-color 确认按钮的颜色默认#2979ff
* @property {String} default-time 默认选中的时间mode=time时有效
* @property {String} confirm-text 确认按钮的文字
* @property {String} cancel-text 取消按钮的文字
* @property {String} default-region 默认选中的地区中文形式mode=region时有效
* @property {String} default-code 默认选中的地区编号形式mode=region时有效
* @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭Picker默认true
* @property {String Number} z-index 弹出时的z-index值默认1075
* @property {Array} default-selector 数组形式其中每一项表示选择了range对应项中的第几个
* @property {Array} range 自定义选择的数据mode=selector或mode=multiSelector时有效
* @property {String} range-key 当range参数的元素为对象时指定Object中的哪个key的值作为选择器显示内容
* @event {Function} confirm 点击确定按钮返回当前选择的值
* @event {Function} cancel 点击取消按钮返回当前选择的值
* @example <u-picker v-model="show" mode="time"></u-picker>
*/
export default {
name: 'u-picker',
props: {
// picker
params: {
type: Object,
default () {
return {
year: true,
month: true,
day: true,
hour: false,
endday: true,
endmonth: true,
endhour: false,
minute: false,
endminute: false,
second: false,
};
}
},
// mode=selectormode=multiSelector
range: {
type: Array,
default () {
return [];
}
},
// mode=selectormode=multiSelector
defaultSelector: {
type: Array,
default () {
return [0];
}
},
// range ArrayObject range-key Object key
rangeKey: {
type: String,
default: ''
},
// region-time-selector-multiSelector-
mode: {
type: String,
default: 'time'
},
//
startYear: {
type: [String, Number],
default: 2023
},
//
endYear: {
type: [String, Number],
default: 2100
},
// ""
cancelColor: {
type: String,
default: '#606266'
},
// ""
confirmColor: {
type: String,
default: '#2979ff'
},
// 2025-07-02 || 2025-07-02 13:01:00 || 2025/07/02
defaultTime: {
type: String,
default: ''
},
//
showTimeTag: {
type: Boolean,
default: true
},
safeAreaInsetBottom: {
type: Boolean,
default: false
},
// Picker
maskCloseAble: {
type: Boolean,
default: true
},
//
value: {
type: Boolean,
default: false
},
// z-index
zIndex: {
type: [String, Number],
default: 0
},
//
title: {
type: String,
default: '预约时间区间'
},
//
cancelText: {
type: String,
default: '取消'
},
//
confirmText: {
type: String,
default: '确认'
}
},
data() {
return {
years: [],
months: [],
days: [],
enddays: [],
year: 0,
month: 0,
day: 0,
endmonth: 0,
endday: 0,
reset: false,
startDate: '',
endDate: '',
valueArr: [],
moving: false //
};
},
mounted() {
this.init();
},
computed: {
propsChange() {
//
return `${this.mode}-${this.defaultTime}-${this.startYear}-${this.endYear}-${this.defaultRegion}-${this.areaCode}`;
},
regionChange() {
//
return `${this.province}-${this.city}`;
},
yearAndMonth() {
return `${this.year}-${this.month}`;
},
yearAndendMonth() {
return `${this.year}-${this.endmonth}`;
},
uZIndex() {
// z-index使
return this.zIndex ? this.zIndex : this.$u.zIndex.popup;
}
},
watch: {
propsChange() {
this.reset = true;
setTimeout(() => this.init(), 10);
},
// pickerthis.citysthis.areas
regionChange(val) {
this.citys = citys[this.province];
this.areas = areas[this.province][this.city];
},
// watch
// 3031229228
yearAndMonth(val) {
if (this.params.year) {
this.setDays();
}
},
yearAndendMonth(val) {
if (this.params.year) {
this.setendDays();
}
},
// QQ()
value(n) {
if (n) {
this.reset = true;
setTimeout(() => this.init(), 10);
}
}
},
methods: {
//
pickstart() {
// #ifdef MP-WEIXIN
this.moving = true;
// #endif
},
//
pickend() {
// #ifdef MP-WEIXIN
this.moving = false;
// #endif
},
//
getItemValue(item, mode) {
// (2020-05-25)uni-appv-iffalse
// getItemValue
if (this.mode == mode) {
return typeof item == 'object' ? item[this.rangeKey] : item;
}
},
// 100
formatNumber(num) {
return +num < 10 ? '0' + num : String(num);
},
//
generateArray: function(start, end) {
// end-yearend+1
start = Number(start);
end = Number(end);
end = end > start ? end : start;
//
return [...Array(end + 1).keys()].slice(start);
},
getIndex: function(arr, val) {
let index = arr.indexOf(val);
// index-1(index)~(-1)=-(-1)-1=0
return ~index ? index : 0;
},
//
initTimeValue() {
// IE(uni)"-"
let fdate = this.defaultTime.replace(/\-/g, '/');
fdate = fdate && fdate.indexOf('/') == -1 ? `2020/01/01 ${fdate}` : fdate;
let time = null;
if (fdate) time = new Date(fdate);
else time = new Date();
//
this.year = time.getFullYear();
this.month = Number(time.getMonth()) + 1;
this.day = time.getDate();
this.endmonth = Number(time.getMonth()) + 1;
this.endday = time.getDate();
// this.second = time.getSeconds();
},
init() {
this.valueArr = [];
this.reset = false;
if (this.mode == 'time') {
this.initTimeValue();
if (this.params.year) {
this.valueArr.push(0);
this.setYears();
}
if (this.params.month) {
this.valueArr.push(0);
this.setMonths();
}
if (this.params.day) {
this.valueArr.push(0);
this.setDays();
}
if (this.params.endmonth) {
this.valueArr.push(0);
this.setendMonths();
}
if (this.params.endday) {
this.valueArr.push(0);
this.setendDays();
}
}
this.$forceUpdate();
},
// picker
setYears() {
//
this.years = this.generateArray(this.startYear, this.endYear);
// this.valueArrpicker
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.years, this.year));
},
setMonths() {
this.months = this.generateArray(1, 12);
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.months, this.month));
},
setDays() {
let totalDays = new Date(this.year, this.month, 0).getDate();
this.days = this.generateArray(1, totalDays);
let index = 0;
// 使setMonths()this.valueArr.splice(this.valueArr.length - 1, xxx)
// this.monththis.yearwatchthis.setDays()this.valueArr.length
if (this.params.year && this.params.month) index = 2;
else if (this.params.month) index = 1;
else if (this.params.year) index = 1;
else index = 0;
//
// 331229day3129(picker-column1)
if (this.day > this.days.length) this.day = this.days.length;
this.valueArr.splice(index, 1, this.getIndex(this.days, this.day));
},
setendMonths() {
this.months = this.generateArray(1, 12);
this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.months, this.endmonth));
},
setendDays() {
let totalDays = new Date(this.year, this.endmonth, 0).getDate();
console.log(totalDays, 'total2')
this.enddays = this.generateArray(1, totalDays);
let index = 0;
// 使setMonths()this.valueArr.splice(this.valueArr.length - 1, xxx)
// this.monththis.yearwatchthis.setDays()this.valueArr.length
if (this.params.year && this.params.endmonth) index = 4;
else if (this.params.endmonth) index = 3;
else if (this.params.year) index = 3;
else index = 0;
//
// 331229day3129(picker-column1)
if (this.endday > this.enddays.length) this.endday = this.enddays.length;
this.valueArr.splice(index, 1, this.getIndex(this.enddays, this.endday));
},
// setSeconds() {
// this.seconds = this.generateArray(0, 59);
// this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.seconds, this.second));
// },
close() {
this.$emit('input', false);
},
// picker
change(e) {
this.valueArr = e.detail.value;
let i = 0;
let result = {};
if (this.mode == 'time') {
// 使i++this.valueArrthis.params
// ifi1
if (this.params.year) result.year = this.years[this.valueArr[i++]];
if (this.params.month) result.month = this.months[this.valueArr[i++]];
if (this.params.day) result.day = this.days[this.valueArr[i++]];
i++
if (this.params.endmonth) result.endmonth = this.months[this.valueArr[i++]];
if (this.params.endday) result.endday = this.enddays[this.valueArr[i++]];
// if (this.params.year) result.year = this.formatNumber(this.year || 0);
// if (this.params.month) result.month = this.formatNumber(this.month || 0);
// if (this.params.endmonth) result.endmonth = this.formatNumber(this.endmonth || 0);
// if (this.params.day) result.day = this.formatNumber(this.day || 0);
// if (this.params.endday) result.endday = this.formatNumber(this.endday || 0);
// this.$emit('confirm', result);
}
},
//
getResult(event = null) {
// #ifdef MP-WEIXIN
if (this.moving) return;
// #endif
let result = {};
// this.paramstrue
if (this.mode == 'time') {
if (this.params.year) result.year = this.formatNumber(this.year || 0);
if (this.params.month) result.month = this.formatNumber(this.month || 0);
if (this.params.endmonth) result.endmonth = this.formatNumber(this.endmonth || 0);
if (this.params.day) result.day = this.formatNumber(this.day || 0);
if (this.params.endday) result.endday = this.formatNumber(this.endday || 0);
// if (this.params.second) result.second = this.formatNumber(this.second || 0);
// if (this.params.timestamp) result.timestamp = this.getTimestamp();
}
if (event) this.$emit(event, result);
this.close();
},
//
getTimestamp() {
// yyyy-mm-ddiOS使"/"
let time = this.year + '/' + this.month + '/' + this.day + ' ' + this.hour + ':' + this.minute + ':' + this
.second;
return new Date(time).getTime() / 1000;
}
}
};
</script>
<style lang="scss" scoped>
// nvueflexnvuedisplay
@mixin vue-flex($direction: row) {
/* #ifndef APP-NVUE */
display: flex;
flex-direction: $direction;
/* #endif */
}
.u-datetime-picker {
position: relative;
z-index: 999;
}
.u-picker-view {
height: 100%;
box-sizing: border-box;
}
.u-picker-header {
width: 100%;
height: 90rpx;
padding: 0 40rpx;
@include vue-flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
font-size: 30rpx;
background: #fff;
position: relative;
}
.u-picker-header::after {
content: '';
position: absolute;
border-bottom: 1rpx solid #eaeef1;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
bottom: 0;
right: 0;
left: 0;
}
.u-picker__title {
color: $u-content-color;
}
.u-picker-body {
padding-top: 20rpx;
width: 100%;
height: 300rpx;
overflow: hidden;
background-color: #fff;
}
.u-column-item {
@include vue-flex;
align-items: center;
justify-content: center;
font-size: 30rpx;
color: $u-main-color;
padding: 0 8rpx;
}
.u-text {
font-size: 24rpx;
padding-left: 8rpx;
}
.u-btn-picker {
padding: 16rpx;
box-sizing: border-box;
text-align: center;
text-decoration: none;
}
.u-opacity {
opacity: 0.5;
}
.u-btn-picker--primary {
color: $u-type-primary;
}
.u-btn-picker--tips {
color: $u-tips-color;
}
</style>

View File

@ -198,7 +198,7 @@
}, },
godetails(item) { godetails(item) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/nursestation/nursestation?nurseStationId=${item.nurseStationId}&distance=${item.distance}` url: `/pages/nursestation/nursestation?nurseStationId=${item.nurseStationId}`
}) })
}, },
cancel() { cancel() {