<template>
	<view class="applyResult-container container">
		<view class="middle-cont">
			<image src="@/static/img/success_ico.png" class="success_ico"></image>
			<text>申请已提交</text>
			<text>请等待销售人员与您联系</text>
			<!-- <view class="contract-cont">
				<template v-if="type==1">
					<view>您也可以直接联系对口销售：<text class="phone_num" @click="callNum">{{phone}}</text></view>
					<text>开通本产品的试用权限</text>					
				</template>
				<text v-else>请等待销售人员与您联系</text>
			</view> -->
			<view class="btn-cont" @click="goIndex">
        返回
<!-- 				<image src="@/static/img/btn_bg.png" class="btn_bg"></image>
				<text class="btn-txt">返回首页</text> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone:'',
				type:'',
			};
		},
		methods: {
			callNum() {
				uni.makePhoneCall({
				   phoneNumber:this.phone
				});
			},
			goIndex() {
				uni.navigateBack({
				    delta: 2
				})
				// uni.switchTab({
				// 	url:'/pages/index/index',
				// })
			}
		},
		onLoad(option) {
			// if(option.type === '已付费') {
			// 	this.type = 1;
			// 	this.phone = option.sale_num;
			// }else {
			// 	this.type = 2;
			// }
		}
	}
</script>

<style lang="scss" scoped>
.applyResult-container {
	.middle-cont {
		margin: 90rpx auto 0;
		text-align: center;
		font-size: 32rpx;
		line-height: 52rpx;
		.success_ico {
			width: 150rpx;
			height: 150rpx;
			margin: 0 auto 30rpx;
		}
		.contract-cont {
			margin-top: 80rpx;
			.phone_num {
				display: inline;
				color: #D4BF86;
			}
		}
		.btn-cont {
			width: 368rpx;
			height: 80rpx;
			// position: relative;
			background:linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
			color: #fff;
			font-size: 34rpx;
			margin: 140rpx auto 0;
			text-align: center;
			line-height: 80rpx;
			.btn_bg {
				width: 100%;
				height: 80rpx;
				position: absolute;
				left: 0;
				top: 0;
			}
			.btn-txt {
				width: 100%;
				position: absolute;
				z-index: 1;
			}
		}
	}
}
</style>
