system-clients 3.2.97 → 3.2.98-weinan

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 (219) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/7.4/checksums/checksums.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  5. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  6. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  7. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  8. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  9. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  10. package/.gradle/7.4/gc.properties +0 -0
  11. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  13. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/.gradle/file-system.probe +0 -0
  15. package/.gradle/vcs-1/gc.properties +0 -0
  16. package/SystemClient.iml +8 -8
  17. package/build/webpack.base.conf.js +85 -85
  18. package/build.gradle +6 -6
  19. package/examples/LoginPage/App.vue +21 -21
  20. package/examples/LoginPage/index.html +11 -11
  21. package/examples/LoginPage/main.js +15 -15
  22. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  23. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  24. package/index.html +21 -21
  25. package/package.json +103 -103
  26. package/src/components/Main.vue +961 -937
  27. package/src/components/TabButton.vue +201 -201
  28. package/src/components/Tabs.vue +67 -67
  29. package/src/components/Util.js +343 -343
  30. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  31. package/src/components/common/ProgressBase.vue +83 -83
  32. package/src/components/equipment/EquipmentManage.vue +83 -83
  33. package/src/components/equipment/PcAdd.vue +115 -115
  34. package/src/components/equipment/PcList.vue +119 -119
  35. package/src/components/equipment/PcManage.vue +61 -61
  36. package/src/components/equipment/PhoneAdd.vue +118 -118
  37. package/src/components/equipment/PhoneList.vue +113 -113
  38. package/src/components/equipment/PhoneManage.vue +61 -61
  39. package/src/components/equipment/PosAdd.vue +323 -319
  40. package/src/components/equipment/PosList.vue +294 -292
  41. package/src/components/equipment/PosManage.vue +138 -138
  42. package/src/components/equipment/PosManageBoth.vue +125 -125
  43. package/src/components/equipment/PosParamAdd.vue +236 -236
  44. package/src/components/equipment/PosParamList.vue +121 -121
  45. package/src/components/equipment/PosParamManage.vue +51 -51
  46. package/src/components/materialManage/materialData.vue +44 -44
  47. package/src/components/materialManage/materialList.vue +255 -255
  48. package/src/components/parammanage/ParamManage.vue +42 -42
  49. package/src/components/parammanage/ParamPage.vue +337 -337
  50. package/src/components/parammanage/ParamPages.vue +222 -222
  51. package/src/components/parammanage/SinglePage.vue +235 -235
  52. package/src/components/parammanage/SinglePages.vue +167 -167
  53. package/src/components/server/AddChangeMsg.vue +66 -66
  54. package/src/components/server/ChangeDeclare.vue +45 -45
  55. package/src/components/server/ImageVieweTest.vue +56 -56
  56. package/src/components/server/ImageViewer.vue +350 -350
  57. package/src/components/server/LeftTree.vue +111 -111
  58. package/src/components/server/LoadData.vue +55 -55
  59. package/src/components/server/Login.vue +37 -20
  60. package/src/components/server/LoginPage.vue +235 -235
  61. package/src/components/server/LoginView.vue +128 -128
  62. package/src/components/server/Menu.vue +188 -188
  63. package/src/components/server/ModifyPw.vue +125 -126
  64. package/src/components/server/PcdBuildingSelect.vue +241 -243
  65. package/src/components/server/ResSelect.vue +175 -169
  66. package/src/components/server/ResSelectGroup.vue +211 -211
  67. package/src/components/server/RightTree.vue +348 -348
  68. package/src/components/server/RoleSelector.vue +89 -90
  69. package/src/components/server/TestResSelect.vue +58 -58
  70. package/src/components/server/TestResSelectGroup.vue +388 -388
  71. package/src/filiale/baole/Login.vue +568 -570
  72. package/src/filiale/baole/system.js +5 -5
  73. package/src/filiale/bayan/PosAdd.vue +369 -0
  74. package/src/filiale/bayan/PosList.vue +349 -0
  75. package/src/filiale/bayan/PosManage.vue +138 -0
  76. package/src/filiale/bayan/system.js +6 -0
  77. package/src/filiale/chengtou/Login.vue +537 -539
  78. package/src/filiale/chengtou/system.js +5 -5
  79. package/src/filiale/dongguan/Login.vue +900 -902
  80. package/src/filiale/dongguan/Main.vue +715 -717
  81. package/src/filiale/dongguan/system.js +6 -6
  82. package/src/filiale/furuike/Login.vue +583 -587
  83. package/src/filiale/furuike/Main.vue +827 -840
  84. package/src/filiale/furuike/system.js +7 -7
  85. package/src/filiale/gehua/Main.vue +807 -809
  86. package/src/filiale/gehua/system.js +6 -6
  87. package/src/filiale/konggang/Login.vue +470 -472
  88. package/src/filiale/konggang/system.js +7 -7
  89. package/src/filiale/qianneng/Login.vue +582 -584
  90. package/src/filiale/qianneng/Main.vue +816 -818
  91. package/src/filiale/qianneng/ModifyPw.vue +107 -108
  92. package/src/filiale/qianneng/system.js +11 -11
  93. package/src/filiale/rizhao/LeftTree.vue +111 -111
  94. package/src/filiale/rizhao/Login.vue +791 -793
  95. package/src/filiale/rizhao/Main.vue +611 -611
  96. package/src/filiale/rizhao/system.js +14 -14
  97. package/src/filiale/shiquan/Login.vue +564 -566
  98. package/src/filiale/shiquan/system.js +8 -8
  99. package/src/filiale/tianyi/Login.vue +571 -573
  100. package/src/filiale/tianyi/system.js +5 -5
  101. package/src/filiale/tongchuan/Login.vue +561 -563
  102. package/src/filiale/tongchuan/Main.vue +1019 -1021
  103. package/src/filiale/tongchuan/system.js +7 -7
  104. package/src/filiale/weinan/Main.vue +923 -924
  105. package/src/filiale/weinan/system.js +7 -7
  106. package/src/filiale/wenxi/Login.vue +535 -537
  107. package/src/filiale/wenxi/Main.vue +785 -787
  108. package/src/filiale/wenxi/system.js +10 -10
  109. package/src/filiale/wuhai/LeftTree.vue +141 -141
  110. package/src/filiale/wuhai/Main.vue +807 -810
  111. package/src/filiale/wuhai/system.js +10 -10
  112. package/src/filiale/yuchuan/Login.vue +889 -891
  113. package/src/filiale/yuchuan/Main.vue +864 -866
  114. package/src/filiale/yuchuan/system.js +10 -10
  115. package/src/filiale/zhoukou/Main.vue +807 -809
  116. package/src/filiale/zhoukou/system.js +6 -6
  117. package/src/plugins/EncryptUtil.js +1 -1
  118. package/src/plugins/GetLoginInfoService.js +173 -13
  119. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  120. package/src/plugins/validation.js +15 -15
  121. package/src/stores/AppData.js +38 -38
  122. package/src/stores/HeatAppData.js +38 -38
  123. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  124. package/src/styles/less/.csscomb.json +304 -304
  125. package/src/styles/less/.csslintrc +19 -19
  126. package/src/styles/less/alerts.less +73 -73
  127. package/src/styles/less/aofeng/animate.min.css +10 -10
  128. package/src/styles/less/aofeng/expandcss.less +569 -569
  129. package/src/styles/less/aofeng/login.less +367 -367
  130. package/src/styles/less/aofeng/standard.less +2507 -2507
  131. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
  132. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  133. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  134. package/src/styles/less/aofeng/themeOne.less +17 -17
  135. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  136. package/src/styles/less/aofeng/themeTwo.less +3 -3
  137. package/src/styles/less/badges.less +66 -66
  138. package/src/styles/less/bootstrap.less +66 -66
  139. package/src/styles/less/breadcrumbs.less +26 -26
  140. package/src/styles/less/button-groups.less +247 -247
  141. package/src/styles/less/buttons.less +172 -172
  142. package/src/styles/less/carousel.less +269 -269
  143. package/src/styles/less/close.less +34 -34
  144. package/src/styles/less/code.less +69 -69
  145. package/src/styles/less/component-animations.less +33 -33
  146. package/src/styles/less/dropdowns.less +216 -216
  147. package/src/styles/less/fonts-list.less +25 -25
  148. package/src/styles/less/forms.less +626 -626
  149. package/src/styles/less/glyphicons.less +305 -305
  150. package/src/styles/less/grid.less +84 -84
  151. package/src/styles/less/input-groups.less +167 -167
  152. package/src/styles/less/jumbotron.less +52 -52
  153. package/src/styles/less/labels.less +64 -64
  154. package/src/styles/less/list-group.less +141 -141
  155. package/src/styles/less/manageStyle/manageChile.less +180 -180
  156. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  157. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  158. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  159. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  160. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  161. package/src/styles/less/media.less +66 -66
  162. package/src/styles/less/mixins/alerts.less +14 -14
  163. package/src/styles/less/mixins/background-variant.less +9 -9
  164. package/src/styles/less/mixins/border-radius.less +18 -18
  165. package/src/styles/less/mixins/buttons.less +69 -69
  166. package/src/styles/less/mixins/center-block.less +7 -7
  167. package/src/styles/less/mixins/clearfix.less +22 -22
  168. package/src/styles/less/mixins/forms.less +90 -90
  169. package/src/styles/less/mixins/gradients.less +59 -59
  170. package/src/styles/less/mixins/grid-framework.less +92 -92
  171. package/src/styles/less/mixins/grid.less +122 -122
  172. package/src/styles/less/mixins/hide-text.less +21 -21
  173. package/src/styles/less/mixins/image.less +33 -33
  174. package/src/styles/less/mixins/labels.less +12 -12
  175. package/src/styles/less/mixins/list-group.less +30 -30
  176. package/src/styles/less/mixins/nav-divider.less +10 -10
  177. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  178. package/src/styles/less/mixins/opacity.less +8 -8
  179. package/src/styles/less/mixins/pagination.less +24 -24
  180. package/src/styles/less/mixins/panels.less +24 -24
  181. package/src/styles/less/mixins/progress-bar.less +10 -10
  182. package/src/styles/less/mixins/reset-filter.less +8 -8
  183. package/src/styles/less/mixins/reset-text.less +18 -18
  184. package/src/styles/less/mixins/resize.less +6 -6
  185. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  186. package/src/styles/less/mixins/size.less +10 -10
  187. package/src/styles/less/mixins/tab-focus.less +9 -9
  188. package/src/styles/less/mixins/table-row.less +44 -44
  189. package/src/styles/less/mixins/text-emphasis.less +9 -9
  190. package/src/styles/less/mixins/text-overflow.less +8 -8
  191. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  192. package/src/styles/less/mixins.less +40 -40
  193. package/src/styles/less/modals.less +151 -151
  194. package/src/styles/less/navbar.less +660 -660
  195. package/src/styles/less/navs.less +285 -285
  196. package/src/styles/less/normalize.less +424 -424
  197. package/src/styles/less/pager.less +76 -76
  198. package/src/styles/less/pagination.less +89 -89
  199. package/src/styles/less/panels.less +275 -275
  200. package/src/styles/less/popovers.less +131 -131
  201. package/src/styles/less/print.less +101 -101
  202. package/src/styles/less/progress-bars.less +87 -87
  203. package/src/styles/less/responsive-embed.less +35 -35
  204. package/src/styles/less/responsive-utilities.less +194 -194
  205. package/src/styles/less/scaffolding.less +161 -161
  206. package/src/styles/less/stand.less +207 -207
  207. package/src/styles/less/tables.less +312 -312
  208. package/src/styles/less/theme.less +291 -291
  209. package/src/styles/less/thumbnails.less +36 -36
  210. package/src/styles/less/tooltip.less +102 -102
  211. package/src/styles/less/type.less +316 -316
  212. package/src/styles/less/utilities.less +55 -55
  213. package/src/styles/less/variables.less +899 -899
  214. package/src/styles/less/wells.less +29 -29
  215. package/src/system.js +125 -121
  216. package/src/util/Daiban.json +12 -12
  217. package/yarn-error.log +6896 -6896
  218. package/src/filiale/ruihua/Login.vue +0 -549
  219. package/src/filiale/ruihua/system.js +0 -5
