system-phone 3.1.72 → 3.1.73

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 (196) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.eslintrc.js +16 -16
  4. package/CHANGELOG.md +1 -1
  5. package/Dockerfile +3 -3
  6. package/README.md +36 -36
  7. package/build/css-loaders.js +34 -34
  8. package/build/dev-client.js +8 -8
  9. package/build/example-server.js +80 -80
  10. package/build/release.sh +28 -28
  11. package/build/utils.js +71 -71
  12. package/build/webpack.dev.conf.js +31 -31
  13. package/build/webpack.example.conf.js +49 -49
  14. package/build/webpack.prod.conf.js +60 -60
  15. package/build/webpack.test.conf.js +31 -31
  16. package/config/dev.env.js +6 -6
  17. package/config/index.js +38 -38
  18. package/config/prod.env.js +3 -3
  19. package/config/test.env.js +6 -6
  20. package/nginx.conf +304 -304
  21. package/package.json +101 -101
  22. package/release.bat +5 -5
  23. package/src/App.vue +25 -25
  24. package/src/Util.js +415 -415
  25. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  26. package/src/android-bootstrap/less/.csscomb.json +304 -304
  27. package/src/android-bootstrap/less/.csslintrc +19 -19
  28. package/src/android-bootstrap/less/alerts.less +73 -73
  29. package/src/android-bootstrap/less/badges.less +66 -66
  30. package/src/android-bootstrap/less/bootstrap.less +56 -56
  31. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  32. package/src/android-bootstrap/less/button-groups.less +247 -247
  33. package/src/android-bootstrap/less/buttons.less +173 -173
  34. package/src/android-bootstrap/less/carousel.less +269 -269
  35. package/src/android-bootstrap/less/close.less +34 -34
  36. package/src/android-bootstrap/less/code.less +69 -69
  37. package/src/android-bootstrap/less/component-animations.less +33 -33
  38. package/src/android-bootstrap/less/dropdowns.less +216 -216
  39. package/src/android-bootstrap/less/forms.less +626 -626
  40. package/src/android-bootstrap/less/glyphicons.less +305 -305
  41. package/src/android-bootstrap/less/grid.less +84 -84
  42. package/src/android-bootstrap/less/input-groups.less +167 -167
  43. package/src/android-bootstrap/less/jumbotron.less +52 -52
  44. package/src/android-bootstrap/less/labels.less +64 -64
  45. package/src/android-bootstrap/less/list-group.less +141 -141
  46. package/src/android-bootstrap/less/media.less +66 -66
  47. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  48. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  49. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  50. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  51. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  52. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  53. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  54. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  55. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  56. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  57. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  58. package/src/android-bootstrap/less/mixins/image.less +33 -33
  59. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  60. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  61. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  62. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  63. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  64. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  65. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  66. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  67. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  68. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  69. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  70. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  71. package/src/android-bootstrap/less/mixins/size.less +10 -10
  72. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  73. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  74. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  75. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  76. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  77. package/src/android-bootstrap/less/mixins.less +40 -40
  78. package/src/android-bootstrap/less/modals.less +151 -151
  79. package/src/android-bootstrap/less/navbar.less +660 -660
  80. package/src/android-bootstrap/less/navs.less +290 -290
  81. package/src/android-bootstrap/less/normalize.less +424 -424
  82. package/src/android-bootstrap/less/pager.less +76 -76
  83. package/src/android-bootstrap/less/pagination.less +89 -89
  84. package/src/android-bootstrap/less/panels.less +274 -274
  85. package/src/android-bootstrap/less/popovers.less +131 -131
  86. package/src/android-bootstrap/less/print.less +101 -101
  87. package/src/android-bootstrap/less/progress-bars.less +87 -87
  88. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  89. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  90. package/src/android-bootstrap/less/scaffolding.less +161 -161
  91. package/src/android-bootstrap/less/tables.less +262 -262
  92. package/src/android-bootstrap/less/theme.less +291 -291
  93. package/src/android-bootstrap/less/thumbnails.less +36 -36
  94. package/src/android-bootstrap/less/tooltip.less +102 -102
  95. package/src/android-bootstrap/less/type.less +303 -303
  96. package/src/android-bootstrap/less/utilities.less +55 -55
  97. package/src/android-bootstrap/less/variables.less +896 -896
  98. package/src/android-bootstrap/less/wells.less +29 -29
  99. package/src/assets//346/215/242/350/241/250/347/273/264/344/277/256/346/211/223/345/233/236.png +0 -0
  100. package/src/assets//346/215/242/350/241/250/347/273/264/344/277/256/347/231/273/350/256/260.png +0 -0
  101. package/src/assets//346/215/242/350/241/250/347/273/264/344/277/256/350/256/260/345/275/225.png +0 -0
  102. package/src/bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  103. package/src/bootstrap/less/.csscomb.json +304 -304
  104. package/src/bootstrap/less/.csslintrc +19 -19
  105. package/src/bootstrap/less/alerts.less +73 -73
  106. package/src/bootstrap/less/badges.less +66 -66
  107. package/src/bootstrap/less/bootstrap.less +56 -56
  108. package/src/bootstrap/less/breadcrumbs.less +26 -26
  109. package/src/bootstrap/less/button-groups.less +247 -247
  110. package/src/bootstrap/less/buttons.less +172 -172
  111. package/src/bootstrap/less/carousel.less +269 -269
  112. package/src/bootstrap/less/close.less +34 -34
  113. package/src/bootstrap/less/code.less +69 -69
  114. package/src/bootstrap/less/component-animations.less +33 -33
  115. package/src/bootstrap/less/dropdowns.less +216 -216
  116. package/src/bootstrap/less/forms.less +626 -626
  117. package/src/bootstrap/less/glyphicons.less +305 -305
  118. package/src/bootstrap/less/grid.less +84 -84
  119. package/src/bootstrap/less/input-groups.less +167 -167
  120. package/src/bootstrap/less/jumbotron.less +52 -52
  121. package/src/bootstrap/less/labels.less +64 -64
  122. package/src/bootstrap/less/list-group.less +141 -141
  123. package/src/bootstrap/less/media.less +66 -66
  124. package/src/bootstrap/less/mixins/alerts.less +14 -14
  125. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  126. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  127. package/src/bootstrap/less/mixins/buttons.less +69 -69
  128. package/src/bootstrap/less/mixins/center-block.less +7 -7
  129. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  130. package/src/bootstrap/less/mixins/forms.less +90 -90
  131. package/src/bootstrap/less/mixins/gradients.less +59 -59
  132. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  133. package/src/bootstrap/less/mixins/grid.less +122 -122
  134. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  135. package/src/bootstrap/less/mixins/image.less +33 -33
  136. package/src/bootstrap/less/mixins/labels.less +12 -12
  137. package/src/bootstrap/less/mixins/list-group.less +30 -30
  138. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  139. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  140. package/src/bootstrap/less/mixins/opacity.less +8 -8
  141. package/src/bootstrap/less/mixins/pagination.less +24 -24
  142. package/src/bootstrap/less/mixins/panels.less +24 -24
  143. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  144. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  145. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  146. package/src/bootstrap/less/mixins/resize.less +6 -6
  147. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  148. package/src/bootstrap/less/mixins/size.less +10 -10
  149. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  150. package/src/bootstrap/less/mixins/table-row.less +44 -44
  151. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  152. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  153. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  154. package/src/bootstrap/less/mixins.less +40 -40
  155. package/src/bootstrap/less/modals.less +151 -151
  156. package/src/bootstrap/less/navbar.less +660 -660
  157. package/src/bootstrap/less/navs.less +286 -286
  158. package/src/bootstrap/less/normalize.less +424 -424
  159. package/src/bootstrap/less/pager.less +76 -76
  160. package/src/bootstrap/less/pagination.less +89 -89
  161. package/src/bootstrap/less/panels.less +275 -275
  162. package/src/bootstrap/less/popovers.less +131 -131
  163. package/src/bootstrap/less/print.less +101 -101
  164. package/src/bootstrap/less/progress-bars.less +87 -87
  165. package/src/bootstrap/less/responsive-embed.less +35 -35
  166. package/src/bootstrap/less/responsive-utilities.less +194 -194
  167. package/src/bootstrap/less/scaffolding.less +161 -161
  168. package/src/bootstrap/less/tables.less +262 -262
  169. package/src/bootstrap/less/theme.less +291 -291
  170. package/src/bootstrap/less/thumbnails.less +36 -36
  171. package/src/bootstrap/less/tooltip.less +102 -102
  172. package/src/bootstrap/less/type.less +303 -303
  173. package/src/bootstrap/less/utilities.less +55 -55
  174. package/src/bootstrap/less/variables.less +895 -895
  175. package/src/bootstrap/less/wells.less +29 -29
  176. package/src/components/AloneLoadParams.vue +26 -26
  177. package/src/components/LoadAppdata.vue +38 -38
  178. package/src/components/LoginApp.vue +762 -762
  179. package/src/components/LoginAppNew.vue +592 -592
  180. package/src/components/Test.vue +14 -14
  181. package/src/plugins/GetStringData.js +18 -18
  182. package/src/plugins/LoadParams.js +24 -24
  183. package/src/services/ConfigService.js +24 -24
  184. package/static/app.json +4 -4
  185. package/static/globals.txt +74 -74
  186. package/test/unit/.eslintrc +5 -5
  187. package/test/unit/TestUtil.js +35 -35
  188. package/test/unit/context.html +20 -20
  189. package/test/unit/index.js +13 -13
  190. package/test/unit/init.js +13 -13
  191. package/test/unit/karma.conf.js +50 -50
  192. package/test/unit/specs/App.spec.js +17 -17
  193. package/test/unit/specs/Test.spec.js +28 -28
  194. package/test/unit/specs/components/LoginApp.spec.js +21 -21
  195. package/test/unit/specs/sevices/ConfigService.spec.js +23 -23
  196. package/test/unit/specs/sevices/GetDBTest.spec.js +28 -28
