system-phone 3.0.49-43 → 3.0.49-45

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 (280) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.eslintrc.js +16 -16
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/CHANGELOG.md +1 -1
  6. package/Dockerfile +3 -3
  7. package/README.md +36 -36
  8. package/SystemPhone.iml +8 -8
  9. package/build/css-loaders.js +34 -34
  10. package/build/dev-client.js +8 -8
  11. package/build/dev-server.js +141 -141
  12. package/build/example-server.js +80 -80
  13. package/build/release.sh +28 -28
  14. package/build/utils.js +71 -71
  15. package/build/webpack.base.conf.js +82 -82
  16. package/build/webpack.dev.conf.js +31 -31
  17. package/build/webpack.example.conf.js +49 -49
  18. package/build/webpack.prod.conf.js +60 -60
  19. package/build/webpack.test.conf.js +31 -31
  20. package/build.gradle +27 -27
  21. package/config/dev.env.js +6 -6
  22. package/config/index.js +38 -38
  23. package/config/prod.env.js +3 -3
  24. package/config/test.env.js +6 -6
  25. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  26. package/gradlew +183 -183
  27. package/gradlew.bat +100 -100
  28. package/index.html +21 -21
  29. package/nginx.conf +304 -304
  30. package/package.json +1 -1
  31. package/release.bat +5 -5
  32. package/src/App.vue +25 -25
  33. package/src/Util.js +415 -415
  34. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  35. package/src/android-bootstrap/less/.csscomb.json +304 -304
  36. package/src/android-bootstrap/less/.csslintrc +19 -19
  37. package/src/android-bootstrap/less/alerts.less +73 -73
  38. package/src/android-bootstrap/less/badges.less +66 -66
  39. package/src/android-bootstrap/less/bootstrap.less +56 -56
  40. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  41. package/src/android-bootstrap/less/button-groups.less +247 -247
  42. package/src/android-bootstrap/less/buttons.less +173 -173
  43. package/src/android-bootstrap/less/carousel.less +269 -269
  44. package/src/android-bootstrap/less/close.less +34 -34
  45. package/src/android-bootstrap/less/code.less +69 -69
  46. package/src/android-bootstrap/less/component-animations.less +33 -33
  47. package/src/android-bootstrap/less/dropdowns.less +216 -216
  48. package/src/android-bootstrap/less/forms.less +626 -626
  49. package/src/android-bootstrap/less/glyphicons.less +305 -305
  50. package/src/android-bootstrap/less/grid.less +84 -84
  51. package/src/android-bootstrap/less/input-groups.less +167 -167
  52. package/src/android-bootstrap/less/jumbotron.less +52 -52
  53. package/src/android-bootstrap/less/labels.less +64 -64
  54. package/src/android-bootstrap/less/list-group.less +141 -141
  55. package/src/android-bootstrap/less/media.less +66 -66
  56. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  57. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  58. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  59. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  60. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  61. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  62. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  63. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  64. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  65. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  66. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  67. package/src/android-bootstrap/less/mixins/image.less +33 -33
  68. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  69. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  70. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  71. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  72. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  73. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  74. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  75. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  76. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  77. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  78. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  79. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  80. package/src/android-bootstrap/less/mixins/size.less +10 -10
  81. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  82. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  83. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  84. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  85. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  86. package/src/android-bootstrap/less/mixins.less +40 -40
  87. package/src/android-bootstrap/less/modals.less +151 -151
  88. package/src/android-bootstrap/less/navbar.less +660 -660
  89. package/src/android-bootstrap/less/navs.less +290 -290
  90. package/src/android-bootstrap/less/normalize.less +424 -424
  91. package/src/android-bootstrap/less/pager.less +76 -76
  92. package/src/android-bootstrap/less/pagination.less +89 -89
  93. package/src/android-bootstrap/less/panels.less +274 -274
  94. package/src/android-bootstrap/less/popovers.less +131 -131
  95. package/src/android-bootstrap/less/print.less +101 -101
  96. package/src/android-bootstrap/less/progress-bars.less +87 -87
  97. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  98. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  99. package/src/android-bootstrap/less/scaffolding.less +161 -161
  100. package/src/android-bootstrap/less/tables.less +262 -262
  101. package/src/android-bootstrap/less/theme.less +291 -291
  102. package/src/android-bootstrap/less/thumbnails.less +36 -36
  103. package/src/android-bootstrap/less/tooltip.less +102 -102
  104. package/src/android-bootstrap/less/type.less +303 -303
  105. package/src/android-bootstrap/less/utilities.less +55 -55
  106. package/src/android-bootstrap/less/variables.less +896 -896
  107. package/src/android-bootstrap/less/wells.less +29 -29
  108. package/src/assets//345/267/245/345/225/206/345/256/211/346/243/200.png +0 -0
  109. package/src/assets//345/276/205/345/212/236/347/273/237/350/256/241.png +0 -0
  110. package/src/assets//346/212/245/345/273/272/344/273/243/345/212/236.png +0 -0
  111. package/src/assets//350/256/241/345/210/222/347/273/237/350/256/241.png +0 -0
  112. package/src/bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  113. package/src/bootstrap/less/.csscomb.json +304 -304
  114. package/src/bootstrap/less/.csslintrc +19 -19
  115. package/src/bootstrap/less/alerts.less +73 -73
  116. package/src/bootstrap/less/badges.less +66 -66
  117. package/src/bootstrap/less/bootstrap.less +56 -56
  118. package/src/bootstrap/less/breadcrumbs.less +26 -26
  119. package/src/bootstrap/less/button-groups.less +247 -247
  120. package/src/bootstrap/less/buttons.less +172 -172
  121. package/src/bootstrap/less/carousel.less +269 -269
  122. package/src/bootstrap/less/close.less +34 -34
  123. package/src/bootstrap/less/code.less +69 -69
  124. package/src/bootstrap/less/component-animations.less +33 -33
  125. package/src/bootstrap/less/dropdowns.less +216 -216
  126. package/src/bootstrap/less/forms.less +626 -626
  127. package/src/bootstrap/less/glyphicons.less +305 -305
  128. package/src/bootstrap/less/grid.less +84 -84
  129. package/src/bootstrap/less/input-groups.less +167 -167
  130. package/src/bootstrap/less/jumbotron.less +52 -52
  131. package/src/bootstrap/less/labels.less +64 -64
  132. package/src/bootstrap/less/list-group.less +141 -141
  133. package/src/bootstrap/less/media.less +66 -66
  134. package/src/bootstrap/less/mixins/alerts.less +14 -14
  135. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  136. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  137. package/src/bootstrap/less/mixins/buttons.less +69 -69
  138. package/src/bootstrap/less/mixins/center-block.less +7 -7
  139. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  140. package/src/bootstrap/less/mixins/forms.less +90 -90
  141. package/src/bootstrap/less/mixins/gradients.less +59 -59
  142. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  143. package/src/bootstrap/less/mixins/grid.less +122 -122
  144. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  145. package/src/bootstrap/less/mixins/image.less +33 -33
  146. package/src/bootstrap/less/mixins/labels.less +12 -12
  147. package/src/bootstrap/less/mixins/list-group.less +30 -30
  148. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  149. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  150. package/src/bootstrap/less/mixins/opacity.less +8 -8
  151. package/src/bootstrap/less/mixins/pagination.less +24 -24
  152. package/src/bootstrap/less/mixins/panels.less +24 -24
  153. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  154. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  155. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  156. package/src/bootstrap/less/mixins/resize.less +6 -6
  157. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  158. package/src/bootstrap/less/mixins/size.less +10 -10
  159. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  160. package/src/bootstrap/less/mixins/table-row.less +44 -44
  161. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  162. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  163. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  164. package/src/bootstrap/less/mixins.less +40 -40
  165. package/src/bootstrap/less/modals.less +151 -151
  166. package/src/bootstrap/less/navbar.less +660 -660
  167. package/src/bootstrap/less/navs.less +286 -286
  168. package/src/bootstrap/less/normalize.less +424 -424
  169. package/src/bootstrap/less/pager.less +76 -76
  170. package/src/bootstrap/less/pagination.less +89 -89
  171. package/src/bootstrap/less/panels.less +275 -275
  172. package/src/bootstrap/less/popovers.less +131 -131
  173. package/src/bootstrap/less/print.less +101 -101
  174. package/src/bootstrap/less/progress-bars.less +87 -87
  175. package/src/bootstrap/less/responsive-embed.less +35 -35
  176. package/src/bootstrap/less/responsive-utilities.less +194 -194
  177. package/src/bootstrap/less/scaffolding.less +161 -161
  178. package/src/bootstrap/less/tables.less +262 -262
  179. package/src/bootstrap/less/theme.less +291 -291
  180. package/src/bootstrap/less/thumbnails.less +36 -36
  181. package/src/bootstrap/less/tooltip.less +102 -102
  182. package/src/bootstrap/less/type.less +303 -303
  183. package/src/bootstrap/less/utilities.less +55 -55
  184. package/src/bootstrap/less/variables.less +895 -895
  185. package/src/bootstrap/less/wells.less +29 -29
  186. package/src/components/AloneLoadParams.vue +26 -26
  187. package/src/components/AlreadyService.vue +193 -193
  188. package/src/components/AttendManage.vue +534 -534
  189. package/src/components/LoadAppdata.vue +38 -38
  190. package/src/components/LoginApp.vue +730 -730
  191. package/src/components/LoginAppNew.vue +587 -587
  192. package/src/components/ModifyPassWord.vue +216 -216
  193. package/src/components/NavBottom.vue +117 -117
  194. package/src/components/NavBottomV.vue +141 -141
  195. package/src/components/NavBottomVVV.vue +185 -185
  196. package/src/components/OnlineManage.vue +256 -256
  197. package/src/components/PhoneAllInfo.vue +68 -68
  198. package/src/components/PhoneChangemeterInfo.vue +116 -116
  199. package/src/components/PhoneInfoTable.vue +39 -39
  200. package/src/components/PhoneMeterInfo.vue +132 -132
  201. package/src/components/PhoneRepairInfo.vue +146 -146
  202. package/src/components/PhoneSafeInfo.vue +101 -101
  203. package/src/components/PhoneSellInfo.vue +123 -123
  204. package/src/components/PhoneSellInfoLite.vue +112 -112
  205. package/src/components/PhoneUser.vue +202 -202
  206. package/src/components/PhoneUserDetil.vue +70 -70
  207. package/src/components/PhoneUserFind.vue +138 -138
  208. package/src/components/RightTree.vue +217 -217
  209. package/src/components/SystemSetUp.vue +332 -332
  210. package/src/components/TabBarPhone.vue +81 -81
  211. package/src/components/Test.vue +14 -14
  212. package/src/components/ToolsPage.vue +182 -182
  213. package/src/components/UploadManage.vue +194 -194
  214. package/src/components/gaomi/NavBottomV.vue +223 -223
  215. package/src/components/gaomi/NavBottomVVVV.vue +210 -210
  216. package/src/components/gaomi/Scroller.vue +63 -63
  217. package/src/components/gaomi/SystemSetUp.vue +186 -186
  218. package/src/components/gaomi/ToolsPage.vue +168 -168
  219. package/src/components/idea/feedBack.vue +150 -150
  220. package/src/components/idea/feedbackAdd.vue +366 -366
  221. package/src/components/info/ConfigInfo.vue +122 -122
  222. package/src/components/info/FindUserInfo.vue +157 -157
  223. package/src/components/info/InfoTable.vue +37 -37
  224. package/src/components/iot/InstructMessage.vue +313 -313
  225. package/src/components/iot/IotBaseInfo.vue +97 -97
  226. package/src/components/iot/IotMeterInfo.vue +77 -77
  227. package/src/components/iot/iotMonitoringMain.vue +501 -501
  228. package/src/components/online/ApplyOnline.vue +581 -581
  229. package/src/components/online/BJZhongRan/ApplyOnline.vue +600 -600
  230. package/src/components/screen/ChargeContentPage.vue +656 -656
  231. package/src/components/screen/ContentPage.vue +611 -611
  232. package/src/components/screen/GongdanContentPage.vue +149 -149
  233. package/src/components/screen/ListCountItem.vue +93 -93
  234. package/src/components/screen/ModuleTitle.vue +48 -48
  235. package/src/components/screen/SafeOrderContentPage.vue +440 -440
  236. package/src/components/screen/SecurityCheckItem.vue +50 -50
  237. package/src/components/screen/TotalItem.vue +76 -76
  238. package/src/components/screen/TotalUserNumber.vue +77 -77
  239. package/src/components/screen/WorkOrderItem.vue +51 -51
  240. package/src/components/screen/WorkOrderRightDownItem.vue +103 -103
  241. package/src/components/screen/WorkOrderRightItem.vue +115 -115
  242. package/src/components/userinfo/paymentQuery.vue +189 -189
  243. package/src/components/userinfo/queryFile.vue +190 -190
  244. package/src/components/wasm.vue +18 -18
  245. package/src/expandcssAndroid.less +521 -521
  246. package/src/filiale/yulinyuchuan/AlreadyService.vue +194 -194
  247. package/src/filiale/yulinyuchuan/AttendManage.vue +537 -537
  248. package/src/filiale/yulinyuchuan/LoginApp.vue +736 -736
  249. package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -256
  250. package/src/filiale/yulinyuchuan/SystemSetUp.vue +332 -332
  251. package/src/filiale/yulinyuchuan/UploadManage.vue +195 -195
  252. package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -9
  253. package/src/index.js +9 -9
  254. package/src/main.js +38 -38
  255. package/src/plugins/GetStringData.js +18 -18
  256. package/src/plugins/LoadParams.js +24 -24
  257. package/src/plugins/const.js +404 -404
  258. package/src/plugins/vue-py.js +37 -37
  259. package/src/services/ConfigService.js +24 -24
  260. package/src/stores/AppData.js +65 -65
  261. package/src/systemphone-gaomi.js +105 -105
  262. package/src/systemphone.js +58 -58
  263. package/src/util/LdapHelper.js +75 -75
  264. package/static/app.json +4 -4
  265. package/static/const.js +404 -404
  266. package/static/globals.txt +74 -74
  267. package/static/layui/font/iconfont.svg +554 -554
  268. package/static/vue-py.js +37 -37
  269. package/static/wasm_exec.js +465 -465
  270. package/test/unit/.eslintrc +5 -5
  271. package/test/unit/TestUtil.js +35 -35
  272. package/test/unit/context.html +20 -20
  273. package/test/unit/index.js +13 -13
  274. package/test/unit/init.js +13 -13
  275. package/test/unit/karma.conf.js +50 -50
  276. package/test/unit/specs/App.spec.js +17 -17
  277. package/test/unit/specs/Test.spec.js +28 -28
  278. package/test/unit/specs/components/LoginApp.spec.js +21 -21
  279. package/test/unit/specs/sevices/ConfigService.spec.js +23 -23
  280. package/test/unit/specs/sevices/GetDBTest.spec.js +28 -28
