Skip to content

Commit 9897fe4

Browse files
committed
upatet
1 parent 3fdc3ae commit 9897fe4

File tree

2 files changed

+62
-4
lines changed

2 files changed

+62
-4
lines changed
Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,67 @@
11
<template>
2-
2+
<scroller>
3+
<div class="wrapper">
4+
<div class="group">
5+
<text class='label'>Time:</text>
6+
<text class='title'>{{value}}</text>
7+
</div>
8+
<div class="group">
9+
<text class='button' @click='pickTime'>Pick Time</text>
10+
</div>
11+
</div>
12+
</scroller>
313
</template>
414
<script>
5-
15+
const picker = weex.requireModule('picker')
16+
export default{
17+
data:function() {
18+
return{
19+
value:''
20+
}
21+
},
22+
methods:{
23+
pickTime:function() {
24+
picker.pickTime({
25+
value:this.value,
26+
},event =>{
27+
if (event.result === 'success') {
28+
this.value = event.data;
29+
}
30+
});
31+
}
32+
}
33+
}
634
</script>
735
<style>
8-
36+
.wrapper{
37+
flex-direction: column;
38+
justify-content: center;
39+
background-color: #dfdfdf;
40+
}
41+
.group{
42+
flex-direction: row;
43+
justify-content: center;
44+
margin-bottom: 40px;
45+
align-items: center;
46+
}
47+
.label{
48+
font-size: 40px;
49+
color: #888888;
50+
}
51+
.title{
52+
font-size: 80px;
53+
color: #41B883;
54+
}
55+
.button{
56+
font-size: 36px;
57+
width: 280px;
58+
color: #41B883;
59+
text-align: center;
60+
padding-top: 25px;
61+
padding-bottom: 25px;
62+
border-width: 2px;
63+
border-style: solid;
64+
border-color: rgb(162,217,192);
65+
background-color: rgba(162,217,192,0.2);
66+
}
967
</style>

Weex学习/weexnew/src/WeexDemo/second.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<text @touch="ontouch">Touch手势</text>
3+
<text ontouch="ontouch">Touch手势</text>
44
</div>
55
</template>
66
<style scoped>

0 commit comments

Comments
 (0)