oneSubmitted.vue 3.2 KB
<template>
	<view class="oneSubmitted">
		<!-- 1提交,2支付成功,3通行证 -->
		<view class="header-wrap"></view>

		<view class="content-wrap area flex">

			<!-- 提交 -->
			<view class="content-item flex" v-if="pageType==1">
				<icon :type="iconSccess" size="58" color="#14B614" />
				<view class="botm-text">
					提交成功
				</view>
				<view class="botm-btn" @tap="$sjuNav.switchTab(`/pages/index/index`)">
					确定
				</view>
			</view>

			<!-- 支付成功 -->
			<view class="content-item flex" v-if="pageType===2">
				<icon :type="iconSccess" size="58" color="#14B614" />
				<view class="botm-text">
					支付成功
				</view>
				<view class="samll-text">
					快去看看自己的床铺吧
				</view>
				<view class="botm-btn">
					确定
				</view>
			</view>

			<!-- 通行证 -->
			<view v-if="pageType==3">
				<view class="content-item flex" v-if="userDatas.pass_type==2">
					<icon :type="iconWaiting" size="58" color="#F7B500" />
					<view class="botm-text">
						审核中
					</view>
				</view>
				<view class="content-item flex" v-else>
					<icon :type="iconClear" size="58" color="#FF4646" />
					<view class="botm-text">
						审核失败
					</view>
					<view class="botm-btn" @click="goReset">
						重新上传
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import Vue from 'vue'
	import {
		mapState,
		mapMutations
	} from 'vuex'
	var that
	export default {
		data() {
			return {
				pageType: 1, //1提交,2支付成功,3通行证 
				iconSccess: "success", //提交成功
				iconWaiting: "waiting", //审核中
				iconClear: "clear", //审核失败
				auditing: true, //false审核失败 ,true 审核中
			}
		},
		onLoad(option) {
			console.log(option);
			// let id = JSON.parse(option.param).id
			let id = option.id
			console.log(id);
			if (id == 1) { //动态更改 标题
				uni.setNavigationBarTitle({
					title: option.title||'提交'
				})
			} else if (id == 2) {
				uni.setNavigationBarTitle({
					title: "住宿办理"
				})
			} else if (id == 3) {
				uni.setNavigationBarTitle({
					title: "通行证"
				})
			}
			this.pageType = id


		},
		computed: {
			...mapState(['hasLogin', 'forcedLogin', 'userDatas']),
		},
		methods: {
			goReset(){
				uni.redirectTo({
					url:'/pagesB/onePass/onePass'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.oneSubmitted {
		position: relative;
	}

	.content-wrap {
		height: 608rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		justify-content: center;
		align-items: center;
	}

	.content-item {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.botm-text {
		height: 30rpx;
		line-height: 30rpx;
		font-size: 30rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #333333;
		margin-top: 26rpx;
	}

	.botm-btn {
		min-width: 250rpx;
		height: 80rpx;
		line-height: 80rpx;
		text-align: center;
		border: 1px solid #2D81FF;
		border-radius: 40rpx;
		font-size: 30rpx;
		font-family: Microsoft YaHei;
		font-weight: 400;
		color: #2D81FF;
		margin-top: 50rpx;
	}

	.samll-text {
		height: 28rpx;
		line-height: 28rpx;
		margin-top: 18rpx;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #999999;
	}
</style>