@@ -1,736 +1,736 @@
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"/>
11
- <img :src="imageurl"
12
- style="width: 20px;margin-bottom: 5px;position: absolute;left: 62%;bottom: 43%;"
13
- alt=""
14
- @click="changepass()"/>
15
- <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
16
- </p>
17
- <div class="row">
18
- <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"
19
- @click="showoff()">
20
- <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave"
21
- @click="showon()">
22
- <span class="text-left font">记住密码</span>
23
- <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '1'"
24
- @click="showoff1()">
25
- <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '2'"
26
- @click="showon1()">
27
- <span class="text-left font">自动登录</span>
28
- <p></p>
29
- <span class="devicetext">设备码:{{ deviceIemi }}</span>
30
- </div>
31
- </div>
32
- </div>
33
- </div>
34
- <!--<load-appdata @ready="onReady"></load-appdata>-->
35
- <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
36
- <div id="loading" class="loading">登陆中...</div>
37
- </div>
38
- <modal :show.sync="modifyPassword" backdrop="false">
39
- <header slot="modal-header" class="modal-header">
40
- </header>
41
- <article slot="modal-body" class="modal-body">
42
- <modify-pass-word :sourse="login" :weak-password="weakPassword" v-if="modifyPassword"
43
- v-on:success="success"></modify-pass-word>
44
- </article>
45
- <footer slot="modal-footer" class="modal-footer">
46
- </footer>
47
- </modal>
48
- </div>
49
- </template>
50
-
51
- <script>
52
-
53
- /**
54
- * 说明:
55
- * /rs/vue 请求获取到的配置文件有关配置项目
56
- * telephone.LoginApp.weakPassword:为true 是判断是否弱密码校验
57
- *
58
- * globle 校验参数 Device_IEMI 是否需要校验设备iemi编码
59
- *
60
- */
61
-
62
-
63
- import Vue from 'vue'
64
- import * as Util from '../../Util'
65
- import JSEncrypt from 'jsencrypt'
66
- //获取json配置文件
67
- let asyncReady = async function (self, url) {
68
- try {
69
- console.log("获取营收配置文件和参数【开始】")
70
- await self.$appdata.load(true)
71
- console.log("获取营收配置文件和参数【结束】,开始获取vue配置文件【开始】")
72
- let that = self
73
- let res = await Vue.resetget(`${url}/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
74
- that.$set('config', res.data)
75
- Vue.config2 = res.data
76
- // 判断是否需要弱密码校验
77
- if (self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword) {
78
- self.weakPassword = self.config.telephone.LoginApp.weakPassword
79
- }
80
- console.log("手机端获取.json文件")
81
- console.log(JSON.stringify(self.config))
82
- return true
83
- } catch (error) {
84
- // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
85
- self.$showMessage('登录系统: 获取配置文件失败,请检查网络后重新登陆!')
86
- return false
87
- }
88
- }
89
-
90
- //装载业务数据
91
- let asyncLoadData = async function (self, url) {
92
- try {
93
- // 读取报建本地配置文件
94
- var result = HostApp.readLocalFile('workflow_apply.json')
95
- if (result.code == 500) {
96
- console.log('不存在流程配置文件,即不使用报建app')
97
- return
98
- }
99
- var data = JSON.parse(result.data)
100
- console.log('读取报建配置文件成功,存入缓存中的data=>' + JSON.stringify(data))
101
- Vue.workflow_vue = Vue.prototype.$workflow_vue = data
102
- } catch (error) {
103
- // 此处业务数据装载异常不做任何处理,理论上不会有任何异常,只有当app版本端版本较低无readlocalfile时会异常
104
- console.log(error)
105
- }
106
- }
107
-
108
- export default {
109
- title: '登录系统',
110
- data() {
111
- return {
112
- loaderShow: false,
113
- config: {},
114
- weakPassword: false,
115
- modifyPassword: false,
116
- ename: '',
117
- login: 'login',
118
- password: '',
119
- showsave: true,
120
- showauto: '2', // 1 自动登陆 2取消自动登陆
121
- showpass: false,
122
- imageurl: require('../../assets/miwen.png'),
123
- deviceIemi: '无法获取该设备码,请联系管理员',
124
- loginSafe: false,
125
- margintop: document.documentElement.clientHeight * 0.1
126
- }
127
- },
128
-
129
- ready() {
130
- if (Vue.android) {
131
- const userCache = this.$androidUtil.getPreference('login_user_cache')
132
- this.showauto = this.$androidUtil.getPreference('auto_login')
133
- this.showauto = this.showauto ? this.showauto : '2'
134
- console.log(`自动登陆标识ready:${this.showauto}`)
135
- if (userCache) {
136
- const userCacheJSON = JSON.parse(userCache.replace(/\'/g, '\"'))
137
- this.password = userCacheJSON.password
138
- this.ename = userCacheJSON.username
139
- }
140
- this.deviceIemi = this.$androidUtil.getDeviceIEMI()
141
- console.log(`手机设备码:${this.deviceIemi}`)
142
- if (this.showauto == '1' && this.password) {
143
- this.confirm()
144
- }
145
- }
146
- },
147
- methods: {
148
- success(val) {
149
- // 修改密码成功
150
- this.modifyPassword = false
151
- this.password = val
152
- },
153
- // 对资源菜单进行排序
154
- sortFunctions(val) {
155
- if (val && val.length > 0) {
156
- for (var i = 0; i < val.length - 1; i++) {
157
- for (var j = 0; j < val.length - 1 - i; j++) {
158
- if (val[j].position > val[j + 1].position) {
159
- var temp = val[j + 1]
160
- val[j + 1] = val[j]
161
- val[j] = temp;
162
- }
163
- }
164
- }
165
- return val
166
- }
167
- return val
168
- },
169
- // 记住密码选中/未选中
170
- showoff() {
171
- this.showsave = false
172
- },
173
- showon() {
174
- this.showsave = true
175
- },
176
- showoff1() {
177
- this.showauto = '2'
178
- },
179
- showon1() {
180
- this.showauto = '1'
181
- },
182
- changepass() {
183
- this.showpass = this.showpass ? false : true
184
- if (this.showpass) {
185
- this.imageurl = require("../../assets/mingwen.png")
186
- } else {
187
- this.imageurl = require("../../assets/miwen.png")
188
- }
189
- },
190
- async confirm() {
191
- this.loaderShow = true
192
- console.log('Vue.android:' + Vue.android)
193
- const userData = {username: this.ename, password: this.password}
194
- console.log('获取登陆信息:' + userData)
195
- Vue.dataUrl = this.$androidUtil.getProxyUrl() + "/"
196
- // rsa加密
197
- let encrypt = new JSEncrypt();
198
- encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
199
- const userDataEncrypt = encrypt.encrypt(JSON.stringify(userData))
200
- console.log("加密后的用户登录信息", userDataEncrypt)
201
- try {
202
- let ret = {}
203
- try {
204
- ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/新手机服务`, userDataEncrypt, {
205
- resolveMsg: null,
206
- rejectMsg: null
207
- })
208
- console.log('获取登陆信息:', ret.data)
209
- if(ret.data.state == '离职'){
210
- this.loaderShow = false
211
- this.$showMessage('登录失败!用户名或密码错误!')
212
- return
213
- }
214
- //秦华---(siteId==站点id)===============(flatId==平板id)
215
- this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || '')
216
- this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || '')
217
- this.$androidUtil.setPreference('name', ret.data.name || '')
218
- this.$androidUtil.setPreference('ename', ret.data.ename || '')
219
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
220
- throw {status: ret.data.code, message: ret.data.msg}
221
- }
222
- } catch (e) {
223
- if (Vue.android) {
224
- this.loaderShow = false
225
- this.$showMessage(e.message ? e.message : '登录失败!用户名或密码错误!')
226
- }
227
- return
228
- }
229
-
230
- // 设置登录人
231
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
232
- Vue.user = Util.f = ret.data.data
233
- } else {
234
- Vue.user = Util.f = ret.data
235
- }
236
-
237
- // 对资源菜单进行排序
238
- let viewDetails = await Vue.resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, {
239
- source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($功能权限$) != -1)',
240
- userid: Vue.user.id
241
- }, {resolveMsg: null, rejectMsg: null})
242
- const rithtList = viewDetails.data
243
- Vue.user.r = []
244
- rithtList.forEach(x => Vue.user.r.push(x.name))
245
- // 功能排序
246
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
247
- Vue.functions = this.sortFunctions(ret.data.data.functions)
248
- } else {
249
- Vue.functions = this.sortFunctions(ret.data.functions)
250
- }
251
- console.log('登陆人信息', JSON.stringify(Vue.user))
252
- let userStr
253
- if (Vue.android) {
254
- console.log(`Device_IEMI:${this.$androidUtil.getPreference('Device_IEMI')}`)
255
- // 判断是否需要验证 设备码
256
- if (this.$androidUtil.getPreference('Device_IEMI')) {
257
- console.log(`手机设备码:${this.deviceIemi}`)
258
- let result = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
259
- data: {
260
- items: '*',
261
- tablename: 't_equipment',
262
- orderitem: 'id desc',
263
- condition: `f_terminal_number = '${this.deviceIemi}' and f_state = '正常'`
264
- }
265
- }, {resolveMsg: null, rejectMsg: null})
266
- console.log(`检测设备码存在是否:${result.data.length}`)
267
- if (result.data.length == 0) {
268
- HostApp.alert('设备码未绑定,请联系管理员!')
269
- return
270
- }
271
- }
272
- if (this.showsave) {
273
- userStr = `{'username':'${this.ename}','password':'${this.password}'}`
274
- } else {
275
- userStr = `{'username':'${this.ename}','password':''}`
276
- }
277
- console.log(this.showauto)
278
- this.$androidUtil.setPreference('login_user_cache', userStr)
279
- this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
280
- this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
281
- this.$androidUtil.setPreference('f_orgid', Util.f.orgid)
282
- this.$androidUtil.setPreference('f_role_name', Util.f.f_role_name || '')
283
- console.log("自动登陆标识" + Util.f.f_role_name)
284
- console.log(this.showauto)
285
- this.$androidUtil.setPreference('auto_login', this.showauto)
286
- }
287
- // 设置当前登录人信息
288
- if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
289
- Vue.$login = Vue.prototype.$login = {jwt: ret.data.data.id,
290
- toStandardDateString () {
291
- let dt = new Date()
292
- let month = dt.getMonth() + 1
293
- let date = dt.getDate()
294
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
295
- }, toStandardTimeString () {
296
- let dt = new Date()
297
- let month = dt.getMonth()+1
298
- let date = dt.getDate()
299
- let hour = dt.getHours()
300
- let min = dt.getMinutes()
301
- let sec = dt.getSeconds()
302
- return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
303
- + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
304
- }}
305
- } else {
306
- Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
307
- toStandardDateString () {
308
- let dt = new Date()
309
- let month = dt.getMonth() + 1
310
- let date = dt.getDate()
311
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
312
- }, toStandardTimeString () {
313
- let dt = new Date()
314
- let month = dt.getMonth()+1
315
- let date = dt.getDate()
316
- let hour = dt.getHours()
317
- let min = dt.getMinutes()
318
- let sec = dt.getSeconds()
319
- return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
320
- + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
321
- }}
322
- }
323
- // 获取参数
324
- console.log('获取参数system以及安检参数')
325
- const flag = await asyncReady(this, this.$androidUtil.getProxyUrl())
326
- if (!flag) {
327
- this.loaderShow = false
328
- console.log('获取参数异常')
329
- return
330
- }
331
- console.log('获取参数结束')
332
- this.loaderShow = false
333
- // 弱口令验证
334
- if (this.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(this.password))) {
335
- await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
336
- this.modifyPassword = true
337
- return
338
- }
339
- this.$androidUtil.setPreference('current_create_current_address', JSON.stringify({
340
- f_address: '',
341
- f_area: '',
342
- f_slice_area: '',
343
- f_street: '',
344
- f_residential_area: ''
345
- }).replaceAll('"', '\''))
346
- this.$goto('nav-bottom')
347
- } catch (e) {
348
- if (Vue.android) {
349
- this.loaderShow = false
350
- }
351
- console.error("登录异常,LoginApp的confirm函数错误", e)
352
- this.$showMessage("登陆失败!,")
353
- }
354
- },
355
- },
356
- watch: {
357
- 'config'(val) {
358
- Vue.config = val
359
- }
360
- }
361
- }
362
- </script>
363
- <style scoped="">
364
- .devicetext {
365
- font: 13px PingFang-SC-Medium;
366
- position: fixed;
367
- width: 100%;
368
- bottom: 13px;
369
- transform: translate(-50%, -50%);
370
- }
371
-
372
- /*输入框样式*/
373
- /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
374
- * {
375
- box-sizing: border-box;
376
- margin: 0;
377
- padding: 0;
378
- font-weight: 300;
379
- }
380
-
381
- .loginbg {
382
- font-family: 'Source Sans Pro', sans-serif;
383
- color: white;
384
- font-weight: 300;
385
- }
386
-
387
- .loginbg ::-webkit-input-placeholder {
388
- /* WebKit browsers */
389
- font-family: 'Source Sans Pro', sans-serif;
390
- color: white;
391
- font-weight: 300;
392
- }
393
-
394
- .loginbg :-moz-placeholder {
395
- /* Mozilla Firefox 4 to 18 */
396
- font-family: 'Source Sans Pro', sans-serif;
397
- color: white;
398
- opacity: 1;
399
- font-weight: 300;
400
- }
401
-
402
- .loginbg ::-moz-placeholder {
403
- /* Mozilla Firefox 19+ */
404
- font-family: 'Source Sans Pro', sans-serif;
405
- color: white;
406
- opacity: 1;
407
- font-weight: 300;
408
- }
409
-
410
- .loginbg :-ms-input-placeholder {
411
- /* Internet Explorer 10+ */
412
- font-family: 'Source Sans Pro', sans-serif;
413
- color: white;
414
- font-weight: 300;
415
- }
416
-
417
- .wrapper {
418
- /*background: #2D83BA;
419
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
420
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
421
- opacity: 0.8;*/
422
- /*position: absolute;*/
423
- /*top: 50%;
424
- right: 10%;
425
- width: 40%;
426
- height: 350px;
427
- margin-top: -150px;*/
428
- overflow: hidden;
429
- }
430
-
431
- .wrapper.form-success .container h3 {
432
- -webkit-transform: translateY(85px);
433
- -ms-transform: translateY(85px);
434
- transform: translateY(85px);
435
- }
436
-
437
- .container {
438
- /*max-width: 350px;*/
439
- margin: 0 auto;
440
- /*padding: 30px 100px 50px 100px;
441
- height: 350px;*/
442
- text-align: center;
443
- /*以下增加*/
444
- /*background: #2D83BA;
445
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
446
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);*/
447
- opacity: 0.8;
448
- }
449
-
450
- .container h3 {
451
- font-size: 40px;
452
- -webkit-transition-duration: 1s;
453
- transition-duration: 1s;
454
- -webkit-transition-timing-function: ease-in-out;
455
- transition-timing-function: ease-in-out;
456
- font-weight: 200;
457
- }
458
-
459
- .form {
460
- padding: 20px 0;
461
- /*margin-top: 15%;*/
462
- position: relative;
463
- z-index: 2;
464
- }
465
-
466
- .form input {
467
- -webkit-appearance: none;
468
- -moz-appearance: none;
469
- appearance: none;
470
- outline: 0;
471
- border: 1px solid #50ABE6;
472
- background-color: #50ABE6;
473
- width: 250px;
474
- border-radius: 3px;
475
- padding: 10px 15px;
476
- margin: 0 auto 10px auto;
477
- display: block;
478
- text-align: center;
479
- font-size: 18px;
480
- color: white;
481
- -webkit-transition-duration: 0.25s;
482
- transition-duration: 0.25s;
483
- font-weight: 300;
484
- }
485
-
486
- .form input:hover {
487
- background-color: rgba(255, 255, 255, 0.4);
488
- }
489
-
490
- .form input:focus {
491
- background-color: white;
492
- width: 300px;
493
- color: #53e3a6;
494
- }
495
-
496
- .usericon {
497
- background-image: url(../../assets/usericon.png);
498
- background-repeat: no-repeat;
499
- background-size: 30px;
500
- background-position-x: 8px;
501
- background-position-y: 8px;
502
- }
503
-
504
- .psicon {
505
- background-image: url(../../assets/psicon.png);
506
- background-repeat: no-repeat;
507
- background-size: 30px;
508
- background-position-x: 8px;
509
- background-position-y: 8px;
510
- }
511
-
512
- .form button {
513
- -webkit-appearance: none;
514
- -moz-appearance: none;
515
- appearance: none;
516
- outline: 0;
517
- background-color: white;
518
- border: 0;
519
- padding: 10px 15px;
520
- color: #253830;
521
- border-radius: 3px;
522
- width: 250px;
523
- cursor: pointer;
524
- font-size: 18px;
525
- -webkit-transition-duration: 0.25s;
526
- transition-duration: 0.25s;
527
- }
528
-
529
- .form button:hover {
530
- background-color: #f5f7f9;
531
- }
532
-
533
- /*注册字体样式*/
534
- .form span {
535
- color: #fff;
536
- display: table-footer-group;
537
- position: absolute;
538
- right: 10px;
539
- margin-top: 10px;
540
- cursor: pointer;
541
- }
542
-
543
- .logotitle {
544
- color: #fff;
545
- position: absolute;
546
- top: 50px;
547
- left: 50px;
548
- font-size: 50px;
549
- }
550
-
551
- /*注册模态框界面样式*/
552
- .modifystyle {
553
- background: #FCFEEE;
554
- }
555
-
556
- .modifystyle div {
557
- height: auto;
558
- margin-bottom: 15px;
559
- /*text-align: center;*/
560
- /*margin-left: 20%;*/
561
- }
562
-
563
- /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
564
- .modifystyle div input + span {
565
- top: 0 !important;
566
- right: 32%;
567
- }
568
-
569
- .modifystyle span {
570
- color: red;
571
- }
572
-
573
- /* 通告区内容 */
574
- .notice-board {
575
- height: auto;
576
- position: absolute;
577
- top: 50%;
578
- margin-top: -150px;
579
- margin-left: 100px;
580
- color: #fff;
581
- }
582
-
583
- /*修改密码底部按钮部分样式*/
584
- .footerbtn {
585
- text-align: center;
586
- padding: 15px;
587
- }
588
-
589
- .footerbtn button {
590
- width: 100px;
591
- margin-left: 20px;
592
- }
593
-
594
- .bg-bubbles {
595
- position: absolute;
596
- top: 0;
597
- left: 0;
598
- width: 100%;
599
- height: 100%;
600
- z-index: 1;
601
- }
602
-
603
- .bg-bubbles li {
604
- position: absolute;
605
- list-style: none;
606
- display: block;
607
- width: 40px;
608
- height: 40px;
609
- background-color: rgba(255, 255, 255, 0.15);
610
- bottom: -160px;
611
- -webkit-animation: square 25s infinite;
612
- animation: square 25s infinite;
613
- -webkit-transition-timing-function: linear;
614
- transition-timing-function: linear;
615
- }
616
-
617
- .bg-bubbles li:nth-child(1) {
618
- left: 10%;
619
- }
620
-
621
- .bg-bubbles li:nth-child(2) {
622
- left: 20%;
623
- width: 80px;
624
- height: 80px;
625
- -webkit-animation-delay: 2s;
626
- animation-delay: 2s;
627
- -webkit-animation-duration: 17s;
628
- animation-duration: 17s;
629
- }
630
-
631
- .bg-bubbles li:nth-child(3) {
632
- left: 25%;
633
- -webkit-animation-delay: 4s;
634
- animation-delay: 4s;
635
- }
636
-
637
- .bg-bubbles li:nth-child(4) {
638
- left: 40%;
639
- width: 60px;
640
- height: 60px;
641
- -webkit-animation-duration: 22s;
642
- animation-duration: 22s;
643
- background-color: rgba(255, 255, 255, 0.25);
644
- }
645
-
646
- .bg-bubbles li:nth-child(5) {
647
- left: 70%;
648
- }
649
-
650
- .bg-bubbles li:nth-child(6) {
651
- left: 80%;
652
- width: 120px;
653
- height: 120px;
654
- -webkit-animation-delay: 3s;
655
- animation-delay: 3s;
656
- background-color: rgba(255, 255, 255, 0.2);
657
- }
658
-
659
- .bg-bubbles li:nth-child(7) {
660
- left: 32%;
661
- width: 160px;
662
- height: 160px;
663
- -webkit-animation-delay: 7s;
664
- animation-delay: 7s;
665
- }
666
-
667
- .bg-bubbles li:nth-child(8) {
668
- left: 55%;
669
- width: 20px;
670
- height: 20px;
671
- -webkit-animation-delay: 15s;
672
- animation-delay: 15s;
673
- -webkit-animation-duration: 40s;
674
- animation-duration: 40s;
675
- }
676
-
677
- .bg-bubbles li:nth-child(9) {
678
- left: 25%;
679
- width: 10px;
680
- height: 10px;
681
- -webkit-animation-delay: 2s;
682
- animation-delay: 2s;
683
- -webkit-animation-duration: 40s;
684
- animation-duration: 40s;
685
- background-color: rgba(255, 255, 255, 0.3);
686
- }
687
-
688
- .bg-bubbles li:nth-child(10) {
689
- left: 90%;
690
- width: 160px;
691
- height: 160px;
692
- -webkit-animation-delay: 11s;
693
- animation-delay: 11s;
694
- }
695
-
696
- @-webkit-keyframes square {
697
- 0% {
698
- -webkit-transform: translateY(0);
699
- transform: translateY(0);
700
- }
701
- 100% {
702
- -webkit-transform: translateY(-700px) rotate(600deg);
703
- transform: translateY(-700px) rotate(600deg);
704
- }
705
- }
706
-
707
- @keyframes square {
708
- 0% {
709
- -webkit-transform: translateY(0);
710
- transform: translateY(0);
711
- }
712
- 100% {
713
- -webkit-transform: translateY(-700px) rotate(600deg);
714
- transform: translateY(-700px) rotate(600deg);
715
- }
716
- }
717
-
718
- .loading {
719
- width: 36%;
720
- height: 7%;
721
- position: absolute;
722
- top: 30%;
723
- left: 32%;
724
- line-height: 56px;
725
- color: #fff;
726
- padding-left: 60px;
727
- font-size: 15px;
728
- background: #000 url(../../assets/loging.gif) no-repeat 10px 50%;
729
- opacity: 0.7;
730
- z-index: 9999;
731
- -moz-border-radius: 20px;
732
- -webkit-border-radius: 20px;
733
- border-radius: 20px;
734
- filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
735
- }
736
- </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"/>
11
+ <img :src="imageurl"
12
+ style="width: 20px;margin-bottom: 5px;position: absolute;left: 62%;bottom: 43%;"
13
+ alt=""
14
+ @click="changepass()"/>
15
+ <button type="button" id="login-button" @click.prevent="confirm()"><strong>登录</strong></button>
16
+ </p>
17
+ <div class="row">
18
+ <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showsave"
19
+ @click="showoff()">
20
+ <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="!showsave"
21
+ @click="showon()">
22
+ <span class="text-left font">记住密码</span>
23
+ <img src="../../assets/选中.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '1'"
24
+ @click="showoff1()">
25
+ <img src="../../assets/未选.png" style="width: 20px;margin-bottom: 5px" alt="" v-if="showauto == '2'"
26
+ @click="showon1()">
27
+ <span class="text-left font">自动登录</span>
28
+ <p></p>
29
+ <span class="devicetext">设备码:{{ deviceIemi }}</span>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ <!--<load-appdata @ready="onReady"></load-appdata>-->
35
+ <div style="width: 100%;height: 100%;position: fixed;top: 0px;" v-show="loaderShow">
36
+ <div id="loading" class="loading">登陆中...</div>
37
+ </div>
38
+ <modal :show.sync="modifyPassword" backdrop="false">
39
+ <header slot="modal-header" class="modal-header">
40
+ </header>
41
+ <article slot="modal-body" class="modal-body">
42
+ <modify-pass-word :sourse="login" :weak-password="weakPassword" v-if="modifyPassword"
43
+ v-on:success="success"></modify-pass-word>
44
+ </article>
45
+ <footer slot="modal-footer" class="modal-footer">
46
+ </footer>
47
+ </modal>
48
+ </div>
49
+ </template>
50
+
51
+ <script>
52
+
53
+ /**
54
+ * 说明:
55
+ * /rs/vue 请求获取到的配置文件有关配置项目
56
+ * telephone.LoginApp.weakPassword:为true 是判断是否弱密码校验
57
+ *
58
+ * globle 校验参数 Device_IEMI 是否需要校验设备iemi编码
59
+ *
60
+ */
61
+
62
+
63
+ import Vue from 'vue'
64
+ import * as Util from '../../Util'
65
+ import JSEncrypt from 'jsencrypt'
66
+ //获取json配置文件
67
+ let asyncReady = async function (self, url) {
68
+ try {
69
+ console.log("获取营收配置文件和参数【开始】")
70
+ await self.$appdata.load(true)
71
+ console.log("获取营收配置文件和参数【结束】,开始获取vue配置文件【开始】")
72
+ let that = self
73
+ let res = await Vue.resetget(`${url}/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
74
+ that.$set('config', res.data)
75
+ Vue.config2 = res.data
76
+ // 判断是否需要弱密码校验
77
+ if (self.config && self.config.telephone && self.config.telephone.LoginApp && "undefined" != typeof self.config.telephone.LoginApp.weakPassword) {
78
+ self.weakPassword = self.config.telephone.LoginApp.weakPassword
79
+ }
80
+ console.log("手机端获取.json文件")
81
+ console.log(JSON.stringify(self.config))
82
+ return true
83
+ } catch (error) {
84
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常
85
+ self.$showMessage('登录系统: 获取配置文件失败,请检查网络后重新登陆!')
86
+ return false
87
+ }
88
+ }
89
+
90
+ //装载业务数据
91
+ let asyncLoadData = async function (self, url) {
92
+ try {
93
+ // 读取报建本地配置文件
94
+ var result = HostApp.readLocalFile('workflow_apply.json')
95
+ if (result.code == 500) {
96
+ console.log('不存在流程配置文件,即不使用报建app')
97
+ return
98
+ }
99
+ var data = JSON.parse(result.data)
100
+ console.log('读取报建配置文件成功,存入缓存中的data=>' + JSON.stringify(data))
101
+ Vue.workflow_vue = Vue.prototype.$workflow_vue = data
102
+ } catch (error) {
103
+ // 此处业务数据装载异常不做任何处理,理论上不会有任何异常,只有当app版本端版本较低无readlocalfile时会异常
104
+ console.log(error)
105
+ }
106
+ }
107
+
108
+ export default {
109
+ title: '登录系统',
110
+ data() {
111
+ return {
112
+ loaderShow: false,
113
+ config: {},
114
+ weakPassword: false,
115
+ modifyPassword: false,
116
+ ename: '',
117
+ login: 'login',
118
+ password: '',
119
+ showsave: true,
120
+ showauto: '2', // 1 自动登陆 2取消自动登陆
121
+ showpass: false,
122
+ imageurl: require('../../assets/miwen.png'),
123
+ deviceIemi: '无法获取该设备码,请联系管理员',
124
+ loginSafe: false,
125
+ margintop: document.documentElement.clientHeight * 0.1
126
+ }
127
+ },
128
+
129
+ ready() {
130
+ if (Vue.android) {
131
+ const userCache = this.$androidUtil.getPreference('login_user_cache')
132
+ this.showauto = this.$androidUtil.getPreference('auto_login')
133
+ this.showauto = this.showauto ? this.showauto : '2'
134
+ console.log(`自动登陆标识ready:${this.showauto}`)
135
+ if (userCache) {
136
+ const userCacheJSON = JSON.parse(userCache.replace(/\'/g, '\"'))
137
+ this.password = userCacheJSON.password
138
+ this.ename = userCacheJSON.username
139
+ }
140
+ this.deviceIemi = this.$androidUtil.getDeviceIEMI()
141
+ console.log(`手机设备码:${this.deviceIemi}`)
142
+ if (this.showauto == '1' && this.password) {
143
+ this.confirm()
144
+ }
145
+ }
146
+ },
147
+ methods: {
148
+ success(val) {
149
+ // 修改密码成功
150
+ this.modifyPassword = false
151
+ this.password = val
152
+ },
153
+ // 对资源菜单进行排序
154
+ sortFunctions(val) {
155
+ if (val && val.length > 0) {
156
+ for (var i = 0; i < val.length - 1; i++) {
157
+ for (var j = 0; j < val.length - 1 - i; j++) {
158
+ if (val[j].position > val[j + 1].position) {
159
+ var temp = val[j + 1]
160
+ val[j + 1] = val[j]
161
+ val[j] = temp;
162
+ }
163
+ }
164
+ }
165
+ return val
166
+ }
167
+ return val
168
+ },
169
+ // 记住密码选中/未选中
170
+ showoff() {
171
+ this.showsave = false
172
+ },
173
+ showon() {
174
+ this.showsave = true
175
+ },
176
+ showoff1() {
177
+ this.showauto = '2'
178
+ },
179
+ showon1() {
180
+ this.showauto = '1'
181
+ },
182
+ changepass() {
183
+ this.showpass = this.showpass ? false : true
184
+ if (this.showpass) {
185
+ this.imageurl = require("../../assets/mingwen.png")
186
+ } else {
187
+ this.imageurl = require("../../assets/miwen.png")
188
+ }
189
+ },
190
+ async confirm() {
191
+ this.loaderShow = true
192
+ console.log('Vue.android:' + Vue.android)
193
+ const userData = {username: this.ename, password: this.password}
194
+ console.log('获取登陆信息:' + userData)
195
+ Vue.dataUrl = this.$androidUtil.getProxyUrl() + "/"
196
+ // rsa加密
197
+ let encrypt = new JSEncrypt();
198
+ encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
199
+ const userDataEncrypt = encrypt.encrypt(JSON.stringify(userData))
200
+ console.log("加密后的用户登录信息", userDataEncrypt)
201
+ try {
202
+ let ret = {}
203
+ try {
204
+ ret = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/user/userLogin/新手机服务`, userDataEncrypt, {
205
+ resolveMsg: null,
206
+ rejectMsg: null
207
+ })
208
+ console.log('获取登陆信息:', ret.data)
209
+ if(ret.data.state == '离职'){
210
+ this.loaderShow = false
211
+ this.$showMessage('登录失败!用户名或密码错误!')
212
+ return
213
+ }
214
+ //秦华---(siteId==站点id)===============(flatId==平板id)
215
+ this.$androidUtil.setPreference('siteId', ret.data.f_extend1 || '')
216
+ this.$androidUtil.setPreference('flatId', ret.data.f_extend2 || '')
217
+ this.$androidUtil.setPreference('name', ret.data.name || '')
218
+ this.$androidUtil.setPreference('ename', ret.data.ename || '')
219
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code !== 200) {
220
+ throw {status: ret.data.code, message: ret.data.msg}
221
+ }
222
+ } catch (e) {
223
+ if (Vue.android) {
224
+ this.loaderShow = false
225
+ this.$showMessage(e.message ? e.message : '登录失败!用户名或密码错误!')
226
+ }
227
+ return
228
+ }
229
+
230
+ // 设置登录人
231
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
232
+ Vue.user = Util.f = ret.data.data
233
+ } else {
234
+ Vue.user = Util.f = ret.data
235
+ }
236
+
237
+ // 对资源菜单进行排序
238
+ let viewDetails = await Vue.resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, {
239
+ source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($功能权限$) != -1)',
240
+ userid: Vue.user.id
241
+ }, {resolveMsg: null, rejectMsg: null})
242
+ const rithtList = viewDetails.data
243
+ Vue.user.r = []
244
+ rithtList.forEach(x => Vue.user.r.push(x.name))
245
+ // 功能排序
246
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).data.startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
247
+ Vue.functions = this.sortFunctions(ret.data.data.functions)
248
+ } else {
249
+ Vue.functions = this.sortFunctions(ret.data.functions)
250
+ }
251
+ console.log('登陆人信息', JSON.stringify(Vue.user))
252
+ let userStr
253
+ if (Vue.android) {
254
+ console.log(`Device_IEMI:${this.$androidUtil.getPreference('Device_IEMI')}`)
255
+ // 判断是否需要验证 设备码
256
+ if (this.$androidUtil.getPreference('Device_IEMI')) {
257
+ console.log(`手机设备码:${this.deviceIemi}`)
258
+ let result = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
259
+ data: {
260
+ items: '*',
261
+ tablename: 't_equipment',
262
+ orderitem: 'id desc',
263
+ condition: `f_terminal_number = '${this.deviceIemi}' and f_state = '正常'`
264
+ }
265
+ }, {resolveMsg: null, rejectMsg: null})
266
+ console.log(`检测设备码存在是否:${result.data.length}`)
267
+ if (result.data.length == 0) {
268
+ HostApp.alert('设备码未绑定,请联系管理员!')
269
+ return
270
+ }
271
+ }
272
+ if (this.showsave) {
273
+ userStr = `{'username':'${this.ename}','password':'${this.password}'}`
274
+ } else {
275
+ userStr = `{'username':'${this.ename}','password':''}`
276
+ }
277
+ console.log(this.showauto)
278
+ this.$androidUtil.setPreference('login_user_cache', userStr)
279
+ this.$androidUtil.setPreference('f_repairman_id', Util.f.id)
280
+ this.$androidUtil.setPreference('f_repairman_name', Util.f.name)
281
+ this.$androidUtil.setPreference('f_orgid', Util.f.orgid)
282
+ this.$androidUtil.setPreference('f_role_name', Util.f.f_role_name || '')
283
+ console.log("自动登陆标识" + Util.f.f_role_name)
284
+ console.log(this.showauto)
285
+ this.$androidUtil.setPreference('auto_login', this.showauto)
286
+ }
287
+ // 设置当前登录人信息
288
+ if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
289
+ Vue.$login = Vue.prototype.$login = {jwt: ret.data.data.id,
290
+ toStandardDateString () {
291
+ let dt = new Date()
292
+ let month = dt.getMonth() + 1
293
+ let date = dt.getDate()
294
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
295
+ }, toStandardTimeString () {
296
+ let dt = new Date()
297
+ let month = dt.getMonth()+1
298
+ let date = dt.getDate()
299
+ let hour = dt.getHours()
300
+ let min = dt.getMinutes()
301
+ let sec = dt.getSeconds()
302
+ return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
303
+ + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
304
+ }}
305
+ } else {
306
+ Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
307
+ toStandardDateString () {
308
+ let dt = new Date()
309
+ let month = dt.getMonth() + 1
310
+ let date = dt.getDate()
311
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
312
+ }, toStandardTimeString () {
313
+ let dt = new Date()
314
+ let month = dt.getMonth()+1
315
+ let date = dt.getDate()
316
+ let hour = dt.getHours()
317
+ let min = dt.getMinutes()
318
+ let sec = dt.getSeconds()
319
+ return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
320
+ + ' ' + (hour<10? '0'+ hour : hour) + ':' + (min<10? '0'+ min : min) + ':' + (sec<10? '0'+ sec : sec)
321
+ }}
322
+ }
323
+ // 获取参数
324
+ console.log('获取参数system以及安检参数')
325
+ const flag = await asyncReady(this, this.$androidUtil.getProxyUrl())
326
+ if (!flag) {
327
+ this.loaderShow = false
328
+ console.log('获取参数异常')
329
+ return
330
+ }
331
+ console.log('获取参数结束')
332
+ this.loaderShow = false
333
+ // 弱口令验证
334
+ if (this.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(this.password))) {
335
+ await this.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm'])
336
+ this.modifyPassword = true
337
+ return
338
+ }
339
+ this.$androidUtil.setPreference('current_create_current_address', JSON.stringify({
340
+ f_address: '',
341
+ f_area: '',
342
+ f_slice_area: '',
343
+ f_street: '',
344
+ f_residential_area: ''
345
+ }).replaceAll('"', '\''))
346
+ this.$goto('nav-bottom')
347
+ } catch (e) {
348
+ if (Vue.android) {
349
+ this.loaderShow = false
350
+ }
351
+ console.error("登录异常,LoginApp的confirm函数错误", e)
352
+ this.$showMessage("登陆失败!,")
353
+ }
354
+ },
355
+ },
356
+ watch: {
357
+ 'config'(val) {
358
+ Vue.config = val
359
+ }
360
+ }
361
+ }
362
+ </script>
363
+ <style scoped="">
364
+ .devicetext {
365
+ font: 13px PingFang-SC-Medium;
366
+ position: fixed;
367
+ width: 100%;
368
+ bottom: 13px;
369
+ transform: translate(-50%, -50%);
370
+ }
371
+
372
+ /*输入框样式*/
373
+ /*@import url(http://fonts.useso.com/css?family=Source+Sans+Pro:200,300);*/
374
+ * {
375
+ box-sizing: border-box;
376
+ margin: 0;
377
+ padding: 0;
378
+ font-weight: 300;
379
+ }
380
+
381
+ .loginbg {
382
+ font-family: 'Source Sans Pro', sans-serif;
383
+ color: white;
384
+ font-weight: 300;
385
+ }
386
+
387
+ .loginbg ::-webkit-input-placeholder {
388
+ /* WebKit browsers */
389
+ font-family: 'Source Sans Pro', sans-serif;
390
+ color: white;
391
+ font-weight: 300;
392
+ }
393
+
394
+ .loginbg :-moz-placeholder {
395
+ /* Mozilla Firefox 4 to 18 */
396
+ font-family: 'Source Sans Pro', sans-serif;
397
+ color: white;
398
+ opacity: 1;
399
+ font-weight: 300;
400
+ }
401
+
402
+ .loginbg ::-moz-placeholder {
403
+ /* Mozilla Firefox 19+ */
404
+ font-family: 'Source Sans Pro', sans-serif;
405
+ color: white;
406
+ opacity: 1;
407
+ font-weight: 300;
408
+ }
409
+
410
+ .loginbg :-ms-input-placeholder {
411
+ /* Internet Explorer 10+ */
412
+ font-family: 'Source Sans Pro', sans-serif;
413
+ color: white;
414
+ font-weight: 300;
415
+ }
416
+
417
+ .wrapper {
418
+ /*background: #2D83BA;
419
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
420
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
421
+ opacity: 0.8;*/
422
+ /*position: absolute;*/
423
+ /*top: 50%;
424
+ right: 10%;
425
+ width: 40%;
426
+ height: 350px;
427
+ margin-top: -150px;*/
428
+ overflow: hidden;
429
+ }
430
+
431
+ .wrapper.form-success .container h3 {
432
+ -webkit-transform: translateY(85px);
433
+ -ms-transform: translateY(85px);
434
+ transform: translateY(85px);
435
+ }
436
+
437
+ .container {
438
+ /*max-width: 350px;*/
439
+ margin: 0 auto;
440
+ /*padding: 30px 100px 50px 100px;
441
+ height: 350px;*/
442
+ text-align: center;
443
+ /*以下增加*/
444
+ /*background: #2D83BA;
445
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
446
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);*/
447
+ opacity: 0.8;
448
+ }
449
+
450
+ .container h3 {
451
+ font-size: 40px;
452
+ -webkit-transition-duration: 1s;
453
+ transition-duration: 1s;
454
+ -webkit-transition-timing-function: ease-in-out;
455
+ transition-timing-function: ease-in-out;
456
+ font-weight: 200;
457
+ }
458
+
459
+ .form {
460
+ padding: 20px 0;
461
+ /*margin-top: 15%;*/
462
+ position: relative;
463
+ z-index: 2;
464
+ }
465
+
466
+ .form input {
467
+ -webkit-appearance: none;
468
+ -moz-appearance: none;
469
+ appearance: none;
470
+ outline: 0;
471
+ border: 1px solid #50ABE6;
472
+ background-color: #50ABE6;
473
+ width: 250px;
474
+ border-radius: 3px;
475
+ padding: 10px 15px;
476
+ margin: 0 auto 10px auto;
477
+ display: block;
478
+ text-align: center;
479
+ font-size: 18px;
480
+ color: white;
481
+ -webkit-transition-duration: 0.25s;
482
+ transition-duration: 0.25s;
483
+ font-weight: 300;
484
+ }
485
+
486
+ .form input:hover {
487
+ background-color: rgba(255, 255, 255, 0.4);
488
+ }
489
+
490
+ .form input:focus {
491
+ background-color: white;
492
+ width: 300px;
493
+ color: #53e3a6;
494
+ }
495
+
496
+ .usericon {
497
+ background-image: url(../../assets/usericon.png);
498
+ background-repeat: no-repeat;
499
+ background-size: 30px;
500
+ background-position-x: 8px;
501
+ background-position-y: 8px;
502
+ }
503
+
504
+ .psicon {
505
+ background-image: url(../../assets/psicon.png);
506
+ background-repeat: no-repeat;
507
+ background-size: 30px;
508
+ background-position-x: 8px;
509
+ background-position-y: 8px;
510
+ }
511
+
512
+ .form button {
513
+ -webkit-appearance: none;
514
+ -moz-appearance: none;
515
+ appearance: none;
516
+ outline: 0;
517
+ background-color: white;
518
+ border: 0;
519
+ padding: 10px 15px;
520
+ color: #253830;
521
+ border-radius: 3px;
522
+ width: 250px;
523
+ cursor: pointer;
524
+ font-size: 18px;
525
+ -webkit-transition-duration: 0.25s;
526
+ transition-duration: 0.25s;
527
+ }
528
+
529
+ .form button:hover {
530
+ background-color: #f5f7f9;
531
+ }
532
+
533
+ /*注册字体样式*/
534
+ .form span {
535
+ color: #fff;
536
+ display: table-footer-group;
537
+ position: absolute;
538
+ right: 10px;
539
+ margin-top: 10px;
540
+ cursor: pointer;
541
+ }
542
+
543
+ .logotitle {
544
+ color: #fff;
545
+ position: absolute;
546
+ top: 50px;
547
+ left: 50px;
548
+ font-size: 50px;
549
+ }
550
+
551
+ /*注册模态框界面样式*/
552
+ .modifystyle {
553
+ background: #FCFEEE;
554
+ }
555
+
556
+ .modifystyle div {
557
+ height: auto;
558
+ margin-bottom: 15px;
559
+ /*text-align: center;*/
560
+ /*margin-left: 20%;*/
561
+ }
562
+
563
+ /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
564
+ .modifystyle div input + span {
565
+ top: 0 !important;
566
+ right: 32%;
567
+ }
568
+
569
+ .modifystyle span {
570
+ color: red;
571
+ }
572
+
573
+ /* 通告区内容 */
574
+ .notice-board {
575
+ height: auto;
576
+ position: absolute;
577
+ top: 50%;
578
+ margin-top: -150px;
579
+ margin-left: 100px;
580
+ color: #fff;
581
+ }
582
+
583
+ /*修改密码底部按钮部分样式*/
584
+ .footerbtn {
585
+ text-align: center;
586
+ padding: 15px;
587
+ }
588
+
589
+ .footerbtn button {
590
+ width: 100px;
591
+ margin-left: 20px;
592
+ }
593
+
594
+ .bg-bubbles {
595
+ position: absolute;
596
+ top: 0;
597
+ left: 0;
598
+ width: 100%;
599
+ height: 100%;
600
+ z-index: 1;
601
+ }
602
+
603
+ .bg-bubbles li {
604
+ position: absolute;
605
+ list-style: none;
606
+ display: block;
607
+ width: 40px;
608
+ height: 40px;
609
+ background-color: rgba(255, 255, 255, 0.15);
610
+ bottom: -160px;
611
+ -webkit-animation: square 25s infinite;
612
+ animation: square 25s infinite;
613
+ -webkit-transition-timing-function: linear;
614
+ transition-timing-function: linear;
615
+ }
616
+
617
+ .bg-bubbles li:nth-child(1) {
618
+ left: 10%;
619
+ }
620
+
621
+ .bg-bubbles li:nth-child(2) {
622
+ left: 20%;
623
+ width: 80px;
624
+ height: 80px;
625
+ -webkit-animation-delay: 2s;
626
+ animation-delay: 2s;
627
+ -webkit-animation-duration: 17s;
628
+ animation-duration: 17s;
629
+ }
630
+
631
+ .bg-bubbles li:nth-child(3) {
632
+ left: 25%;
633
+ -webkit-animation-delay: 4s;
634
+ animation-delay: 4s;
635
+ }
636
+
637
+ .bg-bubbles li:nth-child(4) {
638
+ left: 40%;
639
+ width: 60px;
640
+ height: 60px;
641
+ -webkit-animation-duration: 22s;
642
+ animation-duration: 22s;
643
+ background-color: rgba(255, 255, 255, 0.25);
644
+ }
645
+
646
+ .bg-bubbles li:nth-child(5) {
647
+ left: 70%;
648
+ }
649
+
650
+ .bg-bubbles li:nth-child(6) {
651
+ left: 80%;
652
+ width: 120px;
653
+ height: 120px;
654
+ -webkit-animation-delay: 3s;
655
+ animation-delay: 3s;
656
+ background-color: rgba(255, 255, 255, 0.2);
657
+ }
658
+
659
+ .bg-bubbles li:nth-child(7) {
660
+ left: 32%;
661
+ width: 160px;
662
+ height: 160px;
663
+ -webkit-animation-delay: 7s;
664
+ animation-delay: 7s;
665
+ }
666
+
667
+ .bg-bubbles li:nth-child(8) {
668
+ left: 55%;
669
+ width: 20px;
670
+ height: 20px;
671
+ -webkit-animation-delay: 15s;
672
+ animation-delay: 15s;
673
+ -webkit-animation-duration: 40s;
674
+ animation-duration: 40s;
675
+ }
676
+
677
+ .bg-bubbles li:nth-child(9) {
678
+ left: 25%;
679
+ width: 10px;
680
+ height: 10px;
681
+ -webkit-animation-delay: 2s;
682
+ animation-delay: 2s;
683
+ -webkit-animation-duration: 40s;
684
+ animation-duration: 40s;
685
+ background-color: rgba(255, 255, 255, 0.3);
686
+ }
687
+
688
+ .bg-bubbles li:nth-child(10) {
689
+ left: 90%;
690
+ width: 160px;
691
+ height: 160px;
692
+ -webkit-animation-delay: 11s;
693
+ animation-delay: 11s;
694
+ }
695
+
696
+ @-webkit-keyframes square {
697
+ 0% {
698
+ -webkit-transform: translateY(0);
699
+ transform: translateY(0);
700
+ }
701
+ 100% {
702
+ -webkit-transform: translateY(-700px) rotate(600deg);
703
+ transform: translateY(-700px) rotate(600deg);
704
+ }
705
+ }
706
+
707
+ @keyframes square {
708
+ 0% {
709
+ -webkit-transform: translateY(0);
710
+ transform: translateY(0);
711
+ }
712
+ 100% {
713
+ -webkit-transform: translateY(-700px) rotate(600deg);
714
+ transform: translateY(-700px) rotate(600deg);
715
+ }
716
+ }
717
+
718
+ .loading {
719
+ width: 36%;
720
+ height: 7%;
721
+ position: absolute;
722
+ top: 30%;
723
+ left: 32%;
724
+ line-height: 56px;
725
+ color: #fff;
726
+ padding-left: 60px;
727
+ font-size: 15px;
728
+ background: #000 url(../../assets/loging.gif) no-repeat 10px 50%;
729
+ opacity: 0.7;
730
+ z-index: 9999;
731
+ -moz-border-radius: 20px;
732
+ -webkit-border-radius: 20px;
733
+ border-radius: 20px;
734
+ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
735
+ }
736
+ </style>