123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <template>
- <view class="eva-section" @click="navTo">
- <view class="e-header">
- <text class="tit">评价</text>
- <text>({{ list.replyCount }})</text>
- <!-- <text class="tip">好评率 {{ list.replyChance }}%</text> -->
- <text class="tip">查看全部评价</text>
- <text class="iconfont iconenter"></text>
- </view>
- <view class="eva-box">
- <image class="portrait" :src="reply.avatar" mode="aspectFill"></image>
- <view class="right">
- <text class="name">{{ reply.nickname }}</text>
- <text class="con">{{ reply.comment }}</text>
- <view class="con_box">
- <view class="con_image" v-for="item in reply.pics"><image :src="item"></image></view>
- </view>
- <view class="bot">
- <text class="attr"></text>
- <text class="stime">{{ reply.add_time }}</text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- list: {
- default: ''
- },
- reply: {
- default: ''
- },
- },
- data() {
- return {
- };
- },
- methods: {
- navTo() {
- this.$emit('navTo')
- }
- },
- };
- </script>
- <style lang="scss">
- /* 评价 */
- .eva-section {
- display: flex;
- flex-direction: column;
- padding: 20rpx 30rpx;
- background: #fff;
- margin-top: 16rpx;
- .e-header {
- display: flex;
- align-items: center;
- height: 70rpx;
- font-size: $font-sm + 2rpx;
- color: $font-color-light;
- .tit {
- font-size: $font-base + 2rpx;
- color: $font-color-dark;
- margin-right: 4rpx;
- }
- .tip {
- flex: 1;
- text-align: right;
- }
- .iconenter {
- margin-left: 10rpx;
- }
- }
- .eva-box {
- display: flex;
- padding: 20rpx 0;
- .portrait {
- flex-shrink: 0;
- width: 80rpx;
- height: 80rpx;
- border-radius: 100px;
- }
- .right {
- flex: 1;
- display: flex;
- flex-direction: column;
- font-size: $font-base;
- color: $font-color-base;
- padding-left: 26rpx;
- .con {
- font-size: $font-base;
- color: $font-color-dark;
- padding: 20rpx 0;
- }
- .bot {
- display: flex;
- justify-content: space-between;
- font-size: $font-sm;
- color: $font-color-light;
- }
- }
- }
- .con_image {
- width: 130rpx;
- height: 130rpx;
- display: inline-block;
- padding: 15rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- </style>
|