2024-08-16 18:26:19 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="container">
|
2024-09-20 17:38:29 +08:00
|
|
|
|
|
2024-08-16 18:26:19 +08:00
|
|
|
|
<!-- 顶部区域 -->
|
2024-09-20 17:38:29 +08:00
|
|
|
|
<view class="top-title">提交评价或建议,鼓励我们做得更好~</view>
|
2024-08-16 18:26:19 +08:00
|
|
|
|
|
|
|
|
|
<view class="comment-box">
|
|
|
|
|
<view class="c-box-top">您对工作人员满意吗</view>
|
2024-09-20 17:38:29 +08:00
|
|
|
|
|
|
|
|
|
<view class="title_">反馈建议</view>
|
|
|
|
|
<view class="">
|
|
|
|
|
<u-rate active-color="#ffd74e" size="22px" :count="count" v-model="value"></u-rate>
|
2024-08-16 18:26:19 +08:00
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="wrap-box">
|
|
|
|
|
<view class="w-box" v-for="(item,index) in textlist" :key="index" @click="textindex">
|
|
|
|
|
{{item.text || "下次还来"}}
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
2024-09-20 17:38:29 +08:00
|
|
|
|
<view class="title_">反馈建议</view>
|
2024-08-16 18:26:19 +08:00
|
|
|
|
<u--textarea v-model="value1" placeholder="请输入内容"></u--textarea>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="anniu" @click="editOilOrder">
|
|
|
|
|
<text>提交</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import request from "../../utils/request";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
description: '您的宝贵建议,就是我们前进的动力~动动手指,帮助我们做得更好~~',
|
|
|
|
|
count: 5,
|
|
|
|
|
value: 0,
|
|
|
|
|
value1: '',
|
|
|
|
|
textlist: [{
|
2024-09-20 17:38:29 +08:00
|
|
|
|
text: ''
|
|
|
|
|
}, ],
|
|
|
|
|
user: {},
|
2024-08-16 18:26:19 +08:00
|
|
|
|
// url信息
|
|
|
|
|
baseUrl: this.$baseUrl,
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-09-20 17:38:29 +08:00
|
|
|
|
onLoad(e) {
|
2024-08-16 18:26:19 +08:00
|
|
|
|
this.orderId = e.orderId
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.getUser()
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-09-20 17:38:29 +08:00
|
|
|
|
editOilOrder() {
|
|
|
|
|
let remark = "评分:" + this.value + "分," + this.value1
|
2024-08-16 18:26:19 +08:00
|
|
|
|
request({
|
|
|
|
|
url: 'business/oilOrder/editOilOrder',
|
|
|
|
|
method: 'put',
|
2024-09-20 17:38:29 +08:00
|
|
|
|
data: {
|
|
|
|
|
"id": this.orderId,
|
|
|
|
|
"remark": remark
|
|
|
|
|
},
|
2024-08-16 18:26:19 +08:00
|
|
|
|
}).then(res => {
|
2024-09-20 17:38:29 +08:00
|
|
|
|
if (res.data == 1) {
|
2024-08-16 18:26:19 +08:00
|
|
|
|
uni.showToast({
|
2024-09-20 17:38:29 +08:00
|
|
|
|
title: "评论成功"
|
2024-08-16 18:26:19 +08:00
|
|
|
|
})
|
|
|
|
|
this.goback()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 查询当前登录用户信息
|
2024-09-20 17:38:29 +08:00
|
|
|
|
getUser() {
|
2024-08-16 18:26:19 +08:00
|
|
|
|
request({
|
|
|
|
|
url: 'business/userManager/user/getUser',
|
|
|
|
|
method: 'get',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
if (res.data) {
|
|
|
|
|
this.user = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goback() {
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.content {
|
2024-09-20 17:38:29 +08:00
|
|
|
|
background: #ffffff;
|
2024-08-16 18:26:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
box-sizing: border-box;
|
2024-09-20 17:38:29 +08:00
|
|
|
|
|
2024-08-16 18:26:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.my-header {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 88px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
color: #000;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 0px 15px;
|
|
|
|
|
padding-top: 40px;
|
|
|
|
|
|
|
|
|
|
.my-icons {
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-box {
|
2024-09-20 17:38:29 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
2024-08-16 18:26:19 +08:00
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dis {
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wrap-box {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
margin: 10px 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.w-box {
|
|
|
|
|
width: 70px;
|
|
|
|
|
height: 25px;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
background: #f5f6f7;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: #999999;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.c-box-top {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 5px 0px;
|
|
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.touxiang {
|
|
|
|
|
width: 65px;
|
|
|
|
|
height: 65px;
|
|
|
|
|
background-color: #eef6ff;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.username {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.anniu {
|
|
|
|
|
width: 95%;
|
2024-09-20 17:38:29 +08:00
|
|
|
|
height: 40px;
|
2024-08-16 18:26:19 +08:00
|
|
|
|
margin: 10px auto;
|
2024-09-20 17:38:29 +08:00
|
|
|
|
margin-top: 50px;
|
2024-08-16 18:26:19 +08:00
|
|
|
|
border-radius: 4px;
|
2024-09-20 17:38:29 +08:00
|
|
|
|
background: #FA6400;
|
2024-08-16 18:26:19 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2024-09-20 17:38:29 +08:00
|
|
|
|
|
|
|
|
|
.title_ {
|
|
|
|
|
margin: 10px 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-title {
|
|
|
|
|
background: rgba(255, 150, 85, 0.15);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|