system-clients 3.1.86-aode → 3.1.86-xianyang

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/build/webpack.base.conf.js +75 -78
  2. package/package.json +2 -2
  3. package/src/components/Main.vue +547 -549
  4. package/src/components/equipment/EquipmentManage.vue +68 -65
  5. package/src/components/equipment/PcAdd.vue +5 -5
  6. package/src/components/equipment/PcList.vue +5 -5
  7. package/src/components/equipment/PhoneAdd.vue +4 -4
  8. package/src/components/equipment/PhoneList.vue +4 -4
  9. package/src/components/equipment/PosAdd.vue +205 -43
  10. package/src/components/equipment/PosList.vue +153 -63
  11. package/src/components/equipment/PosManage.vue +92 -9
  12. package/src/components/equipment/QCAdd.vue +318 -0
  13. package/src/components/equipment/QCList.vue +230 -0
  14. package/src/components/equipment/QCManage.vue +150 -0
  15. package/src/components/server/LeftTree.vue +111 -111
  16. package/src/components/server/Login.vue +642 -693
  17. package/src/components/server/ModifyPw.vue +4 -5
  18. package/src/components/server/ResSelect.vue +5 -1
  19. package/src/components/server/ResSelectGroup.vue +1 -1
  20. package/src/components/server/RightTree.vue +3 -4
  21. package/src/plugins/EncryptUtil.js +53 -0
  22. package/src/plugins/GetLoginInfoService.js +2 -0
  23. package/src/plugins/validation.js +1 -1
  24. package/src/system.js +89 -83
  25. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  26. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  27. package/.gradle/5.5/fileChanges/last-build.bin +0 -0
  28. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  29. package/.gradle/5.5/gc.properties +0 -0
  30. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  31. package/.gradle/buildOutputCleanup/built.bin +0 -0
  32. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  33. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  34. package/.gradle/vcs-1/gc.properties +0 -0
  35. package/dist/static/.gitkeep +0 -0
  36. package/dist/static/batchleft.png +0 -0
  37. package/dist/static/batchright.png +0 -0
  38. package/dist/static/bluemainbg.jpg +0 -0
  39. package/dist/static/huangtengbiaozhi.png +0 -0
  40. package/dist/static/login_bg.jpg +0 -0
  41. package/dist/static/login_title.png +0 -0
  42. package/dist/static/login_title1.png +0 -0
  43. package/dist/static/loginbg.jpg +0 -0
  44. package/dist/static/loginlogo.png +0 -0
  45. package/dist/static/main_logo.png +0 -0
  46. package/dist/static/mainbg.jpg +0 -0
  47. package/dist/static/menulogo.png +0 -0
  48. package/dist/static/newmainbg.jpg +0 -0
  49. package/dist/static/psicon.png +0 -0
  50. package/dist/static/singleleft.png +0 -0
  51. package/dist/static/singleright.png +0 -0
  52. package/dist/static/treeopen.png +0 -0
  53. package/dist/static/treeout.png +0 -0
  54. package/dist/static/treeset.png +0 -0
  55. package/dist/static/usericon.png +0 -0
  56. package/dist/static/xinxi.png +0 -0
  57. package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
  58. package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
  59. package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
  60. package/src/styles/fonts/glyphicons-halflings-regular.svg +0 -288
  61. package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
  62. package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
  63. package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
  64. package/src/styles/fonts/pingfang-bold.ttf +0 -0
  65. package/src/styles/fonts/pingfang-medium.ttf +0 -0
  66. package/src/styles/fonts/pingfang-regular.ttf +0 -0
  67. package/src/styles/fonts/trendstrends.ttf +0 -0
  68. package/src/styles/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  69. package/src/styles/less/.csscomb.json +0 -304
  70. package/src/styles/less/.csslintrc +0 -19
  71. package/src/styles/less/alerts.less +0 -73
  72. package/src/styles/less/aofeng/animate.min.css +0 -11
  73. package/src/styles/less/aofeng/expandcss.less +0 -569
  74. package/src/styles/less/aofeng/standard.less +0 -2121
  75. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +0 -686
  76. package/src/styles/less/aofeng/themeOne/loginStyle.less +0 -1586
  77. package/src/styles/less/aofeng/themeOne/systemStyle.less +0 -2650
  78. package/src/styles/less/aofeng/themeOne.less +0 -17
  79. package/src/styles/less/aofeng/themeTwo/newStyle1.less +0 -415
  80. package/src/styles/less/aofeng/themeTwo.less +0 -3
  81. package/src/styles/less/badges.less +0 -66
  82. package/src/styles/less/bootstrap.less +0 -66
  83. package/src/styles/less/breadcrumbs.less +0 -26
  84. package/src/styles/less/button-groups.less +0 -247
  85. package/src/styles/less/buttons.less +0 -172
  86. package/src/styles/less/carousel.less +0 -269
  87. package/src/styles/less/close.less +0 -34
  88. package/src/styles/less/code.less +0 -69
  89. package/src/styles/less/component-animations.less +0 -33
  90. package/src/styles/less/dropdowns.less +0 -216
  91. package/src/styles/less/fonts-list.less +0 -25
  92. package/src/styles/less/forms.less +0 -626
  93. package/src/styles/less/glyphicons.less +0 -305
  94. package/src/styles/less/grid.less +0 -84
  95. package/src/styles/less/input-groups.less +0 -167
  96. package/src/styles/less/jumbotron.less +0 -52
  97. package/src/styles/less/labels.less +0 -64
  98. package/src/styles/less/list-group.less +0 -141
  99. package/src/styles/less/manageStyle/manageChile.less +0 -180
  100. package/src/styles/less/manageStyle/manageStyle.less +0 -1102
  101. package/src/styles/less/manageStyle/safeStyle.less +0 -498
  102. package/src/styles/less/media.less +0 -66
  103. package/src/styles/less/mixins/alerts.less +0 -14
  104. package/src/styles/less/mixins/background-variant.less +0 -9
  105. package/src/styles/less/mixins/border-radius.less +0 -18
  106. package/src/styles/less/mixins/buttons.less +0 -69
  107. package/src/styles/less/mixins/center-block.less +0 -7
  108. package/src/styles/less/mixins/clearfix.less +0 -22
  109. package/src/styles/less/mixins/forms.less +0 -90
  110. package/src/styles/less/mixins/gradients.less +0 -59
  111. package/src/styles/less/mixins/grid-framework.less +0 -92
  112. package/src/styles/less/mixins/grid.less +0 -122
  113. package/src/styles/less/mixins/hide-text.less +0 -21
  114. package/src/styles/less/mixins/image.less +0 -33
  115. package/src/styles/less/mixins/labels.less +0 -12
  116. package/src/styles/less/mixins/list-group.less +0 -30
  117. package/src/styles/less/mixins/nav-divider.less +0 -10
  118. package/src/styles/less/mixins/nav-vertical-align.less +0 -9
  119. package/src/styles/less/mixins/opacity.less +0 -8
  120. package/src/styles/less/mixins/pagination.less +0 -24
  121. package/src/styles/less/mixins/panels.less +0 -24
  122. package/src/styles/less/mixins/progress-bar.less +0 -10
  123. package/src/styles/less/mixins/reset-filter.less +0 -8
  124. package/src/styles/less/mixins/reset-text.less +0 -18
  125. package/src/styles/less/mixins/resize.less +0 -6
  126. package/src/styles/less/mixins/responsive-visibility.less +0 -15
  127. package/src/styles/less/mixins/size.less +0 -10
  128. package/src/styles/less/mixins/tab-focus.less +0 -9
  129. package/src/styles/less/mixins/table-row.less +0 -44
  130. package/src/styles/less/mixins/text-emphasis.less +0 -9
  131. package/src/styles/less/mixins/text-overflow.less +0 -8
  132. package/src/styles/less/mixins/vendor-prefixes.less +0 -227
  133. package/src/styles/less/mixins.less +0 -40
  134. package/src/styles/less/modals.less +0 -151
  135. package/src/styles/less/navbar.less +0 -660
  136. package/src/styles/less/navs.less +0 -285
  137. package/src/styles/less/normalize.less +0 -424
  138. package/src/styles/less/pager.less +0 -76
  139. package/src/styles/less/pagination.less +0 -89
  140. package/src/styles/less/panels.less +0 -275
  141. package/src/styles/less/popovers.less +0 -131
  142. package/src/styles/less/print.less +0 -101
  143. package/src/styles/less/progress-bars.less +0 -87
  144. package/src/styles/less/responsive-embed.less +0 -35
  145. package/src/styles/less/responsive-utilities.less +0 -194
  146. package/src/styles/less/scaffolding.less +0 -161
  147. package/src/styles/less/stand.less +0 -207
  148. package/src/styles/less/tables.less +0 -262
  149. package/src/styles/less/theme.less +0 -291
  150. package/src/styles/less/thumbnails.less +0 -36
  151. package/src/styles/less/tooltip.less +0 -102
  152. package/src/styles/less/type.less +0 -303
  153. package/src/styles/less/utilities.less +0 -55
  154. package/src/styles/less/variables.less +0 -896
  155. package/src/styles/less/wells.less +0 -29
  156. package/static/logo.png +0 -0
