123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <template>
- <view class="content">
- <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" class="mescroll">
- <view class="content-list" v-for="(item,index) in list">
- <view class="top flex flex-space-between">
- <view style='align-items: center;' class="left flex">
- <u--image :showLoading="true" :src="item.driverPortrait" width="100rpx" height="100rpx" @click=""
- shape='circle'>
- </u--image>
- {{item.driverName}}
- </view>
- <view class="right gray999">
- {{item.createDate.split(' ')[0]}}
- </view>
- </view>
- <view class="flex align-center name-row">
- <view class="sj-row hz-name">
- 货主信用:
- </view>
- <view class="xx">
- <start :value="item.ownerCredit" :disabled="true" :is_score='true' :size="36" >
- </start>
- </view>
- </view>
- <view class="flex align-center name-row">
- <view class="sj-row hz-name">
- 运费支付:
- </view>
- <view class="xx">
- <start :value="item.freightPayment" :disabled="true" :is_score='true' :size="36" >
- </start>
- </view>
- </view>
- <view class="flex align-center name-row">
- <view class="sj-row hz-name">
- 综合满意度:
- </view>
- <view class="xx">
- <start :score="score1" :value="item.comprehensiveSatisfaction" :disabled="true" :is_score='true' :size="36">
- </start>
- </view>
- </view>
- <!-- <view class="gray999 flex xy-row">
- <view class='item'>
- 信用:{{item.ownerCredit}}星
- </view>
- <view class='item'>
- 运费支付:{{item.freightPayment}}星
- </view>
- <view class='item'>
- 综合:{{item.comprehensiveSatisfaction}}星
- </view>
- </view> -->
- <!--
- <view class="xkuang">
- <view style="display: flex;" class="flex-space-between" v-for="(item,index) in rate">
- <view class="ziti">{{item.name}}</view>
- <start :count="item.count" style="margin-top: 15px; margin-left: 50px;" size="35"
- activeIcon="heart-fill" inactiveIcon="heart" activeColor="#ffaa00" v-model="item.value1">
- </start>
- </view>
- </view> -->
- <view class="pl-style">
- {{item.driverContent}}
- </view>
- <view class="color2979ff flex">
- <view @click="clickZK(item)">展开</view>
- <u-icon name="arrow-down" color="#2979ff" size="18" v-if="item.isOpen"></u-icon>
- <u-icon name="arrow-up" color="#2979ff" size="18" v-else></u-icon>
- </view>
-
- <view v-if="item.isOpen" class="img-content">
- <u--image :showLoading="true" :src="item1" width="80px" height="80px" class="img"
- v-for="item1 in item.imgList"></u--image>
-
- </view>
- <u-line class="line"></u-line>
- <view class="gray999">
- {{item.ownerAnonymous==1?"匿名评价":''}}
- </view>
- </view>
- </mescroll-body>
- </view>
- </template>
- <script>
- var that
- import {
- mapState
- } from 'vuex';
- import start from '../../common/components/uni-rate.vue'
- import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
- export default {
- mixins: [MescrollMixin], // 使用mixin
- components: {
- start
- },
- data() {
- return {
- list:[],
- // isOpen: false,
- count: '5',
- value: '3',
- score1:['极不满意','不满意','尚可','满意','非常满意'],
- src: 'https://cdn.uviewui.com/uview/album/1.jpg',
- rate: [{
- name: "司机信用",
- count: "5",
- value1: '5',
- },
- {
- name: "运输效率",
- count: "5",
- value1: '3',
- },
- {
- name: "运输安全",
- count: "5",
- value1: '5',
- },
- {
- name: "服务质量",
- count: "5",
- value1: '2',
- }, {
- name: "满意度",
- count: "5",
- value1: '1',
- }
- ],
- };
- },
- computed: {
- ...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
- },
- onLoad() {
- that = this
- },
- methods: {
- upCallback(page) {
- that.$request.baseRequest('get', '/evaluateInfo/selectEvaluateInfo', {
- evaluatoredId: this.userInfo.id,
- flag: 2,
- pageSize: page.size,
- currentPage: page.num
- }).then(res => {
- if (page.num == 1) that.list = [];
- //追加新数据
- that.list = that.list.concat(res.data.records);
- for (let i = 0; i < that.list.length; i++) {
- // that.list[i].isOpen=false
- this.$set(that.list[i],'isOpen',false)
- that.$set(that.list[i],'imgList',that.list[i].driverUrl.split(','))
- // that.list[i].imgList = that.list[i].driverUrl.split(',')
- that.list[i].count = (Number(that.list[i].ownerCredit) + Number(that.list[i]
- .freightPayment) + Number(that.list[i].comprehensiveSatisfaction)) / 15 * 5
- }
- that.mescroll.endBySize(res.data.records.length, res.data.total);
-
- uni.hideLoading()
- })
- .catch(res => {
- uni.$u.toast(res.message);
- });
- },
- clickZK(item) {
- this.$set(item,'isOpen',!item.isOpen)
- console.log(item)
- },
- },
- }
- </script>
- <style lang="scss">
- .ziti {
- color: #909090;
- margin-top: 23px;
- }
- .xkuang {
- margin-top: 20px;
- background-color: #FAFAFA;
- padding-left: 30px;
- }
- .content-list {
- margin: 20rpx;
- padding: 20rpx;
- background: white;
- border-radius: 20rpx;
- }
- .hz-name {
- color: #999;
- margin-right: 10rpx;
- }
- .gray999 {
- color: #999;
- }
- .name-row {
- margin: 20rpx 0;
- }
- .item {
- margin-right: 20rpx;
- font-size: 26rpx;
- }
- .xy-row {
- margin-bottom: 40rpx;
- }
- .pl-style {
- margin-bottom: 40rpx;
- }
- .color2979ff {
- color: #2979ff;
- }
- .img-content{
- margin-top: 20rpx;
- .img{
- display: inline-block;
- margin-right: 10rpx;
- border-radius: 20rpx;
- }
-
- }
- .line{
- margin: 20rpx 0!important;
- }
- </style>
|