@@ -1,902 +1,900 @@
1
- <template>
2
- <div class="syslogin" >
3
- <div class="login-title" >
4
- <div class="row auto">
5
- <marquee style="width:80%;margin-top:25px"><span style="font-size: 1.8rem;color: white;">{{notice}}</span></marquee>
6
- <div class="login-title-chi" style="white-space: nowrap;margin-right:-5%">
7
- <div v-if="titleShow">
8
- <img src="../../../static/newStyle/login-info.png"/>
9
- <span style="color:#7D7D7D;font-weight: bold;" @click="showus=true">关于我们</span>
10
- </div>
11
- <!-- <img src="../../../static/newStyle/login-con.png"/>-->
12
- <!-- <span>联系我们</span>-->
13
- </div>
14
- </div>
15
- </div>
16
-
17
- <modal :show.sync="showus" backdrop="true" width="50%" style="width:auto;">
18
- <article slot="modal-body" class="modal-body" >
19
- <img style="height:100%;width:100%" src="../../../static/newStyle/dg-about-us.png"/>
20
- </article>
21
- <footer slot="modal-footer" class="modal-footer">
22
- </footer>
23
- </modal>
24
-
25
-
26
- <div class="logoew" v-if="logoandroid" >
27
- <div v-if="logoandroid" class="imglogo"></div>
28
- <p class="logocontent">燃气客服系统Android版</p>
29
- <p class="logofooter">(仅浏览器扫描)</p>
30
- </div>
31
- <!--输入框-->
32
- <div class="loginmain" style="margin: 8% 3% 6% 73%;width: 22%;height: 48%;background-color: #00A8E9">
33
- <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
34
- <!-- <div class="loginmain-left">-->
35
- <!-- <img class="loginmain-left-img" src="../../../static/newStyle/login-left.png">-->
36
- <!-- </div>-->
37
- <div class="loginmain-right" style="float:none;padding:4% 4% 2% 4%;width:80%">
38
-
39
- <p @click="theme()" style="white-space: nowrap;font-weight:bold; text-align: center;font-size: 4rem;color:white">{{config.title}}</p>
40
-
41
- <form v-show="!login" class="login-form">
42
- <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
43
- <div class="login-input" style="opacity: 0;position:absolute;width:0;height:0;">
44
- <img src="../../../static/newStyle/login-user.png"/>
45
- <input type="text" placeholder="用户名"/>
46
- </div>
47
- <div class="login-input" style="opacity: 0;position:absolute;width:0;height:0;">
48
- <img src="../../../static/newStyle/login-pwd.png"/>
49
- <input type=password placeholder="密码" @keyup.enter="confirm('key')"/>
50
- </div>
51
- <div class="login-input">
52
- <img src="../../../static/newStyle/login-user.png"/>
53
- <input type="text" style="display: inline;color:black;background-color: white!important;"
54
- placeholder="用户名" v-model="model.ename" autocomplete="off"/>
55
- </div>
56
- <div class="login-input">
57
- <img src="../../../static/newStyle/login-pwd.png"/>
58
- <input type="password" placeholder="密码" style="display: inline;color:black;background-color: darkgray;" v-model="model.password"
59
- @keyup.enter="confirm('key')" autocomplete="off"/>
60
- </div>
61
- <div class="login-input-1" v-if="$login.Verification">
62
- <img src="../../../static/newStyle/login-check.png"/>
63
- <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"
64
- v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>
65
- </div>
66
- <div class="login-input-2" >
67
- <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"
68
- type="button" @click="createCode" v-model="checkCode"/>
69
- </div>
70
- <div class="login-bt">
71
- <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
72
- </div>
73
- <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
74
- <!-- @keyup.enter="confirm('key')">-->
75
- <!-- <input v-if="$login.Verification" styljiaoyane="width: 40%; display: inline" type="text" placeholder="请输入验证码"-->
76
- <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')">-->
77
- <!-- <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"-->
78
- <!-- type="button" @click="createCode" v-model="checkCode"/><br>-->
79
-
80
- <!-- <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> -->
81
- <!-- <span @click="register()">还没有注册,现在注册>>></span> -->
82
- </form>
83
- <div v-show="login" class="login_load">
84
- <img src="../../../static/newStyle/login-do.gif">
85
- </div>
86
- </div>
87
- </div>
88
- <div class="login-foot" style="margin-top:11%;font-weight: bold;color:#7D7D7D" v-show="true">
89
- 技术支持:东莞市伊米斯智能科技有限公司 粤ICP备2022095777号-1
90
- </div>
91
- <div class="login-foot" v-show="$login.BAinformation">
92
- {{{ $login.BAinformation }}}
93
- </div>
94
-
95
- <modal v-if="depPromptShow" :show.sync="depPromptShow" :backdrop="false" v-ref:modal >
96
- <header slot="modal-header" style="height: 8vh" class="modal-header">
97
- <!--<h4 class="modal-title">登录信息</h4>-->
98
- </header>
99
- <article slot="modal-body" class="modal-body">
100
- <form class="form-horizontal">
101
- <div class="row">
102
- <div class="col-sm-12 form-group">
103
- <label class="col-sm-5 ">当前登录人:</label>
104
- <label style="font-weight:normal">{{$login.f.name}}</label>
105
- </div>
106
- <!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
107
- <!--<label class="col-sm-5 ">组&nbsp;织&nbsp;编&nbsp;码:</label>-->
108
- <!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
109
- <!-- <div class="col-sm-7">
110
- <span >{{$login.f.number}}</span>
111
- </div> -->
112
- <!--</div>-->
113
- <div class="col-sm-12 form-group">
114
- <label class="col-sm-5">所在销售点:</label>
115
- <label style="font-weight:normal">{{$login.f.deps}}</label>
116
- <!-- <div class="col-sm-7">
117
- <span >{{$login.f.deps}}</span>
118
- </div> -->
119
- </div>
120
- <div class="col-sm-12 " v-if="AppDaiBan !==''">
121
- <label class="col-sm-2">报装待办:</label>
122
- <span style="font-weight:normal">{{AppDaiBan}}</span>
123
- </div>
124
- <div class="col-sm-12 " v-if="OrderDaiBan !==''">
125
- <label class="col-sm-2">预约待办:</label>
126
- <span style="font-weight:normal">{{OrderDaiBan}}</span>
127
- </div>
128
- <div class="col-sm-12 " v-for="daibanitem in safecheckDaiBan">
129
- <label class="col-sm-2">{{daibanitem.oldData.title}}:</label>
130
- <span style="font-weight:normal">{{daibanitem.text}}</span>
131
- </div>
132
- </div>
133
- </form>
134
- </article>
135
- <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
136
- <button class="button_search" @click="depPromptConfirm">确认</button>
137
- <button class="button_clear" @click="depPromptCancel">取消</button>
138
- </footer>
139
- </modal>
140
-
141
- <!-- 修改密码组件 -->
142
- <modify-pw :show.sync="modifyPwShow" v-if="modifyPwShow"></modify-pw>
143
- </div>
144
-
145
- </template>
146
-
147
- <script>
148
- import co from 'co'
149
- import $ from 'jquery'
150
- import Vue from 'vue'
151
- import {HttpResetClass} from 'vue-client'
152
-
153
- let daibanJson = require('../../util/Daiban.json')
154
-
155
-
156
- let saveGen = function *(self) {
157
- try {
158
- if(self.$login){
159
- // 账号ename,密码password,是否显示异地登陆
160
- yield self.$login.login(self.model.ename, self.model.password, true)
161
- }
162
- if(self.$appdata){
163
- yield self.$appdata.load()
164
-
165
- }
166
- if (Vue.$heatCompatibility) {
167
- try {
168
- if(self.$loginHeat){
169
- yield self.$loginHeat.login(self.model.ename, self.model.password)
170
- }
171
- if(self.$appdataHeat){
172
- yield self.$appdataHeat.load()
173
- }
174
- } catch (e) {
175
- console.log('热力系统登陆失败!')
176
- }
177
- }
178
- yield self.$getConfig(self, 'Login')
179
- console.log('登录配置', self.config)
180
- if (self.config.isMac) {
181
- // 获取该登录人分公司下的mac配置
182
- // todo v4
183
- let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
184
- resolveMsg: null,
185
- rejectMsg: null
186
- }).catch(() => {
187
- throw new Error('获取mac配置失败')
188
- })
189
- console.log('MAC地址信息', getMacs)
190
- // 获取本地mac地址
191
- let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
192
- resolveMsg: null,
193
- rejectMsg: null
194
- }).catch(() => {
195
- throw new Error('获取本地mac配置失败')
196
- })
197
- console.log('本地MAC地址信息', getLocalMac)
198
- // 对Mac地址进行匹配
199
- let macValidate = false
200
- for (let i = 0; i < getLocalMac.data.mac.length; i++) {
201
- for (let j = 0; j < getMacs.data.length; j++) {
202
- if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
203
- macValidate = true
204
- }
205
- }
206
- }
207
- if (!macValidate) {
208
- throw new Error('Mac地址验证失败, 请联系管理员!!')
209
- }
210
- }
211
- console.log(self.$login.depPrompt)
212
- // 弱口令验证
213
- //跳转过来的不进行验证
214
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
215
- self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
216
- self.modifyPwShow = true
217
- })
218
- } else if ((!self.otherLogin) && self.$login.depPrompt) {
219
- self.depPromptShow = true
220
- if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
221
- // 获取待办
222
- self.getDaiBan()
223
-
224
- }
225
- if (self.$login.showDaiBan && self.$login.r.includes('登录预约信息')){
226
- // 获取待办 在util下有个Daiban.jsond 文件 ,在里面进行配置,在功能权限界面增加登录预约信息
227
- self.getDaiBanA()
228
- }
229
- } else {
230
- self.$goto('home-page', {functions: self.$login.f,config: self.config})
231
- // if (self.otherLogin){
232
- // window.history.pushState(null,null,'')
233
- // }
234
- if (self.$login) {
235
- console.log('登录信息', self.$login.f)
236
- global.login=self.$login.f
237
- console.log('登录信息', global.login)
238
- }
239
- }
240
-
241
- } catch (ret) {
242
- console.error('登录失败', ret)
243
- let msg
244
- if (ret instanceof Error) {
245
- msg = ret
246
- }
247
- if (ret.status === 0) {
248
- msg = '服务连接错误,请确认服务状态'
249
- } else if (ret.status === 401) {
250
- msg = ret.data
251
- } else if (ret.status === 710) {
252
- msg = ret.data
253
- }
254
- self.createCode()
255
- self.picLyanzhengma = ''
256
- yield self.$showMessage(msg)
257
- self.model.ename = ''
258
- self.model.password = ''
259
- self.login = false
260
- $('form').fadeIn(500)
261
- }
262
- }
263
- export default {
264
- title: '登录',
265
- async ready () {
266
- this.titleShow = true
267
- try{
268
- let http = new HttpResetClass()
269
- let res = await http.load('POST', 'api/af-system/sql/singleTable',
270
- {data:{
271
- tablename: 't_changedeclare',
272
- condition: ` f_type ='变更通知' `
273
- }
274
- }, {resolveMsg: null, rejectMsg: null})
275
- if(res.data.length>0){
276
- console.log("---------------获取通知",res.data[0].f_change_message)
277
- this.notice=res.data[0].f_change_message
278
- }
279
- }catch(e){}
280
-
281
- this.loginother();
282
- $('#login-button').click(function (event) {
283
- event.preventDefault()
284
- $('form').fadeOut(500)
285
- })
286
- if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
287
- const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
288
- console.log(subUrl)
289
- this.model.ename = window.atob(subUrl[0])
290
- this.model.password = window.atob(subUrl[1])
291
- console.log('this.model.ename',this.model.ename)
292
- this.otherLogin = true
293
- this.confirm()
294
- }else{
295
- //跳转不需要验证码
296
- this.createCode()
297
- }
298
- console.log(this.$login)
299
- },
300
- data () {
301
- return {
302
- image:{
303
- img1: '/images/newStyle/login-info.png',
304
- img2: '/images/newStyle/login-con.png',
305
- img3: '/images/newStyle/login-left.png',
306
- img4: '/images/newStyle/login-user.png',
307
- img5: '/images/newStyle/login-pwd.png',
308
- img6: '/images/newStyle/login-check.png',
309
- img7: '/images/newStyle/login-do.png',
310
- },
311
- config: {
312
- isMac: false,
313
- depPrompt: false,
314
- weakPassword: false,
315
- title: '伊米斯燃气云',
316
- distanceLogin: false,
317
- // 那些角色可以定时获取预约提示
318
- isTip : false,
319
- // 那些角色可以定时获取预约提示
320
- msgRole : '预约处理人员',
321
- // 定时获取提示间隔 单位:分钟
322
- times: 25,
323
- },
324
- titleShow: true, //标题显示
325
- otherLogin:false,
326
- login: false,
327
- depPromptShow: false,
328
- model: {},
329
- show: false,
330
- checkCode: '',
331
- login_do:true,
332
- picLyanzhengma: '',
333
- // 修改密码弹框展示
334
- modifyPwShow: false,
335
- logoandroid:false,
336
- showus:false,
337
- notice:'',
338
- loginotherflag :true,
339
- // 报建待办
340
- AppDaiBan: '',
341
- //安检待办
342
- safecheckDaiBan:[],
343
- // 预约待处理
344
- OrderDaiBan: ''
345
- }
346
- },
347
- methods: {
348
- async getDaiBan(){
349
- let http = new HttpResetClass()
350
- let condition = ''
351
- if(this.$login.f.deps!=='柠条塔'){
352
- condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
353
- } else {
354
- condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
355
- }
356
- await http.load('POST', '/api/af-system/sql/singleTable', {data: {
357
- tablename:'t_order_center',
358
- condition:condition
359
- }}, {
360
- resolveMsg: null,
361
- rejectMsg: null
362
- }).then((res) => {
363
- let OrderDaiBan = {}
364
- res.data.forEach(item=>{
365
- OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
366
- OrderDaiBan[item.f_ordertype].push(item)
367
- })
368
- this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
369
- if (res.data.length> 0){
370
- this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
371
- }
372
- })
373
- let data = {
374
- condition: '1 = 1',
375
- data: {
376
- orgid: this.$login.f.orgid,
377
- id: this.$login.f.id
378
- }
379
- }
380
- await http.load('POST', '/rs/sql/checkuser', {data: data}, {
381
- resolveMsg: null,
382
- rejectMsg: null
383
- }).then((res) => {
384
- let AppDaiBan = {}
385
- res.data.forEach(item=>{
386
- AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
387
- AppDaiBan[item.defname].push(item)
388
- })
389
- this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
390
- if (res.data.length> 0){
391
- this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
392
- }
393
- })
394
-
395
- },
396
- async getDaiBanA(){
397
- // 是否全局开启待办通知
398
- if (daibanJson.enable) {
399
- console.log("当前获取到待办配置为" + JSON.stringify(daibanJson))
400
- let http = new HttpResetClass()
401
- let daibanArray = []
402
- for (let daibanItem of daibanJson.daiban) {
403
- console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
404
- if (daibanItem.enable) { // 控制每一项通知是否开启
405
- let postResult = ''; //提示信息为
406
- await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
407
- .then((res)=>{
408
- let responseData = res.data
409
- for (let item of responseData) {
410
- postResult += eval(daibanItem.text) + "\n"
411
- }
412
- postResult += '\t'
413
- daibanArray.push({text:postResult,oldData:daibanItem})
414
- })
415
- }
416
- }
417
- console.log("安检数据为:"+JSON.stringify(daibanArray))
418
- this.safecheckDaiBan = daibanArray
419
- }else {
420
- console.log("待办提醒全局关闭。")
421
- }
422
-
423
-
424
-
425
-
426
- },
427
-
428
- async loginother(){
429
- if (this.config.distanceLogin) {
430
- if (this.$login && this.$login.getUrlParames('name') ) {
431
- let ename = this.$login.getUrlParames('name');
432
- // todo v4
433
- let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
434
- if(logininfo.data){
435
- if(logininfo.data.ename && logininfo.data.password){
436
- this.model.ename = logininfo.data.ename
437
- this.model.password =logininfo.data.password
438
- let gen = saveGen(this)
439
- return co(gen)
440
- }
441
- }
442
- }
443
- }
444
- },
445
- theme(){
446
- // var elementList = document.querySelectorAll('body');
447
- // console.log(elementList)
448
- // document.querySelectorAll('body')[0].className='themeTwo'
449
- // var elementList = document.querySelectorAll('body');
450
- // console.log(elementList)
451
- },
452
- onReady () {
453
- this.$emit('ready')
454
- },
455
- confirm (key) {
456
- this.login_do=!this.login_do
457
- // return
458
- if (key == 'key') {
459
- $('form').fadeOut(500)
460
- }
461
- this.login = true
462
- // let gen = saveGen(this)
463
- // return co(gen)
464
- if((!this.otherLogin) && this.$login && this.$login.Verification){
465
- console.log('跳转过来的不走验证')
466
- if(this.picLyanzhengma == '') {
467
- this.$showMessage("请输入验证码!").then(()=>{
468
- this.login = false
469
- $('form').fadeIn(500)
470
- this.createCode()
471
- })
472
- }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
473
- //若输入的验证码与产生的验证码不一致时
474
- this.$showMessage("验证码不正确").then(()=>{
475
- this.login = false
476
- $('form').fadeIn(500)
477
- this.createCode();//刷新验证码
478
- this.picLyanzhengma = '';
479
- })
480
- }else {
481
- this.login = true
482
- let gen = saveGen(this)
483
- return co(gen)
484
- }
485
- }else {
486
- this.login = true
487
- let gen = saveGen(this)
488
- return co(gen)
489
- }
490
- },
491
- createCode(){
492
- let code = "";
493
- let codeLength = 4;//验证码的长度
494
- let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
495
- 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
496
- for (let i = 0; i < codeLength; i++) {
497
- //循环操作
498
- let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
499
- code += random[index];//根据索引取得随机数加到code
500
- }
501
- this.checkCode = code;//把code值赋给验证码
502
- },
503
-
504
- async depPromptConfirm () {
505
- this.depPromptShow = false
506
- return this.$goto('home-page', {functions: this.$login.f,config: this.config})
507
- },
508
-
509
- depPromptCancel () {
510
- this.depPromptShow = false
511
- this.createCode()
512
- this.picLyanzhengma = ''
513
- this.model.ename = ''
514
- this.model.password = ''
515
- this.login = false
516
- $('form').fadeIn(500)
517
- }
518
- },
519
- watch: {
520
- 'modifyPwShow' (val){
521
- if (!val) {
522
- window.location.reload()
523
- }
524
- }
525
- }
526
- }
527
- </script>
528
-
529
- <style scoped>
530
- .loginmain {
531
- display:flex;
532
- justify-content: center;
533
- }
534
- body {
535
- font-family: 'Source Sans Pro', sans-serif;
536
- color: white;
537
- font-weight: 400;
538
- }
539
-
540
- body ::-webkit-input-placeholder {
541
- /* WebKit browsers */
542
- font-family: 'Source Sans Pro', sans-serif;
543
- color: white;
544
- font-weight: 400;
545
- }
546
-
547
- body :-moz-placeholder {
548
- /* Mozilla Firefox 4 to 18 */
549
- font-family: 'Source Sans Pro', sans-serif;
550
- color: white;
551
- opacity: 1;
552
- font-weight: 400;
553
- }
554
-
555
- body ::-moz-placeholder {
556
- /* Mozilla Firefox 19+ */
557
- font-family: 'Source Sans Pro', sans-serif;
558
- color: white;
559
- opacity: 1;
560
- font-weight: 400;
561
- }
562
-
563
- body :-ms-input-placeholder {
564
- /* Internet Explorer 10+ */
565
- font-family: 'Source Sans Pro', sans-serif;
566
- color: white;
567
- font-weight: 400;
568
- }
569
-
570
- .wrapper {
571
- /*background: #2D83BA;
572
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
573
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
574
- opacity: 0.8;*/
575
- position: absolute;
576
- top: 50%;
577
- right: -60px;
578
- width: 40%;
579
- height: 400px;
580
- margin-top: -150px;
581
- overflow: hidden;
582
-
583
- }
584
-
585
- .wrapper.form-success .container h3 {
586
- -webkit-transform: translateY(85px);
587
- -ms-transform: translateY(85px);
588
- transform: translateY(85px);
589
- }
590
-
591
- .container {
592
- max-width: 350px;
593
- margin: 0 auto;
594
- padding: 30px 100px 50px 100px;
595
- height: 400px;
596
- text-align: center;
597
- /*以下增加*/
598
- background: #2D83BA;
599
- background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
600
- background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
601
- opacity: 0.8;
602
- }
603
-
604
- .container h3 {
605
- font-size: 40px;
606
- -webkit-transition-duration: 1s;
607
- transition-duration: 1s;
608
- -webkit-transition-timing-function: ease-in-put;
609
- transition-timing-function: ease-in-put;
610
- font-weight: 200;
611
- }
612
-
613
- .form {
614
- padding: 20px 0;
615
- position: relative;
616
- z-index: 2;
617
- }
618
-
619
- .form input {
620
- -webkit-appearance: none;
621
- -moz-appearance: none;
622
- appearance: none;
623
- outline: 0;
624
- border: 1px solid #50ABE6;
625
- background-color: #50ABE6;
626
- width: 250px;
627
- border-radius: 3px;
628
- padding: 10px 15px;
629
- margin: 0 auto 10px auto;
630
- display: block;
631
- text-align: center;
632
- font-size: 18px;
633
- color: white;
634
- -webkit-transition-duration: 0.25s;
635
- transition-duration: 0.25s;
636
- font-weight: 400;
637
- }
638
-
639
- .form input:hover {
640
- background-color: rgba(255, 255, 255, 0.4);
641
- }
642
-
643
- .form input:focus {
644
- background-color: white;
645
- width: 300px;
646
- color: #53e3a6;
647
- }
648
-
649
- .usericon {
650
- background-image: url(../../../static/usericon.png);
651
- background-repeat: no-repeat;
652
- background-size: 30px;
653
- background-position-x: 8px;
654
- background-position-y: 8px;
655
- }
656
-
657
- .psicon {
658
- background-image: url(../../../static/psicon.png);
659
- background-repeat: no-repeat;
660
- background-size: 30px;
661
- background-position-x: 8px;
662
- background-position-y: 8px;
663
- }
664
-
665
- .form button {
666
- -webkit-appearance: none;
667
- -moz-appearance: none;
668
- appearance: none;
669
- outline: 0;
670
- background-color: white;
671
- border: 0;
672
- padding: 10px 15px;
673
- color: #253830;
674
- border-radius: 3px;
675
- width: 250px;
676
- cursor: pointer;
677
- font-size: 18px;
678
- -webkit-transition-duration: 0.25s;
679
- transition-duration: 0.25s;
680
- }
681
-
682
- .form button:hover {
683
- background-color: #f5f7f9;
684
- }
685
-
686
- /*注册字体样式*/
687
- .form span {
688
- color: #fff;
689
- display: table-footer-group;
690
- position: absolute;
691
- right: 10px;
692
- margin-top: 10px;
693
- cursor: pointer;
694
- }
695
-
696
- .logotitle {
697
- color: #fff;
698
- position: absolute;
699
- top: 50px;
700
- left: 50px;
701
- font-size: 50px;
702
- }
703
-
704
- /*注册模态框界面样式*/
705
- .modifystyle {
706
- background: #FCFEEE;
707
- }
708
-
709
- .modifystyle div {
710
- height: auto;
711
- margin-bottom: 15px;
712
- /*text-align: center;*/
713
- /*margin-left: 20%;*/
714
- }
715
-
716
- /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
717
- .modifystyle div input + span {
718
- top: 0 !important;
719
- right: 32%;
720
- }
721
-
722
- .modifystyle span {
723
- color: red;
724
- }
725
-
726
- /* 通告区内容 */
727
- .notice-board {
728
- height: auto;
729
- position: absolute;
730
- top: 50%;
731
- margin-top: -150px;
732
- margin-left: 100px;
733
- color: #fff;
734
- }
735
-
736
- /*修改密码底部按钮部分样式*/
737
- .footerbtn {
738
- text-align: center;
739
- padding: 15px;
740
- }
741
-
742
- .footerbtn button {
743
- width: 100px;
744
- margin-left: 20px;
745
- }
746
-
747
- .bg-bubbles {
748
- position: absolute;
749
- top: 0;
750
- left: 0;
751
- width: 100%;
752
- height: 100%;
753
- z-index: 1;
754
- }
755
-
756
- .bg-bubbles li {
757
- position: absolute;
758
- list-style: none;
759
- display: block;
760
- width: 40px;
761
- height: 40px;
762
- background-color: rgba(255, 255, 255, 0.15);
763
- bottom: -160px;
764
- -webkit-animation: square 25s infinite;
765
- animation: square 25s infinite;
766
- -webkit-transition-timing-function: linear;
767
- transition-timing-function: linear;
768
- }
769
-
770
- .bg-bubbles li:nth-child(1) {
771
- left: 10%;
772
- }
773
-
774
- .bg-bubbles li:nth-child(2) {
775
- left: 20%;
776
- width: 80px;
777
- height: 80px;
778
- -webkit-animation-delay: 2s;
779
- animation-delay: 2s;
780
- -webkit-animation-duration: 17s;
781
- animation-duration: 17s;
782
- }
783
-
784
- .bg-bubbles li:nth-child(3) {
785
- left: 25%;
786
- -webkit-animation-delay: 4s;
787
- animation-delay: 4s;
788
- }
789
-
790
- .bg-bubbles li:nth-child(4) {
791
- left: 40%;
792
- width: 60px;
793
- height: 60px;
794
- -webkit-animation-duration: 22s;
795
- animation-duration: 22s;
796
- background-color: rgba(255, 255, 255, 0.25);
797
- }
798
-
799
- .bg-bubbles li:nth-child(5) {
800
- left: 70%;
801
- }
802
-
803
- .bg-bubbles li:nth-child(6) {
804
- left: 80%;
805
- width: 120px;
806
- height: 120px;
807
- -webkit-animation-delay: 3s;
808
- animation-delay: 3s;
809
- background-color: rgba(255, 255, 255, 0.2);
810
- }
811
-
812
- .bg-bubbles li:nth-child(7) {
813
- left: 32%;
814
- width: 160px;
815
- height: 160px;
816
- -webkit-animation-delay: 7s;
817
- animation-delay: 7s;
818
- }
819
-
820
- .bg-bubbles li:nth-child(8) {
821
- left: 55%;
822
- width: 20px;
823
- height: 20px;
824
- -webkit-animation-delay: 15s;
825
- animation-delay: 15s;
826
- -webkit-animation-duration: 40s;
827
- animation-duration: 40s;
828
- }
829
-
830
- .bg-bubbles li:nth-child(9) {
831
- left: 25%;
832
- width: 10px;
833
- height: 10px;
834
- -webkit-animation-delay: 2s;
835
- animation-delay: 2s;
836
- -webkit-animation-duration: 40s;
837
- animation-duration: 40s;
838
- background-color: rgba(255, 255, 255, 0.3);
839
- }
840
-
841
- .bg-bubbles li:nth-child(10) {
842
- left: 90%;
843
- width: 160px;
844
- height: 160px;
845
- -webkit-animation-delay: 11s;
846
- animation-delay: 11s;
847
- }
848
- .logofooter{
849
- font-size: 12px;
850
- color:#fff;
851
- width:150px;
852
- margin-left: 17px;
853
- }
854
- .logocontent{
855
- font-size: 14px;
856
- color:#fff;
857
- width:150px;
858
- margin: 3px -15px;
859
- }
860
- .imglogo {
861
- background:url(../../../static/logo.png);
862
- background-size:100%;
863
- }
864
- .login-form{
865
- border-radius: 10px;
866
- margin: 0 -12%;
867
- background: white;
868
- padding: 5%;
869
- }
870
- .logoew {
871
- width:120px;
872
- height:120px;
873
- float:right;
874
- margin-right:8.5%;
875
- margin-top:10px;
876
- }
877
- .syslogin{
878
- background-image: url(../../../static/newStyle/dongguan1.png) !important;
879
- }
880
- @-webkit-keyframes square {
881
- 0% {
882
- -webkit-transform: translateY(0);
883
- transform: translateY(0);
884
- }
885
- 100% {
886
- -webkit-transform: translateY(-700px) rotate(600deg);
887
- transform: translateY(-700px) rotate(600deg);
888
- }
889
- }
890
-
891
- @keyframes square {
892
- 0% {
893
- -webkit-transform: translateY(0);
894
- transform: translateY(0);
895
- }
896
- 100% {
897
- -webkit-transform: translateY(-700px) rotate(600deg);
898
- transform: translateY(-700px) rotate(600deg);
899
- }
900
-
901
- }
902
- </style>
1
+ <template>
2
+ <div class="syslogin" >
3
+ <div class="login-title" >
4
+ <div class="row auto">
5
+ <marquee style="width:80%;margin-top:25px"><span style="font-size: 1.8rem;color: white;">{{notice}}</span></marquee>
6
+ <div class="login-title-chi" style="white-space: nowrap;margin-right:-5%">
7
+ <div v-if="titleShow">
8
+ <img src="../../../static/newStyle/login-info.png"/>
9
+ <span style="color:#7D7D7D;font-weight: bold;" @click="showus=true">关于我们</span>
10
+ </div>
11
+ <!-- <img src="../../../static/newStyle/login-con.png"/>-->
12
+ <!-- <span>联系我们</span>-->
13
+ </div>
14
+ </div>
15
+ </div>
16
+
17
+ <modal :show.sync="showus" backdrop="true" width="50%" style="width:auto;">
18
+ <article slot="modal-body" class="modal-body" >
19
+ <img style="height:100%;width:100%" src="../../../static/newStyle/dg-about-us.png"/>
20
+ </article>
21
+ <footer slot="modal-footer" class="modal-footer">
22
+ </footer>
23
+ </modal>
24
+
25
+
26
+ <div class="logoew" v-if="logoandroid" >
27
+ <div v-if="logoandroid" class="imglogo"></div>
28
+ <p class="logocontent">燃气客服系统Android版</p>
29
+ <p class="logofooter">(仅浏览器扫描)</p>
30
+ </div>
31
+ <!--输入框-->
32
+ <div class="loginmain" style="margin: 8% 3% 6% 73%;width: 22%;height: 48%;background-color: #00A8E9">
33
+ <!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
34
+ <!-- <div class="loginmain-left">-->
35
+ <!-- <img class="loginmain-left-img" src="../../../static/newStyle/login-left.png">-->
36
+ <!-- </div>-->
37
+ <div class="loginmain-right" style="float:none;padding:4% 4% 2% 4%;width:80%">
38
+
39
+ <p @click="theme()" style="white-space: nowrap;font-weight:bold; text-align: center;font-size: 4rem;color:white">{{config.title}}</p>
40
+
41
+ <form v-show="!login" class="login-form">
42
+ <!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
43
+ <div class="login-input" style="opacity: 0;position:absolute;width:0;height:0;">
44
+ <img src="../../../static/newStyle/login-user.png"/>
45
+ <input type="text" placeholder="用户名"/>
46
+ </div>
47
+ <div class="login-input" style="opacity: 0;position:absolute;width:0;height:0;">
48
+ <img src="../../../static/newStyle/login-pwd.png"/>
49
+ <input type=password placeholder="密码" @keyup.enter="confirm('key')"/>
50
+ </div>
51
+ <div class="login-input">
52
+ <img src="../../../static/newStyle/login-user.png"/>
53
+ <input type="text" style="display: inline;color:black;background-color: white!important;"
54
+ placeholder="用户名" v-model="model.ename" autocomplete="off"/>
55
+ </div>
56
+ <div class="login-input">
57
+ <img src="../../../static/newStyle/login-pwd.png"/>
58
+ <input type="password" placeholder="密码" style="display: inline;color:black;background-color: darkgray;" v-model="model.password"
59
+ @keyup.enter="confirm('key')" autocomplete="off"/>
60
+ </div>
61
+ <div class="login-input-1" v-if="$login.Verification">
62
+ <img src="../../../static/newStyle/login-check.png"/>
63
+ <input v-if="$login.Verification" class="login-check" type="text" placeholder="请输入验证码"
64
+ v-model="picLyanzhengma" @keyup.enter="confirm('key')"/>
65
+ </div>
66
+ <div class="login-input-2" >
67
+ <input v-if="$login.Verification" class="login-check-1" style="display: inline;background-color:#eeeeee !important;"
68
+ type="button" @click="createCode" v-model="checkCode"/>
69
+ </div>
70
+ <div class="login-bt">
71
+ <button type="button" id="login-button" class="login-button" @click.prevent="confirm('click')">登录</button>
72
+ </div>
73
+ <!-- <input type="password" placeholder="密码" v-model="model.password" class="psicon"-->
74
+ <!-- @keyup.enter="confirm('key')">-->
75
+ <!-- <input v-if="$login.Verification" styljiaoyane="width: 40%; display: inline" type="text" placeholder="请输入验证码"-->
76
+ <!-- v-model="picLyanzhengma" @keyup.enter="confirm('key')">-->
77
+ <!-- <input v-if="$login.Verification" style="width: 30%; display: inline;background-color: darkgray;"-->
78
+ <!-- type="button" @click="createCode" v-model="checkCode"/><br>-->
79
+
80
+ <!-- <button type="button" id="login-button" @click.prevent="confirm()"><strong>注册</strong></button> -->
81
+ <!-- <span @click="register()">还没有注册,现在注册>>></span> -->
82
+ </form>
83
+ <div v-show="login" class="login_load">
84
+ <img src="../../../static/newStyle/login-do.gif">
85
+ </div>
86
+ </div>
87
+ </div>
88
+ <div class="login-foot" style="margin-top:11%;font-weight: bold;color:#7D7D7D" v-show="true">
89
+ 技术支持:东莞市伊米斯智能科技有限公司 粤ICP备2022095777号-1
90
+ </div>
91
+ <div class="login-foot" v-show="$login.BAinformation">
92
+ {{{ $login.BAinformation }}}
93
+ </div>
94
+
95
+ <modal v-if="depPromptShow" :show.sync="depPromptShow" :backdrop="false" v-ref:modal >
96
+ <header slot="modal-header" style="height: 8vh" class="modal-header">
97
+ <!--<h4 class="modal-title">登录信息</h4>-->
98
+ </header>
99
+ <article slot="modal-body" class="modal-body">
100
+ <form class="form-horizontal">
101
+ <div class="row">
102
+ <div class="col-sm-12 form-group">
103
+ <label class="col-sm-5 ">当前登录人:</label>
104
+ <label style="font-weight:normal">{{$login.f.name}}</label>
105
+ </div>
106
+ <!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
107
+ <!--<label class="col-sm-5 ">组&nbsp;织&nbsp;编&nbsp;码:</label>-->
108
+ <!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
109
+ <!-- <div class="col-sm-7">
110
+ <span >{{$login.f.number}}</span>
111
+ </div> -->
112
+ <!--</div>-->
113
+ <div class="col-sm-12 form-group">
114
+ <label class="col-sm-5">所在销售点:</label>
115
+ <label style="font-weight:normal">{{$login.f.deps}}</label>
116
+ <!-- <div class="col-sm-7">
117
+ <span >{{$login.f.deps}}</span>
118
+ </div> -->
119
+ </div>
120
+ <div class="col-sm-12 " v-if="AppDaiBan !==''">
121
+ <label class="col-sm-2">报装待办:</label>
122
+ <span style="font-weight:normal">{{AppDaiBan}}</span>
123
+ </div>
124
+ <div class="col-sm-12 " v-if="OrderDaiBan !==''">
125
+ <label class="col-sm-2">预约待办:</label>
126
+ <span style="font-weight:normal">{{OrderDaiBan}}</span>
127
+ </div>
128
+ <div class="col-sm-12 " v-for="daibanitem in safecheckDaiBan">
129
+ <label class="col-sm-2">{{daibanitem.oldData.title}}:</label>
130
+ <span style="font-weight:normal">{{daibanitem.text}}</span>
131
+ </div>
132
+ </div>
133
+ </form>
134
+ </article>
135
+ <footer slot="modal-footer" style="height: 8vh" class="modal-footer">
136
+ <button class="button_search" @click="depPromptConfirm">确认</button>
137
+ <button class="button_clear" @click="depPromptCancel">取消</button>
138
+ </footer>
139
+ </modal>
140
+
141
+ <!-- 修改密码组件 -->
142
+ <modify-pw :show.sync="modifyPwShow" v-if="modifyPwShow"></modify-pw>
143
+ </div>
144
+
145
+ </template>
146
+
147
+ <script>
148
+ import co from 'co'
149
+ import $ from 'jquery'
150
+ import Vue from 'vue'
151
+ import {HttpResetClass} from 'vue-client'
152
+
153
+ let daibanJson = require('../../util/Daiban.json')
154
+
155
+
156
+ let saveGen = function *(self) {
157
+ try {
158
+ if(self.$login){
159
+ // 账号ename,密码password,是否显示异地登陆
160
+ yield self.$login.login(self.model.ename, self.model.password, true)
161
+ }
162
+ if(self.$appdata){
163
+ yield self.$appdata.load()
164
+
165
+ }
166
+ if (Vue.$heatCompatibility) {
167
+ try {
168
+ if(self.$loginHeat){
169
+ yield self.$loginHeat.login(self.model.ename, self.model.password)
170
+ }
171
+ if(self.$appdataHeat){
172
+ yield self.$appdataHeat.load()
173
+ }
174
+ } catch (e) {
175
+ console.log('热力系统登陆失败!')
176
+ }
177
+ }
178
+ yield self.$getConfig(self, 'Login')
179
+ console.log('登录配置', self.config)
180
+ if (self.config.isMac) {
181
+ // 获取该登录人分公司下的mac配置
182
+ let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
183
+ resolveMsg: null,
184
+ rejectMsg: null
185
+ }).catch(() => {
186
+ throw new Error('获取mac配置失败')
187
+ })
188
+ console.log('MAC地址信息', getMacs)
189
+ // 获取本地mac地址
190
+ let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
191
+ resolveMsg: null,
192
+ rejectMsg: null
193
+ }).catch(() => {
194
+ throw new Error('获取本地mac配置失败')
195
+ })
196
+ console.log('本地MAC地址信息', getLocalMac)
197
+ // 对Mac地址进行匹配
198
+ let macValidate = false
199
+ for (let i = 0; i < getLocalMac.data.mac.length; i++) {
200
+ for (let j = 0; j < getMacs.data.length; j++) {
201
+ if (getMacs.data[j].f_mac_number.toLocaleUpperCase() === getLocalMac.data.mac[i]) {
202
+ macValidate = true
203
+ }
204
+ }
205
+ }
206
+ if (!macValidate) {
207
+ throw new Error('Mac地址验证失败, 请联系管理员!!')
208
+ }
209
+ }
210
+ console.log(self.$login.depPrompt)
211
+ // 弱口令验证
212
+ //跳转过来的不进行验证
213
+ if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
214
+ self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
215
+ self.modifyPwShow = true
216
+ })
217
+ } else if ((!self.otherLogin) && self.$login.depPrompt) {
218
+ self.depPromptShow = true
219
+ if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
220
+ // 获取待办
221
+ self.getDaiBan()
222
+
223
+ }
224
+ if (self.$login.showDaiBan && self.$login.r.includes('登录预约信息')){
225
+ // 获取待办 在util下有个Daiban.jsond 文件 ,在里面进行配置,在功能权限界面增加登录预约信息
226
+ self.getDaiBanA()
227
+ }
228
+ } else {
229
+ self.$goto('home-page', {functions: self.$login.f,config: self.config})
230
+ // if (self.otherLogin){
231
+ // window.history.pushState(null,null,'')
232
+ // }
233
+ if (self.$login) {
234
+ console.log('登录信息', self.$login.f)
235
+ global.login=self.$login.f
236
+ console.log('登录信息', global.login)
237
+ }
238
+ }
239
+
240
+ } catch (ret) {
241
+ console.error('登录失败', ret)
242
+ let msg
243
+ if (ret instanceof Error) {
244
+ msg = ret
245
+ }
246
+ if (ret.status === 0) {
247
+ msg = '服务连接错误,请确认服务状态'
248
+ } else if (ret.status === 401) {
249
+ msg = ret.data
250
+ } else if (ret.status === 710) {
251
+ msg = ret.data
252
+ }
253
+ self.createCode()
254
+ self.picLyanzhengma = ''
255
+ yield self.$showMessage(msg)
256
+ self.model.ename = ''
257
+ self.model.password = ''
258
+ self.login = false
259
+ $('form').fadeIn(500)
260
+ }
261
+ }
262
+ export default {
263
+ title: '登录',
264
+ async ready () {
265
+ this.titleShow = true
266
+ try{
267
+ let http = new HttpResetClass()
268
+ let res = await http.load('POST', 'rs/sql/singleTable',
269
+ {data:{
270
+ tablename: 't_changedeclare',
271
+ condition: ` f_type ='变更通知' `
272
+ }
273
+ }, {resolveMsg: null, rejectMsg: null})
274
+ if(res.data.length>0){
275
+ console.log("---------------获取通知",res.data[0].f_change_message)
276
+ this.notice=res.data[0].f_change_message
277
+ }
278
+ }catch(e){}
279
+
280
+ this.loginother();
281
+ $('#login-button').click(function (event) {
282
+ event.preventDefault()
283
+ $('form').fadeOut(500)
284
+ })
285
+ if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
286
+ const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
287
+ console.log(subUrl)
288
+ this.model.ename = window.atob(subUrl[0])
289
+ this.model.password = window.atob(subUrl[1])
290
+ console.log('this.model.ename',this.model.ename)
291
+ this.otherLogin = true
292
+ this.confirm()
293
+ }else{
294
+ //跳转不需要验证码
295
+ this.createCode()
296
+ }
297
+ console.log(this.$login)
298
+ },
299
+ data () {
300
+ return {
301
+ image:{
302
+ img1: '/images/newStyle/login-info.png',
303
+ img2: '/images/newStyle/login-con.png',
304
+ img3: '/images/newStyle/login-left.png',
305
+ img4: '/images/newStyle/login-user.png',
306
+ img5: '/images/newStyle/login-pwd.png',
307
+ img6: '/images/newStyle/login-check.png',
308
+ img7: '/images/newStyle/login-do.png',
309
+ },
310
+ config: {
311
+ isMac: false,
312
+ depPrompt: false,
313
+ weakPassword: false,
314
+ title: '伊米斯燃气云',
315
+ distanceLogin: false,
316
+ // 那些角色可以定时获取预约提示
317
+ isTip : false,
318
+ // 那些角色可以定时获取预约提示
319
+ msgRole : '预约处理人员',
320
+ // 定时获取提示间隔 单位:分钟
321
+ times: 25,
322
+ },
323
+ titleShow: true, //标题显示
324
+ otherLogin:false,
325
+ login: false,
326
+ depPromptShow: false,
327
+ model: {},
328
+ show: false,
329
+ checkCode: '',
330
+ login_do:true,
331
+ picLyanzhengma: '',
332
+ // 修改密码弹框展示
333
+ modifyPwShow: false,
334
+ logoandroid:false,
335
+ showus:false,
336
+ notice:'',
337
+ loginotherflag :true,
338
+ // 报建待办
339
+ AppDaiBan: '',
340
+ //安检待办
341
+ safecheckDaiBan:[],
342
+ // 预约待处理
343
+ OrderDaiBan: ''
344
+ }
345
+ },
346
+ methods: {
347
+ async getDaiBan(){
348
+ let http = new HttpResetClass()
349
+ let condition = ''
350
+ if(this.$login.f.deps!=='柠条塔'){
351
+ condition = ` (f_orderstate != '预约成功' and f_orderstate != '预约失败' ) or f_orderstate is null `
352
+ } else {
353
+ condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
354
+ }
355
+ await http.load('POST', '/rs/sql/singleTable', {data: {
356
+ tablename:'t_order_center',
357
+ condition:condition
358
+ }}, {
359
+ resolveMsg: null,
360
+ rejectMsg: null
361
+ }).then((res) => {
362
+ let OrderDaiBan = {}
363
+ res.data.forEach(item=>{
364
+ OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
365
+ OrderDaiBan[item.f_ordertype].push(item)
366
+ })
367
+ this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
368
+ if (res.data.length> 0){
369
+ this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
370
+ }
371
+ })
372
+ let data = {
373
+ condition: '1 = 1',
374
+ data: {
375
+ orgid: this.$login.f.orgid,
376
+ id: this.$login.f.id
377
+ }
378
+ }
379
+ await http.load('POST', '/rs/sql/checkuser', {data: data}, {
380
+ resolveMsg: null,
381
+ rejectMsg: null
382
+ }).then((res) => {
383
+ let AppDaiBan = {}
384
+ res.data.forEach(item=>{
385
+ AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
386
+ AppDaiBan[item.defname].push(item)
387
+ })
388
+ this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
389
+ if (res.data.length> 0){
390
+ this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
391
+ }
392
+ })
393
+
394
+ },
395
+ async getDaiBanA(){
396
+ // 是否全局开启待办通知
397
+ if (daibanJson.enable) {
398
+ console.log("当前获取到待办配置为" + JSON.stringify(daibanJson))
399
+ let http = new HttpResetClass()
400
+ let daibanArray = []
401
+ for (let daibanItem of daibanJson.daiban) {
402
+ console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
403
+ if (daibanItem.enable) { // 控制每一项通知是否开启
404
+ let postResult = ''; //提示信息为
405
+ await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
406
+ .then((res)=>{
407
+ let responseData = res.data
408
+ for (let item of responseData) {
409
+ postResult += eval(daibanItem.text) + "\n"
410
+ }
411
+ postResult += '\t'
412
+ daibanArray.push({text:postResult,oldData:daibanItem})
413
+ })
414
+ }
415
+ }
416
+ console.log("安检数据为:"+JSON.stringify(daibanArray))
417
+ this.safecheckDaiBan = daibanArray
418
+ }else {
419
+ console.log("待办提醒全局关闭。")
420
+ }
421
+
422
+
423
+
424
+
425
+ },
426
+
427
+ async loginother(){
428
+ if (this.config.distanceLogin) {
429
+ if (this.$login && this.$login.getUrlParames('name') ) {
430
+ let ename = this.$login.getUrlParames('name');
431
+ let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
432
+ if(logininfo.data){
433
+ if(logininfo.data.ename && logininfo.data.password){
434
+ this.model.ename = logininfo.data.ename
435
+ this.model.password =logininfo.data.password
436
+ let gen = saveGen(this)
437
+ return co(gen)
438
+ }
439
+ }
440
+ }
441
+ }
442
+ },
443
+ theme(){
444
+ // var elementList = document.querySelectorAll('body');
445
+ // console.log(elementList)
446
+ // document.querySelectorAll('body')[0].className='themeTwo'
447
+ // var elementList = document.querySelectorAll('body');
448
+ // console.log(elementList)
449
+ },
450
+ onReady () {
451
+ this.$emit('ready')
452
+ },
453
+ confirm (key) {
454
+ this.login_do=!this.login_do
455
+ // return
456
+ if (key == 'key') {
457
+ $('form').fadeOut(500)
458
+ }
459
+ this.login = true
460
+ // let gen = saveGen(this)
461
+ // return co(gen)
462
+ if((!this.otherLogin) && this.$login && this.$login.Verification){
463
+ console.log('跳转过来的不走验证')
464
+ if(this.picLyanzhengma == '') {
465
+ this.$showMessage("请输入验证码!").then(()=>{
466
+ this.login = false
467
+ $('form').fadeIn(500)
468
+ this.createCode()
469
+ })
470
+ }else if(this.picLyanzhengma.toUpperCase() != this.checkCode ) {
471
+ //若输入的验证码与产生的验证码不一致时
472
+ this.$showMessage("验证码不正确").then(()=>{
473
+ this.login = false
474
+ $('form').fadeIn(500)
475
+ this.createCode();//刷新验证码
476
+ this.picLyanzhengma = '';
477
+ })
478
+ }else {
479
+ this.login = true
480
+ let gen = saveGen(this)
481
+ return co(gen)
482
+ }
483
+ }else {
484
+ this.login = true
485
+ let gen = saveGen(this)
486
+ return co(gen)
487
+ }
488
+ },
489
+ createCode(){
490
+ let code = "";
491
+ let codeLength = 4;//验证码的长度
492
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
493
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//随机数
494
+ for (let i = 0; i < codeLength; i++) {
495
+ //循环操作
496
+ let index = Math.floor(Math.random() * 36);//取得随机数的索引(0~35)
497
+ code += random[index];//根据索引取得随机数加到code上
498
+ }
499
+ this.checkCode = code;//把code值赋给验证码
500
+ },
501
+
502
+ async depPromptConfirm () {
503
+ this.depPromptShow = false
504
+ return this.$goto('home-page', {functions: this.$login.f,config: this.config})
505
+ },
506
+
507
+ depPromptCancel () {
508
+ this.depPromptShow = false
509
+ this.createCode()
510
+ this.picLyanzhengma = ''
511
+ this.model.ename = ''
512
+ this.model.password = ''
513
+ this.login = false
514
+ $('form').fadeIn(500)
515
+ }
516
+ },
517
+ watch: {
518
+ 'modifyPwShow' (val){
519
+ if (!val) {
520
+ window.location.reload()
521
+ }
522
+ }
523
+ }
524
+ }
525
+ </script>
526
+
527
+ <style scoped>
528
+ .loginmain {
529
+ display:flex;
530
+ justify-content: center;
531
+ }
532
+ body {
533
+ font-family: 'Source Sans Pro', sans-serif;
534
+ color: white;
535
+ font-weight: 400;
536
+ }
537
+
538
+ body ::-webkit-input-placeholder {
539
+ /* WebKit browsers */
540
+ font-family: 'Source Sans Pro', sans-serif;
541
+ color: white;
542
+ font-weight: 400;
543
+ }
544
+
545
+ body :-moz-placeholder {
546
+ /* Mozilla Firefox 4 to 18 */
547
+ font-family: 'Source Sans Pro', sans-serif;
548
+ color: white;
549
+ opacity: 1;
550
+ font-weight: 400;
551
+ }
552
+
553
+ body ::-moz-placeholder {
554
+ /* Mozilla Firefox 19+ */
555
+ font-family: 'Source Sans Pro', sans-serif;
556
+ color: white;
557
+ opacity: 1;
558
+ font-weight: 400;
559
+ }
560
+
561
+ body :-ms-input-placeholder {
562
+ /* Internet Explorer 10+ */
563
+ font-family: 'Source Sans Pro', sans-serif;
564
+ color: white;
565
+ font-weight: 400;
566
+ }
567
+
568
+ .wrapper {
569
+ /*background: #2D83BA;
570
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
571
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
572
+ opacity: 0.8;*/
573
+ position: absolute;
574
+ top: 50%;
575
+ right: -60px;
576
+ width: 40%;
577
+ height: 400px;
578
+ margin-top: -150px;
579
+ overflow: hidden;
580
+
581
+ }
582
+
583
+ .wrapper.form-success .container h3 {
584
+ -webkit-transform: translateY(85px);
585
+ -ms-transform: translateY(85px);
586
+ transform: translateY(85px);
587
+ }
588
+
589
+ .container {
590
+ max-width: 350px;
591
+ margin: 0 auto;
592
+ padding: 30px 100px 50px 100px;
593
+ height: 400px;
594
+ text-align: center;
595
+ /*以下增加*/
596
+ background: #2D83BA;
597
+ background: -webkit-linear-gradient(top left, #2D83BA 0%, #2D83BA 100%);
598
+ background: linear-gradient(to bottom right, #2D83BA 0%, #2D83BA 100%);
599
+ opacity: 0.8;
600
+ }
601
+
602
+ .container h3 {
603
+ font-size: 40px;
604
+ -webkit-transition-duration: 1s;
605
+ transition-duration: 1s;
606
+ -webkit-transition-timing-function: ease-in-put;
607
+ transition-timing-function: ease-in-put;
608
+ font-weight: 200;
609
+ }
610
+
611
+ .form {
612
+ padding: 20px 0;
613
+ position: relative;
614
+ z-index: 2;
615
+ }
616
+
617
+ .form input {
618
+ -webkit-appearance: none;
619
+ -moz-appearance: none;
620
+ appearance: none;
621
+ outline: 0;
622
+ border: 1px solid #50ABE6;
623
+ background-color: #50ABE6;
624
+ width: 250px;
625
+ border-radius: 3px;
626
+ padding: 10px 15px;
627
+ margin: 0 auto 10px auto;
628
+ display: block;
629
+ text-align: center;
630
+ font-size: 18px;
631
+ color: white;
632
+ -webkit-transition-duration: 0.25s;
633
+ transition-duration: 0.25s;
634
+ font-weight: 400;
635
+ }
636
+
637
+ .form input:hover {
638
+ background-color: rgba(255, 255, 255, 0.4);
639
+ }
640
+
641
+ .form input:focus {
642
+ background-color: white;
643
+ width: 300px;
644
+ color: #53e3a6;
645
+ }
646
+
647
+ .usericon {
648
+ background-image: url(../../../static/usericon.png);
649
+ background-repeat: no-repeat;
650
+ background-size: 30px;
651
+ background-position-x: 8px;
652
+ background-position-y: 8px;
653
+ }
654
+
655
+ .psicon {
656
+ background-image: url(../../../static/psicon.png);
657
+ background-repeat: no-repeat;
658
+ background-size: 30px;
659
+ background-position-x: 8px;
660
+ background-position-y: 8px;
661
+ }
662
+
663
+ .form button {
664
+ -webkit-appearance: none;
665
+ -moz-appearance: none;
666
+ appearance: none;
667
+ outline: 0;
668
+ background-color: white;
669
+ border: 0;
670
+ padding: 10px 15px;
671
+ color: #253830;
672
+ border-radius: 3px;
673
+ width: 250px;
674
+ cursor: pointer;
675
+ font-size: 18px;
676
+ -webkit-transition-duration: 0.25s;
677
+ transition-duration: 0.25s;
678
+ }
679
+
680
+ .form button:hover {
681
+ background-color: #f5f7f9;
682
+ }
683
+
684
+ /*注册字体样式*/
685
+ .form span {
686
+ color: #fff;
687
+ display: table-footer-group;
688
+ position: absolute;
689
+ right: 10px;
690
+ margin-top: 10px;
691
+ cursor: pointer;
692
+ }
693
+
694
+ .logotitle {
695
+ color: #fff;
696
+ position: absolute;
697
+ top: 50px;
698
+ left: 50px;
699
+ font-size: 50px;
700
+ }
701
+
702
+ /*注册模态框界面样式*/
703
+ .modifystyle {
704
+ background: #FCFEEE;
705
+ }
706
+
707
+ .modifystyle div {
708
+ height: auto;
709
+ margin-bottom: 15px;
710
+ /*text-align: center;*/
711
+ /*margin-left: 20%;*/
712
+ }
713
+
714
+ /*bootstrap字体图标要手动调整,所以使用字体图标的span必须紧跟在input后面,负责会错位*/
715
+ .modifystyle div input + span {
716
+ top: 0 !important;
717
+ right: 32%;
718
+ }
719
+
720
+ .modifystyle span {
721
+ color: red;
722
+ }
723
+
724
+ /* 通告区内容 */
725
+ .notice-board {
726
+ height: auto;
727
+ position: absolute;
728
+ top: 50%;
729
+ margin-top: -150px;
730
+ margin-left: 100px;
731
+ color: #fff;
732
+ }
733
+
734
+ /*修改密码底部按钮部分样式*/
735
+ .footerbtn {
736
+ text-align: center;
737
+ padding: 15px;
738
+ }
739
+
740
+ .footerbtn button {
741
+ width: 100px;
742
+ margin-left: 20px;
743
+ }
744
+
745
+ .bg-bubbles {
746
+ position: absolute;
747
+ top: 0;
748
+ left: 0;
749
+ width: 100%;
750
+ height: 100%;
751
+ z-index: 1;
752
+ }
753
+
754
+ .bg-bubbles li {
755
+ position: absolute;
756
+ list-style: none;
757
+ display: block;
758
+ width: 40px;
759
+ height: 40px;
760
+ background-color: rgba(255, 255, 255, 0.15);
761
+ bottom: -160px;
762
+ -webkit-animation: square 25s infinite;
763
+ animation: square 25s infinite;
764
+ -webkit-transition-timing-function: linear;
765
+ transition-timing-function: linear;
766
+ }
767
+
768
+ .bg-bubbles li:nth-child(1) {
769
+ left: 10%;
770
+ }
771
+
772
+ .bg-bubbles li:nth-child(2) {
773
+ left: 20%;
774
+ width: 80px;
775
+ height: 80px;
776
+ -webkit-animation-delay: 2s;
777
+ animation-delay: 2s;
778
+ -webkit-animation-duration: 17s;
779
+ animation-duration: 17s;
780
+ }
781
+
782
+ .bg-bubbles li:nth-child(3) {
783
+ left: 25%;
784
+ -webkit-animation-delay: 4s;
785
+ animation-delay: 4s;
786
+ }
787
+
788
+ .bg-bubbles li:nth-child(4) {
789
+ left: 40%;
790
+ width: 60px;
791
+ height: 60px;
792
+ -webkit-animation-duration: 22s;
793
+ animation-duration: 22s;
794
+ background-color: rgba(255, 255, 255, 0.25);
795
+ }
796
+
797
+ .bg-bubbles li:nth-child(5) {
798
+ left: 70%;
799
+ }
800
+
801
+ .bg-bubbles li:nth-child(6) {
802
+ left: 80%;
803
+ width: 120px;
804
+ height: 120px;
805
+ -webkit-animation-delay: 3s;
806
+ animation-delay: 3s;
807
+ background-color: rgba(255, 255, 255, 0.2);
808
+ }
809
+
810
+ .bg-bubbles li:nth-child(7) {
811
+ left: 32%;
812
+ width: 160px;
813
+ height: 160px;
814
+ -webkit-animation-delay: 7s;
815
+ animation-delay: 7s;
816
+ }
817
+
818
+ .bg-bubbles li:nth-child(8) {
819
+ left: 55%;
820
+ width: 20px;
821
+ height: 20px;
822
+ -webkit-animation-delay: 15s;
823
+ animation-delay: 15s;
824
+ -webkit-animation-duration: 40s;
825
+ animation-duration: 40s;
826
+ }
827
+
828
+ .bg-bubbles li:nth-child(9) {
829
+ left: 25%;
830
+ width: 10px;
831
+ height: 10px;
832
+ -webkit-animation-delay: 2s;
833
+ animation-delay: 2s;
834
+ -webkit-animation-duration: 40s;
835
+ animation-duration: 40s;
836
+ background-color: rgba(255, 255, 255, 0.3);
837
+ }
838
+
839
+ .bg-bubbles li:nth-child(10) {
840
+ left: 90%;
841
+ width: 160px;
842
+ height: 160px;
843
+ -webkit-animation-delay: 11s;
844
+ animation-delay: 11s;
845
+ }
846
+ .logofooter{
847
+ font-size: 12px;
848
+ color:#fff;
849
+ width:150px;
850
+ margin-left: 17px;
851
+ }
852
+ .logocontent{
853
+ font-size: 14px;
854
+ color:#fff;
855
+ width:150px;
856
+ margin: 3px -15px;
857
+ }
858
+ .imglogo {
859
+ background:url(../../../static/logo.png);
860
+ background-size:100%;
861
+ }
862
+ .login-form{
863
+ border-radius: 10px;
864
+ margin: 0 -12%;
865
+ background: white;
866
+ padding: 5%;
867
+ }
868
+ .logoew {
869
+ width:120px;
870
+ height:120px;
871
+ float:right;
872
+ margin-right:8.5%;
873
+ margin-top:10px;
874
+ }
875
+ .syslogin{
876
+ background-image: url(../../../static/newStyle/dongguan1.png) !important;
877
+ }
878
+ @-webkit-keyframes square {
879
+ 0% {
880
+ -webkit-transform: translateY(0);
881
+ transform: translateY(0);
882
+ }
883
+ 100% {
884
+ -webkit-transform: translateY(-700px) rotate(600deg);
885
+ transform: translateY(-700px) rotate(600deg);
886
+ }
887
+ }
888
+
889
+ @keyframes square {
890
+ 0% {
891
+ -webkit-transform: translateY(0);
892
+ transform: translateY(0);
893
+ }
894
+ 100% {
895
+ -webkit-transform: translateY(-700px) rotate(600deg);
896
+ transform: translateY(-700px) rotate(600deg);
897
+ }
898
+
899
+ }
900
+ </style>