<template>
	<view class="app">
		<view class="content">
			<view class="detailslist">
				<image :src="baseurl+order.personPictureUrl" mode=""
					v-if="order.orderType =='HEALTH_CONSULTATION'&&order.personPictureUrl"></image>
				<image src="@/static/docHead.png" mode=""
					v-if="order.orderType =='HEALTH_CONSULTATION'&&!order.personPictureUrl"></image>
				<image :src="baseurl+order.attributePitureUrl" mode="" v-if="order.orderType !='HEALTH_CONSULTATION'">
				</image>
				<view class="model">
					<view class="top">
						<span v-if="order.orderType =='HEALTH_CONSULTATION'">健康咨询</span>
						<span v-else>{{order.goodsName}}</span>
						<span v-if="order.orderType=='DIRECT_BUY'">￥{{order.goodsPrice}}</span>
					</view>
					<view class="bottom" v-if="order.orderType !='HEALTH_CONSULTATION'">
						<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/pagesB/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>
