| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <template>
- <view class="flex-index-css evaluate-box box-border-box">
-
- <scroll-view scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
- <view>
- <view class="card-box flex-justify-space align-items-center">
- <view class="align-items-center">
- <view class="fs-64 fc-FF7F00 fw-600 mr-12">4.6</view>
- <EnEva :num="3"></EnEva>
- </view>
- <view class="align-items-center">
- <view class="mr-30">
- <view class="fs-24 mb-4 fw-400">味道</view>
- <view class="fs-32 fw-b">4.2</view>
- </view>
- <view class="mr-30">
- <view class="fs-24 mb-4 fw-400">包装</view>
- <view class="fs-32 fw-b">4.2</view>
- </view>
- <view class="">
- <view class="fs-24 mb-4 fw-400">配送满意度</view>
- <view class="fs-32 fw-b">91%</view>
- </view>
- </view>
- </view>
- <view class="card-box align-items-center">
- <view class="list-item fs-28" @click="selectType(item.id)"
- :class="type==item.id?'s-item':'n-item'"
- v-for="(item,i) in list" :key="i">{{item.name}}{{item.num||''}}</view>
- </view>
-
- <view class="card-box" v-for="(item,i) in 5" :key="i">
- <view class="item-head flex-justify-space mb-22">
- <view class="display-flex">
- <image class="left-img mr-16" src="@/static/img/my/bg.png" mode="scaleToFill"></image>
- <view class="mt-5">
- <view class="fs-28 fw-600">匿名用户</view>
- <view class="fs-24 fc-9">2024-05-16</view>
- </view>
- </view>
- <image @click="openPop" class="right-img" src="@/static/img/takeout/ddd.png" mode=""></image>
- </view>
- <view class="align-items-center mb-16">
- <EnEva :num="3"></EnEva>
- <view class="fs-24 fc-9 ml-16">非常棒</view>
- </view>
- <view class="fs-32 fw-400 mb-16">
- 味道好吃就是这个盒子包装不好味道好吃就1是这个盒子包装不好味道好吃就是这个盒子包装1不好味道好吃就是这个盒子包装不好
- </view>
- <view class="flex-wrap-wrap">
- <image v-for="(item,i) in 8" :key="i" @click="lookImg(i,item)"
- class="list-img" src="@/static/img/my/bg.png" mode="scaleToFill"></image>
- </view>
-
- <view class="bgc-F3F4F6 b-rad-12 box-border-box p-24 ">
- <view class="flex-justify-space align-items-center mb-12">
- <view class="fs-28 fw-600 fc-6">商家回复</view>
- <view class="fs-24 fc-9 fw-400">2024-5-16</view>
- </view>
- <view class="fs-24 fc-6 fw-400">
- 感谢亲亲的认可,接到亲的需求,我们就以火箭的速度准备并送出啦,亲亲能否品尝出我们的用心呢?欢迎再来哦!
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
-
- <uni-popup ref="popup" type="bottom">
- <view class="pop-box" @click.stop="closePop">
- <view class="pop-box-1" v-if="tup">
- <view @click.stop="tup=false" class="text-align-center fs-32 fw-600 mb-20">我要举报</view>
- <view class="text-align-center fs-32 fw-600">取消</view>
- </view>
- <view v-else class="flex-index-css">
- <view class="flex-1"></view>
- <view class="pop-box-2 box-border-box p-24">
- <view class="pop-box-2-1 fs-36 fw-600 text-align-center mb-28">
- 选择举报理由
- <view class="pop-box-2-2" @click.stop="tup=true">
- <uni-icons type="closeempty" size="24"></uni-icons>
- </view>
- </view>
- <view class="pop-item text-align-center fs-32"
- v-for="(item,i) in reasonList" :key="i" @click.stop="report(item)">
- {{item.name}}
- </view>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- import EnEva from '@/components/en-utils/en-eva/en-eva.vue';
- import tools from "@/service/tools";
- export default {
- name:"evaluate-box",
- components:{EnEva},
- data(){
- return{
- type:0,
- list:[
- {name:'全部',id:0},
- {name:'很棒',id:1,num:11},
- {name:'一般',id:2},
- {name:'有图',id:3},
- ],
- tup:true,
- reasonList:[
- {name:'政治敏感',id:1},
- {name:'色情低俗',id:2},
- {name:'恶意辱骂',id:3},
- {name:'违法违规',id:4},
- {name:'垃圾广告',id:5},
- {name:'涉未成年',id:6},
- ]
- }
- },
- methods:{
- lookImg(i,item){
- tools.lookBigImg(i,item)
- },
- selectType(type){
- if(this.type != type){
- this.type = type
- }
- },
- scrolltolower(){
- console.log('触底');
- },
- openPop(){
- this.$refs.popup.open();
- },
- closePop(){
- this.$refs.popup.close();
- this.tup = true;
- },
- report(item){
- this.closePop()
- },
- },
- }
- </script>
- <style scoped lang="scss">
- .evaluate-box{
- background-color: #F5F4F9;
- padding: 16rpx 24rpx;
- .card-box{
- box-sizing: border-box;
- padding: 24rpx;
- background-color: #fff;
- border-radius: 20rpx;
- margin-bottom: 20rpx;
- }
- .list-item{
- min-width: 56rpx;
- height: 52rpx;
- border-radius: 8rpx;
- text-align: center;
- line-height: 52rpx;
- margin-right: 20rpx;
- padding: 0 16rpx;
- }
- .s-item{
- background: linear-gradient( 117deg, #57CAFF 0%, #41ABF5 100%);
- color: #fff;
- }
- .n-item{
- background: #F3F4F6;
- color: #333;
- }
- .item-head{
- .left-img{
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- }
- .right-img{
- width: 30rpx;
- height: 6rpx;
- }
- }
- .list-img{
- width: 210rpx;
- height: 210rpx;
- border-radius: 12rpx;
- margin: 0 10rpx 10rpx 0;
- }
- .list-img:nth-child(3){
- margin-right: 0 !important;
- }
- .list-img:nth-child(6){
- margin-right: 0 !important;
- }
- .list-img:nth-child(9){
- margin-right: 0 !important;
- }
-
- .pop-box{
- width: 100%;
- height: 100vh;
- background-color: #333;
- position: relative;
- .pop-box-1{
- position: absolute;
- bottom: 20rpx;
- left: 24rpx;
- view{
- width: 702rpx;
- height: 88rpx;
- line-height: 88rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- }
- }
- .pop-box-2{
- width: 100%;
- height: 820rpx;
- background: #FFFFFF;
- border-radius: 24rpx 24rpx 0rpx 0rpx;
- .pop-box-2-1{
- position: relative;
- .pop-box-2-2{
- position: absolute;
- top: 0;
- right: 0;
- }
- }
- .pop-item{
- width: 100%;
- height: 92rpx;
- line-height: 92rpx;
- background: #F3F4F6;
- border-radius: 200rpx;
- margin-bottom: 24rpx;
- }
- }
- }
- }
- </style>
|