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.
- package/.babelrc +12 -12
- package/.eslintrc.js +25 -25
- package/.idea/common.iml +11 -11
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/.postcssrc.js +9 -9
- package/.prettierrc.js +7 -7
- package/.project +37 -37
- package/README.md +2 -2
- package/gulpfile.js +20 -20
- package/package.json +18 -18
- package/src/api/apimanage.js +146 -146
- package/src/api/common/index.js +192 -192
- package/src/api/login.js +160 -160
- package/src/api/shopFbu.js +515 -515
- package/src/api/upload.js +8 -8
- package/src/components/Bounced/index.vue +145 -145
- package/src/components/Breadcrumb/index.vue +71 -71
- package/src/components/Checkbox/index.vue +53 -53
- package/src/components/Hamburger/index.vue +48 -48
- package/src/components/Logistics/logic.vue +186 -186
- package/src/components/ScrollBar/index.vue +60 -60
- package/src/components/Sticky/index.vue +76 -76
- package/src/components/SvgIcon/index.vue +42 -42
- package/src/components/ThemePicker/index.vue +243 -243
- package/src/components/Tinymce/components/editorImage.vue +94 -94
- package/src/components/Tinymce/index.vue +166 -166
- package/src/components/Tinymce/plugins.js +7 -7
- package/src/components/Tinymce/toolbar.js +6 -6
- package/src/components/TreeTable/customEval.js +44 -44
- package/src/components/TreeTable/eval.js +29 -29
- package/src/components/TreeTable/index.vue +124 -124
- package/src/components/TreeTable/readme.md +89 -89
- package/src/components/TreeTableApi/customEval.js +49 -49
- package/src/components/TreeTableApi/eval.js +29 -29
- package/src/components/TreeTableApi/index.vue +124 -124
- package/src/components/TreeTableApi/readme.md +89 -89
- package/src/components/Upload/singleImage.vue +123 -123
- package/src/components/Upload/singleImage2.vue +118 -118
- package/src/components/Upload/singleImage3.vue +138 -138
- package/src/components/Upload/upload.vue +295 -295
- package/src/components/workOrderList/index.vue +158 -158
- package/src/dependencies.js +119 -119
- package/src/iconShop/demo.css +539 -539
- package/src/iconShop/demo_index.html +8445 -8445
- package/src/iconShop/iconfont.css +1451 -1451
- package/src/iconShop/iconfont.json +2522 -2522
- package/src/iconShop/iconfont.svg +1070 -1070
- package/src/iconfont/demo.css +539 -539
- package/src/iconfont/demo_index.html +5276 -5276
- package/src/iconfont/iconfont.css +905 -905
- package/src/iconfont/iconfont.json +1563 -1563
- package/src/iconfont/iconfont.svg +692 -692
- package/src/icons/index.js +9 -9
- package/src/lang/e.js +48 -48
- package/src/lang/en.js +48 -48
- package/src/lang/zh.js +48 -48
- package/src/main.js +62 -62
- package/src/permission.js +283 -283
- package/src/permissionForMall.backup.js +375 -375
- package/src/permissionForMall.js +375 -375
- package/src/preset.js +67 -67
- package/src/router/_import_common.js +1 -1
- package/src/router/_import_development.js +1 -1
- package/src/router/_import_production.js +1 -1
- package/src/store/getters.js +39 -39
- package/src/store/index.js +18 -18
- package/src/store/modules/app.js +34 -30
- package/src/store/modules/menu.js +82 -82
- package/src/store/modules/user.js +227 -227
- package/src/styles/element-ui.scss +1368 -1368
- package/src/styles/index.scss +166 -166
- package/src/styles/mixin.scss +27 -27
- package/src/styles/pc-ui.scss +1031 -1031
- package/src/styles/scrollBar.scss +21 -21
- package/src/styles/sidebar.scss +123 -123
- package/src/styles/transition.scss +32 -32
- package/src/styles/variables.scss +44 -44
- package/src/styles/wf-ui.scss +86 -86
- package/src/utils/auth.js +57 -57
- package/src/utils/dom.js +12 -12
- package/src/utils/getQueryString.js +5 -5
- package/src/utils/import.js +5 -5
- package/src/utils/index.js +355 -355
- package/src/utils/interceptor.js +34 -34
- package/src/utils/menu.js +116 -116
- package/src/utils/proapp.js +35 -35
- package/src/utils/query.js +26 -26
- package/src/utils/request.js +366 -366
- package/src/utils/routeMapping.js +39 -39
- package/src/utils/routeMapping.json +310 -310
- package/src/utils/utils.js +84 -84
- package/src/utils/validate.js +102 -102
- package/src/views/404.vue +72 -72
- package/src/views/Layout.vue +106 -106
- package/src/views/imgSwiper/index.vue +34 -34
- package/src/views/layout/Layout.vue +181 -170
- package/src/views/layout/components/AppMain.vue +20 -20
- package/src/views/layout/components/Footer.vue +22 -22
- package/src/views/layout/components/LeftNavbar.vue +318 -310
- package/src/views/layout/components/NavMenu.vue +15 -15
- package/src/views/layout/components/Navbar.vue +664 -661
- package/src/views/layout/components/Sidebar/SidebarItem.vue +116 -113
- package/src/views/layout/components/Sidebar/index.vue +203 -193
- package/src/views/layout/components/index.js +19 -19
- package/src/views/layout/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout/theme/darkBlue/components/Footer.vue +147 -147
- 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
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.3.vue +191 -191
- package/src/views/layout/theme/darkBlue/components/LeftNavbar.vue +466 -466
- package/src/views/layout/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout/theme/darkBlue/components/Sidebar/SidebarItem.vue +71 -71
- package/src/views/layout/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout/theme/darkBlue/components/index.js +15 -15
- package/src/views/layout-default/Layout.vue +134 -134
- package/src/views/layout-default/components/AppMain.vue +19 -19
- package/src/views/layout-default/components/Footer.vue +22 -22
- package/src/views/layout-default/components/LeftNavbar.vue +164 -164
- package/src/views/layout-default/components/Navbar.vue +295 -295
- package/src/views/layout-default/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout-default/components/Sidebar/index.vue +59 -59
- package/src/views/layout-default/components/index.js +4 -4
- package/src/views/layout-default/theme/darkBlue/Layout.vue +140 -140
- package/src/views/layout-default/theme/darkBlue/components/AppMain.vue +38 -38
- package/src/views/layout-default/theme/darkBlue/components/Footer.vue +147 -147
- package/src/views/layout-default/theme/darkBlue/components/LeftNavbar.vue +465 -465
- package/src/views/layout-default/theme/darkBlue/components/Navbar.vue +200 -200
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/SidebarItem.vue +69 -69
- package/src/views/layout-default/theme/darkBlue/components/Sidebar/index.vue +49 -49
- package/src/views/layout-default/theme/darkBlue/components/index.js +15 -15
- package/src/views/pc/Internationalization.vue +80 -80
- package/src/views/pc/default/Layout.vue +442 -442
- package/src/views/pc/default/LayoutCard.vue +424 -424
- package/src/views/pc/default/assets/flex.scss +99 -99
- package/src/views/pc/default/footer-modules/DgFooter/index.vue +179 -179
- package/src/views/pc/default/footer-modules/DgFooter/indexSDX.vue +187 -187
- package/src/views/pc/default/footer-modules/footer.vue +171 -171
- package/src/views/pc/default/footer-modules/footerAns.vue +167 -167
- package/src/views/pc/default/footer-modules/footerBulk.vue +169 -169
- package/src/views/pc/default/footer-modules/footerDM.vue +254 -254
- package/src/views/pc/default/footer-modules/footerDefault.vue +267 -267
- package/src/views/pc/default/footer-modules/footerDefaultA.vue +270 -270
- package/src/views/pc/default/footer-modules/footerDefaultNew.vue +201 -201
- package/src/views/pc/default/footer-modules/footerHDB.vue +153 -153
- package/src/views/pc/default/footer-modules/footerHy.vue +63 -63
- package/src/views/pc/default/footer-modules/footerKYW.vue +163 -163
- package/src/views/pc/default/footer-modules/footerMh.vue +30 -30
- package/src/views/pc/default/footer-modules/footerNew.vue +116 -116
- package/src/views/pc/default/footer-modules/footer_yzj.vue +169 -169
- package/src/views/pc/default/footer-modules/footerayd.vue +85 -85
- package/src/views/pc/default/footer-modules/ymFooter.vue +154 -154
- package/src/views/pc/default/footer-modules/zgl.vue +250 -250
- package/src/views/pc/default/header-modules/DgHeader/Logo.vue +57 -57
- package/src/views/pc/default/header-modules/DgHeader/Search.vue +135 -135
- package/src/views/pc/default/header-modules/DgHeader/Settleup.vue +46 -46
- package/src/views/pc/default/header-modules/DgHeader/index.vue +38 -38
- package/src/views/pc/default/header-modules/active.vue +177 -177
- package/src/views/pc/default/header-modules/header.vue +97 -97
- package/src/views/pc/default/header-modules/headerA.vue +142 -142
- package/src/views/pc/default/header-modules/headerFLPT.vue +157 -157
- package/src/views/pc/default/header-modules/headerMh.vue +187 -187
- package/src/views/pc/default/header-modules/headerNew.vue +121 -121
- package/src/views/pc/default/header-modules/headerSDX.vue +304 -304
- package/src/views/pc/default/header-modules/headerStyle2.vue +173 -173
- package/src/views/pc/default/header-modules/headerStyle3.vue +190 -190
- package/src/views/pc/default/header-modules/headerStyle4.vue +163 -163
- package/src/views/pc/default/header-modules/headerStyleAns.vue +400 -400
- package/src/views/pc/default/header-modules/headerStyleBulk.vue +427 -427
- package/src/views/pc/default/header-modules/headerStyleDefalut.vue +209 -209
- package/src/views/pc/default/header-modules/headerStyleKYW.vue +435 -435
- package/src/views/pc/default/header-modules/headerStyle_yzj.vue +427 -427
- package/src/views/pc/default/header-modules/headerayd.vue +187 -187
- package/src/views/pc/default/header-modules/index.vue +466 -466
- package/src/views/pc/default/header-modules/ymHeader.vue +292 -292
- package/src/views/pc/default/header-modules/ysHeader.vue +248 -248
- package/src/views/pc/default/header-modules/zgl.vue +855 -855
- package/src/views/pc/default/leftMenu-modules/leftMenu-logo.vue +194 -194
- package/src/views/pc/default/leftMenu-modules/leftMenu-style2.vue +206 -206
- package/src/views/pc/default/leftMenu-modules/leftMenu-style3.vue +207 -207
- package/src/views/pc/default/leftMenu-modules/leftMenu-style4.vue +192 -192
- package/src/views/pc/default/leftMenu-modules/leftMenu.vue +183 -183
- package/src/views/pc/default/leftMenu-modules/leftMenuDefault.vue +212 -212
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultEn.vue +214 -214
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultFLPT.vue +220 -220
- package/src/views/pc/default/leftMenu-modules/leftMenuDefaultayd.vue +220 -220
- package/src/views/pc/default/nav-modules/nav.vue +52 -52
- package/src/views/pc/default/nav-modules/navAns.vue +60 -60
- package/src/views/pc/default/nav-modules/navBulk.vue +60 -60
- package/src/views/pc/default/top-modules/DgTopShortcut/index.vue +177 -177
- package/src/views/pc/default/top-modules/Toplg.vue +280 -280
- package/src/views/pc/default/top-modules/topA.vue +136 -136
- package/src/views/pc/default/top-modules/topAns.vue +261 -261
- package/src/views/pc/default/top-modules/topAns_yzj.vue +282 -282
- package/src/views/pc/default/top-modules/topBar.vue +304 -304
- package/src/views/pc/default/top-modules/topBulk.vue +280 -280
- package/src/views/pc/default/top-modules/topDefault.vue +244 -244
- package/src/views/pc/default/top-modules/topDefaultDM.vue +197 -197
- package/src/views/pc/default/top-modules/topDefaultNew.vue +271 -271
- package/src/views/pc/default/top-modules/topFLPT.vue +197 -197
- package/src/views/pc/default/top-modules/topHDB.vue +479 -479
- package/src/views/pc/default/top-modules/topKYW.vue +258 -258
- package/src/views/pc/default/top-modules/topMh.vue +174 -174
- package/src/views/pc/default/top-modules/topNew.vue +97 -97
- package/src/views/pc/default/top-modules/topSDX.vue +298 -298
- package/src/views/pc/default/top-modules/topSimple.vue +247 -247
- package/src/views/pc/default/top-modules/topSimpleHy.vue +256 -256
- package/src/views/pc/default/top-modules/topUcc.vue +264 -264
- package/src/views/pc/default/top-modules/topayd.vue +170 -170
- package/src/views/pc/default/top-modules/ymTop.vue +299 -299
- package/src/views/pc/default/top-modules/zgltop.vue +499 -499
- package/src/views/routerView.vue +9 -9
- package/src/views/templates/components/temp-select.vue +80 -80
- package/src/views/templates/components/temp-upload.vue +233 -233
- package/src/views/templates/readme.md +2 -2
- package/src/views/templates/templateInput.vue +421 -421
- package/src/views/templates/templateReadme.html +588 -588
- package/src/views/templates/templateReadme.md +619 -619
- package/src/views/templates/templateTable.vue +2243 -2243
- package/src/views/templates/templateTableData.vue +1883 -1883
- package/src/views/templates/templateUi/templateTableContent.vue +187 -187
- package/src/views/treeTemplate/index.vue +559 -559
- package/src/views/treeTemplate/treeTemplate.md +274 -274
- package/src/views/uploadDialog/index copy.vue +352 -352
- package/src/views/uploadDialog/index.vue +558 -558
- package/src/views/uploadDialog/indexOlay.vue +582 -582
- package/src/views/uploadDialog/indexPM.vue +578 -578
- package/src/views/uploadDialog/indexUpload.vue +543 -543
- package/src/views/uploadDialog/readme.md +45 -45
|
@@ -1,265 +1,265 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="common-top-bar">
|
|
3
|
-
<div class="inner w1200 m0a">
|
|
4
|
-
<div class="left">
|
|
5
|
-
<!-- <i class="el-icon-location-outline"></i> -->
|
|
6
|
-
<p class="top-left-con">
|
|
7
|
-
<span v-if="isLogin && userInfor">Hi,{{decodeURIComponent(userInfor.userName)}}</span>
|
|
8
|
-
<!-- <span v-else>Hi,欢迎来到商城!</span> -->
|
|
9
|
-
</p>
|
|
10
|
-
<ul class="top-left-ul">
|
|
11
|
-
<li class="rignt-line"></li>
|
|
12
|
-
<li v-if="!isLogin">
|
|
13
|
-
<a href="/paas/index/index.html#/loginPc">登录</a>
|
|
14
|
-
</li>
|
|
15
|
-
<li v-if="!isLogin" class="rignt-line">|</li>
|
|
16
|
-
<li v-if="!isLogin">
|
|
17
|
-
<a href="/paas/index/index.html#/regPc">注册</a>
|
|
18
|
-
</li>
|
|
19
|
-
<li v-if="isLogin">
|
|
20
|
-
<a href="javascript:;" @click="logout">退出</a>
|
|
21
|
-
</li>
|
|
22
|
-
</ul>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="right">
|
|
25
|
-
<ul class>
|
|
26
|
-
<li>
|
|
27
|
-
<a href="/">首页</a>
|
|
28
|
-
</li>
|
|
29
|
-
<li>
|
|
30
|
-
<a href="/paas/pc-mall/index.html#/joinProcess">我要加盟</a>
|
|
31
|
-
</li>
|
|
32
|
-
<li>
|
|
33
|
-
<a href="/paas/shop/00000025/web/docList6/docList6/docList6.html">技术支持</a>
|
|
34
|
-
</li>
|
|
35
|
-
<li>
|
|
36
|
-
<a href="/paas/order-manager/index.html#/order">我的订单</a>
|
|
37
|
-
</li>
|
|
38
|
-
<li>
|
|
39
|
-
<a href="/paas/user-manager/index.html#/user">会员中心</a>
|
|
40
|
-
</li>
|
|
41
|
-
<li>
|
|
42
|
-
<a href="/paas/shop/00000025/web/doc2/doc2/doc2.html">关于品牌</a>
|
|
43
|
-
</li>
|
|
44
|
-
<li @mouseenter="enter" @mouseleave="leave">
|
|
45
|
-
<a href="javascript:;">移动版</a>
|
|
46
|
-
<div v-if="show" class="erwm">
|
|
47
|
-
<div>
|
|
48
|
-
<img :src="myerwm" alt />
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</li>
|
|
52
|
-
|
|
53
|
-
<!-- <li>
|
|
54
|
-
<a href>关于品牌</a>
|
|
55
|
-
</li>
|
|
56
|
-
<li>
|
|
57
|
-
<a href>移动版</a>
|
|
58
|
-
</li>-->
|
|
59
|
-
</ul>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
<slot></slot>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
import { logout } from "#/api/login";
|
|
68
|
-
import { getToken, removeToken } from "#/utils/auth";
|
|
69
|
-
import API from "#/api/common/index.js";
|
|
70
|
-
import erwm from "#/assets/WeChat.png";
|
|
71
|
-
|
|
72
|
-
export default {
|
|
73
|
-
data() {
|
|
74
|
-
return {
|
|
75
|
-
gw: "暂无顾问",
|
|
76
|
-
flaggw: false,
|
|
77
|
-
myerwm: erwm,
|
|
78
|
-
show: false
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
computed: {
|
|
82
|
-
isLogin() {
|
|
83
|
-
return this.getUserCookie() ? getToken(this.getUserCookie()) : false;
|
|
84
|
-
},
|
|
85
|
-
userInfor() {
|
|
86
|
-
let info =
|
|
87
|
-
this.getUserCookie() && getToken(this.getUserCookie())
|
|
88
|
-
? JSON.parse(getToken(this.getUserCookie()))
|
|
89
|
-
: {};
|
|
90
|
-
return info;
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
mounted() {
|
|
94
|
-
window.addEventListener("click", this.gwhide);
|
|
95
|
-
},
|
|
96
|
-
methods: {
|
|
97
|
-
gwopen() {
|
|
98
|
-
API.getCustrelByEmployee().then(res => {
|
|
99
|
-
if (res) {
|
|
100
|
-
if (res.employeePhone) {
|
|
101
|
-
this.gw = res.employeePhone;
|
|
102
|
-
} else {
|
|
103
|
-
this.gw = "暂无顾问";
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
this.gw = "暂无顾问";
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
this.flaggw = true;
|
|
110
|
-
},
|
|
111
|
-
gwhide() {
|
|
112
|
-
this.flaggw = false;
|
|
113
|
-
},
|
|
114
|
-
enter() {
|
|
115
|
-
this.show = true;
|
|
116
|
-
},
|
|
117
|
-
leave() {
|
|
118
|
-
this.show = false;
|
|
119
|
-
},
|
|
120
|
-
logout() {
|
|
121
|
-
// 退出
|
|
122
|
-
logout().then(() => {
|
|
123
|
-
let newDomain = document.domain
|
|
124
|
-
.split(".")
|
|
125
|
-
.splice(-2)
|
|
126
|
-
.join(".");
|
|
127
|
-
removeToken("LOGININFO", newDomain, "/");
|
|
128
|
-
// removeToken("personalInfo", newDomain, "/");
|
|
129
|
-
// location.reload();
|
|
130
|
-
location.href = location.origin;
|
|
131
|
-
});
|
|
132
|
-
},
|
|
133
|
-
getUserCookie() {
|
|
134
|
-
let cookie = document.cookie;
|
|
135
|
-
let start = cookie.indexOf("saas-user-");
|
|
136
|
-
if (start > -1) {
|
|
137
|
-
let end = cookie.indexOf("=", start);
|
|
138
|
-
return cookie.substring(start, end);
|
|
139
|
-
} else {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
</script>
|
|
146
|
-
|
|
147
|
-
<style rel="stylesheet/scss" lang="scss" scoped >
|
|
148
|
-
.common-top-bar{
|
|
149
|
-
position: relative;
|
|
150
|
-
}
|
|
151
|
-
.gw {
|
|
152
|
-
position: relative;
|
|
153
|
-
}
|
|
154
|
-
.mygw {
|
|
155
|
-
// border: 1px solid #ccc;
|
|
156
|
-
border-radius: 5px;
|
|
157
|
-
text-align: center;
|
|
158
|
-
// display: none;
|
|
159
|
-
background-color: white;
|
|
160
|
-
z-index: 999;
|
|
161
|
-
width: 200px;
|
|
162
|
-
height: 30px;
|
|
163
|
-
line-height: 30px;
|
|
164
|
-
position: absolute;
|
|
165
|
-
left: -50%;
|
|
166
|
-
top: 40px;
|
|
167
|
-
box-shadow: 0px 0px 10px #ccc;
|
|
168
|
-
}
|
|
169
|
-
.triangle_border_up {
|
|
170
|
-
// display: none;
|
|
171
|
-
position: absolute;
|
|
172
|
-
left: 66%;
|
|
173
|
-
top: 30px;
|
|
174
|
-
width: 0;
|
|
175
|
-
height: 0;
|
|
176
|
-
border-width: 0 10px 10px;
|
|
177
|
-
border-style: solid;
|
|
178
|
-
border-color: transparent transparent white; /*透明 透明 灰*/
|
|
179
|
-
}
|
|
180
|
-
.erwm {
|
|
181
|
-
text-align: center;
|
|
182
|
-
// width: 220px;
|
|
183
|
-
img {
|
|
184
|
-
// width: 100px;
|
|
185
|
-
// height: 100px;
|
|
186
|
-
display: block;
|
|
187
|
-
}
|
|
188
|
-
div {
|
|
189
|
-
display: inline-block;
|
|
190
|
-
}
|
|
191
|
-
position: absolute;
|
|
192
|
-
left: -18px;
|
|
193
|
-
top: 40px;
|
|
194
|
-
z-index: 9999;
|
|
195
|
-
}
|
|
196
|
-
.top-left-con {
|
|
197
|
-
float: left;
|
|
198
|
-
// margin: 0 20px;
|
|
199
|
-
}
|
|
200
|
-
.top-left-ul {
|
|
201
|
-
// margin: 0 20px;
|
|
202
|
-
margin-left: 9px;
|
|
203
|
-
float: left;
|
|
204
|
-
li {
|
|
205
|
-
float: left;
|
|
206
|
-
margin: 0 10px;
|
|
207
|
-
a {
|
|
208
|
-
color: #666;
|
|
209
|
-
// &:hover {
|
|
210
|
-
// color: #ff9e01;
|
|
211
|
-
// }
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
.common-top-bar {
|
|
216
|
-
color: #666;
|
|
217
|
-
font-size: 13px;
|
|
218
|
-
width: 100%;
|
|
219
|
-
height: 40px;
|
|
220
|
-
line-height: 40px;
|
|
221
|
-
background-color: #fff;
|
|
222
|
-
.inner {
|
|
223
|
-
.left {
|
|
224
|
-
float: left;
|
|
225
|
-
}
|
|
226
|
-
.right {
|
|
227
|
-
float: right;
|
|
228
|
-
position: relative;
|
|
229
|
-
ul {
|
|
230
|
-
margin-right: 1px;
|
|
231
|
-
}
|
|
232
|
-
ul li {
|
|
233
|
-
margin: 0 10px;
|
|
234
|
-
float: left;
|
|
235
|
-
float:left a {
|
|
236
|
-
color: #666;
|
|
237
|
-
}
|
|
238
|
-
position: relative;
|
|
239
|
-
// &:hover a {
|
|
240
|
-
// color: #ff9e01;
|
|
241
|
-
// }
|
|
242
|
-
}
|
|
243
|
-
.line {
|
|
244
|
-
width: 1px;
|
|
245
|
-
height: 16px;
|
|
246
|
-
background: #ccc;
|
|
247
|
-
margin: 12px 28px;
|
|
248
|
-
}
|
|
249
|
-
.item {
|
|
250
|
-
vertical-align: top;
|
|
251
|
-
height: 20px;
|
|
252
|
-
margin-top: 12px;
|
|
253
|
-
line-height: 20px;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
.common-top-bar .inner ul li.rignt-line {
|
|
259
|
-
// overflow: hidden;
|
|
260
|
-
// margin: 16px 20px 0;
|
|
261
|
-
// width: 1px;
|
|
262
|
-
// height: 10px;
|
|
263
|
-
// background-color: #ccc;
|
|
264
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="common-top-bar">
|
|
3
|
+
<div class="inner w1200 m0a">
|
|
4
|
+
<div class="left">
|
|
5
|
+
<!-- <i class="el-icon-location-outline"></i> -->
|
|
6
|
+
<p class="top-left-con">
|
|
7
|
+
<span v-if="isLogin && userInfor">Hi,{{decodeURIComponent(userInfor.userName)}}</span>
|
|
8
|
+
<!-- <span v-else>Hi,欢迎来到商城!</span> -->
|
|
9
|
+
</p>
|
|
10
|
+
<ul class="top-left-ul">
|
|
11
|
+
<li class="rignt-line"></li>
|
|
12
|
+
<li v-if="!isLogin">
|
|
13
|
+
<a href="/paas/index/index.html#/loginPc">登录</a>
|
|
14
|
+
</li>
|
|
15
|
+
<li v-if="!isLogin" class="rignt-line">|</li>
|
|
16
|
+
<li v-if="!isLogin">
|
|
17
|
+
<a href="/paas/index/index.html#/regPc">注册</a>
|
|
18
|
+
</li>
|
|
19
|
+
<li v-if="isLogin">
|
|
20
|
+
<a href="javascript:;" @click="logout">退出</a>
|
|
21
|
+
</li>
|
|
22
|
+
</ul>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="right">
|
|
25
|
+
<ul class>
|
|
26
|
+
<li>
|
|
27
|
+
<a href="/">首页</a>
|
|
28
|
+
</li>
|
|
29
|
+
<li>
|
|
30
|
+
<a href="/paas/pc-mall/index.html#/joinProcess">我要加盟</a>
|
|
31
|
+
</li>
|
|
32
|
+
<li>
|
|
33
|
+
<a href="/paas/shop/00000025/web/docList6/docList6/docList6.html">技术支持</a>
|
|
34
|
+
</li>
|
|
35
|
+
<li>
|
|
36
|
+
<a href="/paas/order-manager/index.html#/order">我的订单</a>
|
|
37
|
+
</li>
|
|
38
|
+
<li>
|
|
39
|
+
<a href="/paas/user-manager/index.html#/user">会员中心</a>
|
|
40
|
+
</li>
|
|
41
|
+
<li>
|
|
42
|
+
<a href="/paas/shop/00000025/web/doc2/doc2/doc2.html">关于品牌</a>
|
|
43
|
+
</li>
|
|
44
|
+
<li @mouseenter="enter" @mouseleave="leave">
|
|
45
|
+
<a href="javascript:;">移动版</a>
|
|
46
|
+
<div v-if="show" class="erwm">
|
|
47
|
+
<div>
|
|
48
|
+
<img :src="myerwm" alt />
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</li>
|
|
52
|
+
|
|
53
|
+
<!-- <li>
|
|
54
|
+
<a href>关于品牌</a>
|
|
55
|
+
</li>
|
|
56
|
+
<li>
|
|
57
|
+
<a href>移动版</a>
|
|
58
|
+
</li>-->
|
|
59
|
+
</ul>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<slot></slot>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
import { logout } from "#/api/login";
|
|
68
|
+
import { getToken, removeToken } from "#/utils/auth";
|
|
69
|
+
import API from "#/api/common/index.js";
|
|
70
|
+
import erwm from "#/assets/WeChat.png";
|
|
71
|
+
|
|
72
|
+
export default {
|
|
73
|
+
data() {
|
|
74
|
+
return {
|
|
75
|
+
gw: "暂无顾问",
|
|
76
|
+
flaggw: false,
|
|
77
|
+
myerwm: erwm,
|
|
78
|
+
show: false
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
computed: {
|
|
82
|
+
isLogin() {
|
|
83
|
+
return this.getUserCookie() ? getToken(this.getUserCookie()) : false;
|
|
84
|
+
},
|
|
85
|
+
userInfor() {
|
|
86
|
+
let info =
|
|
87
|
+
this.getUserCookie() && getToken(this.getUserCookie())
|
|
88
|
+
? JSON.parse(getToken(this.getUserCookie()))
|
|
89
|
+
: {};
|
|
90
|
+
return info;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
mounted() {
|
|
94
|
+
window.addEventListener("click", this.gwhide);
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
gwopen() {
|
|
98
|
+
API.getCustrelByEmployee().then(res => {
|
|
99
|
+
if (res) {
|
|
100
|
+
if (res.employeePhone) {
|
|
101
|
+
this.gw = res.employeePhone;
|
|
102
|
+
} else {
|
|
103
|
+
this.gw = "暂无顾问";
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
this.gw = "暂无顾问";
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
this.flaggw = true;
|
|
110
|
+
},
|
|
111
|
+
gwhide() {
|
|
112
|
+
this.flaggw = false;
|
|
113
|
+
},
|
|
114
|
+
enter() {
|
|
115
|
+
this.show = true;
|
|
116
|
+
},
|
|
117
|
+
leave() {
|
|
118
|
+
this.show = false;
|
|
119
|
+
},
|
|
120
|
+
logout() {
|
|
121
|
+
// 退出
|
|
122
|
+
logout().then(() => {
|
|
123
|
+
let newDomain = document.domain
|
|
124
|
+
.split(".")
|
|
125
|
+
.splice(-2)
|
|
126
|
+
.join(".");
|
|
127
|
+
removeToken("LOGININFO", newDomain, "/");
|
|
128
|
+
// removeToken("personalInfo", newDomain, "/");
|
|
129
|
+
// location.reload();
|
|
130
|
+
location.href = location.origin;
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
getUserCookie() {
|
|
134
|
+
let cookie = document.cookie;
|
|
135
|
+
let start = cookie.indexOf("saas-user-");
|
|
136
|
+
if (start > -1) {
|
|
137
|
+
let end = cookie.indexOf("=", start);
|
|
138
|
+
return cookie.substring(start, end);
|
|
139
|
+
} else {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
</script>
|
|
146
|
+
|
|
147
|
+
<style rel="stylesheet/scss" lang="scss" scoped >
|
|
148
|
+
.common-top-bar{
|
|
149
|
+
position: relative;
|
|
150
|
+
}
|
|
151
|
+
.gw {
|
|
152
|
+
position: relative;
|
|
153
|
+
}
|
|
154
|
+
.mygw {
|
|
155
|
+
// border: 1px solid #ccc;
|
|
156
|
+
border-radius: 5px;
|
|
157
|
+
text-align: center;
|
|
158
|
+
// display: none;
|
|
159
|
+
background-color: white;
|
|
160
|
+
z-index: 999;
|
|
161
|
+
width: 200px;
|
|
162
|
+
height: 30px;
|
|
163
|
+
line-height: 30px;
|
|
164
|
+
position: absolute;
|
|
165
|
+
left: -50%;
|
|
166
|
+
top: 40px;
|
|
167
|
+
box-shadow: 0px 0px 10px #ccc;
|
|
168
|
+
}
|
|
169
|
+
.triangle_border_up {
|
|
170
|
+
// display: none;
|
|
171
|
+
position: absolute;
|
|
172
|
+
left: 66%;
|
|
173
|
+
top: 30px;
|
|
174
|
+
width: 0;
|
|
175
|
+
height: 0;
|
|
176
|
+
border-width: 0 10px 10px;
|
|
177
|
+
border-style: solid;
|
|
178
|
+
border-color: transparent transparent white; /*透明 透明 灰*/
|
|
179
|
+
}
|
|
180
|
+
.erwm {
|
|
181
|
+
text-align: center;
|
|
182
|
+
// width: 220px;
|
|
183
|
+
img {
|
|
184
|
+
// width: 100px;
|
|
185
|
+
// height: 100px;
|
|
186
|
+
display: block;
|
|
187
|
+
}
|
|
188
|
+
div {
|
|
189
|
+
display: inline-block;
|
|
190
|
+
}
|
|
191
|
+
position: absolute;
|
|
192
|
+
left: -18px;
|
|
193
|
+
top: 40px;
|
|
194
|
+
z-index: 9999;
|
|
195
|
+
}
|
|
196
|
+
.top-left-con {
|
|
197
|
+
float: left;
|
|
198
|
+
// margin: 0 20px;
|
|
199
|
+
}
|
|
200
|
+
.top-left-ul {
|
|
201
|
+
// margin: 0 20px;
|
|
202
|
+
margin-left: 9px;
|
|
203
|
+
float: left;
|
|
204
|
+
li {
|
|
205
|
+
float: left;
|
|
206
|
+
margin: 0 10px;
|
|
207
|
+
a {
|
|
208
|
+
color: #666;
|
|
209
|
+
// &:hover {
|
|
210
|
+
// color: #ff9e01;
|
|
211
|
+
// }
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
.common-top-bar {
|
|
216
|
+
color: #666;
|
|
217
|
+
font-size: 13px;
|
|
218
|
+
width: 100%;
|
|
219
|
+
height: 40px;
|
|
220
|
+
line-height: 40px;
|
|
221
|
+
background-color: #fff;
|
|
222
|
+
.inner {
|
|
223
|
+
.left {
|
|
224
|
+
float: left;
|
|
225
|
+
}
|
|
226
|
+
.right {
|
|
227
|
+
float: right;
|
|
228
|
+
position: relative;
|
|
229
|
+
ul {
|
|
230
|
+
margin-right: 1px;
|
|
231
|
+
}
|
|
232
|
+
ul li {
|
|
233
|
+
margin: 0 10px;
|
|
234
|
+
float: left;
|
|
235
|
+
float:left a {
|
|
236
|
+
color: #666;
|
|
237
|
+
}
|
|
238
|
+
position: relative;
|
|
239
|
+
// &:hover a {
|
|
240
|
+
// color: #ff9e01;
|
|
241
|
+
// }
|
|
242
|
+
}
|
|
243
|
+
.line {
|
|
244
|
+
width: 1px;
|
|
245
|
+
height: 16px;
|
|
246
|
+
background: #ccc;
|
|
247
|
+
margin: 12px 28px;
|
|
248
|
+
}
|
|
249
|
+
.item {
|
|
250
|
+
vertical-align: top;
|
|
251
|
+
height: 20px;
|
|
252
|
+
margin-top: 12px;
|
|
253
|
+
line-height: 20px;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
.common-top-bar .inner ul li.rignt-line {
|
|
259
|
+
// overflow: hidden;
|
|
260
|
+
// margin: 16px 20px 0;
|
|
261
|
+
// width: 1px;
|
|
262
|
+
// height: 10px;
|
|
263
|
+
// background-color: #ccc;
|
|
264
|
+
}
|
|
265
265
|
</style>
|