adIndex.vue
1012 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<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>