This commit is contained in:
曹辉 2023-04-04 15:27:03 +08:00
parent a9b5ce7943
commit 64adc6dc61
6 changed files with 249 additions and 208 deletions

View File

@ -9,6 +9,13 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},{
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
"style": {
"navigationBarTitleText": "护理机构服务订单",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "pages/appointmenttime/appointmenttime",
"style": {
@ -106,8 +113,7 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
}, {
"path": "pages/ratesuccess/ratesuccess",
"style": {
"navigationBarTitleText": "",
@ -128,87 +134,68 @@
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
}, {
"path": "pages/orderDetails/orderDetails",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/payorderDetails/payorderDetails",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/cancelorder/cancelorder",
"style": {
"navigationBarTitleText": "取消订单",
"enablePullDownRefresh": false
}
},
{
"path": "pages/Nursingstationserviceorder/Nursingstationserviceorder",
"style": {
"navigationBarTitleText": "护理机构服务订单",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
}, {
"path": "pages/logistics/logistics",
"style": {
"navigationBarTitleText": "查看物流",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/Aftersalesdetails/Aftersalesdetails",
"style": {
"navigationBarTitleText": "售后详情",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/Applforrefund/Applforrefund",
"style": {
"navigationBarTitleText": "申请退款",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/refundType/refundType",
"style": {
"navigationBarTitleText": "选择退款类型",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/menttimeorder/menttimeorder",
"style": {
"navigationBarTitleText": "预约详情",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "泉医到家",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/confirmOrder/confirmOrder",
"style": {
"navigationBarTitleText": "确认订单",
@ -216,38 +203,33 @@
"navigationBarBackgroundColor": "#4C7BC9", //
"navigationBarTextStyle": "white"
}
},
{
}, {
"path": "pages/disease/disease",
"style": {
"navigationBarTitleText": "疾病类型选择",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/doctorslist/doctorslist",
"style": {
"navigationBarTitleText": "预约医生",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/ProductList/ProductList", //
"style": {
"navigationBarTitleText": "医路优品",
"onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true
}
},
{
}, {
"path": "pages/nursestation/nursestation",
"style": {
"navigationBarTitleText": "护理机构详情",
"onReachBottomDistance": 100, // px
"enablePullDownRefresh": true //true
}
},
{
}, {
"path": "pages/site/site",
"style": {
"navigationBarTitleText": "护理机构",
@ -255,22 +237,19 @@
"onReachBottomDistance": 100, // px
"enablePullDownRefresh": true //true
}
},
{
}, {
"path": "pages/diseasemanagement/diseasemanagement",
"style": {
"navigationBarTitleText": "专病管理",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/utabs/u-tabs",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/classification/classification",
"style": {
"navigationBarTitleText": "分类",
@ -291,8 +270,7 @@
"navigationBarTitleText": "健康常识",
"enablePullDownRefresh": false
}
},
{
}, {
"path": "pages/customerservice/customerservice",
"style": {
"navigationBarTitleText": "在线客服",

View File

@ -3,7 +3,7 @@
.masks{
image{
position: absolute;
bottom:380rpx;
top:50rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
@ -14,43 +14,43 @@
.ratetitle{
font-size: 34rpx;
position: absolute;
bottom:320rpx;
top:320rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
}
.title{
position: absolute;
top:40rpx;
left:50%;
transform: translateX(-50%);
font-size: 42rpx;
}
::v-deep .u-star-wrap{
padding-right:10rpx;
}
.mask{
position: absolute;
bottom:0;
width: 750rpx;
height: 703rpx;
background: #FFFFFF;
border-radius: 30rpx 30rpx 0px 0px;
display: flex;
justify-content: space-around;
.rateitem{
margin-top:200rpx;
width: 217rpx;
height: 222rpx;
line-height: 222rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
font-size: 40rpx;
border-radius: 25rpx;
}
.lookrateitem{
font-size: 32rpx;
margin-top:440rpx;
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
top:200rpx;
left: 70rpx;
}
.btn{
width: 70%;
height: 71rpx;
background: #4C7BC9;
border-radius: 26rpx;
position: absolute;
top:530rpx;
left: 15%;
text-align: center;
line-height: 71rpx;
color: #fff;
}
.rateitem{
position: absolute;
top:350rpx;
left: 80rpx;
font-size: 42rpx;
}
}

View File

@ -41,35 +41,38 @@
<u-empty mode="list" icon-size='220' text='暂无服务订单'></u-empty>
</view>
<u-toast ref="uToast" />
<u-popup v-model="rateshow" mode="bottom" length="48%" border-radius="20" :closeable='true' class='masks'>
<u-popup v-model="rateshow" mode="bottom" length="50%" border-radius="20" :closeable='true' class='masks'>
<view class="title">
综合评价
</view>
<view class="mask">
<view class="rateitem" @tap="taprate('SATISFIED')">
满意
</view>
<view class="rateitem" @tap="taprate('COMMONLY')">
一般
</view>
<view class="rateitem" @tap="taprate('DISSATISFIED')">
不满意
</view>
<u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
</view>
<view class="rateitem">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view>
<view class="btn" @tap='taprate'>
确认
</view>
</u-popup>
<u-popup v-model="lookrateshow" mode="bottom" length="48%" border-radius="20" :closeable='true' class='masks'>
<u-popup v-model="lookrateshow" mode="bottom" length="60%" border-radius="20" :closeable='true' class='masks'>
<image :src="baseurl+rateimgtitle.img" mode=""></image>
<view class="ratetitle">
{{rateimgtitle.title}}
</view>
<view class="mask">
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='SATISFIED'?'background: #4C7BC9':''">
满意
</view>
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='COMMONLY'?'background: #4C7BC9':''">
一般
</view>
<view class="lookrateitem"
:style="ratelist.evaluateSatisfaction=='DISSATISFIED'?'background: #4C7BC9':''">
不满意
</view>
<view class="mask" style="top: 450rpx;">
<u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
</view>
<view class="rateitem" style="top: 580rpx;">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view>
</u-popup>
</view>
@ -91,21 +94,24 @@
export default {
data() {
return {
rateimgtitle: {
timer: null, //time
baseurl: null,
rateimgtitle: { //mask
img: null,
title: null,
},
ratelist: null, //list
rateshow: false, //
lookrateshow: false, //
baseurl: '',
openid: null,
patientId: null,
openid: null, //opedn
patientId: null, //patientId
rateval: 0, //
evaluateSatisfaction: null, //////
pageNum: 1,
total: 0,
pageSize: 15,
list: [],
orderNo: null,
list: [], //list
orderNo: null, //
}
},
onShow() {
@ -133,40 +139,70 @@
})
}
},
watch: { //
rateval() {
if (this.rateval == 5) {
this.evaluateSatisfaction = 'VERYSATISFIED'
} else if (this.rateval == 4) {
this.evaluateSatisfaction = 'SATISFIED'
} else if (this.rateval == 3) {
this.evaluateSatisfaction = 'COMMONLY'
} else if (this.rateval == 2) {
this.evaluateSatisfaction = 'DISSATISFIED'
} else if (this.rateval == 1) {
this.evaluateSatisfaction = 'VERYDISSATISFIED'
}
},
},
methods: {
//
lookrate(item) {
this.rateval = 0
this.evaluateSatisfaction = null
this.rateimgtitle.img = item.itemPictureUrl
this.rateimgtitle.title = item.nurseItemName
this.lookrateshow = true
lookrate(item.orderNo).then(res => {
this.ratelist = res.data
this.rateval = res.data.compositeScore
this.lookrateshow = true
})
},
//
gorate(item) {
this.rateval = 0
this.evaluateSatisfaction = null
this.orderNo = item.orderNo
this.rateshow = true
},
//
taprate(item) {
taprate() {
var obj = {
"patientId": this.patientId,
"openid": this.openid,
"orderNo": this.orderNo,
"evaluateChannel": "WE_CHAT_APPLET",
"evaluateSatisfaction": item,
"evaluateSatisfaction": this.evaluateSatisfaction,
"compositeScore": this.rateval
}
addAppointmentEvaluate(obj).then(res => {
uni.setStorageSync("Refresh", 'Refresh')
if (res.code == 200) {
uni.setStorageSync("Refresh", 'Refresh')
this.getinfo();
this.orderNo = null
this.rateshow = false
this.$refs.uToast.show({
title: '评价成功',
type: 'success',
duration: '1500',
url: '/pages/ratesuccess/ratesuccess'
duration: '1500'
})
if (this.timer) {
clearTimeout(this.timer)
}
this.timer = setTimeout(e => {
uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess?delta=${1}`
})
}, 1500)
}
})
},

View File

@ -4,59 +4,59 @@
font-size: 36rpx;
padding-top: 10rpx;
font-size: 34rpx;
.masks{
image{
position: absolute;
bottom:380rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
width: 250rpx;
border-radius: 25rpx;
height: 250rpx;
}
.ratetitle{
font-size: 34rpx;
position: absolute;
bottom:320rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
}
.mask{
position: absolute;
bottom:0;
width: 750rpx;
height: 703rpx;
background: #FFFFFF;
border-radius: 30rpx 30rpx 0px 0px;
display: flex;
justify-content: space-around;
.rateitem{
margin-top:200rpx;
width: 217rpx;
height: 222rpx;
line-height: 222rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
font-size: 40rpx;
border-radius: 25rpx;
}
.lookrateitem{
font-size: 32rpx;
margin-top:440rpx;
width: 200rpx;
height: 200rpx;
line-height: 200rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
}
.masks{
image{
position: absolute;
top:50rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
width: 250rpx;
border-radius: 25rpx;
height: 250rpx;
}
.ratetitle{
font-size: 34rpx;
position: absolute;
top:320rpx;
left:50%;
transform: translateX(-50%);
z-index: 999;
}
.title{
position: absolute;
top:40rpx;
left:50%;
transform: translateX(-50%);
font-size: 42rpx;
}
::v-deep .u-star-wrap{
padding-right:10rpx;
}
.mask{
position: absolute;
top:200rpx;
left: 70rpx;
}
.btn{
width: 70%;
height: 71rpx;
background: #4C7BC9;
border-radius: 26rpx;
position: absolute;
top:530rpx;
left: 15%;
text-align: center;
line-height: 71rpx;
color: #fff;
}
.rateitem{
position: absolute;
top:350rpx;
left: 80rpx;
font-size: 42rpx;
}
}
.time{
height: 80rpx;
width: 95%;
@ -66,26 +66,6 @@
margin: 20rpx auto 0rpx;
border-radius: 20rpx;
}
.mask{
position: absolute;
bottom:0;
width: 750rpx;
height: 703rpx;
background: #FFFFFF;
border-radius: 30rpx 30rpx 0px 0px;
display: flex;
justify-content: space-around;
.rateitem{
margin-top:200rpx;
width: 217rpx;
height: 222rpx;
line-height: 222rpx;
text-align: center;
color: #ffffff;
background: #BFBFBF;
border-radius: 25rpx;
}
}
.OrderStatus{
text-align: center;
width: 300rpx;

View File

@ -69,7 +69,7 @@
<view class="cancelorder" @tap="cancelorderment()"
v-if="list.orderStatus=='PAY'||list.orderStatus=='WAIT_DISPATCH'||list.orderStatus=='NOT_FINISH'">取消订单
</view>
<view class="cancelorder" style="background: #60c5f1;" @tap='rateshow= true'
<view class="cancelorder" style="background: #60c5f1;" @tap='rateshowtrue'
v-if="list.orderStatus=='COMPLETE'">立即评价
</view>
<view class="cancelorder" @tap='buy' style="background-color: darkorange;"
@ -79,8 +79,24 @@
<view class="cancelorder" style="background: #4C7BC9;" v-if="list.orderStatus=='EVALUATED'"
@tap='lookrate(list)'>查看评价</view>
</view>
<u-popup v-model="rateshow" mode="bottom" length="48%" border-radius="20" :closeable='true'>
<u-popup v-model="rateshow" mode="bottom" length="50%" border-radius="20" :closeable='true' class='masks'>
<view class="title">
综合评价
</view>
<view class="mask">
<u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
</view>
<view class="rateitem">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view>
<view class="btn" @tap='taprate'>
确认
</view>
<!-- <view class="mask">
<view class="rateitem" @tap="taprate('SATISFIED')">
满意
</view>
@ -90,24 +106,22 @@
<view class="rateitem" @tap="taprate('DISSATISFIED')">
不满意
</view>
</view>
</view> -->
</u-popup>
<u-popup v-model="lookrateshow" mode="bottom" length="48%" border-radius="20" :closeable='true' class='masks'>
<u-popup v-model="lookrateshow" mode="bottom" length="60%" border-radius="20" :closeable='true' class='masks'>
<image :src="baseurl+rateimgtitle.img" mode=""></image>
<view class="ratetitle">
{{rateimgtitle.title}}
</view>
<view class="mask">
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='SATISFIED'?'background: #4C7BC9':''">
满意
</view>
<view class="lookrateitem" :style="ratelist.evaluateSatisfaction=='COMMONLY'?'background: #4C7BC9':''">
一般
</view>
<view class="lookrateitem"
:style="ratelist.evaluateSatisfaction=='DISSATISFIED'?'background: #4C7BC9':''">
不满意
</view>
<view class="mask" style="top: 450rpx;">
<u-rate :count="5" v-model="rateval" :size='70' active-color='#F4EA2A'></u-rate>
</view>
<view class="rateitem" style="top: 580rpx;">
{{rateval==5?'非常满意':''}}
{{rateval==4?'满意':''}}
{{rateval==3?'一般':''}}
{{rateval==2?'差':''}}
{{rateval==1?'非常差':''}}
</view>
</u-popup>
<u-toast ref="uToast" />
@ -129,6 +143,8 @@
data() {
return {
rateshow: false, //
rateval: 0, //
evaluateSatisfaction: null, //////
baseurl: '',
patientId: '', //id
openid: '', //id
@ -159,13 +175,37 @@
}
this.getlist()
},
watch: { //
rateval() {
if (this.rateval == 5) {
this.evaluateSatisfaction = 'VERYSATISFIED'
} else if (this.rateval == 4) {
this.evaluateSatisfaction = 'SATISFIED'
} else if (this.rateval == 3) {
this.evaluateSatisfaction = 'COMMONLY'
} else if (this.rateval == 2) {
this.evaluateSatisfaction = 'DISSATISFIED'
} else if (this.rateval == 1) {
this.evaluateSatisfaction = 'VERYDISSATISFIED'
}
},
},
methods: {
//
rateshowtrue() {
this.rateval = 0
this.evaluateSatisfaction = null
this.rateshow = true
},
//
lookrate(item) {
this.rateval = 0
this.evaluateSatisfaction = null
this.rateimgtitle.img = item.itemPictureUrl
this.rateimgtitle.title = item.nurseItemName
lookrate(item.orderNo).then(res => {
this.ratelist = res.data
this.rateval = res.data.compositeScore
this.lookrateshow = true
})
},
@ -217,29 +257,31 @@
})
},
//
taprate(item) {
taprate() {
var obj = {
"patientId": this.patientId,
"openid": this.openid,
"orderNo": this.orderNo,
"evaluateChannel": "WE_CHAT_APPLET",
"evaluateSatisfaction": item,
"evaluateSatisfaction": this.evaluateSatisfaction,
"compositeScore": this.rateval
}
addAppointmentEvaluate(obj).then(res => {
if (res.code == 200) {
this.getlist();
this.$refs.uToast.show({
title: '评价成功',
type: 'success',
duration: '1500'
})
this.rateshow = false
uni.setStorageSync("Refresh", 'Refresh')
this.getlist();
if (this.timer) {
clearTimeout(this.timer)
}
this.timer = setTimeout(e => {
uni.navigateTo({
url: `/pages/ratesuccess/ratesuccess?delta=${3}`
url: `/pages/ratesuccess/ratesuccess?delta=${1}`
})
}, 1500)
} else {

View File

@ -27,6 +27,7 @@
gos() {
var that = this
this.delta = Number(this.delta)
console.log(this.delta)
if (this.delta == 4) {
uni.navigateBack({
delta: 4
@ -39,7 +40,11 @@
uni.navigateBack({
delta: 2
});
}else{
} else if (this.delta == 1) {
uni.navigateBack({
delta: 1
});
} else {
uni.navigateBack({
delta: 2
});