system-clients 3.2.52 → 3.2.53-furuike

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