@@ -1,693 +1,642 @@
1
- <template>
2
- <div class="syslogin">
3
- <div class="login-title" >
4
- <div class="login-title-chi" style="white-space: nowrap">
5
- <img src="../../../static/newStyle/login-info.png"/>
6
- <span>关于我们</span>
7
- <img src="../../../static/newStyle/login-con.png"/>
8
- <span>联系我们</span>
9
- </div>
10
- </div>
11
- <div class="logoew" v-if="logoandroid" >
12
- <div v-if="logoandroid" class="imglogo"></div>
13
- <p class="logocontent">燃气客服系统Android版</p>
14
- <p class="logofooter">(仅浏览器扫描)</p>
15
- </div>
16
- <!--输入框-->
17
- <div class="loginmain">
18
- <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
19
- <div class="loginmain-left">
20
- <img class="loginmain-left-img" src="../../../static/newStyle/login-left.png">
21
- </div>
22
- <div class="loginmain-right">
23
-
24
- <p @click="theme()" style="white-space: nowrap">燃气客服系统</p>
25
-
26
- <form v-show="!login">
27
- <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
28
- <div class="login-input">
29
- <img src="../../../static/newStyle/login-user.png"/>
30
- <input type="text" style="display: inline;background-color: white!important;" placeholder="用户名" v-model="model.ename"/>
31
- </div>
32
- <div class="login-input">
33
- <img src="../../../static/newStyle/login-pwd.png"/>
34
- <input type="password" placeholder="密码" style="display: inline;background-color: darkgray;" v-model="model.password"
35
- @keyup.enter="confirm('key')"/>
36
- </div>
37
- <div class="login-input-1">
38
- <img src="../../../static/newStyle/login-check.png"/>
39
- <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"
40
- v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>
41
- </div>
42
- <div class="login-input-2" >
43
- <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"
44
- type="button" @click="createCode" v-model="checkCode"/>
45
- </div>
46
- <div class="login-bt">
47
- <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
48
- </div>
49
- <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
50
- <!-- @keyup.enter="confirm('key')">-->
51
- <!-- <input v-if="$login.Verification" styljiaoyane="width: 40%; display: inline" type="text" placeholder="请输入验证码"-->
52
- <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')">-->
53
- <!-- <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"-->
54
- <!-- type="button" @click="createCode" v-model="checkCode"/><br>-->
55
-
56
- <!-- <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> -->
57
- <!-- <span @click="register()">还没有注册,现在注册>>></span> -->
58
- </form>
59
- <div v-show="login" class="login_load">
60
- <img src="../../../static/newStyle/login-do.gif">
61
- </div>
62
- </div>
63
- </div>
64
- <div class="login-foot" v-show="false">
65
- 技术支持:西安奥枫软件有限公司
66
- </div>
67
-
68
- <modal v-if="depPromptShow" :show.sync="depPromptShow" :backdrop="false" v-ref:modal >
69
- <header slot="modal-header" class="modal-header">
70
- <h4 class="modal-title">登录信息</h4>
71
- </header>
72
- <article slot="modal-body" class="modal-body">
73
- <form class="form-horizontal">
74
- <div class="row">
75
- <div class="col-sm-12 form-group">
76
- <label class="col-sm-5 control-label">当前登录人</label>
77
- <div class="col-sm-7">
78
- <p class="form-control-static">{{$login.f.name}}</p>
79
- </div>
80
- </div>
81
- <div class="col-sm-12 form-group">
82
- <label class="col-sm-5 control-label">组&nbsp;织&nbsp;编&nbsp;码</label>
83
- <div class="col-sm-7">
84
- <p class="form-control-static">{{$login.f.number}}</p>
85
- </div>
86
- </div>
87
- <div class="col-sm-12 form-group">
88
- <label class="col-sm-5 control-label">所在销售点</label>
89
- <div class="col-sm-7">
90
- <p class="form-control-static">{{$login.f.deps}}</p>
91
- </div>
92
- </div>
93
- </div>
94
- </form>
95
- </article>
96
- <footer slot="modal-footer" class="modal-footer">
97
- <button class="button_search" @click="depPromptConfirm">确认</button>
98
- <button class="button_clear" @click="depPromptCancel">取消</button>
99
- </footer>
100
- </modal>
101
-
102
- <!-- 修改密码组件 -->
103
- <modify-pw :show.sync="modifyPwShow" v-if="modifyPwShow"></modify-pw>
104
- </div>
105
-
106
- </template>
107
-
108
- <script>
109
- import co from 'co'
110
- import $ from 'jquery'
111
- import Vue from 'vue'
112
-
113
- let saveGen = function *(self) {
114
- try {
115
- yield self.$login.login(self.model.ename, self.model.password)
116
- yield self.$appdata.load()
117
-
118
- if (Vue.$heatCompatibility) {
119
- try {
120
- yield self.$loginHeat.login(self.model.ename, self.model.password)
121
- yield self.$appdataHeat.load()
122
- } catch (e) {
123
- console.log('热力系统登陆失败!')
124
- }
125
- }
126
-
127
- yield self.$getConfig(self, 'Login')
128
- console.log('登录配置', self.config)
129
- if (self.config.isMac) {
130
- // 获取该登录人分公司下的mac配置
131
- let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
132
- resolveMsg: null,
133
- rejectMsg: null
134
- }).catch(() => {
135
- throw new Error('获取mac配置失败')
136
- })
137
- console.log('MAC地址信息', getMacs)
138
- // 获取本地mac地址
139
- let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
140
- resolveMsg: null,
141
- rejectMsg: null
142
- }).catch(() => {
143
- throw new Error('获取本地mac配置失败')
144
- })
145
- console.log('本地MAC地址信息', getLocalMac)
146
- // 对Mac地址进行匹配
147
- let macValidate = false
148
- for (let i = 0; i < getLocalMac.data.mac.length; i++) {
149
- for (let j = 0; j < getMacs.data.length; j++) {
150
- if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
151
- macValidate = true
152
- }
153
- }
154
- }
155
- if (!macValidate) {
156
- throw new Error('Mac地址验证失败, 请联系管理员!!')
157
- }
158
- }
159
- // 弱口令验证
160
- if (self.config.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(self.model.password))) {
161
- self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
162
- self.modifyPwShow = true
163
- })
164
- } else if (self.config.depPrompt) {
165
- self.depPromptShow = true
166
- } else {
167
- self.$goto('home-page', {functions: self.$login.f})
168
- if (self.$login) {
169
- console.log('登录信息', self.$login.f)
170
- global.login=self.$login.f
171
- console.log('登录信息', global.login)
172
- }
173
- }
174
-
175
- } catch (ret) {
176
- console.error('登录失败', ret)
177
- let msg
178
- if (ret instanceof Error) {
179
- msg = ret
180
- }
181
- if (ret.status === 0) {
182
- msg = '服务连接错误,请确认服务状态'
183
- } else if (ret.status === 401) {
184
- msg = ret.data
185
- } else if (ret.status === 710) {
186
- msg = ret.data
187
- }
188
- self.createCode()
189
- self.picLyanzhengma = ''
190
- yield self.$showMessage(msg)
191
- self.model.ename = ''
192
- self.model.password = ''
193
- self.login = false
194
- $('form').fadeIn(500)
195
- }
196
- }
197
- export default {
198
- title: '登录',
199
- ready () {
200
- if (this.$login && this.$login.getUrlCompileParames('name') && this.$login.getUrlCompileParames('password')) {
201
- this.model.ename = this.$login.getUrlCompileParames('name')
202
- this.model.password = this.$login.getUrlCompileParames('password')
203
- this.confirm()
204
- }
205
- $('#login-button').click(function (event) {
206
- event.preventDefault()
207
- $('form').fadeOut(500)
208
- }),
209
- this.createCode()
210
- },
211
- data () {
212
- return {
213
- image:{
214
- img1: '/images/newStyle/login-info.png',
215
- img2: '/images/newStyle/login-con.png',
216
- img3: '/images/newStyle/login-left.png',
217
- img4: '/images/newStyle/login-user.png',
218
- img5: '/images/newStyle/login-pwd.png',
219
- img6: '/images/newStyle/login-check.png',
220
- img7: '/images/newStyle/login-do.png',
221
- },
222
- config: {
223
- isMac: false,
224
- depPrompt: false,
225
- weakPassword: true
226
- },
227
- login: false,
228
- depPromptShow: false,
229
- model: {},
230
- show: false,
231
- checkCode: '',
232
- login_do:true,
233
- picLyanzhengma: '',
234
- // 修改密码弹框展示
235
- modifyPwShow: false,
236
- logoandroid:false
237
- }
238
- },
239
- methods: {
240
- theme(){
241
- // var elementList = document.querySelectorAll('body');
242
- // console.log(elementList)
243
- // document.querySelectorAll('body')[0].className='themeTwo'
244
- // var elementList = document.querySelectorAll('body');
245
- // console.log(elementList)
246
- },
247
- onReady () {
248
- this.$emit('ready')
249
- },
250
- confirm (key) {
251
- this.login_do=!this.login_do
252
- // return
253
- if (key == 'key') {
254
- $('form').fadeOut(500)
255
- }
256
- this.login = true
257
- // let gen = saveGen(this)
258
- // return co(gen)
259
- if(this.$login.Verification){
260
- if(this.picLyanzhengma == '') {
261
- this.$showMessage("请输入验证码!").then(()=>{
262
- this.login = false
263
- $('form').fadeIn(500)
264
- this.createCode()
265
- })
266
- }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
267
- //若输入的验证码与产生的验证码不一致时
268
- this.$showMessage("验证码不正确").then(()=>{
269
- this.login = false
270
- $('form').fadeIn(500)
271
- this.createCode();//刷新验证码
272
- this.picLyanzhengma = '';
273
- })
274
- }else {
275
- this.login = true
276
- let gen = saveGen(this)
277
- return co(gen)
278
- }
279
- }else {
280
- this.login = true
281
- let gen = saveGen(this)
282
- return co(gen)
283
- }
284
- },
285
- createCode(){
286
- let code = "";
287
- let codeLength = 4;//验证码的长度
288
- let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
289
- 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
290
- for (let i = 0; i < codeLength; i++) {
291
- //循环操作
292
- let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
293
- code += random[index];//根据索引取得随机数加到code上
294
- }
295
- this.checkCode = code;//把code值赋给验证码
296
- },
297
-
298
- async depPromptConfirm () {
299
- this.depPromptShow = false
300
- return this.$goto('home-page', {functions: this.$login.f})
301
- },
302
-
303
- depPromptCancel () {
304
- this.depPromptShow = false
305
- this.createCode()
306
- this.picLyanzhengma = ''
307
- this.model.ename = ''
308
- this.model.password = ''
309
- this.login = false
310
- $('form').fadeIn(500)
311
- }
312
- },
313
- watch: {
314
- 'modifyPwShow' (val){
315
- if (!val) {
316
- window.location.reload()
317
- }
318
- }
319
- }
320
- }
321
- </script>
322
-
323
- <style>
324
-
325
- /*输入框样式*/
326
- /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
327
- * {
328
- box-sizing: border-box;
329
- margin: 0;
330
- padding: 0;
331
- font-weight: 300;
332
- }
333
-
334
- body {
335
- font-family: 'Source Sans Pro', sans-serif;
336
- color: white;
337
- font-weight: 300;
338
- }
339
-
340
- body ::-webkit-input-placeholder {
341
- /* WebKit browsers */
342
- font-family: 'Source Sans Pro', sans-serif;
343
- color: white;
344
- font-weight: 300;
345
- }
346
-
347
- body :-moz-placeholder {
348
- /* Mozilla Firefox 4 to 18 */
349
- font-family: 'Source Sans Pro', sans-serif;
350
- color: white;
351
- opacity: 1;
352
- font-weight: 300;
353
- }
354
-
355
- body ::-moz-placeholder {
356
- /* Mozilla Firefox 19+ */
357
- font-family: 'Source Sans Pro', sans-serif;
358
- color: white;
359
- opacity: 1;
360
- font-weight: 300;
361
- }
362
-
363
- body :-ms-input-placeholder {
364
- /* Internet Explorer 10+ */
365
- font-family: 'Source Sans Pro', sans-serif;
366
- color: white;
367
- font-weight: 300;
368
- }
369
-
370
- .wrapper {
371
- /*background: #2D83BA;
372
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
373
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
374
- opacity: 0.8;*/
375
- position: absolute;
376
- top: 50%;
377
- right: -60px;
378
- width: 40%;
379
- height: 400px;
380
- margin-top: -150px;
381
- overflow: hidden;
382
-
383
- }
384
-
385
- .wrapper.form-success .container h3 {
386
- -webkit-transform: translateY(85px);
387
- -ms-transform: translateY(85px);
388
- transform: translateY(85px);
389
- }
390
-
391
- .container {
392
- max-width: 350px;
393
- margin: 0 auto;
394
- padding: 30px 100px 50px 100px;
395
- height: 400px;
396
- text-align: center;
397
- /*以下增加*/
398
- background: #2D83BA;
399
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
400
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
401
- opacity: 0.8;
402
- }
403
-
404
- .container h3 {
405
- font-size: 40px;
406
- -webkit-transition-duration: 1s;
407
- transition-duration: 1s;
408
- -webkit-transition-timing-function: ease-in-put;
409
- transition-timing-function: ease-in-put;
410
- font-weight: 200;
411
- }
412
-
413
- .form {
414
- padding: 20px 0;
415
- position: relative;
416
- z-index: 2;
417
- }
418
-
419
- .form input {
420
- -webkit-appearance: none;
421
- -moz-appearance: none;
422
- appearance: none;
423
- outline: 0;
424
- border: 1px solid #50ABE6;
425
- background-color: #50ABE6;
426
- width: 250px;
427
- border-radius: 3px;
428
- padding: 10px 15px;
429
- margin: 0 auto 10px auto;
430
- display: block;
431
- text-align: center;
432
- font-size: 18px;
433
- color: white;
434
- -webkit-transition-duration: 0.25s;
435
- transition-duration: 0.25s;
436
- font-weight: 300;
437
- }
438
-
439
- .form input:hover {
440
- background-color: rgba(255, 255, 255, 0.4);
441
- }
442
-
443
- .form input:focus {
444
- background-color: white;
445
- width: 300px;
446
- color: #53e3a6;
447
- }
448
-
449
- .usericon {
450
- background-image: url(../../../static/usericon.png);
451
- background-repeat: no-repeat;
452
- background-size: 30px;
453
- background-position-x: 8px;
454
- background-position-y: 8px;
455
- }
456
-
457
- .psicon {
458
- background-image: url(../../../static/psicon.png);
459
- background-repeat: no-repeat;
460
- background-size: 30px;
461
- background-position-x: 8px;
462
- background-position-y: 8px;
463
- }
464
-
465
- .form button {
466
- -webkit-appearance: none;
467
- -moz-appearance: none;
468
- appearance: none;
469
- outline: 0;
470
- background-color: white;
471
- border: 0;
472
- padding: 10px 15px;
473
- color: #253830;
474
- border-radius: 3px;
475
- width: 250px;
476
- cursor: pointer;
477
- font-size: 18px;
478
- -webkit-transition-duration: 0.25s;
479
- transition-duration: 0.25s;
480
- }
481
-
482
- .form button:hover {
483
- background-color: #f5f7f9;
484
- }
485
-
486
- /*注册字体样式*/
487
- .form span {
488
- color: #fff;
489
- display: table-footer-group;
490
- position: absolute;
491
- right: 10px;
492
- margin-top: 10px;
493
- cursor: pointer;
494
- }
495
-
496
- .logotitle {
497
- color: #fff;
498
- position: absolute;
499
- top: 50px;
500
- left: 50px;
501
- font-size: 50px;
502
- }
503
-
504
- /*注册模态框界面样式*/
505
- .modifystyle {
506
- background: #FCFEEE;
507
- }
508
-
509
- .modifystyle div {
510
- height: auto;
511
- margin-bottom: 15px;
512
- /*text-align: center;*/
513
- /*margin-left: 20%;*/
514
- }
515
-
516
- /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
517
- .modifystyle div input + span {
518
- top: 0 !important;
519
- right: 32%;
520
- }
521
-
522
- .modifystyle span {
523
- color: red;
524
- }
525
-
526
- /* 通告区内容 */
527
- .notice-board {
528
- height: auto;
529
- position: absolute;
530
- top: 50%;
531
- margin-top: -150px;
532
- margin-left: 100px;
533
- color: #fff;
534
- }
535
-
536
- /*修改密码底部按钮部分样式*/
537
- .footerbtn {
538
- text-align: center;
539
- padding: 15px;
540
- }
541
-
542
- .footerbtn button {
543
- width: 100px;
544
- margin-left: 20px;
545
- }
546
-
547
- .bg-bubbles {
548
- position: absolute;
549
- top: 0;
550
- left: 0;
551
- width: 100%;
552
- height: 100%;
553
- z-index: 1;
554
- }
555
-
556
- .bg-bubbles li {
557
- position: absolute;
558
- list-style: none;
559
- display: block;
560
- width: 40px;
561
- height: 40px;
562
- background-color: rgba(255, 255, 255, 0.15);
563
- bottom: -160px;
564
- -webkit-animation: square 25s infinite;
565
- animation: square 25s infinite;
566
- -webkit-transition-timing-function: linear;
567
- transition-timing-function: linear;
568
- }
569
-
570
- .bg-bubbles li:nth-child(1) {
571
- left: 10%;
572
- }
573
-
574
- .bg-bubbles li:nth-child(2) {
575
- left: 20%;
576
- width: 80px;
577
- height: 80px;
578
- -webkit-animation-delay: 2s;
579
- animation-delay: 2s;
580
- -webkit-animation-duration: 17s;
581
- animation-duration: 17s;
582
- }
583
-
584
- .bg-bubbles li:nth-child(3) {
585
- left: 25%;
586
- -webkit-animation-delay: 4s;
587
- animation-delay: 4s;
588
- }
589
-
590
- .bg-bubbles li:nth-child(4) {
591
- left: 40%;
592
- width: 60px;
593
- height: 60px;
594
- -webkit-animation-duration: 22s;
595
- animation-duration: 22s;
596
- background-color: rgba(255, 255, 255, 0.25);
597
- }
598
-
599
- .bg-bubbles li:nth-child(5) {
600
- left: 70%;
601
- }
602
-
603
- .bg-bubbles li:nth-child(6) {
604
- left: 80%;
605
- width: 120px;
606
- height: 120px;
607
- -webkit-animation-delay: 3s;
608
- animation-delay: 3s;
609
- background-color: rgba(255, 255, 255, 0.2);
610
- }
611
-
612
- .bg-bubbles li:nth-child(7) {
613
- left: 32%;
614
- width: 160px;
615
- height: 160px;
616
- -webkit-animation-delay: 7s;
617
- animation-delay: 7s;
618
- }
619
-
620
- .bg-bubbles li:nth-child(8) {
621
- left: 55%;
622
- width: 20px;
623
- height: 20px;
624
- -webkit-animation-delay: 15s;
625
- animation-delay: 15s;
626
- -webkit-animation-duration: 40s;
627
- animation-duration: 40s;
628
- }
629
-
630
- .bg-bubbles li:nth-child(9) {
631
- left: 25%;
632
- width: 10px;
633
- height: 10px;
634
- -webkit-animation-delay: 2s;
635
- animation-delay: 2s;
636
- -webkit-animation-duration: 40s;
637
- animation-duration: 40s;
638
- background-color: rgba(255, 255, 255, 0.3);
639
- }
640
-
641
- .bg-bubbles li:nth-child(10) {
642
- left: 90%;
643
- width: 160px;
644
- height: 160px;
645
- -webkit-animation-delay: 11s;
646
- animation-delay: 11s;
647
- }
648
- .logofooter{
649
- font-size: 12px;
650
- color:#fff;
651
- width:150px;
652
- margin-left: 17px;
653
- }
654
- .logocontent{
655
- font-size: 14px;
656
- color:#fff;
657
- width:150px;
658
- margin: 3px -15px;
659
- }
660
- .imglogo {
661
- background:url(../../../static/logo.png);
662
- background-size:100%;
663
- }
664
- .logoew {
665
- width:120px;
666
- height:120px;
667
- float:right;
668
- margin-right:8.5%;
669
- margin-top:10px;
670
- }
671
-
672
- @-webkit-keyframes square {
673
- 0% {
674
- -webkit-transform: translateY(0);
675
- transform: translateY(0);
676
- }
677
- 100% {
678
- -webkit-transform: translateY(-700px) rotate(600deg);
679
- transform: translateY(-700px) rotate(600deg);
680
- }
681
- }
682
-
683
- @keyframes square {
684
- 0% {
685
- -webkit-transform: translateY(0);
686
- transform: translateY(0);
687
- }
688
- 100% {
689
- -webkit-transform: translateY(-700px) rotate(600deg);
690
- transform: translateY(-700px) rotate(600deg);
691
- }
692
- }
693
- </style>
1
+ <template>
2
+ <div class="syslogin">
3
+ <div class="login-title" >
4
+ <div class="login-title-chi" style="white-space: nowrap">
5
+ <img src="../../../static/newStyle/login-info.png"/>
6
+ <span>关于我们</span>
7
+ <img src="../../../static/newStyle/login-con.png"/>
8
+ <span>联系我们</span>
9
+ </div>
10
+ </div>
11
+ <!--输入框-->
12
+ <div class="loginmain">
13
+ <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
14
+ <div class="loginmain-left">
15
+ <img class="loginmain-left-img" src="../../../static/newStyle/login-left.png">
16
+ </div>
17
+ <div class="loginmain-right">
18
+
19
+ <p @click="theme()" style="white-space: nowrap">咸阳天然气营收系统</p>
20
+
21
+ <form v-show="!login">
22
+ <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
23
+ <div class="login-input">
24
+ <img src="../../../static/newStyle/login-user.png"/>
25
+ <input type="text" style="display: inline;background-color: white!important;" placeholder="用户名" v-model="model.ename"/>
26
+ </div>
27
+ <div class="login-input">
28
+ <img src="../../../static/newStyle/login-pwd.png"/>
29
+ <input type="password" placeholder="密码" style="display: inline;background-color: darkgray;" v-model="model.password"
30
+ @keyup.enter="confirm('key')"/>
31
+ </div>
32
+ <!-- <div class="login-input-1">-->
33
+ <!-- <img src="../../../static/newStyle/login-check.png"/>-->
34
+ <!-- <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"-->
35
+ <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>-->
36
+ <!-- </div>-->
37
+ <!-- <div class="login-input-2" >-->
38
+ <!-- <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"-->
39
+ <!-- type="button" @click="createCode" v-model="checkCode"/>-->
40
+ <!-- </div>-->
41
+ <div class="login-bt" style="transform: translate(0,-55px)">
42
+ <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
43
+ </div>
44
+ <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
45
+ <!-- @keyup.enter="confirm('key')">-->
46
+ <!-- <input v-if="$login.Verification" styljiaoyane="width: 40%; display: inline" type="text" placeholder="请输入验证码"-->
47
+ <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')">-->
48
+ <!-- <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"-->
49
+ <!-- type="button" @click="createCode" v-model="checkCode"/><br>-->
50
+
51
+ <!-- <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> -->
52
+ <!-- <span @click="register()">还没有注册,现在注册>>></span> -->
53
+ </form>
54
+ <div v-show="login" class="login_load">
55
+ <img src="../../../static/newStyle/login-do.gif">
56
+ </div>
57
+ </div>
58
+ </div>
59
+ <div class="login-foot" v-show="false">
60
+ 技术支持:西安奥枫软件有限公司
61
+ </div>
62
+
63
+ <modal v-if="depPromptShow" :show.sync="depPromptShow" :backdrop="false" v-ref:modal >
64
+ <header slot="modal-header" class="modal-header">
65
+ <h4 class="modal-title">登录信息</h4>
66
+ </header>
67
+ <article slot="modal-body" class="modal-body">
68
+ <form class="form-horizontal">
69
+ <div class="row">
70
+ <div class="col-sm-12 form-group">
71
+ <label class="col-sm-5 control-label">当前登录人</label>
72
+ <div class="col-sm-7">
73
+ <p class="form-control-static">{{$login.f.name}}</p>
74
+ </div>
75
+ </div>
76
+ <div class="col-sm-12 form-group">
77
+ <label class="col-sm-5 control-label">所在销售点</label>
78
+ <div class="col-sm-7">
79
+ <p class="form-control-static">{{$login.f.deps}}</p>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </form>
84
+ </article>
85
+ <footer slot="modal-footer" class="modal-footer">
86
+ <button class="button_search" @click="depPromptConfirm">确认</button>
87
+ <button class="button_clear" @click="depPromptCancel">取消</button>
88
+ </footer>
89
+ </modal>
90
+ </div>
91
+
92
+ </template>
93
+
94
+ <script>
95
+ import co from 'co'
96
+ import $ from 'jquery'
97
+
98
+ let saveGen = function *(self) {
99
+ try {
100
+ yield self.$login.login(self.model.ename, self.model.password)
101
+ yield self.$appdata.load()
102
+
103
+ yield self.$getConfig(self, 'Login')
104
+ console.log('登录配置', self.config)
105
+ if (self.$login.r.includes('验证站点') && self.$login.f.name!='超级管理员') {
106
+ // 获取本地mac地址
107
+ let getLocalMac = yield self.$resetpost('http://127.0.0.1:8003/loadmac', {
108
+ resolveMsg: null,
109
+ rejectMsg: null
110
+ }).catch(() => {
111
+ throw new Error('获取本地mac配置失败')
112
+ })
113
+ console.log('本地MAC地址信息', getLocalMac)
114
+ // 获取该登录人分公司下的mac配置
115
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_mac_number = '${getLocalMac.data}'`}}, {
116
+ resolveMsg: null,
117
+ rejectMsg: null
118
+ }).catch(() => {
119
+ throw new Error('获取mac配置失败')
120
+ })
121
+ console.log('MAC地址信息', getMacs)
122
+ // 对Mac地址进行匹配
123
+ let macValidate = false
124
+ // for (let i = 0; i < getLocalMac.data.mac.length; i++) {
125
+ for (let j = 0; j < getMacs.data.length; j++) {
126
+ // if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
127
+ macValidate = true
128
+ self.$login.f.depids = getMacs.data[j].f_username
129
+ self.$login.f.deps = getMacs.data[j].f_mac_outlets
130
+ // }
131
+ }
132
+ // }
133
+ if (!macValidate) {
134
+ throw new Error('Mac地址验证失败, 请联系管理员!!')
135
+ }
136
+ }
137
+ if (self.config.depPrompt) {
138
+ self.depPromptShow = true
139
+ } else {
140
+ self.$goto('home-page', {functions: self.$login.f})
141
+ }
142
+
143
+ } catch (ret) {
144
+ console.error('登录失败', ret)
145
+ let msg
146
+ if (ret instanceof Error) {
147
+ msg = ret
148
+ }
149
+ if (ret.status === 0) {
150
+ msg = '服务连接错误,请确认服务状态'
151
+ } else if (ret.status === 401) {
152
+ msg = ret.data
153
+ } else if (ret.status === 710) {
154
+ msg = ret.data
155
+ }
156
+ self.createCode()
157
+ self.picLyanzhengma = ''
158
+ yield self.$showMessage(msg)
159
+ self.model.ename = ''
160
+ self.model.password = ''
161
+ self.login = false
162
+ $('form').fadeIn(500)
163
+ }
164
+ }
165
+ export default {
166
+ title: '登录',
167
+ ready () {
168
+ if (this.getUrlCompileParames('name') && this.getUrlCompileParames('password')) {
169
+ this.model.ename = this.getUrlCompileParames('name')
170
+ this.model.password = this.getUrlCompileParames('password')
171
+ this.confirm()
172
+ }
173
+ $('#login-button').click(function (event) {
174
+ event.preventDefault()
175
+ $('form').fadeOut(500)
176
+ }),
177
+ this.createCode()
178
+ },
179
+ data () {
180
+ return {
181
+ image:{
182
+ img1: '/images/newStyle/login-info.png',
183
+ img2: '/images/newStyle/login-con.png',
184
+ img3: '/images/newStyle/login-left.png',
185
+ img4: '/images/newStyle/login-user.png',
186
+ img5: '/images/newStyle/login-pwd.png',
187
+ img6: '/images/newStyle/login-check.png',
188
+ img7: '/images/newStyle/login-do.png',
189
+ },
190
+ config: {
191
+ isMac: false,
192
+ depPrompt: false,
193
+ },
194
+ login: false,
195
+ depPromptShow: false,
196
+ model: {},
197
+ show: false,
198
+ checkCode: '',
199
+ login_do:true,
200
+ picLyanzhengma: ''
201
+ }
202
+ },
203
+ methods: {
204
+ // 从地址栏获取加密的参数
205
+ getUrlCompileParames (param) {
206
+ console.log(window.location)
207
+ let query = window.location.search
208
+ let iLen = param.length
209
+ let iStart = query.indexOf(param)
210
+ if (iStart === -1) {
211
+ return ''
212
+ }
213
+ iStart += iLen + 1
214
+ let iEnd = query.indexOf('&', iStart)
215
+ if (iEnd === -1) {
216
+ return query.substring(iStart)
217
+ }
218
+ return query.substring(iStart, iEnd)
219
+ },
220
+ theme(){
221
+ // var elementList = document.querySelectorAll('body');
222
+ // console.log(elementList)
223
+ // document.querySelectorAll('body')[0].className='themeTwo'
224
+ // var elementList = document.querySelectorAll('body');
225
+ // console.log(elementList)
226
+ },
227
+ onReady () {
228
+ this.$emit('ready')
229
+ },
230
+ confirm (key) {
231
+ this.login_do=!this.login_do
232
+ // return
233
+ if (key == 'key') {
234
+ $('form').fadeOut(500)
235
+ }
236
+ this.login = true
237
+ // let gen = saveGen(this)
238
+ // return co(gen)
239
+ if(this.$login.Verification){
240
+ if(this.picLyanzhengma == '') {
241
+ this.$showMessage("请输入验证码!").then(()=>{
242
+ this.login = false
243
+ $('form').fadeIn(500)
244
+ this.createCode()
245
+ })
246
+ }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
247
+ //若输入的验证码与产生的验证码不一致时
248
+ this.$showMessage("验证码不正确").then(()=>{
249
+ this.login = false
250
+ $('form').fadeIn(500)
251
+ this.createCode();//刷新验证码
252
+ this.picLyanzhengma = '';
253
+ })
254
+ }else {
255
+ this.login = true
256
+ let gen = saveGen(this)
257
+ return co(gen)
258
+ }
259
+ }else {
260
+ this.login = true
261
+ let gen = saveGen(this)
262
+ return co(gen)
263
+ }
264
+ },
265
+ createCode(){
266
+ let code = "";
267
+ let codeLength = 4;//验证码的长度
268
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
269
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
270
+ for (let i = 0; i < codeLength; i++) {
271
+ //循环操作
272
+ let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
273
+ code += random[index];//根据索引取得随机数加到code上
274
+ }
275
+ this.checkCode = code;//把code值赋给验证码
276
+ },
277
+
278
+ async depPromptConfirm () {
279
+ this.depPromptShow = false
280
+ return this.$goto('home-page', {functions: this.$login.f})
281
+ },
282
+
283
+ depPromptCancel () {
284
+ this.depPromptShow = false
285
+ this.createCode()
286
+ this.picLyanzhengma = ''
287
+ this.model.ename = ''
288
+ this.model.password = ''
289
+ this.login = false
290
+ $('form').fadeIn(500)
291
+ }
292
+ }
293
+ }
294
+ </script>
295
+
296
+ <style>
297
+ /*输入框样式*/
298
+ /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
299
+ * {
300
+ box-sizing: border-box;
301
+ margin: 0;
302
+ padding: 0;
303
+ font-weight: 300;
304
+ }
305
+
306
+ body {
307
+ font-family: 'Source Sans Pro', sans-serif;
308
+ color: white;
309
+ font-weight: 300;
310
+ }
311
+
312
+ body ::-webkit-input-placeholder {
313
+ /* WebKit browsers */
314
+ font-family: 'Source Sans Pro', sans-serif;
315
+ color: white;
316
+ font-weight: 300;
317
+ }
318
+
319
+ body :-moz-placeholder {
320
+ /* Mozilla Firefox 4 to 18 */
321
+ font-family: 'Source Sans Pro', sans-serif;
322
+ color: white;
323
+ opacity: 1;
324
+ font-weight: 300;
325
+ }
326
+
327
+ body ::-moz-placeholder {
328
+ /* Mozilla Firefox 19+ */
329
+ font-family: 'Source Sans Pro', sans-serif;
330
+ color: white;
331
+ opacity: 1;
332
+ font-weight: 300;
333
+ }
334
+
335
+ body :-ms-input-placeholder {
336
+ /* Internet Explorer 10+ */
337
+ font-family: 'Source Sans Pro', sans-serif;
338
+ color: white;
339
+ font-weight: 300;
340
+ }
341
+
342
+ .wrapper {
343
+ /*background: #2D83BA;
344
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
345
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
346
+ opacity: 0.8;*/
347
+ position: absolute;
348
+ top: 50%;
349
+ right: -60px;
350
+ width: 40%;
351
+ height: 400px;
352
+ margin-top: -150px;
353
+ overflow: hidden;
354
+
355
+ }
356
+
357
+ .wrapper.form-success .container h3 {
358
+ -webkit-transform: translateY(85px);
359
+ -ms-transform: translateY(85px);
360
+ transform: translateY(85px);
361
+ }
362
+
363
+ .container {
364
+ max-width: 350px;
365
+ margin: 0 auto;
366
+ padding: 30px 100px 50px 100px;
367
+ height: 400px;
368
+ text-align: center;
369
+ /*以下增加*/
370
+ background: #2D83BA;
371
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
372
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
373
+ opacity: 0.8;
374
+ }
375
+
376
+ .container h3 {
377
+ font-size: 40px;
378
+ -webkit-transition-duration: 1s;
379
+ transition-duration: 1s;
380
+ -webkit-transition-timing-function: ease-in-put;
381
+ transition-timing-function: ease-in-put;
382
+ font-weight: 200;
383
+ }
384
+
385
+ .form {
386
+ padding: 20px 0;
387
+ position: relative;
388
+ z-index: 2;
389
+ }
390
+
391
+ .form input {
392
+ -webkit-appearance: none;
393
+ -moz-appearance: none;
394
+ appearance: none;
395
+ outline: 0;
396
+ border: 1px solid #50ABE6;
397
+ background-color: #50ABE6;
398
+ width: 250px;
399
+ border-radius: 3px;
400
+ padding: 10px 15px;
401
+ margin: 0 auto 10px auto;
402
+ display: block;
403
+ text-align: center;
404
+ font-size: 18px;
405
+ color: white;
406
+ -webkit-transition-duration: 0.25s;
407
+ transition-duration: 0.25s;
408
+ font-weight: 300;
409
+ }
410
+
411
+ .form input:hover {
412
+ background-color: rgba(255, 255, 255, 0.4);
413
+ }
414
+
415
+ .form input:focus {
416
+ background-color: white;
417
+ width: 300px;
418
+ color: #53e3a6;
419
+ }
420
+
421
+ .usericon {
422
+ background-image: url(../../../static/usericon.png);
423
+ background-repeat: no-repeat;
424
+ background-size: 30px;
425
+ background-position-x: 8px;
426
+ background-position-y: 8px;
427
+ }
428
+
429
+ .psicon {
430
+ background-image: url(../../../static/psicon.png);
431
+ background-repeat: no-repeat;
432
+ background-size: 30px;
433
+ background-position-x: 8px;
434
+ background-position-y: 8px;
435
+ }
436
+
437
+ .form button {
438
+ -webkit-appearance: none;
439
+ -moz-appearance: none;
440
+ appearance: none;
441
+ outline: 0;
442
+ background-color: white;
443
+ border: 0;
444
+ padding: 10px 15px;
445
+ color: #253830;
446
+ border-radius: 3px;
447
+ width: 250px;
448
+ cursor: pointer;
449
+ font-size: 18px;
450
+ -webkit-transition-duration: 0.25s;
451
+ transition-duration: 0.25s;
452
+ }
453
+
454
+ .form button:hover {
455
+ background-color: #f5f7f9;
456
+ }
457
+
458
+ /*注册字体样式*/
459
+ .form span {
460
+ color: #fff;
461
+ display: table-footer-group;
462
+ position: absolute;
463
+ right: 10px;
464
+ margin-top: 10px;
465
+ cursor: pointer;
466
+ }
467
+
468
+ .logotitle {
469
+ color: #fff;
470
+ position: absolute;
471
+ top: 50px;
472
+ left: 50px;
473
+ font-size: 50px;
474
+ }
475
+
476
+ /*注册模态框界面样式*/
477
+ .modifystyle {
478
+ background: #FCFEEE;
479
+ }
480
+
481
+ .modifystyle div {
482
+ height: auto;
483
+ margin-bottom: 15px;
484
+ /*text-align: center;*/
485
+ /*margin-left: 20%;*/
486
+ }
487
+
488
+ /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
489
+ .modifystyle div input + span {
490
+ top: 0 !important;
491
+ right: 32%;
492
+ }
493
+
494
+ .modifystyle span {
495
+ color: red;
496
+ }
497
+
498
+ /* 通告区内容 */
499
+ .notice-board {
500
+ height: auto;
501
+ position: absolute;
502
+ top: 50%;
503
+ margin-top: -150px;
504
+ margin-left: 100px;
505
+ color: #fff;
506
+ }
507
+
508
+ /*修改密码底部按钮部分样式*/
509
+ .footerbtn {
510
+ text-align: center;
511
+ padding: 15px;
512
+ }
513
+
514
+ .footerbtn button {
515
+ width: 100px;
516
+ margin-left: 20px;
517
+ }
518
+
519
+ .bg-bubbles {
520
+ position: absolute;
521
+ top: 0;
522
+ left: 0;
523
+ width: 100%;
524
+ height: 100%;
525
+ z-index: 1;
526
+ }
527
+
528
+ .bg-bubbles li {
529
+ position: absolute;
530
+ list-style: none;
531
+ display: block;
532
+ width: 40px;
533
+ height: 40px;
534
+ background-color: rgba(255, 255, 255, 0.15);
535
+ bottom: -160px;
536
+ -webkit-animation: square 25s infinite;
537
+ animation: square 25s infinite;
538
+ -webkit-transition-timing-function: linear;
539
+ transition-timing-function: linear;
540
+ }
541
+
542
+ .bg-bubbles li:nth-child(1) {
543
+ left: 10%;
544
+ }
545
+
546
+ .bg-bubbles li:nth-child(2) {
547
+ left: 20%;
548
+ width: 80px;
549
+ height: 80px;
550
+ -webkit-animation-delay: 2s;
551
+ animation-delay: 2s;
552
+ -webkit-animation-duration: 17s;
553
+ animation-duration: 17s;
554
+ }
555
+
556
+ .bg-bubbles li:nth-child(3) {
557
+ left: 25%;
558
+ -webkit-animation-delay: 4s;
559
+ animation-delay: 4s;
560
+ }
561
+
562
+ .bg-bubbles li:nth-child(4) {
563
+ left: 40%;
564
+ width: 60px;
565
+ height: 60px;
566
+ -webkit-animation-duration: 22s;
567
+ animation-duration: 22s;
568
+ background-color: rgba(255, 255, 255, 0.25);
569
+ }
570
+
571
+ .bg-bubbles li:nth-child(5) {
572
+ left: 70%;
573
+ }
574
+
575
+ .bg-bubbles li:nth-child(6) {
576
+ left: 80%;
577
+ width: 120px;
578
+ height: 120px;
579
+ -webkit-animation-delay: 3s;
580
+ animation-delay: 3s;
581
+ background-color: rgba(255, 255, 255, 0.2);
582
+ }
583
+
584
+ .bg-bubbles li:nth-child(7) {
585
+ left: 32%;
586
+ width: 160px;
587
+ height: 160px;
588
+ -webkit-animation-delay: 7s;
589
+ animation-delay: 7s;
590
+ }
591
+
592
+ .bg-bubbles li:nth-child(8) {
593
+ left: 55%;
594
+ width: 20px;
595
+ height: 20px;
596
+ -webkit-animation-delay: 15s;
597
+ animation-delay: 15s;
598
+ -webkit-animation-duration: 40s;
599
+ animation-duration: 40s;
600
+ }
601
+
602
+ .bg-bubbles li:nth-child(9) {
603
+ left: 25%;
604
+ width: 10px;
605
+ height: 10px;
606
+ -webkit-animation-delay: 2s;
607
+ animation-delay: 2s;
608
+ -webkit-animation-duration: 40s;
609
+ animation-duration: 40s;
610
+ background-color: rgba(255, 255, 255, 0.3);
611
+ }
612
+
613
+ .bg-bubbles li:nth-child(10) {
614
+ left: 90%;
615
+ width: 160px;
616
+ height: 160px;
617
+ -webkit-animation-delay: 11s;
618
+ animation-delay: 11s;
619
+ }
620
+
621
+ @-webkit-keyframes square {
622
+ 0% {
623
+ -webkit-transform: translateY(0);
624
+ transform: translateY(0);
625
+ }
626
+ 100% {
627
+ -webkit-transform: translateY(-700px) rotate(600deg);
628
+ transform: translateY(-700px) rotate(600deg);
629
+ }
630
+ }
631
+
632
+ @keyframes square {
633
+ 0% {
634
+ -webkit-transform: translateY(0);
635
+ transform: translateY(0);
636
+ }
637
+ 100% {
638
+ -webkit-transform: translateY(-700px) rotate(600deg);
639
+ transform: translateY(-700px) rotate(600deg);
640
+ }
641
+ }
642
+ </style>