修改
This commit is contained in:
parent
e09b628333
commit
5ad740eb88
2
App.vue
2
App.vue
@ -37,7 +37,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
// position: relative;
|
// position: relative;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
padding: 30rpx 0 200rpx 0;
|
padding: 30rpx 0 0 0;
|
||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
width: 94%;
|
width: 94%;
|
||||||
|
|||||||
@ -1,28 +1,9 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
|
||||||
export function getOrderPatientInfo(orderNo) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/login/getOrderPatientInfo?orderNo=${orderNo}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
export function getAppStationItemInfo(stationId,stationItemId,stationItemPriceId) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/login/getAppStationItemInfo?stationId=${stationId}&stationItemId=${stationItemId}&stationItemPriceId=${stationItemPriceId}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export function introductionList(nurseStationId) {
|
export function getAppointmentDetailsInfo(orderNo) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/nearbyNursingStation/introductionList?nurseStationId=${nurseStationId}`,
|
url: `/nurseApplet/nursingOrder/getAppointmentDetailsInfo?orderNo=${orderNo}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function cancellationOrder(appointmentOrderId) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/login/cancellationOrder?appointmentOrderId=${appointmentOrderId}`,
|
|
||||||
method: 'post'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
|
||||||
export function getDiseaseInfo() {
|
export function getDiseaseInfo(patientId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/login/getDiseaseInfo`,
|
url: `/nurseApplet/login/getDiseaseInfo?patientId=${patientId}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,6 +54,7 @@
|
|||||||
order: {}, //订单
|
order: {}, //订单
|
||||||
reasonlist: [], //退款原因list
|
reasonlist: [], //退款原因list
|
||||||
dictname: '', //页面退款原因字段
|
dictname: '', //页面退款原因字段
|
||||||
|
timer:null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -74,7 +75,10 @@
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
setTimeout(e => {
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer)
|
||||||
|
}
|
||||||
|
this.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 3
|
delta: 3
|
||||||
});
|
});
|
||||||
|
|||||||
@ -77,7 +77,7 @@
|
|||||||
},
|
},
|
||||||
gofinished(item) {
|
gofinished(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/ServiceDetails/ServiceDetails?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}&orderNo=${item.orderNo}&orderStatus=${item.orderStatus}`
|
url: `/pages/ServiceDetails/ServiceDetails?orderNo=${item.orderNo}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -54,11 +54,9 @@
|
|||||||
.app {
|
.app {
|
||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
height: 82vh;
|
|
||||||
padding: 22px 0 20px 0;
|
padding: 22px 0 20px 0;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
height: 295rpx;
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="OrderStatus" v-if="orderStatus=='REFUNDED'||orderStatus=='CANCEL'">
|
<view class="OrderStatus" v-if="list.orderStatus=='REFUNDED'||list.orderStatus=='CANCEL'">
|
||||||
订单已关闭
|
订单已关闭
|
||||||
</view>
|
</view>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@ -9,13 +9,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="details">
|
<view class="details">
|
||||||
<view class="detailslist">
|
<view class="detailslist">
|
||||||
<image :src="baseurl+nursestationlist.stationPictureUrl" mode=""></image>
|
<image :src="baseurl+list.stationPictureUrl" mode=""></image>
|
||||||
<view class="model">
|
<view class="model">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view>{{nursestationlist.nurseStationName}}</view>
|
<view>{{list.nurseStationName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<view>{{nursestationlist.address}}</view>
|
<view>{{list.address}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="callme" @tap="gophone()">
|
<view class="callme" @tap="gophone()">
|
||||||
<u-icon class='icon' name="phone-fill" color="#ffffff" size="30"></u-icon>
|
<u-icon class='icon' name="phone-fill" color="#ffffff" size="30"></u-icon>
|
||||||
@ -29,38 +29,38 @@
|
|||||||
<view class="name">
|
<view class="name">
|
||||||
服务项目
|
服务项目
|
||||||
</view>
|
</view>
|
||||||
<view class="drug">·{{orderlist.nurseItemName}} </view>
|
<view class="drug">·{{list.nurseItemName}} </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content">服务信息
|
<view class="content">服务信息
|
||||||
<view class="contacts">·联系人:{{userinfo.patientName}}</view>
|
<view class="contacts">·联系人:{{list.patientName}}</view>
|
||||||
<view class="contacts">·电话:{{userinfo.phone}}</view>
|
<view class="contacts">·电话:{{list.patientPhone}}</view>
|
||||||
<view class="contacts">·地址:{{userinfo.serviceAddress}}</view>
|
<view class="contacts">·地址:{{list.serviceAddress}}</view>
|
||||||
<view class="contacts">·时间:{{userinfo.serviceDate}}</view>
|
<view class="contacts">·时间:{{list.serviceDate}} {{list.serviceStartTime}}-{{list.serviceEndTime}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Package">套餐信息:
|
<view class="Package">套餐信息:
|
||||||
<span>¥{{orderlist.nurseItemPrice}}</span>
|
<span>¥{{list.nurseItemPrice}}</span>
|
||||||
<view class="detail">
|
<view class="detail">
|
||||||
·{{orderlist.nurseItemName}}
|
·{{list.nurseItemName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Consumablespackage" v-if='orderlist.itemConsumableList'>耗材包详情:
|
<view class="Consumablespackage" v-if='list.itemConsumableList'>耗材包详情:
|
||||||
<span>¥{{orderlist.consumableTotalPrice}}</span>
|
<span>¥{{list.consumableTotalPrice}}</span>
|
||||||
<view class="detail" v-for='(item,index) in orderlist.itemConsumableList' :key="index">
|
<view class="detail" v-for='(item,index) in list.itemConsumableList' :key="index">
|
||||||
·{{item.consumableDetail}}
|
·{{item.orderConsumableName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="remarks">
|
<view class="remarks">
|
||||||
<view>备注:</view>
|
<view>备注:</view>
|
||||||
<input placeholder="请输入" v-model='userinfo.remark'>
|
<input placeholder="请输入" v-model='list.remark'>
|
||||||
</view>
|
</view>
|
||||||
<view class="evaluate">
|
<view class="evaluate">
|
||||||
<view class="price">
|
<view class="price">
|
||||||
¥{{orderlist.totalPrice}}
|
¥{{list.totalPrice}}
|
||||||
</view>
|
</view>
|
||||||
<view class="cancelorder" @tap="cancelorderment()"
|
<view class="cancelorder" @tap="cancelorderment()"
|
||||||
v-if="orderStatus=='PAY'||orderStatus=='WAIT_DISPATCH'||orderStatus=='NOT_FINISH'">取消订单</view>
|
v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单</view>
|
||||||
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
|
<!-- <view class="cancelorder " style="background: #4C7BC9;">评价</view> -->
|
||||||
<view class="cancelorder" @tap='buy' style="background-color: darkorange;" v-if="orderStatus=='WAIT_PAY'">
|
<view class="cancelorder" @tap='buy' style="background-color: darkorange;" v-if="list.orderStatus=='WAIT_PAY'">
|
||||||
去支付
|
去支付
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -70,47 +70,38 @@
|
|||||||
<script>
|
<script>
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
import {
|
import {
|
||||||
getOrderPatientInfo,
|
getAppointmentDetailsInfo
|
||||||
getAppStationItemInfo,
|
|
||||||
introductionList,
|
|
||||||
cancellationOrder
|
|
||||||
} from '@/api/ServiceDetails/ServiceDetails.js'
|
} from '@/api/ServiceDetails/ServiceDetails.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
userinfo: [], //被护理人
|
list: {},
|
||||||
orderlist: [], //获取耗材包详情
|
|
||||||
nursestationlist: [], // 护理站信息列表
|
|
||||||
stationId: '',
|
|
||||||
stationItemId: '',
|
|
||||||
stationItemPriceId: '',
|
|
||||||
orderNo: '',
|
orderNo: '',
|
||||||
orderStatus: '',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.stationId = options.stationId
|
|
||||||
this.stationItemId = options.stationItemId
|
|
||||||
this.stationItemPriceId = options.stationItemPriceId
|
|
||||||
this.orderStatus = options.orderStatus
|
|
||||||
this.orderNo = options.orderNo
|
this.orderNo = options.orderNo
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.getinfo()
|
|
||||||
this.getlist()
|
this.getlist()
|
||||||
this.getPatientInfo()
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getlist() {
|
||||||
|
getAppointmentDetailsInfo(this.orderNo).then(res => {
|
||||||
|
this.list = res.data
|
||||||
|
console.log(this.list)
|
||||||
|
})
|
||||||
|
},
|
||||||
//支付
|
//支付
|
||||||
buy() {
|
buy() {
|
||||||
let obj = {
|
let obj = {
|
||||||
patientId: this.patientId,
|
patientId: this.patientId,
|
||||||
orderNo: this.item.orderNo,
|
orderNo: this.orderNo,
|
||||||
orderChannel: "WECHAT_APPLET",
|
orderChannel: "WECHAT_APPLET",
|
||||||
paymentPrice: this.item.totalPrice,
|
paymentPrice: this.totalPrice,
|
||||||
payType: "WECHAT_PAY",
|
payType: "WECHAT_PAY",
|
||||||
buySource: "NURSE_STATION",
|
buySource: "NURSE_STATION",
|
||||||
}
|
}
|
||||||
@ -140,28 +131,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//被护理人信息
|
|
||||||
getinfo() {
|
|
||||||
getOrderPatientInfo(this.orderNo).then(res => {
|
|
||||||
this.userinfo = res.data;
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 护理站信息列表
|
|
||||||
getlist() {
|
|
||||||
introductionList(this.stationId).then(res => {
|
|
||||||
this.nursestationlist = res.data;
|
|
||||||
console.log(this.nursestationlist)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//获取耗材包详情
|
|
||||||
getPatientInfo() {
|
|
||||||
getAppStationItemInfo(this.stationId, this.stationItemId, this.stationItemPriceId).then(res => {
|
|
||||||
this.orderlist = res.data
|
|
||||||
})
|
|
||||||
},
|
|
||||||
cancelorderment() {
|
cancelorderment() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/cancelorder/cancelorder?nurseItemPrice=${this.orderlist.nurseItemPrice}&appointmentOrderId=${this.userinfo.appointmentOrderId}`
|
url: `/pages/cancelorder/cancelorder?totalPrice=${this.list.totalPrice}&orderId=${this.list.appointmentOrderId}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="content">退款金额
|
<view class="content">退款金额
|
||||||
<span>¥{{nurseItemPrice}}</span>
|
<span>¥{{totalPrice}}</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="reason">
|
<view class="reason">
|
||||||
<view class="ability">退款原因</view>
|
<view class="ability">退款原因</view>
|
||||||
@ -21,19 +21,19 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
nurseItemPrice: null,
|
timer:null,
|
||||||
appointmentOrderId: null,
|
totalPrice: null,
|
||||||
|
orderId: null,
|
||||||
cancelAppointmentReason: '',
|
cancelAppointmentReason: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(options)
|
this.orderId = options.orderId
|
||||||
this.appointmentOrderId = options.appointmentOrderId
|
this.totalPrice = options.totalPrice
|
||||||
this.nurseItemPrice = options.nurseItemPrice
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gocancel() {
|
gocancel() {
|
||||||
cancellationOrder(this.appointmentOrderId, this.cancelAppointmentReason).then(res => {
|
cancellationOrder(this.orderId, this.cancelAppointmentReason).then(res => {
|
||||||
if (res.code == 500) {
|
if (res.code == 500) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
@ -44,10 +44,13 @@
|
|||||||
title: '取消成功',
|
title: '取消成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
setTimeout(e => {
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer)
|
||||||
|
}
|
||||||
|
this.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 2
|
delta: 1
|
||||||
});
|
})
|
||||||
}, 1500)
|
}, 1500)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -2,13 +2,13 @@
|
|||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="items">
|
<view class="items">
|
||||||
<view class="item"
|
<view class="item"
|
||||||
:style="disease.find(e => e.id == item.id)?'background-color: #4C7BC9;color: #ffffff;':''"
|
:style="disease.find(e => e.diseaseName == item.diseaseName)?'background-color: #4C7BC9;color: #ffffff;':''"
|
||||||
v-for='(item,index) in diseaselist' :key="index" @tap='choicedisease(item)'>
|
v-for='(item,index) in diseaselist' :key="index" @tap='choicedisease(item)'>
|
||||||
{{item.diseaseName}}
|
{{item.diseaseName}}
|
||||||
</view>
|
</view>
|
||||||
<view class="other">
|
<view class="other">
|
||||||
<span>其他:</span>
|
<span>其他:</span>
|
||||||
<u-input type="text" placeholder='请填写' />
|
<u-input type="text" placeholder='请填写' v-model="diseaseother.diseaseName" />
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" @tap='goinformation'>
|
<view class="btn" @tap='goinformation'>
|
||||||
提交
|
提交
|
||||||
@ -26,32 +26,43 @@
|
|||||||
return {
|
return {
|
||||||
diseaselist: [], //疾病列表
|
diseaselist: [], //疾病列表
|
||||||
disease: [],
|
disease: [],
|
||||||
|
diseaseother: {
|
||||||
|
diseaseName: '',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//选择疾病
|
//选择疾病
|
||||||
choicedisease(item) {
|
choicedisease(item) {
|
||||||
if (this.disease.findIndex(e => e.id == item.id) == -1) {
|
if (this.disease.findIndex(e => e.diseaseName == item.diseaseName) == -1) {
|
||||||
this.disease.push(item)
|
this.disease.push(item)
|
||||||
} else {
|
} else {
|
||||||
this.disease = this.disease.filter(e => e.id != item.id)
|
this.disease = this.disease.filter(e => e.diseaseName != item.diseaseName)
|
||||||
}
|
|
||||||
if (this.disease.length > 1) {
|
|
||||||
this.disease = this.disease.filter(e => e.id != 9999)
|
|
||||||
}
|
}
|
||||||
|
// if (this.disease.length > 1) {
|
||||||
|
// this.disease = this.disease.filter(e => e.id != 9999)
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
//获取疾病列表
|
//获取疾病列表
|
||||||
diseaseinfo() {
|
diseaseinfo() {
|
||||||
getDiseaseInfo().then(res => {
|
try {
|
||||||
this.diseaselist = res.data;
|
const value = uni.getStorageSync('patientId');
|
||||||
// this.diseaselist.unshift({
|
if (value) {
|
||||||
// id: 9999,
|
getDiseaseInfo(value).then(res => {
|
||||||
// diseaseName: '无'
|
this.diseaselist = res.data;
|
||||||
// })
|
// this.diseaselist.unshift({
|
||||||
})
|
// id: 9999,
|
||||||
|
// diseaseName: '无'
|
||||||
|
// })
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
},
|
},
|
||||||
//跳转回信息完善页面
|
//跳转回信息完善页面
|
||||||
goinformation() {
|
goinformation() {
|
||||||
|
if (this.diseaseother.diseaseName != '' || this.diseaseother.diseaseName) {
|
||||||
|
this.disease.push(this.diseaseother)
|
||||||
|
}
|
||||||
uni.$emit('disease', {
|
uni.$emit('disease', {
|
||||||
disease: JSON.stringify(this.disease)
|
disease: JSON.stringify(this.disease)
|
||||||
})
|
})
|
||||||
@ -60,15 +71,16 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) { //开局方法和传参接受
|
onShow() { //开局方法
|
||||||
this.diseaseinfo()
|
this.diseaseinfo()
|
||||||
//传参相等
|
},
|
||||||
|
onLoad(options) { //传参接受
|
||||||
this.disease = JSON.parse(options.diseaseInfoList)
|
this.disease = JSON.parse(options.diseaseInfoList)
|
||||||
console.log(JSON.parse(options.diseaseInfoList))
|
console.log(this.disease)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import './disease.scss';
|
@import './disease.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -72,7 +72,6 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.app {
|
.app {
|
||||||
.cards {
|
.cards {
|
||||||
height: 82vh;
|
|
||||||
padding: 22px 0 20px 0;
|
padding: 22px 0 20px 0;
|
||||||
.shopping {
|
.shopping {
|
||||||
background: #F58540;
|
background: #F58540;
|
||||||
|
|||||||
@ -66,36 +66,43 @@
|
|||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
line-height: 120rpx;
|
line-height: 120rpx;
|
||||||
border-bottom: 1rpx solid #D8D4D4;
|
border-bottom: 1rpx solid #D8D4D4;
|
||||||
display: flex;
|
position: relative;
|
||||||
|
|
||||||
view {
|
view {
|
||||||
|
position: absolute;
|
||||||
|
left:25%;
|
||||||
|
top:50%;
|
||||||
|
width: 75%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
display: inline-block;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
font-size: 30rpx;
|
|
||||||
line-height: 120rpx;
|
line-height: 120rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 120rpx;
|
line-height: 120rpx;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
width: 25%;
|
width: 25%;
|
||||||
font-size: 30rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .u-input__input {
|
::v-deep .u-input__input {
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .uni-input-wrapper {
|
::v-deep .uni-input-wrapper {
|
||||||
|
display: inline-block;
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
line-height: 120rpx;
|
line-height: 120rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .u-input {
|
::v-deep .u-input {
|
||||||
width: 70%;
|
|
||||||
height: 120rpx;
|
height: 120rpx;
|
||||||
line-height: 120rpx;
|
line-height: 120rpx;
|
||||||
|
position: absolute;
|
||||||
|
left:25%;
|
||||||
|
top:50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,15 +5,15 @@
|
|||||||
<view class="userinfo info">
|
<view class="userinfo info">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>姓名:</span>
|
<span>姓名:</span>
|
||||||
<u-input v-model="query.patientName" type="text" placeholder='' maxlength='5' />
|
<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='' maxlength='5' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>电话:</span>
|
<span>电话:</span>
|
||||||
<u-input v-model="query.phone" maxlength='11' type="text" placeholder='' />
|
<u-input :clearable='false' v-model="query.phone" maxlength='11' type="text" placeholder='' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>身份证号:</span>
|
<span>身份证号:</span>
|
||||||
<u-input v-model="query.cardNo" type="text" placeholder='' maxlength='18' />
|
<u-input :clearable='false' v-model="query.cardNo" type="text" placeholder='' maxlength='18' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='areashow=true'>
|
<view class="item" @tap='areashow=true'>
|
||||||
<span>所属区域:</span>
|
<span>所属区域:</span>
|
||||||
@ -21,11 +21,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>详细地址:</span>
|
<span>详细地址:</span>
|
||||||
<u-input v-model="query.address" maxlength='40' type="text" placeholder='小区、单元、门牌号' />
|
<u-input :clearable='false' v-model="query.address" maxlength='40' type="text"
|
||||||
|
placeholder='小区、单元、门牌号' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='getAddress()'>
|
<view class="item" @tap='getAddress()'>
|
||||||
<span>所在位置:</span>
|
<span>所在位置:</span>
|
||||||
<view style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{chooseLocation}}</view>
|
<view style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{chooseLocation}}11</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-select v-model="areashow" mode="mutil-column-auto" label-name='areaName' value-name='areaCode'
|
<u-select v-model="areashow" mode="mutil-column-auto" label-name='areaName' value-name='areaCode'
|
||||||
@ -63,6 +64,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
timer:null,
|
||||||
arealist: [], //区街道list
|
arealist: [], //区街道list
|
||||||
areashow: false, //经纬度开关
|
areashow: false, //经纬度开关
|
||||||
getNurseTypelist: [], //护理类型数组
|
getNurseTypelist: [], //护理类型数组
|
||||||
@ -84,27 +86,25 @@
|
|||||||
methods: {
|
methods: {
|
||||||
//提交信息
|
//提交信息
|
||||||
informationinfo() {
|
informationinfo() {
|
||||||
this.query.diseaseInfoList.forEach(e => {
|
|
||||||
e.diseaseId = e.id
|
|
||||||
})
|
|
||||||
information(this.query).then(res => {
|
information(this.query).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '完善信息成功',
|
title: '完善信息成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
url: '',
|
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer)
|
||||||
|
}
|
||||||
|
this.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1, //返回层数,2则上上页
|
delta: 1
|
||||||
})
|
})
|
||||||
}, 1500);
|
}, 1500)
|
||||||
} else if (res.code == 500) {
|
} else if (res.code == 500) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
url: ''
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -178,7 +178,6 @@
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
|
|
||||||
// uni.getStorage({
|
// uni.getStorage({
|
||||||
// key: 'patientId',
|
// key: 'patientId',
|
||||||
// success: function(res) {
|
// success: function(res) {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.app {
|
.app {
|
||||||
|
padding-bottom: 50rpx;
|
||||||
background-color: #F4F5F7;
|
background-color: #F4F5F7;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
.finish{
|
.finish{
|
||||||
width: 25%;
|
width: 25%;
|
||||||
|
|||||||
@ -8,15 +8,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>姓名:</span>
|
<span>姓名:</span>
|
||||||
<u-input v-model="appPersonallist.patientName" placeholder="请输入" type="text" maxlength='5' />
|
<u-input :clearable='false' v-model="appPersonallist.patientName" placeholder="请输入" type="text" maxlength='5' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>电话:</span>
|
<span>电话:</span>
|
||||||
<u-input v-model="appPersonallist.phone" placeholder="请输入" maxlength='11' type="text" />
|
<u-input :clearable='false' v-model="appPersonallist.phone" placeholder="请输入" maxlength='11' type="text" />
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>身份证号:</span>
|
<span>身份证号:</span>
|
||||||
<u-input v-model="appPersonallist.cardNo" placeholder="请输入" type="text" maxlength='18' />
|
<u-input :clearable='false' v-model="appPersonallist.cardNo" placeholder="请输入" type="text" maxlength='18' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='areashow=true'>
|
<view class="item" @tap='areashow=true'>
|
||||||
<span>所属区域:</span>
|
<span>所属区域:</span>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<span>详细地址:</span>
|
<span>详细地址:</span>
|
||||||
<u-input v-model="appPersonallist.address" type="text" placeholder='小区、单元、门牌号' />
|
<u-input :clearable='false' v-model="appPersonallist.address" type="text" placeholder='小区、单元、门牌号' />
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='getAddress()'>
|
<view class="item" @tap='getAddress()'>
|
||||||
<span>所在位置:</span>
|
<span>所在位置:</span>
|
||||||
@ -57,6 +57,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
timer:null,
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
address: '',
|
address: '',
|
||||||
arealist: [],
|
arealist: [],
|
||||||
@ -120,7 +121,10 @@
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
setTimeout(e => {
|
if (that.timer) {
|
||||||
|
clearTimeout(that.timer)
|
||||||
|
}
|
||||||
|
that.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
@ -144,7 +148,10 @@
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
setTimeout(e => {
|
if (that.timer) {
|
||||||
|
clearTimeout(that.timer)
|
||||||
|
}
|
||||||
|
that.timer = setTimeout(e => {
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
@ -221,12 +228,8 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this
|
||||||
uni.$on('disease', function(data) {
|
uni.$on('disease', function(data) {
|
||||||
console.log(data)
|
|
||||||
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
||||||
that.patientDiseaseInfoList.forEach(e => {
|
console.log(that.patientDiseaseInfoList)
|
||||||
e.diseaseId = e.id
|
|
||||||
})
|
|
||||||
// console.log(that.patientDiseaseInfoList)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -219,7 +219,6 @@
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '删除成功',
|
title: '删除成功',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
|
|
||||||
});
|
});
|
||||||
setTimeout(e => {
|
setTimeout(e => {
|
||||||
that.goodsList()
|
that.goodsList()
|
||||||
@ -227,7 +226,6 @@
|
|||||||
that.delshow = false;
|
that.delshow = false;
|
||||||
})
|
})
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
console.log('用户点击取消');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -35,6 +35,13 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15%;
|
top: 15%;
|
||||||
left: 35%;
|
left: 35%;
|
||||||
|
text-overflow: -o-ellipsis-lastline;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
.distance {
|
.distance {
|
||||||
|
|||||||
@ -154,6 +154,9 @@
|
|||||||
this.pageNum = 1;
|
this.pageNum = 1;
|
||||||
nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseTypeCode, this.iptVal)
|
nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseTypeCode, this.iptVal)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
res.rows.forEach(e => {
|
||||||
|
e.stationPictureUrl = baseurl + e.stationPictureUrl
|
||||||
|
})
|
||||||
this.nursestationlist = res.rows
|
this.nursestationlist = res.rows
|
||||||
})
|
})
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|||||||
@ -61,6 +61,9 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.app{
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
image {
|
image {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
|
|||||||
@ -92,6 +92,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<image src="../../static/jiantou.png" mode=""></image>
|
<image src="../../static/jiantou.png" mode=""></image>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -111,21 +112,35 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.myInfo()
|
this.myInfo()
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {}, //获取传值
|
||||||
//获取传值
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
//退出
|
//退出
|
||||||
remove() {
|
remove() {
|
||||||
try {
|
let that = this
|
||||||
uni.removeStorageSync('patientId');
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
uni.reLaunch({
|
content: '确认要退出此账号吗',
|
||||||
url: '/pages/login/login'
|
success: function(res) {
|
||||||
})
|
if (res.confirm) {
|
||||||
} catch (e) {
|
try {
|
||||||
// error
|
uni.removeStorageSync('patientId');
|
||||||
}
|
const value = uni.getStorageSync('patientId');
|
||||||
|
if (value) {} else {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '退出账号成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: '1000'
|
||||||
|
})
|
||||||
|
setTimeout(e => {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
} else if (res.cancel) {}
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
//获取个人信息
|
//获取个人信息
|
||||||
myInfo() {
|
myInfo() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user