system-phone 3.1.48 → 3.1.49

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