@@ -1,592 +1,592 @@
1
- <template>
2
- <div class="loginbg" id="outheight">
3
- <!--输入框-->
4
- <div class="htmleaf-container">
5
- <div class="wrapper" :class="{'form-success': login}">
6
- <div class="container">
7
- <h3 style="color:white; margin-top: 15px">欢迎使用</h3>
8
- <p class="form" style="margin-top:{{margintop}}px">
9
- <input type="text" v-model="ename" class="usericon">
10
- <input :type="showpass==true?'text':'password'" v-model="password" class="psicon"><img :src="imageurl" style="width: 20px;margin-bottom: 5px;position: absolute;left: 62%;bottom: 43%;" alt="" @click="changepass()">
11
- <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
12
- </p>
13
- <div class="row">
14
- <img src="../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"@click="showoff()">
15
- <img src="../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave" @click="showon()">
16
- <span class="text-left font">记住密码</span>
17
- <img src="../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '1'"@click="showoff1()">
18
- <img src="../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '2'" @click="showon1()">
19
- <span class="text-left font">自动登录</span>
20
- <p></p>
21
- <span class="versiontext" style="margin-top: 10px" v-if="version">当前版本:{{ version }}</span>
22
- </div>
23
- </div>
24
- </div>
25
- </div>
26
- <!--<load-appdata @ready="onReady"></load-appdata>-->
27
- <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
28
- <div id="loading" class="loading">登陆中...</div>
29
- </div>
30
- </div>
31
- </template>
32
- <script>
33
- import Vue from 'vue'
34
- import * as Util from '../Util'
35
- import JSEncrypt from 'jsencrypt'
36
- import $ from 'jquery'
37
- import co from 'co'
38
- //获取json配置文件
39
- let asyncReady = async function(self,url) {
40
- // 获取配置信息
41
- try {
42
- // console.log(`获取参数信息++++${Vue.user.f_orgids}+++++${Vue.androidUtil.getProxyUrl()}`)
43
- await self.$appdata.load()
44
- let that = self
45
- let res = await Vue.resetget(`${url}/phone/rs/vue`,{data: {}},{resolveMsg: null, rejectMsg: null})
46
- that.$set('config',res.data)
47
- Vue.config2 = res.data
48
- console.log("手机端获取.json文件")
49
- console.log(JSON.stringify(self.config))
50
- } catch (error) {
51
- // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
52
- console.log(error)
53
- }
54
- }
55
-
56
- //装载业务数据
57
- let asyncLoadData = async function(self,url) {
58
- try {
59
- // 读取报建本地配置文件
60
- var result = HostApp.readLocalFile('workflow_apply.json')
61
- if(result.code == 500){
62
- console.log('不存在流程配置文件,即不使用报建app')
63
- return
64
- }
65
- var data = JSON.parse(result.data)
66
- console.log('读取报建配置文件成功,存入缓存中的data=>' + JSON.stringify(data))
67
- Vue.workflow_vue = Vue.prototype.$workflow_vue = data
68
- } catch (error) {
69
- // 此处业务数据装载异常不做任何处理,理论上不会有任何异常,只有当app版本端版本较低无readlocalfile时会异常
70
- console.log(error)
71
- }
72
- }
73
-
74
- export default {
75
- title: '登录系统',
76
- data() {
77
- return {
78
- loaderShow:false,
79
- config:{},
80
- ename: '',
81
- password: '',
82
- showsave:true,
83
- continueLogin:true,
84
- showauto:'2', // 1 自动登陆 2取消自动登陆
85
- showpass:false,
86
- imageurl:require('../assets/miwen.png'),
87
- deviceIemi:'无法获取该设备码,请联系管理员',
88
- loginSafe:false,
89
- margintop: document.documentElement.clientHeight * 0.1
90
- version:'',
91
- }
92
- },
93
-
94
- ready () {
95
- this.version = Vue.app_version || ''
96
- if(Vue.android) {
97
- let userPp1 = this.$androidUtil.getPreference('login_user_cache')
98
- this.showauto = this.$androidUtil.getPreference('auto_login')
99
- this.showauto = this.showauto ? this.showauto : '2'
100
- console.log(`自动登陆标识ready:${this.showauto}`)
101
- if(userPp1){
102
- console.log(`1返回值是:${userPp1}`)
103
- userPp1 = userPp1.replace(/\'/g,'\"')
104
- console.log(`2返回值是:${userPp1}`)
105
- let userZs = JSON.parse(userPp1)
106
- this.password = userZs.password
107
- this.ename = userZs.username
108
- }
109
- this.deviceIemi = this.$androidUtil.getDeviceIEMI()
110
- console.log(`手机设备码:${this.deviceIemi}`)
111
- if(this.showauto == '1' && this.password){
112
- this.confirm()
113
- }
114
- }
115
-
116
- // if(Vue.android) {
117
- // let version = HostApp.getAppVersion().data
118
- // this.$set('version', version)
119
- // }
120
- },
121
- methods: {
122
- // 对资源菜单进行排序
123
- sortFunctions (val) {
124
- this.sortArr(val)
125
- val.forEach((item)=>{
126
- if(item.children && Array.isArray(item.children)){
127
- this.sortArr(item.children)
128
- }
129
- })
130
- return val
131
- },
132
- sortArr(val){
133
- val.sort((itemA, itemB)=>{
134
- if(itemA.position !== itemB.position){
135
- return itemA.position - itemB.position
136
- }else{
137
- return itemA.id - itemB.id
138
- }
139
- })
140
- },
141
- // 记住密码选中/未选中
142
- showoff(){
143
- this.showsave = false
144
- },
145
- showon(){
146
- this.showsave = true
147
- },
148
- showoff1(){
149
- this.showauto = '2'
150
- },
151
- showon1(){
152
- this.showauto = '1'
153
- },
154
- changepass(){
155
- this.showpass=this.showpass?false:true
156
- if(this.showpass){
157
- this.imageurl=require("../assets/mingwen.png")
158
- }else{
159
- this.imageurl=require("../assets/miwen.png")
160
- }
161
-
162
- },
163
- async confirm() {
164
- this.loaderShow=true
165
- console.log('Vue.android:' + Vue.android)
166
- let data = {username: this.ename, password: this.password}
167
- console.log('获取登陆信息:' + data)
168
- Vue.dataUrl = this.$androidUtil.getProxyUrl() + "/"
169
- // rsa加密
170
- let encrypt = new JSEncrypt();
171
- encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
172
- data = encrypt.encrypt(JSON.stringify(data))
173
- console.log(data)
174
- //try {
175
- let ret={}
176
- //try {
177
- try{
178
- ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/手机服务`, data, {
179
- resolveMsg: null,
180
- rejectMsg: null
181
- })
182
- console.log('获取登陆信息:' + JSON.stringify(ret.data) )
183
- console.log('当前登录维修员:' + ret.data.name)
184
- }catch (e) {
185
- this.$showMessage("登陆失败,请检查账号密码后重新登录!")
186
- this.loaderShow=false
187
- return
188
- }
189
- console.log('获取参数system以及安检参数')
190
- await asyncReady(this,this.$androidUtil.getProxyUrl())
191
- console.log("this.continueLogin"+this.continueLogin)
192
- if(!this.continueLogin){
193
- this.$showMessage("获取配置文件失败,请检查网络状况后重新登录!(如网络状况正常,请联系管理员处理)")
194
- this.loaderShow=false
195
- return
196
- }
197
- console.log('获取参数结束')
198
- // 设置登录人
199
- Vue.user = Util.f = ret.data
200
- // 对资源菜单进行排序
201
- Vue.functions = this.sortFunctions(ret.data.functions)
202
- console.log('登陆人信息',JSON.stringify(Vue.user))
203
- let userStr
204
- if (Vue.android){
205
- console.log(`Device_IEMI:${this.$androidUtil.getPreference('Device_IEMI')}`)
206
- // 判断是否需要验证 设备码
207
- if(this.$androidUtil.getPreference('Device_IEMI')){
208
- console.log(`手机设备码:${this.deviceIemi}`)
209
- let result = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {items: '*', tablename: 't_equipment', orderitem: 'id desc', condition:`f_terminal_number = '${this.deviceIemi}' and f_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
210
- console.log(`检测设备码存在是否:${result.data.length}`)
211
- if(result.data.length == 0){
212
- HostApp.alert('设备码未绑定,请联系管理员!')
213
- return
214
- }
215
- }
216
- if(this.showsave){
217
- userStr = `{'username':'${this.ename}','password':'${this.password}'}`
218
- }else{
219
- userStr = `{'username':'${this.ename}','password':''}`
220
- }
221
- console.log(this.showauto)
222
- this.$androidUtil.setPreference('login_user_cache', userStr)
223
- this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
224
- this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
225
- console.log("自动登陆标识")
226
- console.log(this.showauto)
227
- this.$androidUtil.setPreference('auto_login',this.showauto)
228
- }
229
- Vue.$login = {jwt: ret.data.id}
230
- // 获取参数
231
- /*console.log('获取参数system以及安检参数')
232
- asyncReady(this,this.$androidUtil.getProxyUrl())
233
- console.log('获取参数结束')*/
234
-
235
- // console.log('登陆验证成功时装载业务数据')
236
- // asyncLoadData()
237
- // console.log('装载业务数据结束')
238
- this.loaderShow=false
239
- this.$goto('nav-bottom')
240
- /*}catch (e) {
241
- if (Vue.android)
242
- this.loaderShow=false
243
- HostApp.alert('登录失败!')
244
- }*/
245
- },
246
- // readConfig (url) {
247
- // let gen =
248
- // return co(gen)
249
- // },
250
- },
251
- watch:{
252
- 'config'(val){
253
- Vue.config = val
254
- }
255
- }
256
- }
257
- </script>
258
- <style scoped="">
259
- .devicetext {
260
- font: 13px PingFang-SC-Medium;
261
- position:fixed;
262
- width:100%;
263
- bottom:13px;
264
- transform: translate(-50%, -50%);
265
- }
266
- /*输入框样式*/
267
- /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
268
- * {
269
- box-sizing: border-box;
270
- margin: 0;
271
- padding: 0;
272
- font-weight: 300;
273
- }
274
- .loginbg {
275
- font-family: 'Source Sans Pro', sans-serif;
276
- color: white;
277
- font-weight: 300;
278
- }
279
- .loginbg ::-webkit-input-placeholder {
280
- /* WebKit browsers */
281
- font-family: 'Source Sans Pro', sans-serif;
282
- color: white;
283
- font-weight: 300;
284
- }
285
- .loginbg :-moz-placeholder {
286
- /* Mozilla Firefox 4 to 18 */
287
- font-family: 'Source Sans Pro', sans-serif;
288
- color: white;
289
- opacity: 1;
290
- font-weight: 300;
291
- }
292
- .loginbg ::-moz-placeholder {
293
- /* Mozilla Firefox 19+ */
294
- font-family: 'Source Sans Pro', sans-serif;
295
- color: white;
296
- opacity: 1;
297
- font-weight: 300;
298
- }
299
- .loginbg :-ms-input-placeholder {
300
- /* Internet Explorer 10+ */
301
- font-family: 'Source Sans Pro', sans-serif;
302
- color: white;
303
- font-weight: 300;
304
- }
305
- .wrapper {
306
- /*background: #2D83BA;
307
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
308
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
309
- opacity: 0.8;*/
310
- /*position: absolute;*/
311
- /*top: 50%;
312
- right: 10%;
313
- width: 40%;
314
- height: 350px;
315
- margin-top: -150px;*/
316
- overflow: hidden;
317
- }
318
-
319
- .wrapper.form-success .container h3{
320
- -webkit-transform: translateY(85px);
321
- -ms-transform: translateY(85px);
322
- transform: translateY(85px);
323
- }
324
- .container {
325
- /*max-width: 350px;*/
326
- margin: 0 auto;
327
- /*padding: 30px 100px 50px 100px;
328
- height: 350px;*/
329
- text-align: center;
330
- /*以下增加*/
331
- /*background: #2D83BA;
332
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
333
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);*/
334
- opacity: 0.8;
335
- }
336
- .container h3{
337
- font-size: 40px;
338
- -webkit-transition-duration: 1s;
339
- transition-duration: 1s;
340
- -webkit-transition-timing-function: ease-in-put;
341
- transition-timing-function: ease-in-put;
342
- font-weight: 200;
343
- }
344
- .form {
345
- padding: 20px 0;
346
- /*margin-top: 15%;*/
347
- position: relative;
348
- z-index: 2;
349
- }
350
- .form input {
351
- -webkit-appearance: none;
352
- -moz-appearance: none;
353
- appearance: none;
354
- outline: 0;
355
- border: 1px solid #50ABE6;
356
- background-color: #50ABE6;
357
- width: 250px;
358
- border-radius: 3px;
359
- padding: 10px 15px;
360
- margin: 0 auto 10px auto;
361
- display: block;
362
- text-align: center;
363
- font-size: 18px;
364
- color: white;
365
- -webkit-transition-duration: 0.25s;
366
- transition-duration: 0.25s;
367
- font-weight: 300;
368
- }
369
- .form input:hover {
370
- background-color: rgba(255, 255, 255, 0.4);
371
- }
372
- .form input:focus {
373
- background-color: white;
374
- width: 300px;
375
- color: #53e3a6;
376
- }
377
- .usericon {
378
- background-image: url(../assets/usericon.png);
379
- background-repeat: no-repeat;
380
- background-size: 30px;
381
- background-position-x: 8px;
382
- background-position-y: 8px;
383
- }
384
- .psicon {
385
- background-image: url(../assets/psicon.png);
386
- background-repeat: no-repeat;
387
- background-size: 30px;
388
- background-position-x: 8px;
389
- background-position-y: 8px;
390
- }
391
- .form button {
392
- -webkit-appearance: none;
393
- -moz-appearance: none;
394
- appearance: none;
395
- outline: 0;
396
- background-color: white;
397
- border: 0;
398
- padding: 10px 15px;
399
- color: #253830;
400
- border-radius: 3px;
401
- width: 250px;
402
- cursor: pointer;
403
- font-size: 18px;
404
- -webkit-transition-duration: 0.25s;
405
- transition-duration: 0.25s;
406
- }
407
- .form button:hover {
408
- background-color: #f5f7f9;
409
- }
410
-
411
- /*注册字体样式*/
412
- .form span {
413
- color: #fff;
414
- display: table-footer-group;
415
- position: absolute;
416
- right: 10px;
417
- margin-top: 10px;
418
- cursor: pointer;
419
- }
420
- .logotitle {
421
- color: #fff;
422
- position: absolute;
423
- top: 50px;
424
- left: 50px;
425
- font-size: 50px;
426
- }
427
- /*注册模态框界面样式*/
428
- .modifystyle {
429
- background: #FCFEEE;
430
- }
431
- .modifystyle div{
432
- height: auto;
433
- margin-bottom: 15px;
434
- /*text-align: center;*/
435
- /*margin-left: 20%;*/
436
- }
437
- /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
438
- .modifystyle div input + span{
439
- top: 0!important;
440
- right: 32%;
441
- }
442
- .modifystyle span{
443
- color: red;
444
- }
445
-
446
- /* 通告区内容 */
447
- .notice-board {
448
- height: auto;
449
- position: absolute;
450
- top: 50%;
451
- margin-top: -150px;
452
- margin-left: 100px;
453
- color: #fff;
454
- }
455
- /*修改密码底部按钮部分样式*/
456
- .footerbtn {
457
- text-align: center;
458
- padding: 15px;
459
- }
460
- .footerbtn button {
461
- width: 100px;
462
- margin-left: 20px;
463
- }
464
- .bg-bubbles {
465
- position: absolute;
466
- top: 0;
467
- left: 0;
468
- width: 100%;
469
- height: 100%;
470
- z-index: 1;
471
- }
472
- .bg-bubbles li {
473
- position: absolute;
474
- list-style: none;
475
- display: block;
476
- width: 40px;
477
- height: 40px;
478
- background-color: rgba(255, 255, 255, 0.15);
479
- bottom: -160px;
480
- -webkit-animation: square 25s infinite;
481
- animation: square 25s infinite;
482
- -webkit-transition-timing-function: linear;
483
- transition-timing-function: linear;
484
- }
485
- .bg-bubbles li:nth-child(1) {
486
- left: 10%;
487
- }
488
- .bg-bubbles li:nth-child(2) {
489
- left: 20%;
490
- width: 80px;
491
- height: 80px;
492
- -webkit-animation-delay: 2s;
493
- animation-delay: 2s;
494
- -webkit-animation-duration: 17s;
495
- animation-duration: 17s;
496
- }
497
- .bg-bubbles li:nth-child(3) {
498
- left: 25%;
499
- -webkit-animation-delay: 4s;
500
- animation-delay: 4s;
501
- }
502
- .bg-bubbles li:nth-child(4) {
503
- left: 40%;
504
- width: 60px;
505
- height: 60px;
506
- -webkit-animation-duration: 22s;
507
- animation-duration: 22s;
508
- background-color: rgba(255, 255, 255, 0.25);
509
- }
510
- .bg-bubbles li:nth-child(5) {
511
- left: 70%;
512
- }
513
- .bg-bubbles li:nth-child(6) {
514
- left: 80%;
515
- width: 120px;
516
- height: 120px;
517
- -webkit-animation-delay: 3s;
518
- animation-delay: 3s;
519
- background-color: rgba(255, 255, 255, 0.2);
520
- }
521
- .bg-bubbles li:nth-child(7) {
522
- left: 32%;
523
- width: 160px;
524
- height: 160px;
525
- -webkit-animation-delay: 7s;
526
- animation-delay: 7s;
527
- }
528
- .bg-bubbles li:nth-child(8) {
529
- left: 55%;
530
- width: 20px;
531
- height: 20px;
532
- -webkit-animation-delay: 15s;
533
- animation-delay: 15s;
534
- -webkit-animation-duration: 40s;
535
- animation-duration: 40s;
536
- }
537
- .bg-bubbles li:nth-child(9) {
538
- left: 25%;
539
- width: 10px;
540
- height: 10px;
541
- -webkit-animation-delay: 2s;
542
- animation-delay: 2s;
543
- -webkit-animation-duration: 40s;
544
- animation-duration: 40s;
545
- background-color: rgba(255, 255, 255, 0.3);
546
- }
547
- .bg-bubbles li:nth-child(10) {
548
- left: 90%;
549
- width: 160px;
550
- height: 160px;
551
- -webkit-animation-delay: 11s;
552
- animation-delay: 11s;
553
- }
554
- @-webkit-keyframes square {
555
- 0% {
556
- -webkit-transform: translateY(0);
557
- transform: translateY(0);
558
- }
559
- 100% {
560
- -webkit-transform: translateY(-700px) rotate(600deg);
561
- transform: translateY(-700px) rotate(600deg);
562
- }
563
- }
564
- @keyframes square {
565
- 0% {
566
- -webkit-transform: translateY(0);
567
- transform: translateY(0);
568
- }
569
- 100% {
570
- -webkit-transform: translateY(-700px) rotate(600deg);
571
- transform: translateY(-700px) rotate(600deg);
572
- }
573
- }
574
- .loading {
575
- width: 36%;
576
- height: 7%;
577
- position: absolute;
578
- top: 30%;
579
- left: 32%;
580
- line-height: 56px;
581
- color: #fff;
582
- padding-left: 60px;
583
- font-size: 15px;
584
- background: #000 url(../assets/loging.gif) no-repeat 10px 50%;
585
- opacity: 0.7;
586
- z-index: 9999;
587
- -moz-border-radius: 20px;
588
- -webkit-border-radius: 20px;
589
- border-radius: 20px;
590
- filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
591
- }
592
- </style>
1
+ <template>
2
+ <div class="loginbg" id="outheight">
3
+ <!--输入框-->
4
+ <div class="htmleaf-container">
5
+ <div class="wrapper" :class="{'form-success': login}">
6
+ <div class="container">
7
+ <h3 style="color:white; margin-top: 15px">欢迎使用</h3>
8
+ <p class="form" style="margin-top:{{margintop}}px">
9
+ <input type="text" v-model="ename" class="usericon">
10
+ <input :type="showpass==true?'text':'password'" v-model="password" class="psicon"><img :src="imageurl" style="width: 20px;margin-bottom: 5px;position: absolute;left: 62%;bottom: 43%;" alt="" @click="changepass()">
11
+ <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
12
+ </p>
13
+ <div class="row">
14
+ <img src="../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"@click="showoff()">
15
+ <img src="../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave" @click="showon()">
16
+ <span class="text-left font">记住密码</span>
17
+ <img src="../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '1'"@click="showoff1()">
18
+ <img src="../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '2'" @click="showon1()">
19
+ <span class="text-left font">自动登录</span>
20
+ <p></p>
21
+ <span class="versiontext" style="margin-top: 10px" v-if="version">当前版本:{{ version }}</span>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ <!--<load-appdata @ready="onReady"></load-appdata>-->
27
+ <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
28
+ <div id="loading" class="loading">登陆中...</div>
29
+ </div>
30
+ </div>
31
+ </template>
32
+ <script>
33
+ import Vue from 'vue'
34
+ import * as Util from '../Util'
35
+ import JSEncrypt from 'jsencrypt'
36
+ import $ from 'jquery'
37
+ import co from 'co'
38
+ //获取json配置文件
39
+ let asyncReady = async function(self,url) {
40
+ // 获取配置信息
41
+ try {
42
+ // console.log(`获取参数信息++++${Vue.user.f_orgids}+++++${Vue.androidUtil.getProxyUrl()}`)
43
+ await self.$appdata.load()
44
+ let that = self
45
+ let res = await Vue.resetget(`${url}/phone/rs/vue`,{data: {}},{resolveMsg: null, rejectMsg: null})
46
+ that.$set('config',res.data)
47
+ Vue.config2 = res.data
48
+ console.log("手机端获取.json文件")
49
+ console.log(JSON.stringify(self.config))
50
+ } catch (error) {
51
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
52
+ console.log(error)
53
+ }
54
+ }
55
+
56
+ //装载业务数据
57
+ let asyncLoadData = async function(self,url) {
58
+ try {
59
+ // 读取报建本地配置文件
60
+ var result = HostApp.readLocalFile('workflow_apply.json')
61
+ if(result.code == 500){
62
+ console.log('不存在流程配置文件,即不使用报建app')
63
+ return
64
+ }
65
+ var data = JSON.parse(result.data)
66
+ console.log('读取报建配置文件成功,存入缓存中的data=>' + JSON.stringify(data))
67
+ Vue.workflow_vue = Vue.prototype.$workflow_vue = data
68
+ } catch (error) {
69
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常,只有当app版本端版本较低无readlocalfile时会异常
70
+ console.log(error)
71
+ }
72
+ }
73
+
74
+ export default {
75
+ title: '登录系统',
76
+ data() {
77
+ return {
78
+ loaderShow:false,
79
+ config:{},
80
+ ename: '',
81
+ password: '',
82
+ showsave:true,
83
+ continueLogin:true,
84
+ showauto:'2', // 1 自动登陆 2取消自动登陆
85
+ showpass:false,
86
+ imageurl:require('../assets/miwen.png'),
87
+ deviceIemi:'无法获取该设备码,请联系管理员',
88
+ loginSafe:false,
89
+ margintop: document.documentElement.clientHeight * 0.1
90
+ version:'',
91
+ }
92
+ },
93
+
94
+ ready () {
95
+ this.version = Vue.app_version || ''
96
+ if(Vue.android) {
97
+ let userPp1 = this.$androidUtil.getPreference('login_user_cache')
98
+ this.showauto = this.$androidUtil.getPreference('auto_login')
99
+ this.showauto = this.showauto ? this.showauto : '2'
100
+ console.log(`自动登陆标识ready:${this.showauto}`)
101
+ if(userPp1){
102
+ console.log(`1返回值是:${userPp1}`)
103
+ userPp1 = userPp1.replace(/\'/g,'\"')
104
+ console.log(`2返回值是:${userPp1}`)
105
+ let userZs = JSON.parse(userPp1)
106
+ this.password = userZs.password
107
+ this.ename = userZs.username
108
+ }
109
+ this.deviceIemi = this.$androidUtil.getDeviceIEMI()
110
+ console.log(`手机设备码:${this.deviceIemi}`)
111
+ if(this.showauto == '1' && this.password){
112
+ this.confirm()
113
+ }
114
+ }
115
+
116
+ // if(Vue.android) {
117
+ // let version = HostApp.getAppVersion().data
118
+ // this.$set('version', version)
119
+ // }
120
+ },
121
+ methods: {
122
+ // 对资源菜单进行排序
123
+ sortFunctions (val) {
124
+ this.sortArr(val)
125
+ val.forEach((item)=>{
126
+ if(item.children && Array.isArray(item.children)){
127
+ this.sortArr(item.children)
128
+ }
129
+ })
130
+ return val
131
+ },
132
+ sortArr(val){
133
+ val.sort((itemA, itemB)=>{
134
+ if(itemA.position !== itemB.position){
135
+ return itemA.position - itemB.position
136
+ }else{
137
+ return itemA.id - itemB.id
138
+ }
139
+ })
140
+ },
141
+ // 记住密码选中/未选中
142
+ showoff(){
143
+ this.showsave = false
144
+ },
145
+ showon(){
146
+ this.showsave = true
147
+ },
148
+ showoff1(){
149
+ this.showauto = '2'
150
+ },
151
+ showon1(){
152
+ this.showauto = '1'
153
+ },
154
+ changepass(){
155
+ this.showpass=this.showpass?false:true
156
+ if(this.showpass){
157
+ this.imageurl=require("../assets/mingwen.png")
158
+ }else{
159
+ this.imageurl=require("../assets/miwen.png")
160
+ }
161
+
162
+ },
163
+ async confirm() {
164
+ this.loaderShow=true
165
+ console.log('Vue.android:' + Vue.android)
166
+ let data = {username: this.ename, password: this.password}
167
+ console.log('获取登陆信息:' + data)
168
+ Vue.dataUrl = this.$androidUtil.getProxyUrl() + "/"
169
+ // rsa加密
170
+ let encrypt = new JSEncrypt();
171
+ encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
172
+ data = encrypt.encrypt(JSON.stringify(data))
173
+ console.log(data)
174
+ //try {
175
+ let ret={}
176
+ //try {
177
+ try{
178
+ ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/手机服务`, data, {
179
+ resolveMsg: null,
180
+ rejectMsg: null
181
+ })
182
+ console.log('获取登陆信息:' + JSON.stringify(ret.data) )
183
+ console.log('当前登录维修员:' + ret.data.name)
184
+ }catch (e) {
185
+ this.$showMessage("登陆失败,请检查账号密码后重新登录!")
186
+ this.loaderShow=false
187
+ return
188
+ }
189
+ console.log('获取参数system以及安检参数')
190
+ await asyncReady(this,this.$androidUtil.getProxyUrl())
191
+ console.log("this.continueLogin"+this.continueLogin)
192
+ if(!this.continueLogin){
193
+ this.$showMessage("获取配置文件失败,请检查网络状况后重新登录!(如网络状况正常,请联系管理员处理)")
194
+ this.loaderShow=false
195
+ return
196
+ }
197
+ console.log('获取参数结束')
198
+ // 设置登录人
199
+ Vue.user = Util.f = ret.data
200
+ // 对资源菜单进行排序
201
+ Vue.functions = this.sortFunctions(ret.data.functions)
202
+ console.log('登陆人信息',JSON.stringify(Vue.user))
203
+ let userStr
204
+ if (Vue.android){
205
+ console.log(`Device_IEMI:${this.$androidUtil.getPreference('Device_IEMI')}`)
206
+ // 判断是否需要验证 设备码
207
+ if(this.$androidUtil.getPreference('Device_IEMI')){
208
+ console.log(`手机设备码:${this.deviceIemi}`)
209
+ let result = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {items: '*', tablename: 't_equipment', orderitem: 'id desc', condition:`f_terminal_number = '${this.deviceIemi}' and f_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
210
+ console.log(`检测设备码存在是否:${result.data.length}`)
211
+ if(result.data.length == 0){
212
+ HostApp.alert('设备码未绑定,请联系管理员!')
213
+ return
214
+ }
215
+ }
216
+ if(this.showsave){
217
+ userStr = `{'username':'${this.ename}','password':'${this.password}'}`
218
+ }else{
219
+ userStr = `{'username':'${this.ename}','password':''}`
220
+ }
221
+ console.log(this.showauto)
222
+ this.$androidUtil.setPreference('login_user_cache', userStr)
223
+ this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
224
+ this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
225
+ console.log("自动登陆标识")
226
+ console.log(this.showauto)
227
+ this.$androidUtil.setPreference('auto_login',this.showauto)
228
+ }
229
+ Vue.$login = {jwt: ret.data.id}
230
+ // 获取参数
231
+ /*console.log('获取参数system以及安检参数')
232
+ asyncReady(this,this.$androidUtil.getProxyUrl())
233
+ console.log('获取参数结束')*/
234
+
235
+ // console.log('登陆验证成功时装载业务数据')
236
+ // asyncLoadData()
237
+ // console.log('装载业务数据结束')
238
+ this.loaderShow=false
239
+ this.$goto('nav-bottom')
240
+ /*}catch (e) {
241
+ if (Vue.android)
242
+ this.loaderShow=false
243
+ HostApp.alert('登录失败!')
244
+ }*/
245
+ },
246
+ // readConfig (url) {
247
+ // let gen =
248
+ // return co(gen)
249
+ // },
250
+ },
251
+ watch:{
252
+ 'config'(val){
253
+ Vue.config = val
254
+ }
255
+ }
256
+ }
257
+ </script>
258
+ <style scoped="">
259
+ .devicetext {
260
+ font: 13px PingFang-SC-Medium;
261
+ position:fixed;
262
+ width:100%;
263
+ bottom:13px;
264
+ transform: translate(-50%, -50%);
265
+ }
266
+ /*输入框样式*/
267
+ /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
268
+ * {
269
+ box-sizing: border-box;
270
+ margin: 0;
271
+ padding: 0;
272
+ font-weight: 300;
273
+ }
274
+ .loginbg {
275
+ font-family: 'Source Sans Pro', sans-serif;
276
+ color: white;
277
+ font-weight: 300;
278
+ }
279
+ .loginbg ::-webkit-input-placeholder {
280
+ /* WebKit browsers */
281
+ font-family: 'Source Sans Pro', sans-serif;
282
+ color: white;
283
+ font-weight: 300;
284
+ }
285
+ .loginbg :-moz-placeholder {
286
+ /* Mozilla Firefox 4 to 18 */
287
+ font-family: 'Source Sans Pro', sans-serif;
288
+ color: white;
289
+ opacity: 1;
290
+ font-weight: 300;
291
+ }
292
+ .loginbg ::-moz-placeholder {
293
+ /* Mozilla Firefox 19+ */
294
+ font-family: 'Source Sans Pro', sans-serif;
295
+ color: white;
296
+ opacity: 1;
297
+ font-weight: 300;
298
+ }
299
+ .loginbg :-ms-input-placeholder {
300
+ /* Internet Explorer 10+ */
301
+ font-family: 'Source Sans Pro', sans-serif;
302
+ color: white;
303
+ font-weight: 300;
304
+ }
305
+ .wrapper {
306
+ /*background: #2D83BA;
307
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
308
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
309
+ opacity: 0.8;*/
310
+ /*position: absolute;*/
311
+ /*top: 50%;
312
+ right: 10%;
313
+ width: 40%;
314
+ height: 350px;
315
+ margin-top: -150px;*/
316
+ overflow: hidden;
317
+ }
318
+
319
+ .wrapper.form-success .container h3{
320
+ -webkit-transform: translateY(85px);
321
+ -ms-transform: translateY(85px);
322
+ transform: translateY(85px);
323
+ }
324
+ .container {
325
+ /*max-width: 350px;*/
326
+ margin: 0 auto;
327
+ /*padding: 30px 100px 50px 100px;
328
+ height: 350px;*/
329
+ text-align: center;
330
+ /*以下增加*/
331
+ /*background: #2D83BA;
332
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
333
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);*/
334
+ opacity: 0.8;
335
+ }
336
+ .container h3{
337
+ font-size: 40px;
338
+ -webkit-transition-duration: 1s;
339
+ transition-duration: 1s;
340
+ -webkit-transition-timing-function: ease-in-put;
341
+ transition-timing-function: ease-in-put;
342
+ font-weight: 200;
343
+ }
344
+ .form {
345
+ padding: 20px 0;
346
+ /*margin-top: 15%;*/
347
+ position: relative;
348
+ z-index: 2;
349
+ }
350
+ .form input {
351
+ -webkit-appearance: none;
352
+ -moz-appearance: none;
353
+ appearance: none;
354
+ outline: 0;
355
+ border: 1px solid #50ABE6;
356
+ background-color: #50ABE6;
357
+ width: 250px;
358
+ border-radius: 3px;
359
+ padding: 10px 15px;
360
+ margin: 0 auto 10px auto;
361
+ display: block;
362
+ text-align: center;
363
+ font-size: 18px;
364
+ color: white;
365
+ -webkit-transition-duration: 0.25s;
366
+ transition-duration: 0.25s;
367
+ font-weight: 300;
368
+ }
369
+ .form input:hover {
370
+ background-color: rgba(255, 255, 255, 0.4);
371
+ }
372
+ .form input:focus {
373
+ background-color: white;
374
+ width: 300px;
375
+ color: #53e3a6;
376
+ }
377
+ .usericon {
378
+ background-image: url(../assets/usericon.png);
379
+ background-repeat: no-repeat;
380
+ background-size: 30px;
381
+ background-position-x: 8px;
382
+ background-position-y: 8px;
383
+ }
384
+ .psicon {
385
+ background-image: url(../assets/psicon.png);
386
+ background-repeat: no-repeat;
387
+ background-size: 30px;
388
+ background-position-x: 8px;
389
+ background-position-y: 8px;
390
+ }
391
+ .form button {
392
+ -webkit-appearance: none;
393
+ -moz-appearance: none;
394
+ appearance: none;
395
+ outline: 0;
396
+ background-color: white;
397
+ border: 0;
398
+ padding: 10px 15px;
399
+ color: #253830;
400
+ border-radius: 3px;
401
+ width: 250px;
402
+ cursor: pointer;
403
+ font-size: 18px;
404
+ -webkit-transition-duration: 0.25s;
405
+ transition-duration: 0.25s;
406
+ }
407
+ .form button:hover {
408
+ background-color: #f5f7f9;
409
+ }
410
+
411
+ /*注册字体样式*/
412
+ .form span {
413
+ color: #fff;
414
+ display: table-footer-group;
415
+ position: absolute;
416
+ right: 10px;
417
+ margin-top: 10px;
418
+ cursor: pointer;
419
+ }
420
+ .logotitle {
421
+ color: #fff;
422
+ position: absolute;
423
+ top: 50px;
424
+ left: 50px;
425
+ font-size: 50px;
426
+ }
427
+ /*注册模态框界面样式*/
428
+ .modifystyle {
429
+ background: #FCFEEE;
430
+ }
431
+ .modifystyle div{
432
+ height: auto;
433
+ margin-bottom: 15px;
434
+ /*text-align: center;*/
435
+ /*margin-left: 20%;*/
436
+ }
437
+ /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
438
+ .modifystyle div input + span{
439
+ top: 0!important;
440
+ right: 32%;
441
+ }
442
+ .modifystyle span{
443
+ color: red;
444
+ }
445
+
446
+ /* 通告区内容 */
447
+ .notice-board {
448
+ height: auto;
449
+ position: absolute;
450
+ top: 50%;
451
+ margin-top: -150px;
452
+ margin-left: 100px;
453
+ color: #fff;
454
+ }
455
+ /*修改密码底部按钮部分样式*/
456
+ .footerbtn {
457
+ text-align: center;
458
+ padding: 15px;
459
+ }
460
+ .footerbtn button {
461
+ width: 100px;
462
+ margin-left: 20px;
463
+ }
464
+ .bg-bubbles {
465
+ position: absolute;
466
+ top: 0;
467
+ left: 0;
468
+ width: 100%;
469
+ height: 100%;
470
+ z-index: 1;
471
+ }
472
+ .bg-bubbles li {
473
+ position: absolute;
474
+ list-style: none;
475
+ display: block;
476
+ width: 40px;
477
+ height: 40px;
478
+ background-color: rgba(255, 255, 255, 0.15);
479
+ bottom: -160px;
480
+ -webkit-animation: square 25s infinite;
481
+ animation: square 25s infinite;
482
+ -webkit-transition-timing-function: linear;
483
+ transition-timing-function: linear;
484
+ }
485
+ .bg-bubbles li:nth-child(1) {
486
+ left: 10%;
487
+ }
488
+ .bg-bubbles li:nth-child(2) {
489
+ left: 20%;
490
+ width: 80px;
491
+ height: 80px;
492
+ -webkit-animation-delay: 2s;
493
+ animation-delay: 2s;
494
+ -webkit-animation-duration: 17s;
495
+ animation-duration: 17s;
496
+ }
497
+ .bg-bubbles li:nth-child(3) {
498
+ left: 25%;
499
+ -webkit-animation-delay: 4s;
500
+ animation-delay: 4s;
501
+ }
502
+ .bg-bubbles li:nth-child(4) {
503
+ left: 40%;
504
+ width: 60px;
505
+ height: 60px;
506
+ -webkit-animation-duration: 22s;
507
+ animation-duration: 22s;
508
+ background-color: rgba(255, 255, 255, 0.25);
509
+ }
510
+ .bg-bubbles li:nth-child(5) {
511
+ left: 70%;
512
+ }
513
+ .bg-bubbles li:nth-child(6) {
514
+ left: 80%;
515
+ width: 120px;
516
+ height: 120px;
517
+ -webkit-animation-delay: 3s;
518
+ animation-delay: 3s;
519
+ background-color: rgba(255, 255, 255, 0.2);
520
+ }
521
+ .bg-bubbles li:nth-child(7) {
522
+ left: 32%;
523
+ width: 160px;
524
+ height: 160px;
525
+ -webkit-animation-delay: 7s;
526
+ animation-delay: 7s;
527
+ }
528
+ .bg-bubbles li:nth-child(8) {
529
+ left: 55%;
530
+ width: 20px;
531
+ height: 20px;
532
+ -webkit-animation-delay: 15s;
533
+ animation-delay: 15s;
534
+ -webkit-animation-duration: 40s;
535
+ animation-duration: 40s;
536
+ }
537
+ .bg-bubbles li:nth-child(9) {
538
+ left: 25%;
539
+ width: 10px;
540
+ height: 10px;
541
+ -webkit-animation-delay: 2s;
542
+ animation-delay: 2s;
543
+ -webkit-animation-duration: 40s;
544
+ animation-duration: 40s;
545
+ background-color: rgba(255, 255, 255, 0.3);
546
+ }
547
+ .bg-bubbles li:nth-child(10) {
548
+ left: 90%;
549
+ width: 160px;
550
+ height: 160px;
551
+ -webkit-animation-delay: 11s;
552
+ animation-delay: 11s;
553
+ }
554
+ @-webkit-keyframes square {
555
+ 0% {
556
+ -webkit-transform: translateY(0);
557
+ transform: translateY(0);
558
+ }
559
+ 100% {
560
+ -webkit-transform: translateY(-700px) rotate(600deg);
561
+ transform: translateY(-700px) rotate(600deg);
562
+ }
563
+ }
564
+ @keyframes square {
565
+ 0% {
566
+ -webkit-transform: translateY(0);
567
+ transform: translateY(0);
568
+ }
569
+ 100% {
570
+ -webkit-transform: translateY(-700px) rotate(600deg);
571
+ transform: translateY(-700px) rotate(600deg);
572
+ }
573
+ }
574
+ .loading {
575
+ width: 36%;
576
+ height: 7%;
577
+ position: absolute;
578
+ top: 30%;
579
+ left: 32%;
580
+ line-height: 56px;
581
+ color: #fff;
582
+ padding-left: 60px;
583
+ font-size: 15px;
584
+ background: #000 url(../assets/loging.gif) no-repeat 10px 50%;
585
+ opacity: 0.7;
586
+ z-index: 9999;
587
+ -moz-border-radius: 20px;
588
+ -webkit-border-radius: 20px;
589
+ border-radius: 20px;
590
+ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
591
+ }
592
+ </style>