system-phone 3.0.49-42 → 3.0.49-43

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