qj-common 4.3.0 → 4.3.2

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 (229) hide show
  1. package/.babelrc +12 -12
  2. package/.eslintrc.js +25 -25
  3. package/.idea/common.iml +11 -11
  4. package/.idea/modules.xml +7 -7
  5. package/.idea/vcs.xml +5 -5
  6. package/.postcssrc.js +9 -9
  7. package/.prettierrc.js +7 -7
  8. package/.project +37 -37
  9. package/README.md +2 -2
  10. package/gulpfile.js +20 -20
  11. package/package.json +18 -18
  12. package/src/api/apimanage.js +146 -146
  13. package/src/api/common/index.js +192 -192
  14. package/src/api/login.js +160 -160
  15. package/src/api/shopFbu.js +515 -515
  16. package/src/api/upload.js +8 -8
  17. package/src/components/Bounced/index.vue +145 -145
  18. package/src/components/Breadcrumb/index.vue +71 -71
  19. package/src/components/Checkbox/index.vue +53 -53
  20. package/src/components/Hamburger/index.vue +48 -48
  21. package/src/components/Logistics/logic.vue +186 -186
  22. package/src/components/ScrollBar/index.vue +60 -60
  23. package/src/components/Sticky/index.vue +76 -76
  24. package/src/components/SvgIcon/index.vue +42 -42
  25. package/src/components/ThemePicker/index.vue +243 -243
  26. package/src/components/Tinymce/components/editorImage.vue +94 -94
  27. package/src/components/Tinymce/index.vue +166 -166
  28. package/src/components/Tinymce/plugins.js +7 -7
  29. package/src/components/Tinymce/toolbar.js +6 -6
  30. package/src/components/TreeTable/customEval.js +44 -44
  31. package/src/components/TreeTable/eval.js +29 -29
  32. package/src/components/TreeTable/index.vue +124 -124
  33. package/src/components/TreeTable/readme.md +89 -89
  34. package/src/components/TreeTableApi/customEval.js +49 -49
  35. package/src/components/TreeTableApi/eval.js +29 -29
  36. package/src/components/TreeTableApi/index.vue +124 -124
  37. package/src/components/TreeTableApi/readme.md +89 -89
  38. package/src/components/Upload/singleImage.vue +123 -123
  39. package/src/components/Upload/singleImage2.vue +118 -118
  40. package/src/components/Upload/singleImage3.vue +138 -138
  41. package/src/components/Upload/upload.vue +295 -295
  42. package/src/components/workOrderList/index.vue +158 -158
  43. package/src/dependencies.js +119 -119
  44. package/src/iconShop/demo.css +539 -539
  45. package/src/iconShop/demo_index.html +8445 -8445
  46. package/src/iconShop/iconfont.css +1451 -1451
  47. package/src/iconShop/iconfont.json +2522 -2522
  48. package/src/iconShop/iconfont.svg +1070 -1070
  49. package/src/iconfont/demo.css +539 -539
  50. package/src/iconfont/demo_index.html +5276 -5276
  51. package/src/iconfont/iconfont.css +905 -905
  52. package/src/iconfont/iconfont.json +1563 -1563
  53. package/src/iconfont/iconfont.svg +692 -692
  54. package/src/icons/index.js +9 -9
  55. package/src/lang/e.js +48 -48
  56. package/src/lang/en.js +48 -48
  57. package/src/lang/zh.js +48 -48
  58. package/src/main.js +62 -62
  59. package/src/permission.js +283 -283
  60. package/src/permissionForMall.backup.js +375 -375
  61. package/src/permissionForMall.js +375 -375
  62. package/src/preset.js +67 -67
  63. package/src/router/_import_common.js +1 -1
  64. package/src/router/_import_development.js +1 -1
  65. package/src/router/_import_production.js +1 -1
  66. package/src/store/getters.js +39 -39
  67. package/src/store/index.js +18 -18
  68. package/src/store/modules/app.js +34 -30
  69. package/src/store/modules/menu.js +82 -82
  70. package/src/store/modules/user.js +227 -227
  71. package/src/styles/element-ui.scss +1368 -1368
  72. package/src/styles/index.scss +166 -166
  73. package/src/styles/mixin.scss +27 -27
  74. package/src/styles/pc-ui.scss +1031 -1031
  75. package/src/styles/scrollBar.scss +21 -21
  76. package/src/styles/sidebar.scss +123 -123
  77. package/src/styles/transition.scss +32 -32
  78. package/src/styles/variables.scss +44 -44
  79. package/src/styles/wf-ui.scss +86 -86
  80. package/src/utils/auth.js +57 -57
  81. package/src/utils/dom.js +12 -12
  82. package/src/utils/getQueryString.js +5 -5
  83. package/src/utils/import.js +5 -5
  84. package/src/utils/index.js +355 -355
  85. package/src/utils/interceptor.js +34 -34
  86. package/src/utils/menu.js +116 -116
  87. package/src/utils/proapp.js +35 -35
  88. package/src/utils/query.js +26 -26
  89. package/src/utils/request.js +366 -366
  90. package/src/utils/routeMapping.js +39 -39
  91. package/src/utils/routeMapping.json +310 -310
  92. package/src/utils/utils.js +84 -84
  93. package/src/utils/validate.js +102 -102
  94. package/src/views/404.vue +72 -72
  95. package/src/views/Layout.vue +106 -106
  96. package/src/views/imgSwiper/index.vue +34 -34
  97. package/src/views/layout/Layout.vue +181 -170
  98. package/src/views/layout/components/AppMain.vue +20 -20
  99. package/src/views/layout/components/Footer.vue +22 -22
  100. package/src/views/layout/components/LeftNavbar.vue +318 -310
  101. package/src/views/layout/components/NavMenu.vue +15 -15
  102. package/src/views/layout/components/Navbar.vue +664 -661
  103. package/src/views/layout/components/Sidebar/SidebarItem.vue +116 -113
  104. package/src/views/layout/components/Sidebar/index.vue +203 -193
  105. package/src/views/layout/components/index.js +19 -19
  106. package/src/views/layout/theme/darkBlue/Layout.vue +140 -140
  107. package/src/views/layout/theme/darkBlue/components/AppMain.vue +38 -38
  108. package/src/views/layout/theme/darkBlue/components/Footer.vue +147 -147
  109. package/src/views/layout/theme/darkBlue/components/LeftNavbar(/345/261/225/347/244/272/345/205/250/351/203/250/350/217/234/345/215/225).vue +448 -448
  110. package/src/views/layout/theme/darkBlue/components/LeftNavbar.3.vue +191 -191
  111. package/src/views/layout/theme/darkBlue/components/LeftNavbar.vue +466 -466
  112. package/src/views/layout/theme/darkBlue/components/Navbar.vue +200 -200
  113. package/src/views/layout/theme/darkBlue/components/Sidebar/SidebarItem.vue +71 -71
  114. package/src/views/layout/theme/darkBlue/components/Sidebar/index.vue +49 -49
  115. package/src/views/layout/theme/darkBlue/components/index.js +15 -15
  116. package/src/views/layout-default/Layout.vue +134 -134
  117. package/src/views/layout-default/components/AppMain.vue +19 -19
  118. package/src/views/layout-default/components/Footer.vue +22 -22
  119. package/src/views/layout-default/components/LeftNavbar.vue +164 -164
  120. package/src/views/layout-default/components/Navbar.vue +295 -295
  121. package/src/views/layout-default/components/Sidebar/SidebarItem.vue +67 -67
  122. package/src/views/layout-default/components/Sidebar/index.vue +59 -59
  123. package/src/views/layout-default/components/index.js +4 -4
  124. package/src/views/layout-default/theme/darkBlue/Layout.vue +140 -140
  125. package/src/views/layout-default/theme/darkBlue/components/AppMain.vue +38 -38
  126. package/src/views/layout-default/theme/darkBlue/components/Footer.vue +147 -147
  127. package/src/views/layout-default/theme/darkBlue/components/LeftNavbar.vue +465 -465
  128. package/src/views/layout-default/theme/darkBlue/components/Navbar.vue +200 -200
  129. package/src/views/layout-default/theme/darkBlue/components/Sidebar/SidebarItem.vue +69 -69
  130. package/src/views/layout-default/theme/darkBlue/components/Sidebar/index.vue +49 -49
  131. package/src/views/layout-default/theme/darkBlue/components/index.js +15 -15
  132. package/src/views/pc/Internationalization.vue +80 -80
  133. package/src/views/pc/default/Layout.vue +442 -442
  134. package/src/views/pc/default/LayoutCard.vue +424 -424
  135. package/src/views/pc/default/assets/flex.scss +99 -99
  136. package/src/views/pc/default/footer-modules/DgFooter/index.vue +179 -179
  137. package/src/views/pc/default/footer-modules/DgFooter/indexSDX.vue +187 -187
  138. package/src/views/pc/default/footer-modules/footer.vue +171 -171
  139. package/src/views/pc/default/footer-modules/footerAns.vue +167 -167
  140. package/src/views/pc/default/footer-modules/footerBulk.vue +169 -169
  141. package/src/views/pc/default/footer-modules/footerDM.vue +254 -254
  142. package/src/views/pc/default/footer-modules/footerDefault.vue +267 -267
  143. package/src/views/pc/default/footer-modules/footerDefaultA.vue +270 -270
  144. package/src/views/pc/default/footer-modules/footerDefaultNew.vue +201 -201
  145. package/src/views/pc/default/footer-modules/footerHDB.vue +153 -153
  146. package/src/views/pc/default/footer-modules/footerHy.vue +63 -63
  147. package/src/views/pc/default/footer-modules/footerKYW.vue +163 -163
  148. package/src/views/pc/default/footer-modules/footerMh.vue +30 -30
  149. package/src/views/pc/default/footer-modules/footerNew.vue +116 -116
  150. package/src/views/pc/default/footer-modules/footer_yzj.vue +169 -169
  151. package/src/views/pc/default/footer-modules/footerayd.vue +85 -85
  152. package/src/views/pc/default/footer-modules/ymFooter.vue +154 -154
  153. package/src/views/pc/default/footer-modules/zgl.vue +250 -250
  154. package/src/views/pc/default/header-modules/DgHeader/Logo.vue +57 -57
  155. package/src/views/pc/default/header-modules/DgHeader/Search.vue +135 -135
  156. package/src/views/pc/default/header-modules/DgHeader/Settleup.vue +46 -46
  157. package/src/views/pc/default/header-modules/DgHeader/index.vue +38 -38
  158. package/src/views/pc/default/header-modules/active.vue +177 -177
  159. package/src/views/pc/default/header-modules/header.vue +97 -97
  160. package/src/views/pc/default/header-modules/headerA.vue +142 -142
  161. package/src/views/pc/default/header-modules/headerFLPT.vue +157 -157
  162. package/src/views/pc/default/header-modules/headerMh.vue +187 -187
  163. package/src/views/pc/default/header-modules/headerNew.vue +121 -121
  164. package/src/views/pc/default/header-modules/headerSDX.vue +304 -304
  165. package/src/views/pc/default/header-modules/headerStyle2.vue +173 -173
  166. package/src/views/pc/default/header-modules/headerStyle3.vue +190 -190
  167. package/src/views/pc/default/header-modules/headerStyle4.vue +163 -163
  168. package/src/views/pc/default/header-modules/headerStyleAns.vue +400 -400
  169. package/src/views/pc/default/header-modules/headerStyleBulk.vue +427 -427
  170. package/src/views/pc/default/header-modules/headerStyleDefalut.vue +209 -209
  171. package/src/views/pc/default/header-modules/headerStyleKYW.vue +435 -435
  172. package/src/views/pc/default/header-modules/headerStyle_yzj.vue +427 -427
  173. package/src/views/pc/default/header-modules/headerayd.vue +187 -187
  174. package/src/views/pc/default/header-modules/index.vue +466 -466
  175. package/src/views/pc/default/header-modules/ymHeader.vue +292 -292
  176. package/src/views/pc/default/header-modules/ysHeader.vue +248 -248
  177. package/src/views/pc/default/header-modules/zgl.vue +855 -855
  178. package/src/views/pc/default/leftMenu-modules/leftMenu-logo.vue +194 -194
  179. package/src/views/pc/default/leftMenu-modules/leftMenu-style2.vue +206 -206
  180. package/src/views/pc/default/leftMenu-modules/leftMenu-style3.vue +207 -207
  181. package/src/views/pc/default/leftMenu-modules/leftMenu-style4.vue +192 -192
  182. package/src/views/pc/default/leftMenu-modules/leftMenu.vue +183 -183
  183. package/src/views/pc/default/leftMenu-modules/leftMenuDefault.vue +212 -212
  184. package/src/views/pc/default/leftMenu-modules/leftMenuDefaultEn.vue +214 -214
  185. package/src/views/pc/default/leftMenu-modules/leftMenuDefaultFLPT.vue +220 -220
  186. package/src/views/pc/default/leftMenu-modules/leftMenuDefaultayd.vue +220 -220
  187. package/src/views/pc/default/nav-modules/nav.vue +52 -52
  188. package/src/views/pc/default/nav-modules/navAns.vue +60 -60
  189. package/src/views/pc/default/nav-modules/navBulk.vue +60 -60
  190. package/src/views/pc/default/top-modules/DgTopShortcut/index.vue +177 -177
  191. package/src/views/pc/default/top-modules/Toplg.vue +280 -280
  192. package/src/views/pc/default/top-modules/topA.vue +136 -136
  193. package/src/views/pc/default/top-modules/topAns.vue +261 -261
  194. package/src/views/pc/default/top-modules/topAns_yzj.vue +282 -282
  195. package/src/views/pc/default/top-modules/topBar.vue +304 -304
  196. package/src/views/pc/default/top-modules/topBulk.vue +280 -280
  197. package/src/views/pc/default/top-modules/topDefault.vue +244 -244
  198. package/src/views/pc/default/top-modules/topDefaultDM.vue +197 -197
  199. package/src/views/pc/default/top-modules/topDefaultNew.vue +271 -271
  200. package/src/views/pc/default/top-modules/topFLPT.vue +197 -197
  201. package/src/views/pc/default/top-modules/topHDB.vue +479 -479
  202. package/src/views/pc/default/top-modules/topKYW.vue +258 -258
  203. package/src/views/pc/default/top-modules/topMh.vue +174 -174
  204. package/src/views/pc/default/top-modules/topNew.vue +97 -97
  205. package/src/views/pc/default/top-modules/topSDX.vue +298 -298
  206. package/src/views/pc/default/top-modules/topSimple.vue +247 -247
  207. package/src/views/pc/default/top-modules/topSimpleHy.vue +256 -256
  208. package/src/views/pc/default/top-modules/topUcc.vue +264 -264
  209. package/src/views/pc/default/top-modules/topayd.vue +170 -170
  210. package/src/views/pc/default/top-modules/ymTop.vue +299 -299
  211. package/src/views/pc/default/top-modules/zgltop.vue +499 -499
  212. package/src/views/routerView.vue +9 -9
  213. package/src/views/templates/components/temp-select.vue +80 -80
  214. package/src/views/templates/components/temp-upload.vue +233 -233
  215. package/src/views/templates/readme.md +2 -2
  216. package/src/views/templates/templateInput.vue +421 -421
  217. package/src/views/templates/templateReadme.html +588 -588
  218. package/src/views/templates/templateReadme.md +619 -619
  219. package/src/views/templates/templateTable.vue +2243 -2243
  220. package/src/views/templates/templateTableData.vue +1883 -1883
  221. package/src/views/templates/templateUi/templateTableContent.vue +187 -187
  222. package/src/views/treeTemplate/index.vue +559 -559
  223. package/src/views/treeTemplate/treeTemplate.md +274 -274
  224. package/src/views/uploadDialog/index copy.vue +352 -352
  225. package/src/views/uploadDialog/index.vue +558 -558
  226. package/src/views/uploadDialog/indexOlay.vue +582 -582
  227. package/src/views/uploadDialog/indexPM.vue +578 -578
  228. package/src/views/uploadDialog/indexUpload.vue +543 -543
  229. package/src/views/uploadDialog/readme.md +45 -45
