Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
37be0f2f
Commit
37be0f2f
authored
Dec 27, 2021
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 个人中心修改和境内码查询placeholder
parent
69293978
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
20 deletions
+23
-20
topBanner.vue
src/components/layout/topBanner.vue
+21
-18
internal.vue
src/views/Search/internal.vue
+2
-2
No files found.
src/components/layout/topBanner.vue
View file @
37be0f2f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"top-banner-item language"
>
<div
class=
"top-banner-item language"
>
<el-dropdown
class=
"language-dropdown"
@
command=
"handleClick"
>
<el-dropdown
class=
"language-dropdown"
@
command=
"handleClick"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
{{
languageTxt
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
{{
languageTxt
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</span>
</span>
<el-dropdown-menu
slot=
"dropdown"
class=
"language-dropdown-menu"
>
<el-dropdown-menu
slot=
"dropdown"
class=
"language-dropdown-menu"
>
<el-dropdown-item
command=
"中文"
>
中文
</el-dropdown-item>
<el-dropdown-item
command=
"中文"
>
中文
</el-dropdown-item>
...
@@ -15,61 +15,64 @@
...
@@ -15,61 +15,64 @@
</div>
</div>
<div
class=
"top-banner-item tb-hover"
>
咨询电话:400-7000-690
</div>
<div
class=
"top-banner-item tb-hover"
>
咨询电话:400-7000-690
</div>
<div
class=
"top-banner-item"
>
<div
class=
"top-banner-item"
>
<img
src=
"../../assets/image/head/wx.png"
alt=
""
/>
<img
src=
"../../assets/image/head/wx.png"
alt=
""
/>
<a
class=
"tb-hover"
target=
"_blank"
:href=
"`$
{urls.ancc}gs1cnweixin.aspx`">官方微信
</a>
<a
class=
"tb-hover"
target=
"_blank"
:href=
"`$
{urls.ancc}gs1cnweixin.aspx`">官方微信
</a>
</div>
</div>
<div
class=
"top-banner-item"
>
<div
class=
"top-banner-item"
>
<img
src=
"../../assets/image/head/xlwb.png"
alt=
""
/>
<img
src=
"../../assets/image/head/xlwb.png"
alt=
""
/>
<a
class=
"tb-hover"
target=
"_blank"
href=
"https://weibo.com/gs1cn"
>
官方微博
</a>
<a
class=
"tb-hover"
target=
"_blank"
href=
"https://weibo.com/gs1cn"
>
官方微博
</a>
</div>
</div>
<div
class=
"top-banner-item tb-hover"
@
click=
"handleSearch"
>
<div
class=
"top-banner-item tb-hover"
@
click=
"handleSearch"
>
<img
src=
"../../assets/image/head/search.png"
alt=
""
/>
<img
src=
"../../assets/image/head/search.png"
alt=
""
/>
</div>
<div
@
click=
"toAdmin"
style=
"color: #00799e;display:flex;align-items: center;cursor: pointer;margin-left: 14px"
v-if=
"user.username"
>
<!--
<img
style=
"width:22px;"
--
>
<!-- src="../../assets/image/mymanage/pic_touxiang.png" alt="">-->
<span
style=
""
>
个人中心:
</span>
<span
style=
"margin-left: 4px;font-weight: bold"
>
{{
user
.
username
}}
</span>
</div>
</div>
<!--
<span
@
click=
"toAdmin"
style=
"cursor: pointer;margin-left: 4px"
v-if=
"user.username"
>
{{
user
.
username
}}
</span>
-->
<img
v-if=
"user.username"
@
click=
"toAdmin"
style=
"width:22px;cursor: pointer;margin-left: 20px"
src=
"../../assets/image/mymanage/pic_touxiang.png"
alt=
""
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
}
from
"vuex"
;
import
{
mapState
}
from
"vuex"
;
export
default
{
export
default
{
name
:
"topBanner"
,
name
:
"topBanner"
,
computed
:
{
computed
:
{
...
mapState
([
"urls"
]),
...
mapState
([
"urls"
]),
},
},
created
()
{
created
()
{
this
.
user
=
localStorage
.
getItem
(
'loginInfo'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'loginInfo'
))
:
{}
this
.
user
=
localStorage
.
getItem
(
'loginInfo'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'loginInfo'
))
:
{}
console
.
log
(
this
.
user
)
console
.
log
(
this
.
user
)
},
},
data
()
{
data
()
{
return
{
return
{
user
:
{},
user
:
{},
languageTxt
:
'中文'
languageTxt
:
'中文'
}
}
},
},
methods
:
{
methods
:
{
toAdmin
()
{
toAdmin
()
{
if
((
this
.
user
.
userType
===
1
&&
this
.
user
.
isXT
!==
1
)
||
(
this
.
user
.
userType
===
2
&&
this
.
user
.
isXT
!==
1
)
||
(
this
.
user
.
userType
===
3
&&
this
.
user
.
levels
===
null
))
{
if
((
this
.
user
.
userType
===
1
&&
this
.
user
.
isXT
!==
1
)
||
(
this
.
user
.
userType
===
2
&&
this
.
user
.
isXT
!==
1
)
||
(
this
.
user
.
userType
===
3
&&
this
.
user
.
levels
===
null
))
{
this
.
$router
.
push
({
path
:
'/MyManage/UnVerify/index'
})
this
.
$router
.
push
({
path
:
'/MyManage/UnVerify/index'
})
}
else
if
(
this
.
user
.
isXT
===
1
)
{
}
else
if
(
this
.
user
.
isXT
===
1
)
{
this
.
$router
.
push
({
path
:
'/MyManage/SystemMember/index'
})
this
.
$router
.
push
({
path
:
'/MyManage/SystemMember/index'
})
}
else
if
(
this
.
user
.
levels
===
0
)
{
}
else
if
(
this
.
user
.
levels
===
0
)
{
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
}
else
if
(
this
.
user
.
levels
===
1
)
{
}
else
if
(
this
.
user
.
levels
===
1
)
{
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
}
else
if
(
String
(
this
.
user
.
levels
).
length
===
4
)
{
}
else
if
(
String
(
this
.
user
.
levels
).
length
===
4
)
{
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
this
.
$router
.
push
({
path
:
'/MyManage/admin/check'
})
}
}
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/Home/sousuo"
,
path
:
"/Home/sousuo"
,
});
});
},
},
handleClick
(
val
)
{
handleClick
(
val
)
{
this
.
languageTxt
=
val
this
.
languageTxt
=
val
if
(
val
==
'中文'
)
{
if
(
val
==
'中文'
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/views/Search/internal.vue
View file @
37be0f2f
...
@@ -27,13 +27,13 @@
...
@@ -27,13 +27,13 @@
<el-input
<el-input
v-show=
"company === NAME"
v-show=
"company === NAME"
v-model=
"companySearch.name"
v-model=
"companySearch.name"
placeholder=
"请输入正确的
商品条码
!"
placeholder=
"请输入正确的
厂商名称
!"
class=
"w240"
class=
"w240"
></el-input>
></el-input>
<el-input
<el-input
v-show=
"company === ADDRESS"
v-show=
"company === ADDRESS"
v-model=
"companySearch.address"
v-model=
"companySearch.address"
placeholder=
"请输入正确的厂商
名称
!"
placeholder=
"请输入正确的厂商
地址
!"
class=
"w240"
class=
"w240"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment