소스 검색

提交

yxb
DESKTOP-2IO5MST\huting 1 년 전
부모
커밋
472e895b6d

+ 42
- 30
subpackage/personal-center/remind/components/evaluate-equity-item.vue 파일 보기

<view class="item-box" v-for="(item,index) in dataList" :key="index"> <view class="item-box" v-for="(item,index) in dataList" :key="index">
<view class="top as-layout-horizontal as-gravity-center-start"> <view class="top as-layout-horizontal as-gravity-center-start">
<view class="as-layout-horizontal as-gravity-center-start"> <view class="as-layout-horizontal as-gravity-center-start">
<image :src="`${$imgUrl}order/icon-star-green.png`"></image>
<image :src="`${$imgUrl}order/icon-star-green.png`"></image>
<text>{{item.equityName}}</text> <text>{{item.equityName}}</text>
</view> </view>
<view class="time">{{item.insertTime}}</view> <view class="time">{{item.insertTime}}</view>
</view> </view>
<view class="center"> <view class="center">
<!-- <view class="as-layout-horizontal as-gravity-center-start"> <!-- <view class="as-layout-horizontal as-gravity-center-start">
<image :src="`${$imgUrl}user/icon-avatar.png`" class="avatar"></image> <image :src="`${$imgUrl}user/icon-avatar.png`" class="avatar"></image>
</view> --> </view> -->
<view class="content">{{item.suggestion}}</view> <view class="content">{{item.suggestion}}</view>
<view class="images"> <view class="images">
<image class="img" mode="aspectFill" v-for="(itemChild,index) in item.pictureUrlArr" :src="`${$imgUrl}${itemChild}`" />
<image class="img" mode="aspectFill" v-for="(itemChild,index) in item.pictureUrlArr" :src="itemChild"
:key="index" />
<!-- <image class="img" mode="aspectFill" :src="`${$imgUrl}${item.pictureUrl}`" /> --> <!-- <image class="img" mode="aspectFill" :src="`${$imgUrl}${item.pictureUrl}`" /> -->
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="text good" v-if="item.evaluate === '好评'">好评</view> <view class="text good" v-if="item.evaluate === '好评'">好评</view>
<view class="text middle" v-if="item.evaluate === '中评'">中评</view> <view class="text middle" v-if="item.evaluate === '中评'">中评</view>
<script setup lang="ts"> <script setup lang="ts">
defineProps({ defineProps({
//数据列表 //数据列表
dataList:{
type:Array,
default:()=>{
dataList: {
type: Array,
default: () => {
return []; return [];
} }
} }
</script> </script>


<style lang="scss" scoped> <style lang="scss" scoped>
.item-box{
.item-box {
background: #ffffff; background: #ffffff;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223,223,223,0.8);
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
.top{
.top {
min-height: 88rpx; min-height: 88rpx;
padding: 0rpx 30rpx; padding: 0rpx 30rpx;
border-bottom: 1rpx solid #DCDCDC; border-bottom: 1rpx solid #DCDCDC;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
image{

image {
width: 48rpx; width: 48rpx;
height: 53rpx; height: 53rpx;
} }
text{
text {
margin-left: 12rpx; margin-left: 12rpx;
font-size: 30rpx; font-size: 30rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
} }
.time{

.time {
font-size: 26rpx; font-size: 26rpx;
color: #999999; color: #999999;
text-align: right; text-align: right;
} }
} }
.center{
.center {
padding: 28rpx 30rpx; padding: 28rpx 30rpx;
border-bottom: 1rpx solid #DCDCDC; border-bottom: 1rpx solid #DCDCDC;
.avatar{

.avatar {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
background: #B2EEE1; background: #B2EEE1;
border-radius: 50%; border-radius: 50%;
} }
text{

text {
font-size: 26rpx; font-size: 26rpx;
font-size: 26rpx; font-size: 26rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
color: #333333; color: #333333;
margin-left: 22rpx; margin-left: 22rpx;
} }
.content{

.content {
font-size: 26rpx; font-size: 26rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 400;
line-height: 46rpx; line-height: 46rpx;
margin-top: 30rpx; margin-top: 30rpx;
} }
.images{
.images {
margin-top: 40rpx; margin-top: 40rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
margin-right: -30rpx; margin-right: -30rpx;
margin-bottom: -30rpx; margin-bottom: -30rpx;
.img{

.img {
width: 130rpx; width: 130rpx;
height: 130rpx; height: 130rpx;
margin-right: 30rpx; margin-right: 30rpx;
} }
} }
} }
.bottom{
.bottom {
padding: 15rpx 30rpx; padding: 15rpx 30rpx;
text-align: right; text-align: right;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
.text{

.text {
width: 97rpx; width: 97rpx;
height: 36rpx; height: 36rpx;
line-height: 36rpx; line-height: 36rpx;
font-size: 26rpx; font-size: 26rpx;
text-align: center; text-align: center;
} }
.good{

.good {
background: #FBD9D0; background: #FBD9D0;
color: #DD523E; color: #DD523E;
} }
.middle{

.middle {
background: #FBECD0; background: #FBECD0;
color: #FF9600; color: #FF9600;
} }
.bad{

.bad {
background: #E1E1E1; background: #E1E1E1;
color: #999999; color: #999999;
} }
.score{

.score {
font-size: 26rpx; font-size: 26rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 400;

+ 57
- 25
subpackage/personal-center/remind/components/evaluate-issue-item.vue 파일 보기

</view> </view>
<view class="time">{{item.insertTime}}</view> <view class="time">{{item.insertTime}}</view>
</view> </view>
<view class="center"> <view class="center">
<!-- <view class="as-layout-horizontal as-gravity-center-start"> <!-- <view class="as-layout-horizontal as-gravity-center-start">
<image :src="`${$imgUrl}user/icon-avatar.png`"></image> <image :src="`${$imgUrl}user/icon-avatar.png`"></image>
<text>{{item.customerName}}</text> <text>{{item.customerName}}</text>
</view> --> </view> -->
<view class="content">{{item.suggestion}}</view> <view class="content">{{item.suggestion}}</view>
<view class="images" v-if="item.pictureUrlArr && item.pictureUrlArr.length>0">
<image class="img" mode="aspectFill" v-for="(itemChild,index) in item.pictureUrlArr" :src="itemChild"
:key="index" />
</view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="text good" v-if="item.evaluate === '好评'">好评</view> <view class="text good" v-if="item.evaluate === '好评'">好评</view>
<view class="text middle" v-if="item.evaluate === '中评'">中评</view> <view class="text middle" v-if="item.evaluate === '中评'">中评</view>
// const tabClick = defineEmits(['tabClick']) // const tabClick = defineEmits(['tabClick'])
defineProps({ defineProps({
//数据列表 //数据列表
dataList:{
type:Array,
default:()=>{
dataList: {
type: Array,
default: () => {
return []; return [];
} }
} }
</script> </script>


<style lang="scss" scoped> <style lang="scss" scoped>
.item-box{
.item-box {
background: #ffffff; background: #ffffff;
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223,223,223,0.8);
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
.top{
.top {
min-height: 88rpx; min-height: 88rpx;
padding: 0rpx 30rpx; padding: 0rpx 30rpx;
border-bottom: 1rpx solid #DCDCDC; border-bottom: 1rpx solid #DCDCDC;
image{

image {
width: 48rpx; width: 48rpx;
height: 53rpx; height: 53rpx;
} }
text{
text {
margin-left: 12rpx; margin-left: 12rpx;
font-size: 30rpx; font-size: 30rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
} }
.time{

.time {
font-size: 26rpx; font-size: 26rpx;
color: #999999; color: #999999;
text-align: right; text-align: right;
} }
} }
.center{
.center {
padding: 28rpx 30rpx; padding: 28rpx 30rpx;
border-bottom: 1rpx solid #DCDCDC; border-bottom: 1rpx solid #DCDCDC;
image{

image {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
background: #B2EEE1; background: #B2EEE1;
border-radius: 50%; border-radius: 50%;
} }
text{

text {
font-size: 26rpx; font-size: 26rpx;
font-size: 26rpx; font-size: 26rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
color: #333333; color: #333333;
margin-left: 22rpx; margin-left: 22rpx;
} }
.content{

.content {
font-size: 26rpx; font-size: 26rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 400;
margin-top: 30rpx; margin-top: 30rpx;
} }
} }
.bottom{
.bottom {
padding: 15rpx 30rpx; padding: 15rpx 30rpx;
text-align: right; text-align: right;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
.text{

.text {
width: 97rpx; width: 97rpx;
height: 36rpx; height: 36rpx;
line-height: 36rpx; line-height: 36rpx;
font-size: 26rpx; font-size: 26rpx;
text-align: center; text-align: center;
} }
.good{

.good {
background: #FBD9D0; background: #FBD9D0;
color: #DD523E; color: #DD523E;
} }
.middle{

.middle {
background: #FBECD0; background: #FBECD0;
color: #FF9600; color: #FF9600;
} }
.bad{

.bad {
background: #E1E1E1; background: #E1E1E1;
color: #999999; color: #999999;
} }
.score{

.score {
font-size: 26rpx; font-size: 26rpx;
font-family: Noto Sans S Chinese; font-family: Noto Sans S Chinese;
font-weight: 400; font-weight: 400;
} }
} }
} }

.images {
margin-top: 40rpx;
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-right: -30rpx;
margin-bottom: -30rpx;

.img {
width: 130rpx;
height: 130rpx;
margin-right: 30rpx;
background: #F3F3F3;
border-radius: 10rpx;
margin-bottom: 30rpx;
}
}
</style> </style>

Loading…
취소
저장