adIndex.vue 1012 字节
<template>
	<view>
		<image src="http://equiphappy.shs.broing.cn/assets/miniprogram/Frame3007@2x.png" style="width: 100vw;height: 100vh;" mode=""></image>
		<view class="btn">
			<u-button @click="go" style="width: 30%;" text="点击进入" shape="circle" type="primary" ></u-button>
		</view>
		<view class="btn1">
			<u-button @click="go"  text="跳过" shape="circle" type="info" :plain="true"  ></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				flag:''
			}
		},
		methods: {
			go(){
				if(this.flag == 'buy'){
					uni.reLaunch({
						url:'/pages/index/buy'
					})
				}else{
					uni.reLaunch({
						url:'/pages/index/sell'
					})
				}
			}
		},
		onLoad(option) {
			console.log(option);
			this.flag = option.val
			
		}
	}
</script>

<style scoped lang="scss">
.btn{
	width: 100%;
	position: absolute;
	bottom: 94rpx;
	/deep/ .u-button{
		width: 30%!important;
	}
}
.btn1{
	width: 15%;
	position: absolute;
	top: 130rpx;
	right: 32rpx;
}

</style>