当前位置: 首页 > news >正文

uniapp多端评价页

如图所示:评价页

<template><view><!-- 顶部 --><view class="evaluate_head"><image class="headBg" src="@/static/evaluate/head.png" mode=""></image><view class="headZindexbox"><image class="icon" src="@/static/evaluate/hua@2x.png" mode=""></image><view class="text">提交评价或建议,鼓励技师和平台做得更好~</view></view></view><!-- 评价 --><view class="evearNox"><view class="evearHead"><view class="label">您对技师满意吗?</view><view class="text">已对技师匿名</view></view><!-- 技师信息 --><view class="userBox"><image class="logo" src="@/static/logo.png" mode=""></image><view class="userContent"><view class="username">王慧娟</view><view class="userText">2024.01.13 15:30:10完成服务</view></view></view><!-- 选择 --><view class="checkBox"><view class="checkLabel" v-for="(item,index) in checkList" :key="index" @click="getItem(item,index)":class="item.active?'textActive':''"><view class="text"><image class="icon" v-if="index==0&&!item.active" src="@/static/evaluate/icon_ku.png"></image><image class="icon" v-else-if="index==1&&!item.active" src="@/static/evaluate/icon_xiao.png"></image><image class="icon" v-else-if="index==0&&item.active" src="@/static/evaluate/icon_kued.png"></image><image class="icon" v-else-if="index==1&&item.active" src="@/static/evaluate/icon_xiaoed.png"></image>{{item.title}}</view></view></view><!-- 不满意 --><view v-if="checkid==0"><view class="errorText">“请选择原因,我们会督促技师”</view><view class="labeList" ><view class="label" v-for="(item,index) in dissatisLabelList" @click="getLabelItem(item,index,0)":class="item.actived?'actived':''">{{item.title}}</view></view><view class="feekContent"><view class="feekText"><u--textarea class="feekTexts" v-model="evealBase.remark" maxlength="100" border="0"placeholder="您的反馈会督促我们做的更好" height="85"></u--textarea></view><view class="z-lists z-bottom"><view class="list-value" style="position: relative;"></view><view class="moreNumber"><view class="text">{{evealBase.remark.length}}</view>/100</view></view></view></view><!-- end --><!-- 满意 --><view class="labeList" v-else-if="checkid==1"><view class="label" v-for="(item,index) in satisLabelList" @click="getLabelItem(item,index,1)":class="item.actived?'actived':''">{{item.title}}</view></view><!-- end --></view><!-- 评分 --><view class="rateBox" v-if="checkid==0"><view class="label">服务评分</view><view class="rate-content"><u-rate class="rates" active-color="#FFBF00" inactive-color="#E9E9E9" gutter="10" size="50rpx":value="evealBase.satisfied" @change="geSatisRates"></u-rate><view class="text" v-if="evealBase.satisfied==1">非常差</view><view class="text" v-else-if="evealBase.satisfied==2">差</view><view class="text" v-else-if="evealBase.satisfied==3">一般</view><view class="text" v-else-if="evealBase.satisfied==4">满意</view><view class="text" v-else-if="evealBase.satisfied==5">非常满意</view></view></view><view class="rateBox" v-if="checkid==1"><view class="label">服务评分</view><view class="rate-content"><u-rate class="rates" active-color="#FFBF00" inactive-color="#E9E9E9" gutter="10" size="50rpx":value="evealBase.satisfied" @change="geSatisRates"></u-rate><view class="text" v-if="evealBase.satisfied==1">非常差</view><view class="text" v-else-if="evealBase.satisfied==2">差</view><view class="text" v-else-if="evealBase.satisfied==3">一般</view><view class="text" v-else-if="evealBase.satisfied==4">满意</view><view class="text" v-else-if="evealBase.satisfied==5">非常满意</view></view></view><!-- end --><!-- 提交 --><view class="feedBottom"><view class="submit" @click="getSubmit">提交评价</view></view><!-- end --></view>
</template><script>import {toast,showConfirm,tansParams,} from '@/utils/common'export default {data() {return {evealBase: {satisfied: 0,remark:""},checkList: [{title: "不满意"}, {title: "满意"}],checkid: "",satisLabelList: [{title: "性价比高",}, {title: "服装整洁",}, {title: "热情礼貌",}, {title: "手法专业",}, {title: "服务态度好",}, {title: "很有耐心",}, {title: "素质高",}, {title: "相当专业",}, {title: "非常棒",}],dissatisLabelList: [{title: "性价比高",}, {title: "服装整洁",}, {title: "热情礼貌",}, {title: "手法专业",}, {title: "服务态度好",}, {title: "很有耐心",}, {title: "素质高",}, {title: "相当专业",}, {title: "非常棒",}],}},methods: {/*** 选择满意不满意* @param {Object} item* @param {Object} index*/getItem(item, index) {this.checkid = index;for (var i in this.checkList) {if (index == i) {this.checkList[i].active = true;} else {this.checkList[i].active = false;}}this.$forceUpdate()},// 满意选择评分星级geSatisRates(item) {this.evealBase.satisfied = item},/*** 选择满意、不满意标签*/getLabelItem(item, index,type) {if(type==0){this.dissatisLabelList[index].actived = !this.dissatisLabelList[index].actived}else{this.satisLabelList[index].actived = !this.satisLabelList[index].actived}this.$forceUpdate()},// 提交评价getSubmit() {console.error("是否满意==>", this.checkid)if (this.checkid == "") {toast("请选择是否满意?")return;}}}}
</script><style lang="scss" scoped>.evaluate_head {width: 750rpx;height: 76rpx;display: flex;align-items: center;position: relative;.headBg {width: 750rpx;height: 76rpx;}.headZindexbox {position: absolute;z-index: 2;display: flex;align-items: center;// top: 20rpx;margin-left: 42rpx;.icon {width: 32rpx;height: 30rpx;margin-right: 12rpx;}.text {font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 500;color: #FFD000;}}}.evearNox {width: 726rpx;margin: 0 auto;background: #FFFFFF;margin-top: 16rpx;padding-bottom: 20rpx;border-radius: 12rpx;.feekContent {width: 670rpx;margin: 0 auto;background: #F9FAF9 !important;border-radius: 12rpx;.list-value {// width: 230px;color: #333;background: #F9FAF9 !important;// justify-content: right;// text-align: right;display: flex;align-items: center;margin-left: 30rpx;// position: absolute;// right: 10px;.u-upload__wrap__preview__image {border: 2rpx solid #E9E9E9 !important;}}.list-icon-right {margin-left: 10px;}.feekText {background: #F9FAF9 !important;border-top-left-radius: 12rpx;padding-top: 30rpx;border-top-right-radius: 12rpx;color: #B4ABAB !important;.feekTexts {padding: 0 !important;margin-left: 32rpx;width: 600rpx;color: #B4ABAB !important;background: #F9FAF9 !important;}}.z-lists {width: 100%;display: flex;align-items: center;position: relative;padding: 10px 0px;border-radius: 6px;background: #F9FAF9 !important;.moreNumber {position: absolute;right: 30rpx;bottom: 15rpx;font-size: 24rpx;display: flex;align-items: center;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #A4A4A4;.text {font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #303030;}}.z-list-border {position: absolute;bottom: 0;right: 0;width: 96%;height: 1px;border-bottom: 1rpx solid #EFEFEF;}.uploadBox {width: 148rpx;height: 148rpx;display: flex;align-items: center;justify-content: center;border-radius: 8rpx;border: 2rpx solid #E9E9E9;}}}.evearHead {width: 670rpx;display: flex;height: 82rpx;margin: 0 auto;justify-content: space-between;align-items: center;border-bottom: 1rpx solid #E6E6E6;.label {font-size: 28rpx;font-family: PingFangSC, PingFang SC;font-weight: 500;color: #333333;}.text {font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #A4A4A4;}}// 用户信息.userBox {width: 670rpx;margin: 0 auto;display: flex;align-items: center;background: #FFFFFF;margin-top: 26rpx;.logo {width: 72rpx;height: 72rpx;margin-right: 14rpx;}.userContent {.username {font-size: 28rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #333333;margin-bottom: 15rpx;}.userText {font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #333333;}}}.errorText{font-size: 22rpx;width: 670rpx;margin: 0 auto;text-align: left;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #FF0000;margin-top: 32rpx;}.checkBox {width: 670rpx;margin: 0 auto;display: flex;align-items: center;justify-content: space-between;background: #FFFFFF;margin-top: 40rpx;.textActive {background: #FFF6E1 !important;}.checkLabel {width: 326rpx;display: flex;align-items: center;height: 76rpx;justify-content: center;background: #F6F6F6;border-radius: 12rpx;.text {font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #333333;display: flex;align-items: center;.icon {width: 52rpx;height: 52rpx;margin-right: 20rpx;}}}}.labeList {width: 670rpx;margin: 0 auto;display: flex;align-items: center;flex-wrap: wrap;background: #FFFFFF;margin-top: 26rpx;.label {width: auto;font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;background: #F6F6F6;color: #9B9B9B;padding: 6rpx 20rpx;margin-bottom: 24rpx;border-radius: 8rpx;margin-right: 24rpx;}.actived {background: #FFF6E1 !important;color:#AD8539!important;}}}// 评分.rateBox {width: 726rpx;height: 106rpx;display: flex;align-items: center;margin: 0 auto;background: #FFFFFF;border-radius: 12rpx;margin-top: 16rpx;.label {margin-left: 30rpx;font-size: 28rpx;font-family: PingFangSC, PingFang SC;font-weight: 500;color: #333333;}.rate-content {display: flex;align-items: center;.rates {margin-left: 48rpx;margin-right: 52rpx;}.text {font-size: 24rpx;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #2C2C2C;}}}// 提交.feedBottom {position: fixed;bottom: 0;left: 0;width: 750rpx;display: flex;align-items: center;justify-content: center;height: 116rpx;background: #FFFFFF;.submit {width: 646rpx;height: 88rpx;background: #AD8539;border-radius: 50rpx;font-size: 36rpx;display: flex;align-items: center;justify-content: center;font-family: PingFangSC, PingFang SC;font-weight: 400;color: #FFFFFF;}}
</style>

 

相关文章:

uniapp多端评价页

如图所示&#xff1a;评价页 <template><view><!-- 顶部 --><view class"evaluate_head"><image class"headBg" src"/static/evaluate/head.png" mode""></image><view class"headZindex…...

行为树(Behavior Trees)

行为树&#xff08;Behavior Trees&#xff09;是一种在游戏开发中广泛使用的AI设计模式&#xff0c;主要用于描述AI的行为和决策过程&#xff0c;实现更加智能和自然的游戏AI。它由多个节点组成&#xff0c;每个节点代表一个行为或决策&#xff0c;按照特定的方式连接在一起&a…...

opensssl BIO方式https客户端

废话不多说&#xff0c;代码中使用了两种https客户端的实现方式。 #include <windows.h> #include <WinSock.h>#pragma comment(lib,"ws2_32.lib") #include "../include/openssl\ssl.h" #include "../include/openssl\err.h"#pragm…...

JavaScript之判断是否整数、取余、取整、进制、位或、ES6

MENU 方法一方式二方式三方式四方式五结束语 方法一 使用取余运算符判断&#xff0c;利用任何整数都会被1整除的原理&#xff0c;即余数是0的特点&#xff0c;通过这个规则来判断是否是整数。 let isInteger (val) > val % 1 0;// true isInteger(5); // false isInteger(…...

【打造你自己的Shell:编写定制化命令行体验】

本节重点&#xff1a; 学习进程创建,fork/vfork 学习到进程等待 学习到进程程序替换, 微型shell&#xff0c;重新认识shell运行原理 学习到进程终止,认识$? 一、进程创建 1.1.fork函数初识 在linux中fork函数时非常重要的函数&#xff0c;它从已存在进程中创建一个新进程…...

PGSQL主键序列

PostgreSQL和 MySQL数据库还是有一定的区别。 下面了解一下 PGSQL的主键序列。 一、主键 1、系统自带主键序列 在 PostgreSQL 中&#xff0c;GENERATED BY DEFAULT 和 GENERATED ALWAYS 是用于定义自动生成的列&#xff08;Generated Column&#xff09;的选项。一般可作用…...

pg14.2迁移至KingbaseV8R6后部分表记录数为空

pg14.2迁移至KingbaseV8R6后部分表记录数为空 问题描述 kdts工具迁移详情里显示表数据已迁移成功&#xff0c;但是迁移后测试发现部份表记录数为空 分别查看源库和目标库表记录数 --源库 select count(*) from aaf_sys_param order by 1; 229条--目录库 select count(*) fr…...

【Spring 篇】深入解析SpringMVC的组件魅力

SpringMVC&#xff0c;这个名字在Java Web开发者的耳边仿佛是一首动听的旋律&#xff0c;携着轻盈的氛围&#xff0c;带给我们一种愉悦的编程体验。但是&#xff0c;当我们深入探寻这个框架时&#xff0c;它的魅力远不止表面的简单&#xff0c;它由许多组件构成&#xff0c;每个…...

HPsocket 在 C# 中的运用:一款优秀的 socket 通信框架

摘要&#xff1a;本文将为您详细介绍 HPsocket&#xff0c;一款适用于 win32 平台的 socket 通信框架。同时&#xff0c;我们还将探讨如何在 C# 项目中使用 HPsocket&#xff0c;实现网络通信功能。通过本文&#xff0c;您将深入了解 HPsocket 的特点、优势以及在 C# 中的实际应…...

黑豹程序员-MyBatisPlus封装SQL的where条件的对象 QueryWrapper

说明 我们使用MybatisPlus时&#xff0c;我们可以不直接通过SQL操作数据库&#xff0c;而使用面向对象的方式。 其中遇到一个问题&#xff0c;就是如何用面向对象的方式实现 SQL中的where条件拼接。 MybatisPlus很体贴&#xff0c;它提供了一个QueryWrapper&#xff0c;查询包…...

每日一题——LeetCode1252.奇数值单元格的数目

进阶&#xff1a;你可以设计一个时间复杂度为 O(n m indices.length) 且仅用 O(n m) 额外空间的算法来解决此问题吗&#xff1f; 方法一 直接模拟&#xff1a; 创建一个n x m的矩阵&#xff0c;初始化所有元素为0&#xff0c;对于indices中的每一对[ri,ci]&#xff0c;将矩…...

C#学习笔记3-函数与单元测试

现在开始参考书籍变为&#xff1a;《C# 12 and .NET 8 – Modern Cross-Platform Development.Mark Price》 函数 Writing, Debugging, and Testing Functions 写函数Debug运行时 logging单元测试 写函数 一个有着 XML 注释的函数 这里直接举一个例子&#xff1a; Numbe…...

osg屏幕事件处理器和状态集操控器学习

1 osgViewer::WindowSizeHandler 该事件处理器提供了对窗体屏幕的控制,功能如下: 按住或再次键盘f键,则三维窗体在全屏和退出全屏之间切换; 按住键盘>键,则屏幕分辨率增加; 按住键盘<键,则屏幕分辨率减小; 2 osgGA::StateSetManipulator 该事件处理器是状态集操…...

中国泛娱乐出海视频字幕解决方案

随着企业泛娱乐出海越来越成为热门&#xff0c;自动加载视频字幕需求变得越来越普遍&#xff0c;这能够为用户观众提供更好的视频体验。此次九河云为客户带来了aws视频字幕解决方案&#xff0c;满足客户视频字幕生成、翻译及后续编辑等完整工作流的需求。 客户价值&#xff1a…...

iOS原生应用屏幕适配完整流程

1. 已iPhone 11 布局为设计布局,其他机型已这个来适配 2.变量与控件对应关系 txtViewer: txtAccount txtpwd seg btnOk 3.适配方法实现: //iOS屏幕适配 -(vo...

【征服redis8】Redis的AOF持久化

Redis 支持多种持久化方式来保证数据的可靠性和持久性。前面我们介绍了RDB方式。我们我们介绍第二种方式——AOF&#xff08;Append Only File&#xff09;机制是一种常用的持久化方式&#xff0c;它记录了所有对 Redis 数据库进行修改的命令&#xff0c;在 Redis 重启时可以使…...

【动态规划】【二分查找】【C++算法】730. 统计不同回文子序列

作者推荐 【动态规划】【数学】【C算法】18赛车 涉及知识点 动态规划 二分查找 LeetCode730. 统计不同回文子序列 给你一个字符串 s &#xff0c;返回 s 中不同的非空回文子序列个数 。由于答案可能很大&#xff0c;请返回对 109 7 取余 的结果。 字符串的子序列可以经由…...

android 和 opencv 开发环境搭建

本文详细说明给android项目添加opencv库的详细步骤&#xff0c;并通过实现图片灰度化来查看配置是否成功。 下载OPENCV ANDROID SDK 到官网下载 打开 https://opencv.org/releases/ 选择android&#xff0c;下载完成后解压出下面的文件&#xff1a; 安装android sdk 和 ndk …...

elasticsearch[一]-索引库操作(轻松创建)、文档增删改查、批量写入(效率倍增)

elasticsearch[一]-索引库操作(轻松创建)、文档增删改查、批量写入(效率倍增) 1、初始化 RestClient 在 elasticsearch 提供的 API 中&#xff0c;与 elasticsearch 一切交互都封装在一个名为 RestHighLevelClient 的类中&#xff0c;必须先完成这个对象的初始化&#xff0c;…...

tp6框架中Http类 请求的header、body参数传参 及post、file格式

引入Http类&#xff1a; 在需要使用的地方引入Http类&#xff1a; use think\facade\Http; GET请求示例&#xff1a;$response Http::get(https://example.com/api/resource); 设置Header参数&#xff1a; $headers [ Authorization > Bearer YourAccessToken, Conte…...

Appium+python自动化(十六)- ADB命令

简介 Android 调试桥(adb)是多种用途的工具&#xff0c;该工具可以帮助你你管理设备或模拟器 的状态。 adb ( Android Debug Bridge)是一个通用命令行工具&#xff0c;其允许您与模拟器实例或连接的 Android 设备进行通信。它可为各种设备操作提供便利&#xff0c;如安装和调试…...

模型参数、模型存储精度、参数与显存

模型参数量衡量单位 M&#xff1a;百万&#xff08;Million&#xff09; B&#xff1a;十亿&#xff08;Billion&#xff09; 1 B 1000 M 1B 1000M 1B1000M 参数存储精度 模型参数是固定的&#xff0c;但是一个参数所表示多少字节不一定&#xff0c;需要看这个参数以什么…...

2.Vue编写一个app

1.src中重要的组成 1.1main.ts // 引入createApp用于创建应用 import { createApp } from "vue"; // 引用App根组件 import App from ./App.vue;createApp(App).mount(#app)1.2 App.vue 其中要写三种标签 <template> <!--html--> </template>…...

【C++从零实现Json-Rpc框架】第六弹 —— 服务端模块划分

一、项目背景回顾 前五弹完成了Json-Rpc协议解析、请求处理、客户端调用等基础模块搭建。 本弹重点聚焦于服务端的模块划分与架构设计&#xff0c;提升代码结构的可维护性与扩展性。 二、服务端模块设计目标 高内聚低耦合&#xff1a;各模块职责清晰&#xff0c;便于独立开发…...

零基础在实践中学习网络安全-皮卡丘靶场(第九期-Unsafe Fileupload模块)(yakit方式)

本期内容并不是很难&#xff0c;相信大家会学的很愉快&#xff0c;当然对于有后端基础的朋友来说&#xff0c;本期内容更加容易了解&#xff0c;当然没有基础的也别担心&#xff0c;本期内容会详细解释有关内容 本期用到的软件&#xff1a;yakit&#xff08;因为经过之前好多期…...

Java线上CPU飙高问题排查全指南

一、引言 在Java应用的线上运行环境中&#xff0c;CPU飙高是一个常见且棘手的性能问题。当系统出现CPU飙高时&#xff0c;通常会导致应用响应缓慢&#xff0c;甚至服务不可用&#xff0c;严重影响用户体验和业务运行。因此&#xff0c;掌握一套科学有效的CPU飙高问题排查方法&…...

SAP学习笔记 - 开发26 - 前端Fiori开发 OData V2 和 V4 的差异 (Deepseek整理)

上一章用到了V2 的概念&#xff0c;其实 Fiori当中还有 V4&#xff0c;咱们这一章来总结一下 V2 和 V4。 SAP学习笔记 - 开发25 - 前端Fiori开发 Remote OData Service(使用远端Odata服务)&#xff0c;代理中间件&#xff08;ui5-middleware-simpleproxy&#xff09;-CSDN博客…...

Python 包管理器 uv 介绍

Python 包管理器 uv 全面介绍 uv 是由 Astral&#xff08;热门工具 Ruff 的开发者&#xff09;推出的下一代高性能 Python 包管理器和构建工具&#xff0c;用 Rust 编写。它旨在解决传统工具&#xff08;如 pip、virtualenv、pip-tools&#xff09;的性能瓶颈&#xff0c;同时…...

Linux 内存管理实战精讲:核心原理与面试常考点全解析

Linux 内存管理实战精讲&#xff1a;核心原理与面试常考点全解析 Linux 内核内存管理是系统设计中最复杂但也最核心的模块之一。它不仅支撑着虚拟内存机制、物理内存分配、进程隔离与资源复用&#xff0c;还直接决定系统运行的性能与稳定性。无论你是嵌入式开发者、内核调试工…...

论文阅读笔记——Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing

Muffin 论文 现有方法 CRADLE 和 LEMON&#xff0c;依赖模型推理阶段输出进行差分测试&#xff0c;但在训练阶段是不可行的&#xff0c;因为训练阶段直到最后才有固定输出&#xff0c;中间过程是不断变化的。API 库覆盖低&#xff0c;因为各个 API 都是在各种具体场景下使用。…...