succe.vue
1.06 KB
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 class="questionnaire">
<view style="position: absolute;top:35%;width:80%;left:10%">
<image src="../../static/images/tijiao.png" style="width:100%;" mode="aspectFit"></image>
<button class="submit-btn" @click="guanbi">关闭</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
wenjuanID :''
}
},
onLoad(options) {
if (options.ids) {
this.wenjuanID = options.ids
}
},
methods: {
guanbi(){
uni.reLaunch({
url: `/pages_category_page1/question/question?ids=${this.wenjuanID}`
})
}
}
}
</script>
<style>
.questionnaire {
width: 100%;
max-width: 600px;
flex-grow: 1;
/* padding: 30px; */
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 5px;
box-sizing: border-box;
}
.submit-btn{
background-color: #3F9B6A;
color: white;
border: none;
padding: 0px 20px;
border-radius: 3px;
cursor: pointer;
margin-top: 20px;
transition: background-color 0.3s ease;
width: 100%;
box-sizing: border-box;
}
</style>