Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
51fb7705
authored
May 18, 2023
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
分类地图
parent
6ab4cd79
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
9 deletions
App.vue
assets/css/classp/map.scss
assets/css/index/index.scss
assets/css/search/search.scss
pages/classp/map.vue
pages/index/index.vue
App.vue
View file @
51fb7705
...
...
@@ -19,5 +19,8 @@ export default {
uni-page-head
{
display
:
none
;
}
body
{
background
:
#f5f5f5
;
}
/* #endif */
</
style
>
assets/css/classp/map.scss
View file @
51fb7705
.mapPage
{
padding-bottom
:
100rpx
;
padding-top
:
88rpx
;
.maphead
{
position
:
fixed
;
top
:
0rpx
;
left
:
0rpx
;
width
:
100%
;
height
:
88rpx
;
font-size
:
34rpx
;
...
...
@@ -9,4 +13,52 @@
color
:
$uni-color333
;
background
:
#F5F5F7
;
}
.mapcons
{
padding
:
0
24rpx
;
.c-lp
{
width
:
180rpx
;
.item
{
width
:
180rpx
;
font-weight
:
400
;
font-size
:
24rpx
;
color
:
$uni-color999
;
margin-bottom
:
50rpx
;
cursor
:
pointer
;
&
.act
{
color
:
$uni-coloract
;
}
}
}
.c-rp
{
width
:
494rpx
;
.item
{
background
:
#fff
;
border-radius
:
10rpx
;
margin-bottom
:
27rpx
;
box-sizing
:
border-box
;
padding
:
24rpx
;
.title
{
color
:
$uni-color333
;
font-size
:
26rpx
;
font-weight
:
600
;
margin-bottom
:
25rpx
;
.icon
{
font-size
:
32rpx
;
font-weight
:
normal
;
color
:
#d1d1d1
;
}
}
.lastbox
{
flex-wrap
:
wrap
;
}
.lasttitle
{
width
:
210rpx
;
color
:
$uni-color666
;
font-size
:
24rpx
;
margin-bottom
:
12rpx
;
}
}
}
}
}
\ No newline at end of file
assets/css/index/index.scss
View file @
51fb7705
.indexPage
{
padding-bottom
:
100rpx
;
background
:
#fff
;
}
...
...
assets/css/search/search.scss
View file @
51fb7705
.searchIndex
{
background
:
#fff
;
height
:
100vh
;
}
.header
{
width
:
750rpx
;
height
:
88rpx
;
...
...
pages/classp/map.vue
View file @
51fb7705
...
...
@@ -2,16 +2,35 @@
<view
class=
"page mapPage"
>
<div
class=
"maphead row verCenter rowCenter"
>
分类选型
</div>
<div
class=
"mapcons row bothSide"
>
<div
class=
"c-lp"
>
<view
class=
"item "
@
click=
"tab(item.bcat_id)"
v-for=
"(item,index) in obj"
:key=
"index"
>
{{
item
.
bcat_name
}}
</view>
</div>
<div
class=
"c-rp"
>
<view
v-for=
"(item,index) in obj"
:key=
"index"
>
<view
class=
"item"
v-for=
"(item1,index1) in item.classify"
:key=
"index1"
>
<navigator
url=
""
class=
"row bothSide title"
>
<text>
{{
item1
.
class_name
}}
</text>
<text
class=
"icon iconfont icon-jt"
></text>
</navigator>
<view
class=
"lastbox row bothSide"
>
<navigator
url=
""
class=
"row bothSide lasttitle"
v-for=
"(item2,index2) in item1.lower"
:key=
"index2"
>
{{
item2
.
class_name
}}
</navigator>
</view>
</view>
</view>
</div>
</div>
<bottomNavFixed
actval=
"2"
/>
</view>
</
template
>
<
script
>
import
{
Ichunt_Api
,
Api_Url
}
from
'@/util/api.js'
;
import
{
Ichunt_Api
}
from
'@/util/api.js'
;
import
bottomNavFixed
from
'@/components/bottom_nav.vue'
;
export
default
{
data
()
{
return
{
obj
:
""
,
};
},
...
...
@@ -23,15 +42,15 @@
methods
:
{
tab
(
id_
){
},
getData
()
{
// this.request(Api_Url + "/msg/allnum", 'POST', {}, ).then(res => {
// if (res.err_code === 0) {
// this.newscount=res.data
// }
// });
this
.
request
(
Ichunt_Api
+
"/api/classify/getClassifyMap"
,
'GET'
,
{},
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
obj
=
res
.
data
}
});
}
},
components
:
{
...
...
pages/index/index.vue
View file @
51fb7705
...
...
@@ -208,6 +208,7 @@
this
.
request
(
Ichunt_Api
+
"/api/index/index"
,
'GET'
,
{},
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
obj
=
res
.
data
;
clearInterval
(
this
.
intervalHandler
)
if
(
this
.
obj
.
h5_home_notice
.
length
<=
1
){
return
}
...
...
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