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