system-phone 3.0.49-57 → 3.0.49-59

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