Blame view

ceres-uniapp-master/pages_category_page1/question/succe.vue 2.22 KB
cffd42c7   杨鑫   '最新H5'
1
2
  <template>
  	<view class="questionnaire">
cff964f8   杨鑫   最新1
3
  		<view  style="position: absolute;top:30%;width:80%;left:10%" v-if="yuan">
cffd42c7   杨鑫   '最新H5'
4
5
6
  			<image src="../../static/images/tijiao.png" style="width:100%;" mode="aspectFit"></image>
  			<button class="submit-btn" @click="guanbi">关闭</button>
  		</view>
cff964f8   杨鑫   最新1
7
  		<view  style="position: absolute;top:30%;width:80%;left:10%" v-if="chong">
ab818baa   杨鑫   '1'
8
9
  			<image src="../../static/images/tijiaoTwo.png" style="width:100%;" mode="aspectFit"></image>
  		</view>
cff964f8   杨鑫   最新1
10
  		<view  style="position: absolute;top:30%;width:80%;left:10%" v-if="yuan == false && chong == false">
ab818baa   杨鑫   '1'
11
12
13
  			<image src="../../static/images/tijiaoThree.png" style="width:100%;" mode="aspectFit"></image>
  			 <view style="text-align: center;font-size: 20px;color: grey;">{{msg}}</view>
  		</view>
cffd42c7   杨鑫   '最新H5'
14
15
16
17
18
19
20
  	</view>
  </template>
  
  <script>
  	export default {
  	data() {
  		return {
ab818baa   杨鑫   '1'
21
  			wenjuanID :'',
bc51a62b   杨鑫   '最新'
22
23
24
  			chong :false,
  			yuan:false,
  			msg:'问卷已结束,感谢您的参与',
cffd42c7   杨鑫   '最新H5'
25
26
27
  			}
  	},
  			onLoad(options) {
cdf6c4c9   杨鑫   最新
28
29
30
  			uni.setNavigationBarTitle({
  				title: '问卷调查'
  			});
cffd42c7   杨鑫   '最新H5'
31
32
  				if (options.ids) {
  					this.wenjuanID = options.ids
156fa163   杨鑫   'z'
33
34
  						this.yuan = true
  						this.chong = false
cffd42c7   杨鑫   '最新H5'
35
  				}
156fa163   杨鑫   'z'
36
37
  				if(options.chonfu){
  					this.chong = true
ab818baa   杨鑫   '1'
38
39
  					this.yuan = false
  				}
156fa163   杨鑫   'z'
40
41
42
  
  				if(options.flag){
  					this.msg ='问卷已结束,感谢您的参与'
ab818baa   杨鑫   '1'
43
44
45
46
  					this.chong = false
  					this.yuan = false
  					
  				}
156fa163   杨鑫   'z'
47
  				// if(options.flag=='2'){
bc51a62b   杨鑫   '最新'
48
  				// 		this.msg ='问卷未开始,请开始后再参与'
156fa163   杨鑫   'z'
49
50
51
52
53
54
55
56
  				// 	this.chong = false
  				// 	this.yuan = false
  				// }
  				// if(options.flag=='3'){
  				// 		this.msg ='问卷已结束,感谢您的参与'
  				// 	this.chong = false
  				// 	this.yuan = false
  				// }
ab818baa   杨鑫   '1'
57
  				
cffd42c7   杨鑫   '最新H5'
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  			},
  	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>