<!--
 * @Title: 
 * @Description: 任务确认
 * @Author: swp
 * @Date: 2022-08-24 10:49:21
 * @LastEditors: 
 * @LastEditTime: 2022-08-24 10:49:21
-->
<template>
	<view class="wrap">
		<uni-nav-bar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="关闭"
			@clickLeft="toBack">
			<view class="nav-title">
				<text>{{title}}</text>
			</view>
		</uni-nav-bar>
		<view class="container">
			<image src="/static/images/order-ad.png" style="width: 100%;" mode="widthFix"></image>
			<view class="view-flex-block-center">
               <view style="margin-top: 50px;margin-bottom: 50px;">登录注册可体验更多功能</view>
			</view>
			<view class="view-flex-inline-center">
				<button style="background-color: orangered;" type="default" @click="toLogin()">登录/注册</button>
			</view>
		</view>
	</view>
</template>

<script>
	import http from '@/http/api.js';
	import {
		oss,
	} from '@/common/setting';
	export default {
		components: {

		},
		data() {
			return {
				title: '欢迎使用巡检系统',
				toUrl:'',
			}
		},
		computed: {},
		onLoad(options) {
            this.toUrl= options.toUrl;
				console.log("url"+this.toUrl)
		},
		onShow() {},
		methods: {
			toOss(url) {
				return oss + url;
			},
			toBack() {
				uni.navigateBack({
					delta: 1
				})
			},
			toLogin() {
				let url = '/pages/login/login-account?skipPage=2&toUrl='+this.toUrl;
				uni.redirectTo({
					url: url
				})
			},
		}
	}
</script>

<style>
	/* page {
		background-color: rgb(240, 242, 244);
	} */
</style>

<style lang="scss" scoped>
	.view-btn {
		margin-top: 20px;
		margin-bottom: 20px;
		padding-left: 10px;
		padding-right: 10px;
	}

	.line-space {
		margin-top: 4px;
	}
</style>