<template>
    <view class="px-41rpx ">
        <view :class="index==length-1?'lastChild':''" class="flex pt-base  border-b border-txBorder pb-base ">
           		<u-avatar size="68" src="https://img.js.design/assets/img/6195a4af14cabb34f72301a8.png"></u-avatar>
            <view class="flex-1 ml-10rpx">
                <view class="flex items-center justify-between">
                    <view class="text-txBase text-md">小道道</view>
                    <view class="flex items-center">
                        <image class="w-32rpx h-32rpx" src="/static/images/user/smile.png" mode=""></image>
                        <view class="text-md text-bgSubtitle ml-6rpx">好评</view>
                    </view>
                </view>
                <view class="text-sm text-txGray">2021.07.29 </view>
                <view class="text-txBase text-md">东西收到了，到货很快，很满意效果很好！东西收到了，到货很快，很满意效果很好！东西收到了，到货很快，很满意效果很好！</view>
                <view class="bg-txBorder px-base pt-8rpx  mt-10rpx">
                    <view class="text-md text-txGray">商家恢复：感谢亲亲的支持  ~商家恢复：感谢亲亲的支持  ~商家恢复：感谢亲亲的支持  ~商家恢复：感谢亲亲的支持  ~</view>
                    <view class="text-right text-xs text-txGray pb-15rpx">2021.07.29 </view>
                </view>
                <view class="flex items-center flex-wrap">
                   <block v-for="(item,index) in 3" :key="index">
                        <u-image class="mr-base mt-base"  width="160rpx" height="160rpx" src="https://img.js.design/assets/img/6195a4af14cabb34f72301a8.png"></u-image> 
                   </block>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
    export default {
        name:"comment",
        props:{
            index:{
                type:Number,
                default:1
            },
            length:{
                type:Number,
                default:0
            }
        },
        data() {
            return {
                
            };
        }
    }
</script>

<style lang="scss">
    .lastChild{
        border:0
    }
</style>
