<template>
	<view class="app">
		<view class="content">
			<view class="detailslist">
				<image :src="baseurl+order.attributePitureUrl" mode=""></image>
				<view class="model">
					<view class="top">
						<span>{{order.goodsName}}</span>
						<span>￥{{order.goodsPrice}}</span>
					</view>
					<view class="bottom">
						<span class="box">型号：{{order.goodsAttributeName}}</span>
						<span class="box">X{{order.goodsCount}}</span>
					</view>
				</view>
			</view>
			<view class="payinfo">
				<text class="pay">实付款</text>
				<text class="price">￥{{order.totalPrice}}</text>
			</view>
		</view>
		<view class="rate">
			<view class="itemimgs" v-for="(item,index) in ratelist.orderEvaluatePictureInfoList">
				<image class="itemimg" :src="baseurl+item.evaluatePictureUrl" mode=""></image>
			</view>
		</view>
		<view class="score">
			<view class="title">
				综合评分
			</view>
			<u-rate :count="count" v-model="ratelist.compositeScore" size='46' :disabled="true"></u-rate>
			<view class="text">
				<u-input v-model="ratelist.evaluateContent" type="textarea" placeholder=' ' :clearable='false'
					:disabled="true" />
			</view>
		</view>
	</view>
</template>

<script>
	import {
		lookrate
	} from '@/api/lookrate/index.js'
	import baseurl from '@/api/baseurl.js'
	export default {
		data() {
			return {
				baseurl: null,
				order: null,
				ratelist: null,
				count: 5,
			};
		},
		onLoad(options) {
			this.baseurl = baseurl
			this.order = JSON.parse(options.item)
			lookrate(this.order.goOrderNo).then(res => {
				this.ratelist = res.data
			})
		},
	}
</script>

<style lang="scss">
	@import './lookrate.scss';
</style>
