From 64adc6dc61ba3b6cb2db8471844132cc100e6e75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Tue, 4 Apr 2023 15:27:03 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 78 ++++-------
.../Nursingstationserviceorder.scss | 64 ++++-----
.../Nursingstationserviceorder.vue | 104 ++++++++++-----
pages/ServiceDetails/ServiceDetails.scss | 124 ++++++++----------
pages/ServiceDetails/ServiceDetails.vue | 80 ++++++++---
pages/ratesuccess/ratesuccess.vue | 7 +-
6 files changed, 249 insertions(+), 208 deletions(-)
diff --git a/pages.json b/pages.json
index 1b477d5..07f83ef 100644
--- a/pages.json
+++ b/pages.json
@@ -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": "在线客服",
diff --git a/pages/Nursingstationserviceorder/Nursingstationserviceorder.scss b/pages/Nursingstationserviceorder/Nursingstationserviceorder.scss
index 591225a..c3959c3 100644
--- a/pages/Nursingstationserviceorder/Nursingstationserviceorder.scss
+++ b/pages/Nursingstationserviceorder/Nursingstationserviceorder.scss
@@ -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;
}
}
diff --git a/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue b/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue
index b5e4ec0..71c5739 100644
--- a/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue
+++ b/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue
@@ -41,35 +41,38 @@
-
+
+
+ 综合评价
+
-
- 满意
-
-
- 一般
-
-
- 不满意
-
+
+
+
+ {{rateval==5?'非常满意':''}}
+ {{rateval==4?'满意':''}}
+ {{rateval==3?'一般':''}}
+ {{rateval==2?'差':''}}
+ {{rateval==1?'非常差':''}}
+
+
+ 确认
-
+
{{rateimgtitle.title}}
-
-
- 满意
-
-
- 一般
-
-
- 不满意
-
+
+
+
+
+ {{rateval==5?'非常满意':''}}
+ {{rateval==4?'满意':''}}
+ {{rateval==3?'一般':''}}
+ {{rateval==2?'差':''}}
+ {{rateval==1?'非常差':''}}
@@ -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)
}
})
},
diff --git a/pages/ServiceDetails/ServiceDetails.scss b/pages/ServiceDetails/ServiceDetails.scss
index c897a0c..7a6f5b3 100644
--- a/pages/ServiceDetails/ServiceDetails.scss
+++ b/pages/ServiceDetails/ServiceDetails.scss
@@ -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;
diff --git a/pages/ServiceDetails/ServiceDetails.vue b/pages/ServiceDetails/ServiceDetails.vue
index bea494e..da67c77 100644
--- a/pages/ServiceDetails/ServiceDetails.vue
+++ b/pages/ServiceDetails/ServiceDetails.vue
@@ -69,7 +69,7 @@
取消订单
- 立即评价
查看评价
-
+
+
+ 综合评价
+
+
+
+
+ {{rateval==5?'非常满意':''}}
+ {{rateval==4?'满意':''}}
+ {{rateval==3?'一般':''}}
+ {{rateval==2?'差':''}}
+ {{rateval==1?'非常差':''}}
+
+
+ 确认
+
+
-
+
{{rateimgtitle.title}}
-
-
- 满意
-
-
- 一般
-
-
- 不满意
-
+
+
+
+
+ {{rateval==5?'非常满意':''}}
+ {{rateval==4?'满意':''}}
+ {{rateval==3?'一般':''}}
+ {{rateval==2?'差':''}}
+ {{rateval==1?'非常差':''}}
@@ -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 {
diff --git a/pages/ratesuccess/ratesuccess.vue b/pages/ratesuccess/ratesuccess.vue
index 4afc1c5..a890f4e 100644
--- a/pages/ratesuccess/ratesuccess.vue
+++ b/pages/ratesuccess/ratesuccess.vue
@@ -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
});