system-clients 3.2.63-jingwei → 3.2.64-wuhai

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