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
66790f40
Commit
66790f40
authored
Dec 09, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/gs1-office-web-sit/gs1
parents
0a89bd98
5e787238
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
340 additions
and
108 deletions
+340
-108
api.js
src/axios/api.js
+4
-0
home.js
src/axios/module/home.js
+14
-1
org.js
src/axios/module/org.js
+16
-0
service.js
src/axios/module/service.js
+15
-0
parameter.js
src/axios/parameter.js
+1
-1
index.vue
src/views/Home/index.vue
+33
-14
Branch.vue
src/views/Org/Branch.vue
+188
-47
BranchMsg.vue
src/views/Org/BranchMsg.vue
+29
-15
fzzx.vue
src/views/Org/comps/fzzx.vue
+5
-3
book.vue
src/views/Service/book.vue
+35
-26
pages.vue
src/views/comps/pages.vue
+0
-1
No files found.
src/axios/api.js
View file @
66790f40
...
...
@@ -16,13 +16,17 @@ const getCaptcha = (query = {}) => {
}
import
home
from
"./module/home.js"
import
org
from
"./module/org.js"
import
business
from
"./module/business.js"
import
search
from
"./module/search.js"
import
service
from
"./module/service.js"
const
api
=
{
home
,
org
,
business
,
search
,
service
,
getCaptcha
,
}
...
...
src/axios/module/home.js
View file @
66790f40
import
{
POST
POST
,
POSTFORM
,
UPLOAD
}
from
"../fetch.js"
...
...
@@ -32,6 +32,17 @@ const homeSmallImages = (params = {}) => {
return
POST
(
`
${
Prefix
}
/office/indexCarouselManage/api/smallImages`
,
params
)
}
// 获取定制服务
const
customService
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/userfunctionbinding/api/find`
,
params
)
}
// 更新定制服务
const
updateCustomService
=
(
params
=
{})
=>
{
return
POSTFORM
(
`
${
Prefix
}
/office/userfunctionbinding/api/update`
,
params
)
}
export
default
{
homeBigImages
,
...
...
@@ -39,4 +50,6 @@ export default {
homeImportantNewList
,
homeGet4PartyTopNews
,
homeSmallImages
,
customService
,
updateCustomService
,
}
src/axios/module/org.js
0 → 100644
View file @
66790f40
import
{
POST
}
from
"../fetch.js"
const
Prefix
=
process
.
env
.
NODE_ENV
===
'development'
?
'/gs1'
:
''
;
// 获取编码机构详情
const
orgGetBranchDetail
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/branch/api/getBranchDetail`
,
params
)
}
export
default
{
orgGetBranchDetail
,
}
src/axios/module/service.js
0 → 100644
View file @
66790f40
import
{
POST
}
from
"../fetch.js"
const
Prefix
=
process
.
env
.
NODE_ENV
===
'development'
?
'/gs1'
:
''
;
// 获取条码图书
const
getCodeBook
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/product/api/findPage`
,
params
)
}
export
default
{
getCodeBook
,
}
src/axios/parameter.js
View file @
66790f40
...
...
@@ -69,7 +69,7 @@ export function handleResponseSuccess(res = {}) {
success
:
true
,
returnCode
:
res
.
code
||
ResponseCode
.
success
,
returnMsg
:
res
.
msg
,
data
:
res
.
data
||
null
data
:
res
.
data
||
res
.
page
||
null
}
}
...
...
src/views/Home/index.vue
View file @
66790f40
...
...
@@ -22,9 +22,9 @@
</div>
</div>
</div>
<!--
<div
class=
"d-none d-lg-block banner-tp"
>
-->
<!--
<img
:src=
"el.picIndexPath"
alt=
""
class=
"container"
/>
-->
<!--
</div>
-->
<!--
<div
class=
"d-none d-lg-block banner-tp"
>
-->
<!--
<img
:src=
"el.picIndexPath"
alt=
""
class=
"container"
/>
-->
<!--
</div>
-->
<div
class=
"banner-bg"
>
<img
:src=
"el.picIndexPath"
alt=
""
/>
</div>
...
...
@@ -993,34 +993,52 @@ export default {
},
mounted
()
{
this
.
getCustomService
()
// 从后端获取最新的定制服务
this
.
getCustomServiceFromServer
()
},
methods
:
{
getCustomService
()
{
let
service
=
localStorage
.
getItem
(
'gs-custom-service'
)
||
''
console
.
log
(
'getCustomService-----------'
,
service
)
if
(
service
)
{
if
(
service
)
{
service
=
JSON
.
parse
(
service
)
this
.
updateCustomService
(
service
)
this
.
showCustomService
(
service
)
}
},
async
getCustomServiceFromServer
()
{
const
searchGlnRes
=
await
this
.
$api
.
home
.
customService
();
const
{
returnCode
,
data
}
=
searchGlnRes
;
if
(
returnCode
===
"0"
)
{
localStorage
.
setItem
(
'gs-custom-service'
,
JSON
.
stringify
(
data
))
this
.
showCustomService
(
data
)
}
},
updateCustomService
(
list
){
this
.
dzfw
.
forEach
(
item
=>
{
showCustomService
(
list
)
{
this
.
dzfw
.
forEach
(
item
=>
{
item
.
isChecked
=
item
.
name
===
"更多定制"
list
.
forEach
(
_item
=>
{
if
(
_item
==
item
.
id
)
{
list
.
forEach
(
_item
=>
{
if
(
_item
==
item
.
id
)
{
item
.
isChecked
=
true
}
})
})
},
setCustomService
()
{
const
service
=
[]
this
.
dzfw
.
forEach
(
item
=>
{
if
(
item
.
isChecked
&&
item
.
name
!==
"更多定制"
)
{
service
.
push
(
parseInt
(
item
.
id
,
10
))
this
.
dzfw
.
forEach
(
item
=>
{
if
(
item
.
isChecked
&&
item
.
name
!==
"更多定制"
)
{
service
.
push
(
parseInt
(
item
.
id
,
10
))
}
})
localStorage
.
setItem
(
'gs-custom-service'
,
JSON
.
stringify
(
service
))
localStorage
.
setItem
(
'gs-custom-service'
,
JSON
.
stringify
(
service
))
this
.
updateCustomService
(
service
)
},
async
updateCustomService
(
service
)
{
const
searchGlnRes
=
await
this
.
$api
.
home
.
updateCustomService
({
service
});
},
// 初始化
init
()
{
...
...
@@ -1187,7 +1205,7 @@ export default {
setTimeout
(()
=>
{
this
.
messageDialog
.
isShow
=
false
;
},
2000
);
}
else
{
}
else
{
this
.
setCustomService
()
}
console
.
log
(
this
.
dzfw
[
i
],
"newValue"
);
...
...
@@ -1667,6 +1685,7 @@ export default {
@media
screen
and
(
max-width
:
992px
)
{
z-index
:
-1
}
img
{
width
:
100%
;
height
:
100%
;
...
...
src/views/Org/Branch.vue
View file @
66790f40
...
...
@@ -74,83 +74,224 @@ export default {
id
:
"huabei"
,
name
:
"华北"
,
list
:
[
"北京分中心"
,
"天津分中心"
,
"河北分中心"
,
"山西分中心"
,
"内蒙古分中心"
,
{
name
:
'北京分中心'
,
branchCode
:
'1105'
,
},
{
name
:
'天津分中心'
,
branchCode
:
'1201'
,
},
{
name
:
'河北分中心'
,
branchCode
:
'1301'
,
},
{
name
:
'山西分中心'
,
branchCode
:
'1405'
,
},
{
name
:
'内蒙古分中心'
,
branchCode
:
'1505'
,
},
],
},
{
id
:
"dongbei"
,
name
:
"东北"
,
list
:
[
"辽宁分中心"
,
"沈阳分中心"
,
"大连分中心"
,
"吉林分中心"
,
"长春分中心"
,
"黑龙江分中心"
,
"哈尔滨分中心"
,
{
name
:
'辽宁分中心'
,
branchCode
:
'2101'
,
},
{
name
:
'沈阳分中心'
,
branchCode
:
'2105'
,
},
{
name
:
'大连分中心'
,
branchCode
:
'2106'
,
},
{
name
:
'吉林分中心'
,
branchCode
:
'2201'
,
},
{
name
:
'长春分中心'
,
branchCode
:
'2205'
,
},
{
name
:
'黑龙江分中心'
,
branchCode
:
'2301'
,
},
{
name
:
'哈尔滨分中心'
,
branchCode
:
''
,
},
],
},
{
id
:
"huadong"
,
name
:
"华东"
,
list
:
[
"上海分中心"
,
"江苏分中心"
,
"南京办事处"
,
"浙江分中心"
,
"杭州分中心"
,
"宁波分中心"
,
"安徽分中心"
,
"福建分中心"
,
"厦门办事处"
,
"江西分中心"
,
"山东分中心"
,
"青岛办事处"
,
"烟台办事处"
,
{
name
:
'上海分中心'
,
branchCode
:
'3101'
,
},
{
name
:
'江苏分中心'
,
branchCode
:
'3201'
,
},
{
name
:
'南京办事处'
,
branchCode
:
'3205'
,
},
{
name
:
'浙江分中心'
,
branchCode
:
'3301'
,
},
{
name
:
'杭州分中心'
,
branchCode
:
'3302'
,
},
{
name
:
'宁波分中心'
,
branchCode
:
'3302'
,
},
{
name
:
'安徽分中心'
,
branchCode
:
'3405'
,
},
{
name
:
'福建分中心'
,
branchCode
:
'3501'
,
},
{
name
:
'厦门办事处'
,
branchCode
:
'3505'
,
},
{
name
:
'江西分中心'
,
branchCode
:
'3605'
,
},
{
name
:
'山东分中心'
,
branchCode
:
'3701'
,
},
{
name
:
'青岛办事处'
,
branchCode
:
'3705'
,
},
{
name
:
'烟台办事处'
,
branchCode
:
'3706'
,
},
],
},
{
id
:
"huazhongnan"
,
name
:
"华中、华南"
,
list
:
[
"河南分中心"
,
"湖北分中心"
,
"武汉分中心"
,
"湖南分中心"
,
"广东分中心"
,
"深圳分中心"
,
"广州分中心"
,
"珠海分中心"
,
"广西分中心"
,
"海南分中心"
,
{
name
:
'河南分中心'
,
branchCode
:
'4101'
,
},
{
name
:
'湖北分中心'
,
branchCode
:
'4201'
,
},
{
name
:
'武汉分中心'
,
branchCode
:
'4202'
,
},
{
name
:
'湖南分中心'
,
branchCode
:
'4305'
,
},
{
name
:
'广东分中心'
,
branchCode
:
'4401'
,
},
{
name
:
'深圳分中心'
,
branchCode
:
'4402'
,
},
{
name
:
'广州分中心'
,
branchCode
:
'4404'
,
},
{
name
:
'珠海分中心'
,
branchCode
:
'4405'
,
},
{
name
:
'广西分中心'
,
branchCode
:
'4505'
,
},
{
name
:
'海南分中心'
,
branchCode
:
'4605'
,
},
],
},
{
id
:
"xinan"
,
name
:
"西南"
,
list
:
[
"四川分中心"
,
"成都办事处"
,
"重庆分中心"
,
"贵州分中心"
,
"云南分中心"
,
"西藏分中心"
,
{
name
:
'四川分中心'
,
branchCode
:
'5101'
,
},
{
name
:
'成都办事处'
,
branchCode
:
'5105'
,
},
{
name
:
'重庆分中心'
,
branchCode
:
'5106'
,
},
{
name
:
'贵州分中心'
,
branchCode
:
'5205'
,
},
{
name
:
'云南分中心'
,
branchCode
:
'5305'
,
},
{
name
:
'西藏分中心'
,
branchCode
:
'5405'
,
},
],
},
{
id
:
"xibei"
,
name
:
"西北"
,
list
:
[
"陕西分中心"
,
"西安分中心"
,
"甘肃分中心"
,
"青海分中心"
,
"宁夏分中心"
,
"新疆分中心"
,
{
name
:
'陕西分中心'
,
branchCode
:
'6106'
,
},
{
name
:
'西安分中心'
,
branchCode
:
'6107'
,
},
{
name
:
'甘肃分中心'
,
branchCode
:
'6201'
,
},
{
name
:
'青海分中心'
,
branchCode
:
'6305'
,
},
{
name
:
'宁夏分中心'
,
branchCode
:
'6405'
,
},
{
name
:
'新疆分中心'
,
branchCode
:
'6501'
,
},
],
},
],
...
...
src/views/Org/BranchMsg.vue
View file @
66790f40
...
...
@@ -6,16 +6,11 @@
<div
class=
"branchMsg-message"
>
<div
class=
"row"
>
<div
class=
"col-lg-6"
></div>
<div
class=
"tip col-lg-6 col-12"
>
<div
class=
"tip col-lg-6 col-12"
v-show=
"msg.addressDescription"
>
<div
class=
"tip-title"
><span>
重要提示
</span></div>
<div
class=
"tip-text"
>
<p></p>
<p>
湖北编码分支机构办理武汉所辖市以外的湖北省内企业的条码申办及相关业务,武汉市企业欲办理的,请联系
<a
href=
"/org/article.aspx?code_id=4202"
>
武汉编码分支机构
</a
>
。
</p>
<p
v-html=
"msg.addressDescription"
></p>
<p></p>
</div>
</div>
...
...
@@ -25,36 +20,36 @@
<ul
class=
"branchMsg-ul"
>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
联系人:
</div>
<div
class=
"col-lg-10 col-8"
>
吴永飞
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
branchSimname
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
电
话:
</div>
<div
class=
"col-lg-10 col-8"
>
027-88224190
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
tel1
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
传
真:
</div>
<div
class=
"col-lg-10 col-8"
>
010-64298962
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
fax
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
邮
箱:
</div>
<div
class=
"col-lg-10 col-8"
>
tiaomabj@126.com
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
mail
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
网
址:
</div>
<div
class=
"col-lg-10 col-8"
>
http://tiaoma.12365.net.cn
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
website
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
地
址:
</div>
<div
class=
"col-lg-10 col-8"
>
北京市东城区和平里东街20号
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
branchAddress
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
邮
编:
</div>
<div
class=
"col-lg-10 col-8"
>
100013
</div>
<div
class=
"col-lg-10 col-8"
>
{{
msg
.
branchPostcode
}}
</div>
</li>
<li
class=
"row"
>
<div
class=
"col-lg-2 col-4"
>
简
介:
</div>
<div
class=
"col-lg-10 col-8"
>
我们是中国物品编码中心设在北京的分支机构,负责北京地区企业申请使用商品条码及管理工作。负责初审本地区商品条码注册、变更、续展和注销;负责本地区商品条码技术培训,条码质检站的日常检测和管理及市场抽查检测,提供商品条码技术咨询与服务。
{{
msg
.
description
}}
</div>
</li>
</ul>
...
...
@@ -78,8 +73,27 @@ export default {
tip
:
{
show
:
true
,
},
msg
:
{},
};
},
created
()
{
this
.
orgGetBranchDetail
();
},
methods
:
{
// 获取编码机构详情
async
orgGetBranchDetail
()
{
const
params
=
{
branchCode
:
this
.
$route
.
query
.
branchCode
,
};
const
orgGetBranchDetailRes
=
await
this
.
$api
.
org
.
orgGetBranchDetail
(
params
);
const
{
returnCode
,
data
}
=
orgGetBranchDetailRes
;
if
(
returnCode
===
"0"
)
{
console
.
log
(
orgGetBranchDetailRes
,
"获取编码机构详情"
);
this
.
msg
=
data
;
}
},
},
};
</
script
>
<
style
lang=
"scss"
>
...
...
src/views/Org/comps/fzzx.vue
View file @
66790f40
...
...
@@ -4,7 +4,7 @@
<div
class=
"fzzx-list"
>
<div
class=
"row"
v-for=
"(tmpA, i) in newList"
:key=
"i"
>
<div
class=
"col-6"
v-for=
"(tmpB, ii) in tmpA"
:key=
"ii"
>
<span
@
click=
"openMsg(
ii)"
>
{{
tmpB
}}
</span>
<span
@
click=
"openMsg(
tmpB.branchCode)"
>
{{
tmpB
.
name
}}
</span>
</div>
</div>
</div>
...
...
@@ -24,10 +24,12 @@ export default {
},
},
methods
:
{
openMsg
(
i
)
{
console
.
log
(
i
,
"i"
);
openMsg
(
branchCode
)
{
this
.
$router
.
push
({
path
:
"/Org/BranchMsg"
,
query
:
{
branchCode
,
},
});
},
},
...
...
src/views/Service/book.vue
View file @
66790f40
...
...
@@ -6,16 +6,17 @@
<el-tab-pane
label=
"条码图书"
name=
"first"
>
<div
class=
"book-card"
:key=
"i"
v-for=
"(item,i) in bookList"
>
<div
class=
"book-img"
>
<img
:src=
"item.
img
"
alt=
""
>
<img
:src=
"item.
graph
"
alt=
""
>
</div>
<div
class=
"book-content"
>
<div
class=
"title"
>
{{
item
.
name
}}
</div>
<div
class=
"title"
>
{{
item
.
pre
name
}}
</div>
<div
class=
"price"
>
¥
{{
item
.
price
}}
</div>
<div
class=
"desc"
>
<span>
{{
item
.
author
}}
著
</span>
|
<span>
{{
item
.
date
}}
</span>
|
<span>
{{
item
.
press
}}
</span>
<span>
{{
item
.
author
}}
著
</span>
|
<span>
{{
item
.
predate
}}
</span>
|
<span>
{{
item
.
company
}}
</span>
</div>
</div>
</div>
<pages
:pages=
"page"
@
toPagesFather=
"getBooks"
></pages>
</el-tab-pane>
<el-tab-pane
label=
"软件下载"
name=
"second"
>
...
...
@@ -52,7 +53,10 @@
</
template
>
<
script
>
import
pages
from
"../comps/pages.vue"
;
export
default
{
components
:
{
pages
},
data
()
{
return
{
activeName
:
'second'
,
...
...
@@ -96,27 +100,27 @@ export default {
},
],
bookList
:
[],
page
:
{
currentPage
:
1
,
pageSize
:
10
,
pageCount
:
1
,
total
:
10
,
},
}
},
created
()
{
this
.
getBooks
()
},
methods
:
{
getBooks
()
{
for
(
let
i
=
0
;
i
<
10
;
++
i
)
{
this
.
bookList
.
push
(
{
id
:
i
,
name
:
'条码小达人'
,
img
:
require
(
'./img/5d1d4969-956a-4a85-9631-e45605b0c221.jpg'
),
price
:
30.00
,
author
:
'张海成 张铎'
,
date
:
'2010.1'
,
press
:
'武汉大学出版社'
},
)
async
getBooks
(
page
=
1
)
{
const
res
=
await
this
.
$api
.
service
.
getCodeBook
({
page
:
page
,
size
:
this
.
page
.
pageSize
})
const
{
returnCode
,
data
}
=
res
;
if
(
returnCode
===
"0"
)
{
this
.
bookList
=
data
.
list
this
.
page
.
currentPage
=
data
.
currPage
this
.
page
.
total
=
data
.
totalCount
this
.
page
.
pageCount
=
data
.
totalPage
}
console
.
log
(
this
.
bookList
)
}
}
};
...
...
@@ -132,9 +136,11 @@ export default {
border
:
1px
solid
rgba
(
197
,
216
,
238
,
0.5
);
margin-bottom
:
30px
;
cursor
:
pointer
;
&:hover{
&:hover
{
box-shadow
:
0
4px
15px
2px
rgba
(
4
,
64
,
141
,
0.08
);
}
.book-img
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -151,26 +157,27 @@ export default {
.book-content
{
padding
:
16px
20px
;
.title
{
>
.title
{
font-size
:
21px
;
font-weight
:
500
;
color
:
#454545
;
margin-bottom
:
46px
;
height
:
70px
;
overflow
:
hidden
;
}
.price
{
>
.price
{
font-size
:
32px
;
font-weight
:
500
;
color
:
#F23535
;
line-height
:
45px
;
margin-bottom
:
20
px
;
margin-bottom
:
15
px
;
}
.desc
{
>
.desc
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
20
px
;
line-height
:
18
px
;
}
}
}
...
...
@@ -183,9 +190,11 @@ export default {
border
:
1px
solid
rgba
(
197
,
216
,
238
,
0.5
);
margin-bottom
:
25px
;
cursor
:
pointer
;
&:hover{
&:hover
{
box-shadow
:
0px
4px
15px
2px
rgba
(
4
,
64
,
141
,
0.08
);
}
.app-img
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -253,7 +262,7 @@ export default {
}
}
.el-tabs__content
{
.el-tabs__content
{
padding-top
:
14px
;
}
}
...
...
src/views/comps/pages.vue
View file @
66790f40
...
...
@@ -20,7 +20,6 @@
<el-pagination
:current-page=
"pages.currentPage"
:page-size=
"pages.pageSize"
:pager-count=
"pages.pageCount"
layout=
"prev, pager, next"
:total=
"pages.total"
background
...
...
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