weappNotice.html
4.14 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
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
125
126
127
128
129
130
131
<!-- 第一部分:菜单导航 start -->
<!-- 第一部分:菜单导航 end -->
<!-- 第二部分:列表部分 start -->
<div class="weapp-notice relative white-bg animated fadeInRight">
<form name="noticeForm" class="woForm" novalidate="">
<toaster-container toaster-options="{'position-class': 'toast-top-center'}"></toaster-container>
<div class="row wo-row">
<div class="form-group col-lg-12 notice-group">
<label class="control-label" style="font-size: 14px; color: #333;">小程序公告
<i class="fa form-item-label-i nav-box" aria-hidden='true'>i
<ul class="nav-menu">
<li>发布后公告将显示在小程序主页</li>
</ul>
</i>
</label>
<textarea required name="notice" class="form-control specialContent lg" ng-model="model.notice"
placeholder="请输入店面公告,最多不超过40个字符,注意不要包含色情、低俗和反动信息,内容不可为空,如无特别公告说明,建议填写店铺服务等。" maxlength="40">
</textarea>
<!-- <input type="text" required name="notice" class="form-control notice col-lg-10" ng-model="model.notice"
placeholder="请输入店面公告,最多不超过40个字符,注意不要包含色情、低俗和反动信息,内容不可为空,如无特别公告说明,建议填写店铺服务等。" maxlength="40" /> -->
<small class="text-danger" ng-show="noticeForm.notice.$error.required && model.submitted">此项不能为空</small>
<button ng-click="model.submit()" ng-disabled="noticeForm.$invalid"
class="btn btn-primary notice-submit">发布
<i ng-show="isSubmitting"></i></button>
</div>
</div>
</form>
</div>
</div>
<style>
.height35 {
height: 35px;
}
.weapp-notice textarea {
/* width: 300px; */
height: 90px !important;
font-size: 14px;
}
.notice-group {
align-items: center;
padding: 40px;
}
.notice-group .notice {
height: 80px;
}
.notice-group label {
font-size: 20px;
}
.notice-submit {
margin-top: 20px;
height: 40px;
float: right;
}
.notice-group .form-item-label-i {
display: inline-block;
cursor: pointer;
width: 14px;
height: 14px;
line-height: 14px;
text-align: center;
border: 1px solid #666;
border-radius: 100%;
font-size: 12px;
vertical-align: middle;
color: #333;
position: relative;
margin-top: -2px;
}
.notice-group .nav-box .nav-menu {
position: absolute;
background: #5a5a5a;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.20);
width: 200px;
height: 34px;
box-sizing: border-box;
left: 600%;
top: -42px;
transform: translateX(-50%);
padding: 8px 0 0;
border-radius: 5px;
display: none;
}
.notice-group .nav-box:hover .nav-menu {
display: block;
}
.notice-group .nav-box .nav-menu::before,
.notice-group .nav-box .nav-menu::after {
position: absolute;
content: '';
left: 18%;
transform: translateX(-50%);
}
.notice-group .nav-box .nav-menu::before {
top: 32px;
border-top: 7.5px solid #5a5a5a;
border-right: 3.75px solid transparent;
border-bottom: 7.5px solid transparent;
border-left: 3.75px solid transparent;
}
.notice-group .nav-box .nav-menu::after {
top: 32px;
border-top: 7px solid #5a5a5a;
border-right: 3.5px solid transparent;
border-bottom: 7px solid transparent;
border-left: 3.5px solid transparent;
}
.notice-group .nav-menu li {
/* height: 20px;
line-height: 20px; */
display: block;
margin-bottom: 10px;
margin-right: 0 !important;
text-align: center;
color: #fff;
font-size: 12px;
}
</style>