From 1e12e5efe559746f50589ea43a6ff48c57b46174 Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 20 Oct 2023 15:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/baseurl.js | 4 +- .../Serviceevaluation/Serviceevaluation.js | 33 + api/pagesB/goodsorderRate/index.js | 5 +- pages.json | 40 +- .../Serviceevaluation/Serviceevaluation.vue | 638 +++++++++++++++--- pagesB/evaluate/evaluate.scss | 117 ++++ pagesB/evaluate/evaluate.vue | 167 +++++ 7 files changed, 908 insertions(+), 96 deletions(-) create mode 100644 api/pagesB/Serviceevaluation/Serviceevaluation.js create mode 100644 pagesB/evaluate/evaluate.scss create mode 100644 pagesB/evaluate/evaluate.vue diff --git a/api/baseurl.js b/api/baseurl.js index bc9a067..0064f96 100644 --- a/api/baseurl.js +++ b/api/baseurl.js @@ -1,10 +1,10 @@ // var baseurl = "https://quanyidaojia.xinelu.cn"; // var baseurl = "http://192.168.16.48:8088"; // 蒙 -var baseurl = "http://8.131.93.145:54088"; +// var baseurl = "http://8.131.93.145:54088"; // 郝 // var baseurl = "http://8.131.93.145:54010"; -// var baseurl = "http://192.168.16.35:8088"; +var baseurl = "http://192.168.16.30:8088"; export default baseurl diff --git a/api/pagesB/Serviceevaluation/Serviceevaluation.js b/api/pagesB/Serviceevaluation/Serviceevaluation.js new file mode 100644 index 0000000..65edf37 --- /dev/null +++ b/api/pagesB/Serviceevaluation/Serviceevaluation.js @@ -0,0 +1,33 @@ +import request from "../../request.js" +export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pageSize) { + return request({ + url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}®ion=${region}&pageNum=${pageNum}&pageSize=${pageSize}`, + method: 'GET', + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + }, + + }) +} +//满意度评价 +export function addAppointmentEvaluate(data) { + return request({ + url: `/nurseApp/orderEvaluate/addAppointmentEvaluate`, + method: 'POST', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + }, + }) +} +// 评价 +export function insertGoodsEvaluate(data) { + return request({ + url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`, + method: 'POST', + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + }, + }) +} diff --git a/api/pagesB/goodsorderRate/index.js b/api/pagesB/goodsorderRate/index.js index d6f5e87..9aa8651 100644 --- a/api/pagesB/goodsorderRate/index.js +++ b/api/pagesB/goodsorderRate/index.js @@ -4,7 +4,10 @@ export function insertGoodsEvaluate(data) { return request({ url: `/nurseApp/orderEvaluate/insertGoodsEvaluate`, method: 'POST', - data + data, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + }, }) } diff --git a/pages.json b/pages.json index 0abc871..ba80e00 100644 --- a/pages.json +++ b/pages.json @@ -11,12 +11,15 @@ } }, { - "path": "pages/register/register", + "path": "pages/startup/startup", "style": { - "navigationBarTitleText": "注册", + "navigationStyle": "custom", "enablePullDownRefresh": false } }, + + + { "path": "pages/homepage/homepage", @@ -24,13 +27,7 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } - }, { - "path": "pages/startup/startup", - "style": { - "navigationStyle": "custom", - "enablePullDownRefresh": false - } - }, + }, { "path": "pages/medicalservice/medicalservice", "style": { @@ -415,11 +412,34 @@ "path" : "Serviceevaluation/Serviceevaluation", "style" : { + "onReachBottomDistance": 40, "navigationBarTitleText": "服务评价", - "enablePullDownRefresh": false + "enablePullDownRefresh": false, + "onReachBottom": true } } + ,{ + "path" : "evaluate/evaluate", + "style" : + { + "navigationBarTitleText": "评价", + "onReachBottomDistance": 40, + "enablePullDownRefresh": false, + "onReachBottom": true + + } + + }, + { + "path" : "myevaluation/myevaluation", + "style" : + { + "navigationBarTitleText": "我的评价", + "enablePullDownRefresh": false + } + + } ] }, { "root": "pagesC", diff --git a/pagesB/Serviceevaluation/Serviceevaluation.vue b/pagesB/Serviceevaluation/Serviceevaluation.vue index 561cd0a..f992d4b 100644 --- a/pagesB/Serviceevaluation/Serviceevaluation.vue +++ b/pagesB/Serviceevaluation/Serviceevaluation.vue @@ -8,63 +8,337 @@ + - - - 孤注一掷 - - - - - - 齐鲁医院张先生¥30 + + + + + + + + + + + + {{item.orderName}} + + + {{item.createTime}} + + - - 评价时间:2023-09-08 - - + + + 未评价 - - 评价 - + + + + + + + + 立即评价 + + + + 评分 + + + + + + 评价 + + + + + 取消 + 提交 + + + + + 综合评价 + + + + + + {{rateval==5?'非常满意':''}} + {{rateval==4?'满意':''}} + {{rateval==3?'一般':''}} + {{rateval==2?'差':''}} + {{rateval==1?'非常差':''}} + + + 确认 + + + + + } + + .evaluateserver { + width: 100%; + font-size: 38rpx; + color: #000000; + line-height: 120rpx; + font-weight: 400; + text-align: center; + + ::v-deep .u-close { + top: 8% !important; + } + } + + .star { + position: relative; + left: 11%; + height: 80rpx; + margin-bottom: 40rpx; + + .evaluatstar { + ::v-deep .u-rate { + position: absolute !important; + left: 14% !important; + top: 50%; + transform: translateY(-50%); + } + + ::v-deep .u-input__textarea { + background: #F6F6F6; + height: 200rpx !important; + } + + ::v-deep .u-input { + width: 66% !important; + height: 171rpx; + position: absolute; + left: 16%; + } + + font-family: Source Han Sans CN; + + span:nth-child(1) { + position: absolute; + display: inline; + font-size: 36rpx; + color: #000000; + font-weight: 400; + letter-spacing: 0.2em; + top: 50%; + transform: translateY(-50%); + } + + span:nth-child(2) { + position: absolute; + display: inline-block; + } + } + } + + .submits { + font-family: Source Han Sans CN; + font-size: 31rpx; + position: relative; + display: flex; + justify-content: space-around; + top: 23%; + text-align: center; + + span:nth-child(1) { + display: inline-block; + width: 290rpx; + height: 62rpx; + line-height: 62rpx; + background: #FFFFFF; + border: 1px solid #26A888; + border-radius: 5rpx; + font-weight: 500; + color: #26A888; + + } + + span:nth-child(2) { + width: 290rpx; + height: 62rpx; + line-height: 62rpx; + background: #26A888; + border-radius: 5rpx; + font-weight: 500; + color: #FFFFFF; + display: inline-block; + } + } + + .evaluate { + width: 100%; + font-size: 38rpx; + color: #000000; + line-height: 120rpx; + text-align: center; + + ::v-deep .u-close { + top: 8% !important; + } + } + + .starnurse { + position: relative; + top: 15%; + left: 11%; + + span { + display: block; + font-size: 36rpx; + font-family: Source Han Sans CN; + font-weight: 400; + color: #333333; + margin-top: 5%; + letter-spacing: 0.2em; + } + } + + .submitsnurse { + position: relative; + width: 496rpx; + height: 61rpx; + line-height: 61rpx; + background: #26A888; + border-radius: 5rpx; + text-align: center; + font-size: 31rpx; + font-family: Source Han Sans CN; + font-weight: 500; + color: #FFFFFF; + top: 35%; + left: 50%; + transform: translateX(-50%); + + } + + .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: #26A888; + 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; + } + } + + } + \ No newline at end of file diff --git a/pagesB/evaluate/evaluate.scss b/pagesB/evaluate/evaluate.scss new file mode 100644 index 0000000..79577b5 --- /dev/null +++ b/pagesB/evaluate/evaluate.scss @@ -0,0 +1,117 @@ +.app { + .updata { + width: 70%; + margin: 80rpx 0 0 15%; + height: 71rpx; + background: #26A888; + border-radius: 26rpx; + line-height: 71rpx; + text-align: center; + color: #FFFFFF; + font-size: 32rpx; + } + + .score { + background-color: #FFFFFF; + width: 93%; + margin: 0 auto; + padding-top: 50rpx; + position: relative; + height: 500rpx; + border-radius: 0 0 20rpx 20rpx; + + ::v-deep .u-rate { + position: absolute; + top: 52rpx; + left: 200rpx; + } + + .text { + margin-top: 20rpx; + + ::v-deep .uni-textarea-textarea { + width: 93%; + display: block; + margin: 0 20rpx; + } + + ::v-deep .u-input__textarea { + margin-left: 20rpx; + } + } + + .title { + margin: 0 20rpx; + font-size: 36rpx; + color: #000000; + padding-bottom: 50rpx; + border-bottom: 1rpx solid #D8D4D4; + } + } + + .rate { + width: 93%; + margin: 0 auto; + height: 100%; + background: #FFFFFF; + box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); + border-radius: 20rpx 20rpx 0 0; + padding-bottom: 20rpx; + + .images { + padding-top: 20rpx; + + .itemimgs { + display: inline-block; + width: 30.5%; + height: 212rpx; + margin: 0 0 20rpx 2%; + position: relative; + + .delimg { + position: absolute; + top: 10rpx; + right: 10rpx; + width: 40rpx; + height: 40rpx; + z-index: 999; + } + + .itemimg { + width: 100%; + height: 100%; + } + } + + .item { + display: inline-block; + margin-bottom: 20rpx; + width: 30.5%; + margin: 0 0 0 2%; + height: 212rpx; + border: 1rpx dashed #818181; + border-radius: 5rpx; + position: relative; + + .title { + font-size: 35rpx; + color: #969394; + line-height: 70rpx; + position: absolute; + left: 50%; + top: 58%; + transform: translateX(-50%); + } + + image { + position: absolute; + left: 50%; + top: 20%; + transform: translateX(-50%); + width: 89rpx; + height: 68rpx; + } + } + } + } + } \ No newline at end of file diff --git a/pagesB/evaluate/evaluate.vue b/pagesB/evaluate/evaluate.vue new file mode 100644 index 0000000..de5004f --- /dev/null +++ b/pagesB/evaluate/evaluate.vue @@ -0,0 +1,167 @@ + + + + +