@@ -1,500 +1,500 @@
1
- <template>
2
- <div class="common-top-bar cephalosome">
3
- <div class="halo">
4
- <div class="halo_head auto">
5
- <div class="halo_he">
6
- <span class="color_h register" v-if="!isLogin || !userInfor">欢迎光临众管联</span>
7
- <span class="color_h welcome" v-if="isLogin && userInfor">
8
- <!-- <a class="login-btn">请登录</a> -->
9
- <a class="show-name" href="javascript:;">{{'Hi,'}}{{userInfor.merberCompname}}</a>
10
- </span>
11
- <span class="bx-reg color_h" v-if="isLogin && userInfor">
12
- <a @click="logout" class="quit">退出</a>
13
- </span>
14
- </div>
15
- <div class="halo_he halo_rig">
16
- <span class="color_h " style="padding: 0px;" v-if="!isLogin || !userInfor">您好,请<a href="/paas/index/index.html#/loginPc">登录</a>
17
- </span>
18
- <span class="color_h" style="padding: 0px; padding-right: 6px;" v-if="!isLogin || !userInfor">
19
- <a style="color: #48b1e0!important;margin-left: 6px;" href="/paas/index/index.html#/regPc">免费注册</a>
20
- </span>
21
- <span class="color_h" style="border-left: 1px solid #ccc;" v-if="isLogin && userInfor">
22
- <a href="/paas/user-manager/index.html#/user">
23
- <span class="useicon bgcoloricon">
24
- <i class="iconfont icon-UCC-PC-huiyuan"></i>
25
- <!--<img alt src="../assets/hyzx.png" />-->
26
- </span>会员中心
27
- </a>
28
- </span>
29
- <span class="color_h" style="border-left: 1px solid #ccc;" v-if="!isLogin || !userInfor">
30
- <a href="/paas/user-manager/index.html#/user">
31
- <span class="useicon">
32
- <!--<img alt src="../assets/hyzx.png" />-->
33
- <i class="iconfont icon-UCC-PC-huiyuan"></i>
34
- </span>会员中心
35
- </a>
36
- </span>
37
- <span class="color_h kfbot" style="border-left: 1px solid #ccc;">
38
- <a>
39
- <span class="kficon">
40
- <i class="iconfont icon-kefu2"></i>
41
- <!--<img alt src="../assets/a13.png" />-->
42
- </span>客服:0755-26855555
43
- </a>
44
- </span>
45
- </div>
46
- </div>
47
- </div>
48
- <slot></slot>
49
- </div>
50
- </template>
51
-
52
- <script>
53
- import { logout } from "#/api/login";
54
- import { getToken, removeToken } from "#/utils/auth";
55
- import API from "#/api/common/index.js";
56
- import erwm from "#/assets/newerwei.png";
57
-
58
- export default {
59
- data() {
60
- return {
61
- gw: "暂无顾问",
62
- flaggw: false,
63
- myerwm: erwm,
64
- show: false,
65
- total: 0,
66
- logins: null
67
- };
68
- },
69
- updated() {
70
- this.gw = this.th("none");
71
- },
72
- computed: {
73
- isLogin() {
74
- this.logins = this.getUserCookie() ?
75
- getToken(this.getUserCookie()) :
76
- false;
77
- return this.getUserCookie() ? getToken(this.getUserCookie()) : false;
78
- },
79
- userInfor() {
80
- let info =
81
- this.getUserCookie() && getToken(this.getUserCookie()) ?
82
- JSON.parse(getToken(this.getUserCookie())) : {};
83
- return info;
84
- }
85
- },
86
- watch: {
87
- logins(newVal, oldVal) {
88
- if(newVal) {
89
- this.getCarNum();
90
- }
91
- }
92
- },
93
- mounted() {
94
- window.addEventListener("click", this.gwhide);
95
- },
96
- methods: {
97
- th(key) {
98
- return this.$th("common.pc.default.topModules.topDefault.", key);
99
- },
100
- getCarNum() {
101
- API.shoppingList().then(res => {
102
- this.total = res && res.total;
103
- });
104
- },
105
- gwopen() {
106
- API.getCustrelByEmployee().then(res => {
107
- if(res) {
108
- if(res.employeePhone) {
109
- this.gw = res.employeePhone;
110
- } else {
111
- this.gw = this.th("none");
112
- }
113
- } else {
114
- this.gw = this.th("none");
115
- }
116
- });
117
- this.flaggw = true;
118
- },
119
- gwhide() {
120
- this.flaggw = false;
121
- },
122
- enter() {
123
- this.show = true;
124
- },
125
- leave() {
126
- this.show = false;
127
- },
128
- login() {
129
- location.href = "/paas/pc-mall/index.html#/loginPc";
130
- },
131
- register() {
132
- location.href = "/paas/pc-mall/index.html#/regPc";
133
- },
134
- logout() {
135
- // 退出
136
- logout().then(() => {
137
- let newDomain = document.domain
138
- .split(".")
139
- .splice(-2)
140
- .join(".");
141
- removeToken("LOGININFO", newDomain, "/");
142
- removeToken("personalInfo", newDomain, "/");
143
- // location.reload();
144
- location.href = location.origin;
145
- });
146
- },
147
- getUserCookie() {
148
- let cookie = document.cookie;
149
- let start = cookie.indexOf("saas-user-");
150
- if(start > -1) {
151
- let end = cookie.indexOf("=", start);
152
- return cookie.substring(start, end);
153
- } else {
154
- return null;
155
- }
156
- }
157
- }
158
- };
159
- </script>
160
-
161
- <style rel="stylesheet/scss" lang="scss" scoped>
162
- // .common-top-bar {
163
- // position: relative;
164
- // .right{
165
- // .cars{
166
- // position: relative;
167
- // }
168
- // span{
169
- // display: inline-block;
170
- // color: #666666;;
171
- // border-radius: 50%;
172
- // // top: 5px;
173
- // // right: -15px;
174
- // width: 18px;
175
- // height: 18px;
176
- // text-align: center;
177
- // // line-height: 18px;
178
- // position: absolute;
179
- // font-size: 14px;
180
- // }
181
- // }
182
- // }
183
- // .login-name {
184
- // float: left;
185
- // font-size: 14px;
186
- // color: #333;
187
- // span {
188
- // margin-right: 17px;
189
- // }
190
- // a {
191
- // color: #333;
192
- // margin: 0 7px;
193
- // }
194
- // }
195
- // .login-names {
196
- // color: #666;
197
- // span {
198
- // cursor: pointer;
199
- // }
200
- // a {
201
- // color: #666;
202
- // }
203
- // }
204
- // .common-top-bar {
205
- // .rignt-line {
206
- // color: #ccc;
207
- // }
208
- // color: #666;
209
- // font-size: 13px;
210
- // width: 100%;
211
- // height: 38px;
212
- // line-height: 38px;
213
- // background-color: #fafafa;
214
- // .inner {
215
- // .left {
216
- // float: left;
217
- // }
218
- // .right {
219
- // float: right;
220
- // position: relative;
221
- // span{
222
- // width: 66px;
223
- // }
224
- // ul {
225
- // margin-right: 1px;
226
- // width: 315px;
227
- // height: 38px;
228
- // li{
229
- // // float: left;
230
- // display: inline-block;
231
- // }
232
- // .li{
233
- // height: 24px;
234
- // padding: 0 23px 0;
235
- // // width: 52px;
236
- // position: relative;
237
- // // margin: 0 7px;
238
- // a {
239
- // display: block;
240
- // color: #666;
241
- // height: 38px;
242
- // // width: 52px;
243
- // line-height: 38px;
244
- // }
245
- // }
246
- // }
247
- // .line {
248
- // width: 1px;
249
- // height: 16px;
250
- // background: #ccc;
251
- // margin: 12px 28px;
252
- // }
253
- // .item {
254
- // vertical-align: top;
255
- // height: 20px;
256
- // margin-top: 12px;
257
- // line-height: 20px;
258
- // }
259
- // }
260
- // }
261
- // }
262
- .auto {
263
- margin: 0 auto;
264
- width: 1200px;
265
- }
266
-
267
- .pad-l10 {
268
- padding-left: 10px;
269
- }
270
-
271
- .cephalosome {
272
- width: 100%;
273
- min-width: 1200px;
274
- height: 40px;
275
- top: 0;
276
- z-index: 9999;
277
- .kfbot {
278
- padding-right: 0px !important;
279
- position: relative;
280
- .shopping_service {
281
- position: absolute;
282
- top: 2rem;
283
- right: -6.6rem;
284
- width: 15rem;
285
- display: none;
286
- text-align: center;
287
- }
288
- }
289
- .halo {
290
- background: rgba(245, 245, 245, 1);
291
- box-sizing: border-box;
292
- font-size: 14px;
293
- .useicon {
294
- /*display: inline-block;
295
- text-align: center;*/
296
- vertical-align: sub;
297
- i {
298
- font-size: 22px;
299
- margin-right: -7px;
300
- color: #74747499;
301
- }
302
- img {
303
- width: 20px;
304
- height: 18px;
305
- text-align: center;
306
- line-height: 20px;
307
- }
308
- }
309
- .bgcoloricon {}
310
- .kficon {
311
- width: 19px;
312
- height: 20px;
313
- display: inline-block;
314
- text-align: center;
315
- line-height: 20px;
316
- color: rgba(160, 160, 160, 1);
317
- margin-right: 7px;
318
- i {
319
- font-size: 15px;
320
- }
321
- img {
322
- width: 24px;
323
- height: 24px;
324
- text-align: center;
325
- line-height: 24px;
326
- }
327
- }
328
- .halo_head {
329
- width: 1200px;
330
- height: 40px;
331
- line-height: 39px;
332
- display: -webkit-flex;
333
- display: flex;
334
- .register {
335
- padding: 0px !important;
336
- }
337
- .halo_he {
338
- flex: 1;
339
- >span {
340
- padding: 0 12px 0;
341
- }
342
- .color_h {
343
- font-family: Microsoft YaHei;
344
- font-weight: 400;
345
- color: #515151;
346
- a {
347
- color: #515151;
348
- }
349
- a:hover {
350
- color: #48B1E0;
351
- span {
352
- color: #48B1E0;
353
- }
354
- i {
355
- color: #48B1E0;
356
- }
357
- }
358
- }
359
- #halo_version {
360
- margin: 0 3% 0 1%;
361
- }
362
- }
363
- .halo_rig {
364
- text-align: right;
365
- }
366
- }
367
- }
368
- .Helmet {
369
- background: white;
370
- .Helmet_p {
371
- position: relative;
372
- height: 120px;
373
- box-sizing: border-box;
374
- display: -webkit-flex;
375
- display: flex;
376
- .Helmet_e {
377
- width: 205px;
378
- height: 68px;
379
- overflow: hidden;
380
- margin: 32px 80px 0 0;
381
- .Helme_img {
382
- width: 100%;
383
- height: 100%;
384
- img {
385
- vertical-align: top;
386
- width: 100%;
387
- height: 100%;
388
- }
389
- }
390
- }
391
- .Helmet_w {
392
- margin: 43px 0 0 20px;
393
- width: 700px;
394
- .Helmet_t {
395
- width: 540px;
396
- height: 45px;
397
- margin: 0 34px 13px 57px;
398
- .Helmet_input {
399
- position: relative;
400
- width: 518px;
401
- height: 48px;
402
- line-height: 48px;
403
- background: white;
404
- border: 1px solid #1cac43;
405
- box-sizing: border-box;
406
- -webkit-transition: all 0.3s;
407
- transition: all 0.3s;
408
- >i {
409
- vertical-align: middle;
410
- color: #c0c4cc;
411
- font-size: 8px;
412
- }
413
- >input::-webkit-input-placeholder {
414
- /* placeholder颜色 */
415
- color: #989898;
416
- /* placeholder字体大小 */
417
- font-size: 14px;
418
- }
419
- >input {
420
- width: 340px;
421
- color: #989898;
422
- font-size: 14px;
423
- }
424
- .Helmet_seek {
425
- cursor: pointer;
426
- display: inline-block;
427
- width: 130px;
428
- height: 47.9px;
429
- background: #1cac43;
430
- text-align: center;
431
- font-size: 22px;
432
- font-weight: Regular;
433
- color: white;
434
- border: 1px solid #1cac43;
435
- box-sizing: border-box;
436
- position: relative;
437
- right: -1px;
438
- float: right;
439
- line-height: 45px;
440
- }
441
- }
442
- }
443
- }
444
- .Helmet_s {
445
- border: 1px solid #1cac43;
446
- cursor: pointer;
447
- margin-top: 43px;
448
- width: 208px;
449
- height: 48px;
450
- .Helmet_ico {
451
- display: inline-block;
452
- position: relative;
453
- height: 45px;
454
- line-height: 44px;
455
- background: white;
456
- // border: 1px solid #d5d3d3;
457
- font-size: 25px;
458
- font-weight: 400;
459
- color: #000000;
460
- text-align: center;
461
- padding: 0 20px;
462
- .Helmet_i {
463
- >i {
464
- font-size: 20px !important;
465
- vertical-align: middle;
466
- color: #939393;
467
- }
468
- }
469
- }
470
- .mcar {
471
- font-size: 16px;
472
- color: #545353;
473
- }
474
- .ico_car {
475
- width: 32px;
476
- height: 32px;
477
- line-height: 31px;
478
- font-style: normal;
479
- display: none;
480
- background: #ff9e01;
481
- border-radius: 50%;
482
- text-align: center;
483
- top: 18%;
484
- right: 6.5%;
485
- position: absolute;
486
- font-size: 18px;
487
- font-weight: 400;
488
- color: rgba(255, 255, 255, 1);
489
- }
490
- }
491
- .Helmet_V {
492
- display: none;
493
- position: absolute;
494
- right: 0%;
495
- top: 1%;
496
- }
497
- }
498
- }
499
- }
1
+ <template>
2
+ <div class="common-top-bar cephalosome">
3
+ <div class="halo">
4
+ <div class="halo_head auto">
5
+ <div class="halo_he">
6
+ <span class="color_h register" v-if="!isLogin || !userInfor">欢迎光临众管联</span>
7
+ <span class="color_h welcome" v-if="isLogin && userInfor">
8
+ <!-- <a class="login-btn">请登录</a> -->
9
+ <a class="show-name" href="javascript:;">{{'Hi,'}}{{userInfor.merberCompname}}</a>
10
+ </span>
11
+ <span class="bx-reg color_h" v-if="isLogin && userInfor">
12
+ <a @click="logout" class="quit">退出</a>
13
+ </span>
14
+ </div>
15
+ <div class="halo_he halo_rig">
16
+ <span class="color_h " style="padding: 0px;" v-if="!isLogin || !userInfor">您好,请<a href="/paas/index/index.html#/loginPc">登录</a>
17
+ </span>
18
+ <span class="color_h" style="padding: 0px; padding-right: 6px;" v-if="!isLogin || !userInfor">
19
+ <a style="color: #48b1e0!important;margin-left: 6px;" href="/paas/index/index.html#/regPc">免费注册</a>
20
+ </span>
21
+ <span class="color_h" style="border-left: 1px solid #ccc;" v-if="isLogin && userInfor">
22
+ <a href="/paas/user-manager/index.html#/user">
23
+ <span class="useicon bgcoloricon">
24
+ <i class="iconfont icon-UCC-PC-huiyuan"></i>
25
+ <!--<img alt src="../assets/hyzx.png" />-->
26
+ </span>会员中心
27
+ </a>
28
+ </span>
29
+ <span class="color_h" style="border-left: 1px solid #ccc;" v-if="!isLogin || !userInfor">
30
+ <a href="/paas/user-manager/index.html#/user">
31
+ <span class="useicon">
32
+ <!--<img alt src="../assets/hyzx.png" />-->
33
+ <i class="iconfont icon-UCC-PC-huiyuan"></i>
34
+ </span>会员中心
35
+ </a>
36
+ </span>
37
+ <span class="color_h kfbot" style="border-left: 1px solid #ccc;">
38
+ <a>
39
+ <span class="kficon">
40
+ <i class="iconfont icon-kefu2"></i>
41
+ <!--<img alt src="../assets/a13.png" />-->
42
+ </span>客服:0755-26855555
43
+ </a>
44
+ </span>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <slot></slot>
49
+ </div>
50
+ </template>
51
+
52
+ <script>
53
+ import { logout } from "#/api/login";
54
+ import { getToken, removeToken } from "#/utils/auth";
55
+ import API from "#/api/common/index.js";
56
+ import erwm from "#/assets/newerwei.png";
57
+
58
+ export default {
59
+ data() {
60
+ return {
61
+ gw: "暂无顾问",
62
+ flaggw: false,
63
+ myerwm: erwm,
64
+ show: false,
65
+ total: 0,
66
+ logins: null
67
+ };
68
+ },
69
+ updated() {
70
+ this.gw = this.th("none");
71
+ },
72
+ computed: {
73
+ isLogin() {
74
+ this.logins = this.getUserCookie() ?
75
+ getToken(this.getUserCookie()) :
76
+ false;
77
+ return this.getUserCookie() ? getToken(this.getUserCookie()) : false;
78
+ },
79
+ userInfor() {
80
+ let info =
81
+ this.getUserCookie() && getToken(this.getUserCookie()) ?
82
+ JSON.parse(getToken(this.getUserCookie())) : {};
83
+ return info;
84
+ }
85
+ },
86
+ watch: {
87
+ logins(newVal, oldVal) {
88
+ if(newVal) {
89
+ this.getCarNum();
90
+ }
91
+ }
92
+ },
93
+ mounted() {
94
+ window.addEventListener("click", this.gwhide);
95
+ },
96
+ methods: {
97
+ th(key) {
98
+ return this.$th("common.pc.default.topModules.topDefault.", key);
99
+ },
100
+ getCarNum() {
101
+ API.shoppingList().then(res => {
102
+ this.total = res && res.total;
103
+ });
104
+ },
105
+ gwopen() {
106
+ API.getCustrelByEmployee().then(res => {
107
+ if(res) {
108
+ if(res.employeePhone) {
109
+ this.gw = res.employeePhone;
110
+ } else {
111
+ this.gw = this.th("none");
112
+ }
113
+ } else {
114
+ this.gw = this.th("none");
115
+ }
116
+ });
117
+ this.flaggw = true;
118
+ },
119
+ gwhide() {
120
+ this.flaggw = false;
121
+ },
122
+ enter() {
123
+ this.show = true;
124
+ },
125
+ leave() {
126
+ this.show = false;
127
+ },
128
+ login() {
129
+ location.href = "/paas/pc-mall/index.html#/loginPc";
130
+ },
131
+ register() {
132
+ location.href = "/paas/pc-mall/index.html#/regPc";
133
+ },
134
+ logout() {
135
+ // 退出
136
+ logout().then(() => {
137
+ let newDomain = document.domain
138
+ .split(".")
139
+ .splice(-2)
140
+ .join(".");
141
+ removeToken("LOGININFO", newDomain, "/");
142
+ removeToken("personalInfo", newDomain, "/");
143
+ // location.reload();
144
+ location.href = location.origin;
145
+ });
146
+ },
147
+ getUserCookie() {
148
+ let cookie = document.cookie;
149
+ let start = cookie.indexOf("saas-user-");
150
+ if(start > -1) {
151
+ let end = cookie.indexOf("=", start);
152
+ return cookie.substring(start, end);
153
+ } else {
154
+ return null;
155
+ }
156
+ }
157
+ }
158
+ };
159
+ </script>
160
+
161
+ <style rel="stylesheet/scss" lang="scss" scoped>
162
+ // .common-top-bar {
163
+ // position: relative;
164
+ // .right{
165
+ // .cars{
166
+ // position: relative;
167
+ // }
168
+ // span{
169
+ // display: inline-block;
170
+ // color: #666666;;
171
+ // border-radius: 50%;
172
+ // // top: 5px;
173
+ // // right: -15px;
174
+ // width: 18px;
175
+ // height: 18px;
176
+ // text-align: center;
177
+ // // line-height: 18px;
178
+ // position: absolute;
179
+ // font-size: 14px;
180
+ // }
181
+ // }
182
+ // }
183
+ // .login-name {
184
+ // float: left;
185
+ // font-size: 14px;
186
+ // color: #333;
187
+ // span {
188
+ // margin-right: 17px;
189
+ // }
190
+ // a {
191
+ // color: #333;
192
+ // margin: 0 7px;
193
+ // }
194
+ // }
195
+ // .login-names {
196
+ // color: #666;
197
+ // span {
198
+ // cursor: pointer;
199
+ // }
200
+ // a {
201
+ // color: #666;
202
+ // }
203
+ // }
204
+ // .common-top-bar {
205
+ // .rignt-line {
206
+ // color: #ccc;
207
+ // }
208
+ // color: #666;
209
+ // font-size: 13px;
210
+ // width: 100%;
211
+ // height: 38px;
212
+ // line-height: 38px;
213
+ // background-color: #fafafa;
214
+ // .inner {
215
+ // .left {
216
+ // float: left;
217
+ // }
218
+ // .right {
219
+ // float: right;
220
+ // position: relative;
221
+ // span{
222
+ // width: 66px;
223
+ // }
224
+ // ul {
225
+ // margin-right: 1px;
226
+ // width: 315px;
227
+ // height: 38px;
228
+ // li{
229
+ // // float: left;
230
+ // display: inline-block;
231
+ // }
232
+ // .li{
233
+ // height: 24px;
234
+ // padding: 0 23px 0;
235
+ // // width: 52px;
236
+ // position: relative;
237
+ // // margin: 0 7px;
238
+ // a {
239
+ // display: block;
240
+ // color: #666;
241
+ // height: 38px;
242
+ // // width: 52px;
243
+ // line-height: 38px;
244
+ // }
245
+ // }
246
+ // }
247
+ // .line {
248
+ // width: 1px;
249
+ // height: 16px;
250
+ // background: #ccc;
251
+ // margin: 12px 28px;
252
+ // }
253
+ // .item {
254
+ // vertical-align: top;
255
+ // height: 20px;
256
+ // margin-top: 12px;
257
+ // line-height: 20px;
258
+ // }
259
+ // }
260
+ // }
261
+ // }
262
+ .auto {
263
+ margin: 0 auto;
264
+ width: 1200px;
265
+ }
266
+
267
+ .pad-l10 {
268
+ padding-left: 10px;
269
+ }
270
+
271
+ .cephalosome {
272
+ width: 100%;
273
+ min-width: 1200px;
274
+ height: 40px;
275
+ top: 0;
276
+ z-index: 9999;
277
+ .kfbot {
278
+ padding-right: 0px !important;
279
+ position: relative;
280
+ .shopping_service {
281
+ position: absolute;
282
+ top: 2rem;
283
+ right: -6.6rem;
284
+ width: 15rem;
285
+ display: none;
286
+ text-align: center;
287
+ }
288
+ }
289
+ .halo {
290
+ background: rgba(245, 245, 245, 1);
291
+ box-sizing: border-box;
292
+ font-size: 14px;
293
+ .useicon {
294
+ /*display: inline-block;
295
+ text-align: center;*/
296
+ vertical-align: sub;
297
+ i {
298
+ font-size: 22px;
299
+ margin-right: -7px;
300
+ color: #74747499;
301
+ }
302
+ img {
303
+ width: 20px;
304
+ height: 18px;
305
+ text-align: center;
306
+ line-height: 20px;
307
+ }
308
+ }
309
+ .bgcoloricon {}
310
+ .kficon {
311
+ width: 19px;
312
+ height: 20px;
313
+ display: inline-block;
314
+ text-align: center;
315
+ line-height: 20px;
316
+ color: rgba(160, 160, 160, 1);
317
+ margin-right: 7px;
318
+ i {
319
+ font-size: 15px;
320
+ }
321
+ img {
322
+ width: 24px;
323
+ height: 24px;
324
+ text-align: center;
325
+ line-height: 24px;
326
+ }
327
+ }
328
+ .halo_head {
329
+ width: 1200px;
330
+ height: 40px;
331
+ line-height: 39px;
332
+ display: -webkit-flex;
333
+ display: flex;
334
+ .register {
335
+ padding: 0px !important;
336
+ }
337
+ .halo_he {
338
+ flex: 1;
339
+ >span {
340
+ padding: 0 12px 0;
341
+ }
342
+ .color_h {
343
+ font-family: Microsoft YaHei;
344
+ font-weight: 400;
345
+ color: #515151;
346
+ a {
347
+ color: #515151;
348
+ }
349
+ a:hover {
350
+ color: #48B1E0;
351
+ span {
352
+ color: #48B1E0;
353
+ }
354
+ i {
355
+ color: #48B1E0;
356
+ }
357
+ }
358
+ }
359
+ #halo_version {
360
+ margin: 0 3% 0 1%;
361
+ }
362
+ }
363
+ .halo_rig {
364
+ text-align: right;
365
+ }
366
+ }
367
+ }
368
+ .Helmet {
369
+ background: white;
370
+ .Helmet_p {
371
+ position: relative;
372
+ height: 120px;
373
+ box-sizing: border-box;
374
+ display: -webkit-flex;
375
+ display: flex;
376
+ .Helmet_e {
377
+ width: 205px;
378
+ height: 68px;
379
+ overflow: hidden;
380
+ margin: 32px 80px 0 0;
381
+ .Helme_img {
382
+ width: 100%;
383
+ height: 100%;
384
+ img {
385
+ vertical-align: top;
386
+ width: 100%;
387
+ height: 100%;
388
+ }
389
+ }
390
+ }
391
+ .Helmet_w {
392
+ margin: 43px 0 0 20px;
393
+ width: 700px;
394
+ .Helmet_t {
395
+ width: 540px;
396
+ height: 45px;
397
+ margin: 0 34px 13px 57px;
398
+ .Helmet_input {
399
+ position: relative;
400
+ width: 518px;
401
+ height: 48px;
402
+ line-height: 48px;
403
+ background: white;
404
+ border: 1px solid #1cac43;
405
+ box-sizing: border-box;
406
+ -webkit-transition: all 0.3s;
407
+ transition: all 0.3s;
408
+ >i {
409
+ vertical-align: middle;
410
+ color: #c0c4cc;
411
+ font-size: 8px;
412
+ }
413
+ >input::-webkit-input-placeholder {
414
+ /* placeholder颜色 */
415
+ color: #989898;
416
+ /* placeholder字体大小 */
417
+ font-size: 14px;
418
+ }
419
+ >input {
420
+ width: 340px;
421
+ color: #989898;
422
+ font-size: 14px;
423
+ }
424
+ .Helmet_seek {
425
+ cursor: pointer;
426
+ display: inline-block;
427
+ width: 130px;
428
+ height: 47.9px;
429
+ background: #1cac43;
430
+ text-align: center;
431
+ font-size: 22px;
432
+ font-weight: Regular;
433
+ color: white;
434
+ border: 1px solid #1cac43;
435
+ box-sizing: border-box;
436
+ position: relative;
437
+ right: -1px;
438
+ float: right;
439
+ line-height: 45px;
440
+ }
441
+ }
442
+ }
443
+ }
444
+ .Helmet_s {
445
+ border: 1px solid #1cac43;
446
+ cursor: pointer;
447
+ margin-top: 43px;
448
+ width: 208px;
449
+ height: 48px;
450
+ .Helmet_ico {
451
+ display: inline-block;
452
+ position: relative;
453
+ height: 45px;
454
+ line-height: 44px;
455
+ background: white;
456
+ // border: 1px solid #d5d3d3;
457
+ font-size: 25px;
458
+ font-weight: 400;
459
+ color: #000000;
460
+ text-align: center;
461
+ padding: 0 20px;
462
+ .Helmet_i {
463
+ >i {
464
+ font-size: 20px !important;
465
+ vertical-align: middle;
466
+ color: #939393;
467
+ }
468
+ }
469
+ }
470
+ .mcar {
471
+ font-size: 16px;
472
+ color: #545353;
473
+ }
474
+ .ico_car {
475
+ width: 32px;
476
+ height: 32px;
477
+ line-height: 31px;
478
+ font-style: normal;
479
+ display: none;
480
+ background: #ff9e01;
481
+ border-radius: 50%;
482
+ text-align: center;
483
+ top: 18%;
484
+ right: 6.5%;
485
+ position: absolute;
486
+ font-size: 18px;
487
+ font-weight: 400;
488
+ color: rgba(255, 255, 255, 1);
489
+ }
490
+ }
491
+ .Helmet_V {
492
+ display: none;
493
+ position: absolute;
494
+ right: 0%;
495
+ top: 1%;
496
+ }
497
+ }
498
+ }
499
+ }
500
500
  </style>