<template>
	<view class="container">
		<view class="tui-bg"></view>
		<view class="tui-content">
			<view class="tui-form">
					<image class="tui-icon" :src="apiHost+'/miniapp/success.png'"></image>
				<!-- <image src="/static/images/mall/success.png" class="tui-icon"></image> -->
				<view class="tui-title">转运成功</view>
				<view class="tui-sub-title">3秒后自动跳转待转运计划页面或点击</view>
				<view class="tui-sub-title">下方按钮跳转到待转运计划页面</view>
				<view class="tui-btn-box">
					<tui-button margin="0 20rpx 26rpx 0" type="green" width="280rpx" height="90rpx" :size="32" @click="detail">待转运计划</tui-button>
				</view>
			</view>
		</view>
		<view class="tui-tips">
			<view class="tui-msg-box">
				<view class="tui-msg-item">
					<view class="tui-msg-name">肿瘤医院</view>
					<view class="tui-msg-content">转运重量 89.37kg  转运箱数 4</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import myapp from '@/common/js/myapp.js'
	export default {
		data() {
			return {
				apiHost: myapp.apiHost,
			}
		},
		methods: {
			go(page) {
				if (page == 1) {
					uni.switchTab({
						url: "/pages/tabbar/index/index"
					})
				} else {
					this.tui.href("../myOrder/myOrder")
				}
			}
		}
	}
</script>

<style>
	.tui-bg {
		width: 100%;
		height: 260rpx;
		background: linear-gradient(20deg, #07c160, #07c160);
		border-bottom-left-radius: 42rpx;
	}

	.tui-content {
		padding: 0 35rpx;
		box-sizing: border-box;
	}

	.tui-form {
		background: #fff;
		height: 500rpx;
		box-shadow: 0 10rpx 14rpx 0 rgba(0, 0, 0, 0.08);
		border-radius: 10rpx;
		margin-top: -160rpx;
		position: relative;
		z-index: 10;
		display: flex;
		align-items: center;
		flex-direction: column;
	}
	
	.tui-icon {
		width: 100rpx;
		height: 100rpx;
		display: block;
		margin-top: 60rpx;
	}

	.tui-title {
		font-size: 42rpx;
		line-height: 42rpx;
		padding-top: 28rpx;
	}

	.tui-sub-title {
		color: #666666;
		font-size: 28rpx;
		line-height: 28rpx;
		padding-top: 20rpx;
	}

	.tui-btn-box {
		width: 580rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-top: 88rpx;
		/* border:1px solid red; */
		margin-left:50%;
	}

	.tui-tips {
		font-size: 26rpx;
		padding: 48rpx 90rpx;
		box-sizing: border-box;
		text-align: justify;
		line-height: 48rpx;
		/* border:1px solid red; */
	}

	.tui-grey {
		color: #555;
		padding-bottom: 8rpx;
	}

	.tui-light-grey {
		color: #888;
		line-height: 40rpx;
	}
</style>
