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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
| <template>
| <view>
| <!-- <u-navbar back-text="" title="首页" :custom-back="back"></u-navbar> -->
| <u-card margin="0rpx" title="分拣操作">
| <view class="" slot="body">
| <u-grid :col="3">
| <u-grid-item @click="sorting">
| <view class="iconBg green1">
| <text class="txt color txt1">分</text>
| </view>
| <view class="grid-text">分拣</view>
| </u-grid-item>
| </u-grid>
| </view>
| </u-card>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| count: '9'
| };
| },
| onShow() {
| },
|
| methods: {
| sorting() {
| uni.navigateTo({
| url: '../Sorting/Sorting'
| });
| }
| }
| }
| </script>
| <style lang="scss">
| .iconBg {
| margin-bottom: 5px;
| font-size: 1.2rem;
| color: white;
| display: inline-block;
| border-radius: 25px;
| line-height: 20px;
| width: 40px;
| height: 40px;
| padding: 5px;
| position: relative;
| cursor: pointer;
| font-weight: 500;
| text-decoration: none;
| white-space: nowrap;
| background-image: -webkit-gradient(linear, left top, left bottom, color-stop(5%, #f5a3a0), color-stop(5%, #ff0066), color-stop(100%, #ff6600));
| transition: background-color 0.2s ease-out;
| border-radius: 8px;
|
| .txt {
| position: absolute;
| top: 10px;
| left: 10px;
| width: 30px;
| height: 30px;
| z-index: 100;
| display: block;
|
| &.color {
| text-transform: uppercase;
| background-image: linear-gradient(to right, orangered, orange, gold, lightgreen, cyan, dodgerblue, mediumpurple, hotpink, orangered);
| -webkit-background-clip: text;
| -webkit-text-fill-color: transparent;
| color: white;
| background-size: 30px;
| }
|
| &.txt1 {
| background-size: 40px;
| animation: sliding1 30s linear infinite;
| }
| }
|
| &.green1 {
| background-image: -webkit-gradient(linear,
| left top,
| left bottom,
| color-stop(5%, #68ea68),
| color-stop(5%, #127e12),
| color-stop(100%, #1aad19));
| border: 1px solid #0f680f;
| color: white !important;
|
| &::after {
| position: absolute;
| top: 5px;
| left: 5px;
| width: 20px;
| height: 20px;
| z-index: 0;
| border-radius: 4em;
| background-color: #127812;
| content: " ";
| display: block;
| padding: 5px;
| }
| }
|
| }
|
| /deep/.u-card__body {
| padding: 0 !important;
| }
|
| @keyframes sliding {
| to {
| background-position: -100px;
| }
| }
|
| @keyframes sliding1 {
| to {
| background-position: -150px;
| }
| }
| </style>
|
|