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,479 +1,479 @@
1
- <template>
2
- <div style="padding-bottom: 20px; border-bottom: 1px solid #f5f5f5">
3
- <div class="headerclass">
4
- <div class="headertop">
5
- <ul>
6
- <li @click="toIndex('logo')" style="cursor: pointer">
7
- <img src="https://qjstatic.oss-cn-shanghai.aliyuncs.com/HDB/hdblogonew.jpg" alt="" />
8
- </li>
9
-
10
- <!-- <li>
11
- <span style="color:#00427A"> [请选择城市]</span>
12
- </li> -->
13
- </ul>
14
- <div>
15
- <ul>
16
- <li>
17
- 欢迎光临{{ flagSale ? '销售端,' : '网上商城,' }}
18
- <span v-if="userInfo.userPhone"></span>
19
- <span v-else>请</span>
20
- <span class="tologin" @click="outLogin" v-if="userInfo.userPhone">{{ userInfo.userPhone }} 退出登录</span>
21
- <span class="tologin" @click="toLogin" v-else-if="!userInfo.userPhone">登录</span>
22
- </li>
23
- <li v-if="!flagSale">|</li>
24
- <li v-if="!flagSale">
25
- <span @click="tosale"> 销售端 </span>
26
- </li>
27
- <!-- 海德堡 -->
28
- <li v-if="!flagSale">|</li>
29
- <li @click="open" v-if="!flagSale">
30
- <el-popover placement="top" height="200" v-model="visible">
31
- <img style="width: 200px" src="http://uatb2bcockpit.heidelbergchina.com//paas/shop/2020063000000001/2021-12-06/f389f0d5bcd746498fb81e31188ab2c8.jpg" />              
32
- <!-- <div style="text-align: right; margin: 0">
33
- <el-button type="text" size="mini" @click="visible = false">确定</el-button>
34
- </div> -->
35
- <el-button slot="reference" type="text">
36
- <span style="color: #000; font-size: 13px">手机订货更快捷</span>
37
- </el-button>
38
-            
39
- </el-popover>
40
- <img style="width: 12px; margin-top: -1px; padding-left: 3px" src="http://uatb2b.heidelbergchina.com/paas/shop/2020063000000001/2021-11-30/506a230b082e4381990398fa2613155f.png" alt="" />
41
- </li>
42
- <li v-if="flagSale" @click="goToShop" style="cursor: pointer">| 进入商城</li>
43
- </ul>
44
- </div>
45
- <!-- <div v-if="flagSale" class="shopGoToGo">
46
- <div @click="goToShop" class="shoppingGo">
47
- <span class="gogoShop">
48
- 进入商城
49
- </span>
50
- </div>
51
- </div> -->
52
- </div>
53
- <div class="headerbot" v-if="!flagSale">
54
- <ul>
55
- <li>
56
- <span @click="toIndex">首页</span>
57
- </li>
58
-
59
- <li>
60
- <span @click="toPromotionZone">
61
- 促销专区
62
- <img style="width: 35px" src="http://uatb2b.heidelbergchina.com/paas/shop/2020063000000001/2021-11-30/c5b4ee400df04e39ac1c738524a3cc48.png" alt="" />
63
- </span>
64
- </li>
65
-
66
- <li>
67
- <span @click="toClassification"> 产品中心 </span>
68
- </li>
69
- <li>
70
- <span @click="toUsermain"> 会员中心 </span>
71
- </li>
72
- <li style="width: 400px; height: 40px">
73
- <div class="searchBox">
74
- <input v-model="searchValue" @keyup.enter="search" style="width: 400px; height: 27px; background: #fafafa" />
75
- <div class="searchImg" @click="search()">
76
- <span class="serchOther">|</span>
77
- <img style="heigth: 14px" src="http://uatb2bcockpit.heidelbergchina.com/paas/shop/2020063000000001/2021-12-01/5719528c51d74fbf80bf3c810a86c6ae.png" alt="" />
78
- </div>
79
- </div>
80
- </li>
81
- </ul>
82
- <ul v-if="showFlag">
83
- <li style="display: flex; align-items: center; margin-right: 0">
84
- <img src="http://uatb2b.heidelbergchina.com/paas/shop/2020063000000001/2021-11-30/8d0b576a53e149de9e677296bf8f1e46.png" alt="" style="heigth: 18px" />
85
- <p class="shopCar" @click="toShop">
86
- 购物车
87
- <span class="numberShop" v-if="this.userInfo">({{ goodsNum ? goodsNum : 0 }})</span>
88
- <span class="numberShop" v-if="!this.userInfo">(0)</span>
89
- </p>
90
- </li>
91
- </ul>
92
- </div>
93
- </div>
94
- </div>
95
- </template>
96
-
97
- <script>
98
- import { flowClickFn } from '#/utils/routeMapping.js';
99
- import { queryShoppingPageNew, getPersonal, loginOut } from '#/api/login.js';
100
- const querystring = require('querystring');
101
- export default {
102
- data() {
103
- return {
104
- jsonData: require('#/utils/routeMapping.json'),
105
- // open: false,
106
- goodsNum: 0,
107
- searchValue: '',
108
- showFlag: true,
109
- flag: false,
110
- userInfo: {
111
- userinfoQuality: '',
112
- },
113
- flagSale: false, // 销售状态
114
- };
115
- },
116
- created() {
117
- if (window.sessionStorage.getItem('personalInfo')) {
118
- this.userInfo = JSON.parse(window.sessionStorage.getItem('personalInfo'));
119
- } else {
120
- this.$store.dispatch('GetInfo');
121
- }
122
- if (window.localStorage.getItem('flagSale')) {
123
- this.flagSale = JSON.parse(window.localStorage.getItem('flagSale'));
124
- }
125
-
126
- this.getCar();
127
- },
128
- mounted() {
129
- setInterval(() => {
130
- setTimeout(() => {
131
- this.watchShoppingNum();
132
- }, 0);
133
- }, 1000);
134
- },
135
- watch: {
136
- // userInfo(newV, old) {
137
- // if (this.userInfo) {
138
- // this.getCar();
139
- // }
140
- // },
141
- // valls: {
142
- // handler(newVal) {
143
- // this.getCar();
144
- // },
145
- // deep: true,
146
- // },
147
- },
148
- // computed: {
149
- // valls() {asds
150
- // return this.getCar(this.goodsNum);
151
- // },
152
- //
153
- // },
154
- methods: {
155
- open() {
156
- flowClickFn("NAV", "-", "手机订货更便捷");
157
- // this.$alert('http://uatb2bcockpit.heidelbergchina.com/paas/shop/2020063000000001/2021-12-06/f389f0d5bcd746498fb81e31188ab2c8.jpg', {
158
- // confirmButtonText: '确定',
159
- // callback: (action) => {
160
- // this.$message({
161
- // type: 'info',
162
- // message: `action: ${action}`,
163
- // });
164
- // },
165
- // });
166
- },
167
- watchShoppingNum() {
168
- if (window.sessionStorage.getItem('personalInfo')) {
169
- if (!this.userInfo.userInfoCode) {
170
- this.userInfo = JSON.parse(window.sessionStorage.getItem('personalInfo'));
171
- this.getCar();
172
- }
173
- this.goodsNum = Number(window.sessionStorage.getItem('shoppingTotalNum') || 0);
174
- }
175
- },
176
- search() {
177
- flowClickFn("NAV", "-", "搜索");
178
- this.searchButtonClickFn();
179
- // searchResult?searchParam=1
180
- this.isLogin('/paas/pc-mall/index.html#/searchResult?searchParam=' + this.searchValue);
181
- // location.href = '/paas/pc-mall/index.html#/searchResult?searchParam=' + this.searchValue;
182
- },
183
- // 埋点 搜索按钮点击
184
- searchButtonClickFn() {
185
- let path = this.$route.path;
186
- let pageObj = null;
187
- this.jsonData.forEach(ele => {
188
- if (ele.name == path) {
189
- pageObj = ele;
190
- }
191
- })
192
- let utmObj = JSON.parse(sessionStorage.getItem("utmObj"));
193
- gio('track', "searchButtonClick", {
194
- "pageType_var": pageObj.pageType ? pageObj.pageType : "-",
195
- "pageName_var": pageObj.pageName ? pageObj.pageName : "-",
196
- "pageId_var": "-",
197
- "searchWords_var": this.searchValue ? this.searchValue : "-",
198
- ...utmObj
199
- })
200
- },
201
- getCar() {
202
- let shopGoodsNum = 0;
203
- let shoppingTotalNum = window.sessionStorage.getItem('shoppingTotalNum');
204
- if (this.userInfo && this.userInfo.userInfoCode && (!shoppingTotalNum || shoppingTotalNum === '0')) {
205
- let data = {
206
- shoppingType: '00,01,6',
207
- memberBcode: this.userInfo.userInfoCode,
208
- };
209
- queryShoppingPageNew(data).then((res) => {
210
- if (res.list && Array.isArray(res.list)) {
211
- res.list.forEach((ele) => {
212
- ele.shoppingpackageList.forEach((item) => {
213
- item.shoppingGoodsList.forEach((val) => {
214
- shopGoodsNum = Number(shopGoodsNum) + Number(val.goodsCamount);
215
- });
216
- });
217
- });
218
- }
219
- console.log(shopGoodsNum, 'shoppingTotalNum');
220
- window.sessionStorage.setItem('shoppingTotalNum', shopGoodsNum);
221
- });
222
- }
223
- },
224
- tosale() {
225
- flowClickFn("NAV", "-", "销售端");
226
- if (window.sessionStorage.getItem('personalInfo')) {
227
- this.userInfo = JSON.parse(window.sessionStorage.getItem('personalInfo'));
228
- if (this.userInfo.userinfoQuality == 'sales') {
229
- window.localStorage.setItem('flagSale', true);
230
- window.location.href = '/paas/pc-mall/index.html#/userIndexHDB';
231
- if (window.localStorage.getItem('flagSale')) {
232
- this.flagSale = true;
233
- this.flagSale = JSON.parse(window.localStorage.getItem('flagSale'));
234
- }
235
- } else {
236
- window.location.href = '/paas/index/index.html#/choice';
237
- }
238
- } else {
239
- window.location.href = '/paas/index/index.html#/choice';
240
- }
241
- },
242
- toLogin() {
243
- // this.$router.push({
244
- // path: '/loginPc',
245
- // });
246
- window.location.href = '/paas/index/index.html#/loginPc';
247
- flowClickFn("NAV", "-", "登录");
248
- },
249
- outLogin() {
250
- flowClickFn("NAV", "-", "退出登录");
251
- loginOut().then((res) => {
252
- if (res.success) {
253
- this.$message.success('退出登陆成功');
254
- localStorage.clear();
255
- sessionStorage.clear();
256
- this.userInfo = {};
257
- // 埋点 清楚登录用户id
258
- gio('clearUserId');
259
- // 销售端 判断登录
260
- if (this.flagSale) {
261
- location.href = '/paas/index/index.html#/choice';
262
- } else {
263
- location.href = '/paas/index/index.html#/loginPc';
264
- }
265
- } else if (res.success == false) {
266
- this.$message.success('退出登陆成功');
267
- localStorage.clear();
268
- sessionStorage.clear();
269
- this.userInfo = {};
270
- // 销售端 判断登录
271
- if (this.flagSale) {
272
- location.href = '/paas/index/index.html#/choice';
273
- } else {
274
- location.href = '/paas/index/index.html#/loginPc';
275
- }
276
- }
277
- });
278
- },
279
-
280
- toShop() {
281
- flowClickFn("NAV", "-", "购物车");
282
- this.isLogin(`/paas/pc-mall/index.html#/shoppcart`);
283
- },
284
- toUsermain() {
285
- flowClickFn("NAV", "-", "会员中心");
286
- this.isLogin(`/paas/user-manager/index.html#/user`);
287
- },
288
- goToShop() {
289
- // window.open('/paas/pc-mall/index.html#/indeshdb', '_blank');
290
- window.location.href = `/paas/pc-mall/index.html#/indeshdb`;
291
- window.localStorage.setItem('flagSale', false);
292
- if (window.localStorage.getItem('flagSale')) {
293
- this.flagSale = JSON.parse(window.localStorage.getItem('flagSale'));
294
- }
295
- },
296
- //判断是否用户登录
297
- isLogin(url) {
298
- const personalInfoStr = window.sessionStorage.getItem('personalInfo');
299
- if (personalInfoStr) {
300
- const personalInfoObj = JSON.parse(personalInfoStr);
301
- if (!personalInfoObj.userInfoCode) {
302
- window.location.href = `/paas/index/index.html#/loginPc`;
303
- } else {
304
- window.location.href = url;
305
- }
306
- } else {
307
- window.location.href = `/paas/index/index.html#/loginPc`;
308
- }
309
- },
310
- toPromotionZone() {
311
- flowClickFn("NAV", "-", "促销专区");
312
- window.location.href = `/paas/pc-mall/index.html#/promotionIndexHDB`;
313
- },
314
- toIndex(data) {
315
- if (data && data === "logo") {
316
- flowClickFn("NAV", "-", "LOGO");
317
- } else {
318
- flowClickFn("NAV", "-", "首页");
319
- }
320
- let url;
321
- if (this.flagSale) {
322
- url = '/paas/pc-mall/index.html#/userIndexHDB';
323
- } else {
324
- url = '/paas/pc-mall/index.html#/indeshdb';
325
- }
326
- window.location.href = url;
327
- },
328
- toClassification() {
329
- flowClickFn("NAV", "-", "产品中心");
330
- window.location.href = `/paas/pc-mall/index.html#/productClassification`;
331
- },
332
- },
333
- // computed: {
334
- // proappEnvLogo() {
335
- // let proappEnvLogo = sessionStorage.getItem('proappEnvLayout') ? JSON.parse(sessionStorage.getItem('proappEnvLayout')) : null;
336
- // return proappEnvLogo;
337
- // },
338
- // },
339
- };
340
- </script>
341
-
342
- <style lang="scss" scoped>
343
- .shoppingGo {
344
- display: table-cell;
345
- vertical-align: middle;
346
- margin-top: 15px;
347
- border-radius: 6px;
348
- cursor: pointer;
349
- width: 121px;
350
- height: 30px;
351
- background-color: #00427a;
352
- color: #ffff;
353
- text-align: center;
354
- }
355
- .shopGoToGo {
356
- margin-top: 15px;
357
- }
358
- .headerclass {
359
- width: 1200px;
360
- margin: 0 auto;
361
- // background-color: red;
362
- .headertop {
363
- display: flex;
364
- justify-content: space-between;
365
- .tologin {
366
- cursor: pointer;
367
- text-decoration: underline;
368
- }
369
- a:link {
370
- color: #000;
371
- }
372
- a:visited {
373
- color: #000;
374
- }
375
- a:hover {
376
- color: #000;
377
- }
378
- a:active {
379
- color: #000;
380
- }
381
- ul {
382
- margin: 0px;
383
- align-items: center;
384
- display: flex;
385
- padding-left: 0;
386
- li {
387
- font-size: 14px;
388
- color: #000;
389
- img {
390
- width: 230px;
391
- }
392
- span {
393
- cursor: pointer;
394
- }
395
- }
396
- }
397
- ul li:nth-child(2n) {
398
- margin: 0 10px;
399
- }
400
- ul,
401
- li {
402
- list-style: none;
403
- }
404
- }
405
- .headerbot {
406
- display: flex;
407
- justify-content: space-between;
408
- ul {
409
- align-items: center;
410
- margin: 0px;
411
- padding-left: 0;
412
- display: flex;
413
- li {
414
- span {
415
- cursor: pointer;
416
- }
417
- .searchBox {
418
- line-height: 40px;
419
- position: relative;
420
- input {
421
- border: 1px solid #ccc;
422
- border-radius: 3px;
423
- text-indent: 10px;
424
- outline: none;
425
- }
426
- .searchImg {
427
- cursor: pointer;
428
- position: absolute;
429
- right: -1px;
430
- display: flex;
431
- align-items: center;
432
-
433
- top: 0;
434
- .serchOther {
435
- font-size: 11px;
436
- padding-right: 10px;
437
- color: #ccc;
438
- margin-top: -1px;
439
- }
440
- img {
441
- padding: 0 10px;
442
- }
443
- }
444
- }
445
- p {
446
- color: #00427a;
447
- font-size: 14px;
448
- margin-left: 8px;
449
- .numberShop {
450
- font-size: 14px;
451
- }
452
- }
453
-
454
- span {
455
- font-size: 18px;
456
- color: #00427a;
457
- }
458
- list-style: none;
459
- margin-right: 38px;
460
- }
461
- .shopCar {
462
- cursor: pointer;
463
- }
464
- }
465
- ul li:first-child {
466
- padding-left: 10px;
467
- }
468
- }
469
- }
470
- </style>
471
- <style lang="scss">
472
- .headerclass {
473
- .el-popover {
474
- img {
475
- width: 300px;
476
- }
477
- }
478
- }
479
- </style>
1
+ <template>
2
+ <div style="padding-bottom: 20px; border-bottom: 1px solid #f5f5f5">
3
+ <div class="headerclass">
4
+ <div class="headertop">
5
+ <ul>
6
+ <li @click="toIndex('logo')" style="cursor: pointer">
7
+ <img src="https://qjstatic.oss-cn-shanghai.aliyuncs.com/HDB/hdblogonew.jpg" alt="" />
8
+ </li>
9
+
10
+ <!-- <li>
11
+ <span style="color:#00427A"> [请选择城市]</span>
12
+ </li> -->
13
+ </ul>
14
+ <div>
15
+ <ul>
16
+ <li>
17
+ 欢迎光临{{ flagSale ? '销售端,' : '网上商城,' }}
18
+ <span v-if="userInfo.userPhone"></span>
19
+ <span v-else>请</span>
20
+ <span class="tologin" @click="outLogin" v-if="userInfo.userPhone">{{ userInfo.userPhone }} 退出登录</span>
21
+ <span class="tologin" @click="toLogin" v-else-if="!userInfo.userPhone">登录</span>
22
+ </li>
23
+ <li v-if="!flagSale">|</li>
24
+ <li v-if="!flagSale">
25
+ <span @click="tosale"> 销售端 </span>
26
+ </li>
27
+ <!-- 海德堡 -->
28
+ <li v-if="!flagSale">|</li>
29
+ <li @click="open" v-if="!flagSale">
30
+ <el-popover placement="top" height="200" v-model="visible">
31
+ <img style="width: 200px" src="http://uatb2bcockpit.heidelbergchina.com//paas/shop/2020063000000001/2021-12-06/f389f0d5bcd746498fb81e31188ab2c8.jpg" />              
32
+ <!-- <div style="text-align: right; margin: 0">
33
+ <el-button type="text" size="mini" @click="visible = false">确定</el-button>
34
+ </div> -->
35
+ <el-button slot="reference" type="text">
36
+ <span style="color: #000; font-size: 13px">手机订货更快捷</span>
37
+ </el-button>
38
+            
39
+ </el-popover>
40
+ <img style="width: 12px; margin-top: -1px; padding-left: 3px" src="http://uatb2b.heidelbergchina.com/paas/shop/2020063000000001/2021-11-30/506a230b082e4381990398fa2613155f.png" alt="" />
41
+ </li>
42
+ <li v-if="flagSale" @click="goToShop" style="cursor: pointer">| 进入商城</li>
43
+ </ul>
44
+ </div>
45
+ <!-- <div v-if="flagSale" class="shopGoToGo">
46
+ <div @click="goToShop" class="shoppingGo">
47
+ <span class="gogoShop">
48
+ 进入商城
49
+ </span>
50
+ </div>
51
+ </div> -->
52
+ </div>
53
+ <div class="headerbot" v-if="!flagSale">
54
+ <ul>
55
+ <li>
56
+ <span @click="toIndex">首页</span>
57
+ </li>
58
+
59
+ <li>
60
+ <span @click="toPromotionZone">
61
+ 促销专区
62
+ <img style="width: 35px" src="http://uatb2b.heidelbergchina.com/paas/shop/2020063000000001/2021-11-30/c5b4ee400df04e39ac1c738524a3cc48.png" alt="" />
63
+ </span>
64
+ </li>
65
+
66
+ <li>
67
+ <span @click="toClassification"> 产品中心 </span>
68
+ </li>
69
+ <li>
70
+ <span @click="toUsermain"> 会员中心 </span>
71
+ </li>
72
+ <li style="width: 400px; height: 40px">
73
+ <div class="searchBox">
74
+ <input v-model="searchValue" @keyup.enter="search" style="width: 400px; height: 27px; background: #fafafa" />
75
+ <div class="searchImg" @click="search()">
76
+ <span class="serchOther">|</span>
77
+ <img style="heigth: 14px" src="http://uatb2bcockpit.heidelbergchina.com/paas/shop/2020063000000001/2021-12-01/5719528c51d74fbf80bf3c810a86c6ae.png" alt="" />
78
+ </div>
79
+ </div>
80
+ </li>
81
+ </ul>
82
+ <ul v-if="showFlag">
83
+ <li style="display: flex; align-items: center; margin-right: 0">
84
+ <img src="http://uatb2b.heidelbergchina.com/paas/shop/2020063000000001/2021-11-30/8d0b576a53e149de9e677296bf8f1e46.png" alt="" style="heigth: 18px" />
85
+ <p class="shopCar" @click="toShop">
86
+ 购物车
87
+ <span class="numberShop" v-if="this.userInfo">({{ goodsNum ? goodsNum : 0 }})</span>
88
+ <span class="numberShop" v-if="!this.userInfo">(0)</span>
89
+ </p>
90
+ </li>
91
+ </ul>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ </template>
96
+
97
+ <script>
98
+ import { flowClickFn } from '#/utils/routeMapping.js';
99
+ import { queryShoppingPageNew, getPersonal, loginOut } from '#/api/login.js';
100
+ const querystring = require('querystring');
101
+ export default {
102
+ data() {
103
+ return {
104
+ jsonData: require('#/utils/routeMapping.json'),
105
+ // open: false,
106
+ goodsNum: 0,
107
+ searchValue: '',
108
+ showFlag: true,
109
+ flag: false,
110
+ userInfo: {
111
+ userinfoQuality: '',
112
+ },
113
+ flagSale: false, // 销售状态
114
+ };
115
+ },
116
+ created() {
117
+ if (window.sessionStorage.getItem('personalInfo')) {
118
+ this.userInfo = JSON.parse(window.sessionStorage.getItem('personalInfo'));
119
+ } else {
120
+ this.$store.dispatch('GetInfo');
121
+ }
122
+ if (window.localStorage.getItem('flagSale')) {
123
+ this.flagSale = JSON.parse(window.localStorage.getItem('flagSale'));
124
+ }
125
+
126
+ this.getCar();
127
+ },
128
+ mounted() {
129
+ setInterval(() => {
130
+ setTimeout(() => {
131
+ this.watchShoppingNum();
132
+ }, 0);
133
+ }, 1000);
134
+ },
135
+ watch: {
136
+ // userInfo(newV, old) {
137
+ // if (this.userInfo) {
138
+ // this.getCar();
139
+ // }
140
+ // },
141
+ // valls: {
142
+ // handler(newVal) {
143
+ // this.getCar();
144
+ // },
145
+ // deep: true,
146
+ // },
147
+ },
148
+ // computed: {
149
+ // valls() {asds
150
+ // return this.getCar(this.goodsNum);
151
+ // },
152
+ //
153
+ // },
154
+ methods: {
155
+ open() {
156
+ flowClickFn("NAV", "-", "手机订货更便捷");
157
+ // this.$alert('http://uatb2bcockpit.heidelbergchina.com/paas/shop/2020063000000001/2021-12-06/f389f0d5bcd746498fb81e31188ab2c8.jpg', {
158
+ // confirmButtonText: '确定',
159
+ // callback: (action) => {
160
+ // this.$message({
161
+ // type: 'info',
162
+ // message: `action: ${action}`,
163
+ // });
164
+ // },
165
+ // });
166
+ },
167
+ watchShoppingNum() {
168
+ if (window.sessionStorage.getItem('personalInfo')) {
169
+ if (!this.userInfo.userInfoCode) {
170
+ this.userInfo = JSON.parse(window.sessionStorage.getItem('personalInfo'));
171
+ this.getCar();
172
+ }
173
+ this.goodsNum = Number(window.sessionStorage.getItem('shoppingTotalNum') || 0);
174
+ }
175
+ },
176
+ search() {
177
+ flowClickFn("NAV", "-", "搜索");
178
+ this.searchButtonClickFn();
179
+ // searchResult?searchParam=1
180
+ this.isLogin('/paas/pc-mall/index.html#/searchResult?searchParam=' + this.searchValue);
181
+ // location.href = '/paas/pc-mall/index.html#/searchResult?searchParam=' + this.searchValue;
182
+ },
183
+ // 埋点 搜索按钮点击
184
+ searchButtonClickFn() {
185
+ let path = this.$route.path;
186
+ let pageObj = null;
187
+ this.jsonData.forEach(ele => {
188
+ if (ele.name == path) {
189
+ pageObj = ele;
190
+ }
191
+ })
192
+ let utmObj = JSON.parse(sessionStorage.getItem("utmObj"));
193
+ gio('track', "searchButtonClick", {
194
+ "pageType_var": pageObj.pageType ? pageObj.pageType : "-",
195
+ "pageName_var": pageObj.pageName ? pageObj.pageName : "-",
196
+ "pageId_var": "-",
197
+ "searchWords_var": this.searchValue ? this.searchValue : "-",
198
+ ...utmObj
199
+ })
200
+ },
201
+ getCar() {
202
+ let shopGoodsNum = 0;
203
+ let shoppingTotalNum = window.sessionStorage.getItem('shoppingTotalNum');
204
+ if (this.userInfo && this.userInfo.userInfoCode && (!shoppingTotalNum || shoppingTotalNum === '0')) {
205
+ let data = {
206
+ shoppingType: '00,01,6',
207
+ memberBcode: this.userInfo.userInfoCode,
208
+ };
209
+ queryShoppingPageNew(data).then((res) => {
210
+ if (res.list && Array.isArray(res.list)) {
211
+ res.list.forEach((ele) => {
212
+ ele.shoppingpackageList.forEach((item) => {
213
+ item.shoppingGoodsList.forEach((val) => {
214
+ shopGoodsNum = Number(shopGoodsNum) + Number(val.goodsCamount);
215
+ });
216
+ });
217
+ });
218
+ }
219
+ console.log(shopGoodsNum, 'shoppingTotalNum');
220
+ window.sessionStorage.setItem('shoppingTotalNum', shopGoodsNum);
221
+ });
222
+ }
223
+ },
224
+ tosale() {
225
+ flowClickFn("NAV", "-", "销售端");
226
+ if (window.sessionStorage.getItem('personalInfo')) {
227
+ this.userInfo = JSON.parse(window.sessionStorage.getItem('personalInfo'));
228
+ if (this.userInfo.userinfoQuality == 'sales') {
229
+ window.localStorage.setItem('flagSale', true);
230
+ window.location.href = '/paas/pc-mall/index.html#/userIndexHDB';
231
+ if (window.localStorage.getItem('flagSale')) {
232
+ this.flagSale = true;
233
+ this.flagSale = JSON.parse(window.localStorage.getItem('flagSale'));
234
+ }
235
+ } else {
236
+ window.location.href = '/paas/index/index.html#/choice';
237
+ }
238
+ } else {
239
+ window.location.href = '/paas/index/index.html#/choice';
240
+ }
241
+ },
242
+ toLogin() {
243
+ // this.$router.push({
244
+ // path: '/loginPc',
245
+ // });
246
+ window.location.href = '/paas/index/index.html#/loginPc';
247
+ flowClickFn("NAV", "-", "登录");
248
+ },
249
+ outLogin() {
250
+ flowClickFn("NAV", "-", "退出登录");
251
+ loginOut().then((res) => {
252
+ if (res.success) {
253
+ this.$message.success('退出登陆成功');
254
+ localStorage.clear();
255
+ sessionStorage.clear();
256
+ this.userInfo = {};
257
+ // 埋点 清楚登录用户id
258
+ gio('clearUserId');
259
+ // 销售端 判断登录
260
+ if (this.flagSale) {
261
+ location.href = '/paas/index/index.html#/choice';
262
+ } else {
263
+ location.href = '/paas/index/index.html#/loginPc';
264
+ }
265
+ } else if (res.success == false) {
266
+ this.$message.success('退出登陆成功');
267
+ localStorage.clear();
268
+ sessionStorage.clear();
269
+ this.userInfo = {};
270
+ // 销售端 判断登录
271
+ if (this.flagSale) {
272
+ location.href = '/paas/index/index.html#/choice';
273
+ } else {
274
+ location.href = '/paas/index/index.html#/loginPc';
275
+ }
276
+ }
277
+ });
278
+ },
279
+
280
+ toShop() {
281
+ flowClickFn("NAV", "-", "购物车");
282
+ this.isLogin(`/paas/pc-mall/index.html#/shoppcart`);
283
+ },
284
+ toUsermain() {
285
+ flowClickFn("NAV", "-", "会员中心");
286
+ this.isLogin(`/paas/user-manager/index.html#/user`);
287
+ },
288
+ goToShop() {
289
+ // window.open('/paas/pc-mall/index.html#/indeshdb', '_blank');
290
+ window.location.href = `/paas/pc-mall/index.html#/indeshdb`;
291
+ window.localStorage.setItem('flagSale', false);
292
+ if (window.localStorage.getItem('flagSale')) {
293
+ this.flagSale = JSON.parse(window.localStorage.getItem('flagSale'));
294
+ }
295
+ },
296
+ //判断是否用户登录
297
+ isLogin(url) {
298
+ const personalInfoStr = window.sessionStorage.getItem('personalInfo');
299
+ if (personalInfoStr) {
300
+ const personalInfoObj = JSON.parse(personalInfoStr);
301
+ if (!personalInfoObj.userInfoCode) {
302
+ window.location.href = `/paas/index/index.html#/loginPc`;
303
+ } else {
304
+ window.location.href = url;
305
+ }
306
+ } else {
307
+ window.location.href = `/paas/index/index.html#/loginPc`;
308
+ }
309
+ },
310
+ toPromotionZone() {
311
+ flowClickFn("NAV", "-", "促销专区");
312
+ window.location.href = `/paas/pc-mall/index.html#/promotionIndexHDB`;
313
+ },
314
+ toIndex(data) {
315
+ if (data && data === "logo") {
316
+ flowClickFn("NAV", "-", "LOGO");
317
+ } else {
318
+ flowClickFn("NAV", "-", "首页");
319
+ }
320
+ let url;
321
+ if (this.flagSale) {
322
+ url = '/paas/pc-mall/index.html#/userIndexHDB';
323
+ } else {
324
+ url = '/paas/pc-mall/index.html#/indeshdb';
325
+ }
326
+ window.location.href = url;
327
+ },
328
+ toClassification() {
329
+ flowClickFn("NAV", "-", "产品中心");
330
+ window.location.href = `/paas/pc-mall/index.html#/productClassification`;
331
+ },
332
+ },
333
+ // computed: {
334
+ // proappEnvLogo() {
335
+ // let proappEnvLogo = sessionStorage.getItem('proappEnvLayout') ? JSON.parse(sessionStorage.getItem('proappEnvLayout')) : null;
336
+ // return proappEnvLogo;
337
+ // },
338
+ // },
339
+ };
340
+ </script>
341
+
342
+ <style lang="scss" scoped>
343
+ .shoppingGo {
344
+ display: table-cell;
345
+ vertical-align: middle;
346
+ margin-top: 15px;
347
+ border-radius: 6px;
348
+ cursor: pointer;
349
+ width: 121px;
350
+ height: 30px;
351
+ background-color: #00427a;
352
+ color: #ffff;
353
+ text-align: center;
354
+ }
355
+ .shopGoToGo {
356
+ margin-top: 15px;
357
+ }
358
+ .headerclass {
359
+ width: 1200px;
360
+ margin: 0 auto;
361
+ // background-color: red;
362
+ .headertop {
363
+ display: flex;
364
+ justify-content: space-between;
365
+ .tologin {
366
+ cursor: pointer;
367
+ text-decoration: underline;
368
+ }
369
+ a:link {
370
+ color: #000;
371
+ }
372
+ a:visited {
373
+ color: #000;
374
+ }
375
+ a:hover {
376
+ color: #000;
377
+ }
378
+ a:active {
379
+ color: #000;
380
+ }
381
+ ul {
382
+ margin: 0px;
383
+ align-items: center;
384
+ display: flex;
385
+ padding-left: 0;
386
+ li {
387
+ font-size: 14px;
388
+ color: #000;
389
+ img {
390
+ width: 230px;
391
+ }
392
+ span {
393
+ cursor: pointer;
394
+ }
395
+ }
396
+ }
397
+ ul li:nth-child(2n) {
398
+ margin: 0 10px;
399
+ }
400
+ ul,
401
+ li {
402
+ list-style: none;
403
+ }
404
+ }
405
+ .headerbot {
406
+ display: flex;
407
+ justify-content: space-between;
408
+ ul {
409
+ align-items: center;
410
+ margin: 0px;
411
+ padding-left: 0;
412
+ display: flex;
413
+ li {
414
+ span {
415
+ cursor: pointer;
416
+ }
417
+ .searchBox {
418
+ line-height: 40px;
419
+ position: relative;
420
+ input {
421
+ border: 1px solid #ccc;
422
+ border-radius: 3px;
423
+ text-indent: 10px;
424
+ outline: none;
425
+ }
426
+ .searchImg {
427
+ cursor: pointer;
428
+ position: absolute;
429
+ right: -1px;
430
+ display: flex;
431
+ align-items: center;
432
+
433
+ top: 0;
434
+ .serchOther {
435
+ font-size: 11px;
436
+ padding-right: 10px;
437
+ color: #ccc;
438
+ margin-top: -1px;
439
+ }
440
+ img {
441
+ padding: 0 10px;
442
+ }
443
+ }
444
+ }
445
+ p {
446
+ color: #00427a;
447
+ font-size: 14px;
448
+ margin-left: 8px;
449
+ .numberShop {
450
+ font-size: 14px;
451
+ }
452
+ }
453
+
454
+ span {
455
+ font-size: 18px;
456
+ color: #00427a;
457
+ }
458
+ list-style: none;
459
+ margin-right: 38px;
460
+ }
461
+ .shopCar {
462
+ cursor: pointer;
463
+ }
464
+ }
465
+ ul li:first-child {
466
+ padding-left: 10px;
467
+ }
468
+ }
469
+ }
470
+ </style>
471
+ <style lang="scss">
472
+ .headerclass {
473
+ .el-popover {
474
+ img {
475
+ width: 300px;
476
+ }
477
+ }
478
+ }
479
+ </style>