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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| <template>
| <view class="head">
| <view class="logo">
|
| </view>
| </view>
| <view class="content">
| <view class="input">
| <view class="">
|
| </view>
| <view class="">
| <input type="text">
| </view>
|
| </view>
|
| <view class="input">
| <view class="">
|
| </view>
| <view class="">
| <input type="text">
| </view>
|
| </view>
|
| </view>
| </template>
|
| <script lang="ts">
| // 这里编写ts代码
| let s:string = "123"
| console.log(s)
| </script>
|
| <style lang="less">
| .head {
| height: 200rpx;
| width: 100%;
| background-color: aquamarine;
| display: grid;
| grid-template-columns: 1fr;
| justify-items: center;
| align-items: center;
| .logo {
| width: 10%;
| height: 90%;
| background-color: red;
| }
| }
| .content {
| height: 400rpx;
| width: 100%;
| margin-top: 10rpx;
| background-color: bisque;
| display: grid;
| grid-template-columns: 1fr;
| justify-items: center;
| align-items: center;
| .input {
| width: 50%;
| height: 30%;
| background-color: #fff;
| display: grid;
| grid-template-columns: 1fr;
| justify-items: center;
| align-items: center;
| }
| }
| </style>
|
|