<template>
	<view class="page">
		<navBar :backType="navBarTitle" :title="navBarTitle?navBarTitle:'定制我家的全屋WIFI'" :back="true" color="black"
			background="white" />
		<image class="topImg" :src="picUrl + '/static/other/c1.png'" mode=""></image>

		<view class="cen">
			<image class="water" src="/static/index/water.png" mode=""></image>
			<image class="halfC" src="/static/index/halfCircle_275.png" mode=""></image>
			定制我家的全屋WIFI
		</view>

		<view class="parmasBox">
			<view class="con">
				<view class="top">
					<view class="item">
						<view class="name">
							户型
						</view>
						<view class="des">
							{{selHx.value}}
						</view>
					</view>
				</view>
			</view>
		</view>

		<view class="parmasBox">
			<view class="con">
				<view class="top">
					<view class="item">
						<view class="name">
							收货人
						</view>
						<view class="des">
							{{shareCon.name}}
						</view>
					</view>
					<view class="item">
						<view class="name">
							电话
						</view>
						<view class="des">
							{{shareCon.phone}}
						</view>
					</view>
					<view class="item">
						<view class="name">
							收货地址
						</view>
						<view class="des">
							{{shareCon.address}}
						</view>
					</view>
					<view class="item">
						<view class="name">
							备注
						</view>
						<view class="des">
							{{shareCon.remark}}
						</view>
					</view>
				</view>
			</view>
		</view>


		<!-- <image  @click="back" src="/static/index/backBtnImg.png" mode="" class="rule_img"></image> -->

		<!-- <u-modal :show="showShare" title="分享链接" :content='content'></u-modal> -->
	</view>
	</view>
</template>

<script>
	import {
		postOrderReq,

		getOrderDetailReq
	} from '@/api/test/index.js'


	export default {
		components: {

		},
		data() {
			return {
				// showShare: true,

				picUrl: this.$picUrl,
				selHx: null,
				orderId: '',
				shareCon: null,

				options: null,
				options1: null,
				query: null,

				orderSuc: false,

				navBarTitle: ''
			}
		},
		async onLoad(o) {
			// o.orderId = '1'
			if (o.orderId) {
				this.orderId = o.orderId
				this.navBarTitle = '首页'
				console.log('o.orderId', o.orderId);

				let res = await getOrderDetailReq({
					orderId: o.orderId
				})
				if (res.code == 0) {
					console.log('邀请订单详情返回值-无主灯: ', res);

					this.shareCon = res.data

					this.selHx = res.data.config.house_type_data
				} else {
					uni.showToast({
						title: res.message,
						icon: 'none'
					})
				}
			}
		},
		methods: {
			back() {
				uni.navigateBack()
			},
		}
	}
</script>

<style lang="scss" scoped>
	@import "./index.scss";
</style>