Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
Project
Project
Details
Activity
Releases
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
刘怀志
intel_promotion_uniapp
Commits
d8940d5d
Commit
d8940d5d
authored
Jun 19, 2024
by
杨硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接接口
parent
1baeabb4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
145 additions
and
35 deletions
+145
-35
pages.json
pages.json
+11
-2
index.vue
pages/menu/index.vue
+2
-2
index.vue
pages/myArticle/index.vue
+6
-28
index.vue
pages/myVedio/index.vue
+8
-3
index.vue
pages/shop/index.vue
+1
-0
index.vue
pages/sort/index.vue
+117
-0
No files found.
pages.json
View file @
d8940d5d
...
...
@@ -106,7 +106,16 @@
}
}
,{
,
{
"path"
:
"pages/sort/index"
,
"style"
:
{
"navigationBarTitleText"
:
"分类"
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/menu/list"
,
"style"
:
{
...
...
@@ -239,7 +248,7 @@
"text"
:
"首页"
},
{
"pagePath"
:
"pages/
menu
/index"
,
"pagePath"
:
"pages/
sort
/index"
,
"iconPath"
:
"static/img/image/tab_icon_fenlei_default@2x.png"
,
"selectedIconPath"
:
"static/img/image/tab_icon_fenlei_selected@2x.png"
,
"text"
:
"分类"
...
...
pages/menu/index.vue
View file @
d8940d5d
<
template
>
<view
class=
"u-wrap"
>
<view
class=
"u-search-box"
>
<
!--
<
view
class=
"u-search-box"
>
<view
class=
"u-search-inner"
>
<u-icon
name=
"search"
color=
"#909399"
:size=
"28"
></u-icon>
<u-input
class=
"u-search-text"
type=
"text"
height=
"50"
@
click=
"toSearch"
placeholder=
"标题"
/>
</view>
</view>
</view>
-->
<view
class=
"u-menu-wrap"
>
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
:scroll-into-view=
"itemId"
>
...
...
pages/myArticle/index.vue
View file @
d8940d5d
...
...
@@ -15,33 +15,7 @@
export
default
{
data
()
{
return
{
hotList
:
[
{
'title'
:
'11111'
,
'details'
:
'1111'
,
'path'
:
'11111'
},
{
'title'
:
'11111'
,
'details'
:
'1111'
,
'path'
:
'11111'
},
{
'title'
:
'11111'
,
'details'
:
'1111'
,
'path'
:
'11111'
},
{
'title'
:
'11111'
,
'details'
:
'1111'
,
'path'
:
'11111'
},
{
'title'
:
'11111'
,
'details'
:
'1111'
,
'path'
:
'11111'
}
]
hotList
:
[]
}
},
onLoad
()
{
...
...
@@ -49,7 +23,11 @@
},
methods
:
{
init
(){
const
unitList
=
this
.
vuex_unit
this
.
$u
.
get
(
'cmsnews/miniProgram/listByClassification?page=1&rows=10&unitId='
+
unitList
[
0
].
businessId
).
then
(
res
=>
{
const
videoChild
=
res
.
records
this
.
hotList
=
videoChild
})
},
toDetail
(
id
){
...
...
pages/myVedio/index.vue
View file @
d8940d5d
...
...
@@ -3,8 +3,8 @@
<view
v-for=
"(item,index) in hotList"
:key=
"index"
class=
"indexcard"
>
<image
class=
"cardimage"
:src=
"item.path"
@
click=
"toDetail(item.id)"
></image>
<view
class=
"cardtitle"
@
click=
"toDetail(item.id)"
>
<view
class=
"cardtitle1"
>
{{
item
.
t
itle
}}
</view>
<
view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view
>
<view
class=
"cardtitle1"
>
{{
item
.
videoT
itle
}}
</view>
<
!--
<view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view>
--
>
<!--
<view
class=
"cardtitle3"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
-->
</view>
</view>
...
...
@@ -64,7 +64,12 @@
},
methods
:
{
init
(){
const
unitList
=
this
.
vuex_unit
this
.
$u
.
get
(
'cmsvideo/miniProgram/listByClassification?page=1&rows=10&unitId='
+
unitList
[
0
].
businessId
).
then
(
res
=>
{
const
videoChild
=
res
.
records
this
.
hotList
=
videoChild
})
},
toDetail
(
id
){
...
...
pages/shop/index.vue
View file @
d8940d5d
...
...
@@ -152,6 +152,7 @@ import pic2 from '../../static/image/pic2.png'
<
style
>
.top
{
background-color
:
#F6F6F6
;
min-height
:
100vh
;
}
.gl-title
{
/* padding: 20rpx; */
...
...
pages/sort/index.vue
0 → 100644
View file @
d8940d5d
<
template
>
<view
class=
"u-wrap"
>
<u-subsection
:list=
"list"
:current=
"curNow"
@
change=
"sectionChange"
></u-subsection>
<view
class=
"body"
>
<view
v-if=
"curNow===0"
v-for=
"(item,index) in hotList"
:key=
"index"
class=
"indexcard"
>
<image
class=
"cardimage"
:src=
"item.path"
@
click=
"toDetail(item.id)"
></image>
<view
class=
"cardtitle"
@
click=
"toDetail(item.id)"
>
<view
class=
"cardtitle1"
>
{{
item
.
title
}}
</view>
<view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view>
<!--
<view
class=
"cardtitle3"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
-->
</view>
</view>
<view
v-if=
"curNow===1"
v-for=
"(item,index) in videoList"
:key=
"index"
class=
"indexcard"
>
<image
class=
"cardimage"
:src=
"item.path"
@
click=
"toDetail(item.id)"
></image>
<view
class=
"cardtitle"
@
click=
"toDetail(item.id)"
>
<view
class=
"cardtitle1"
>
{{
item
.
videoTitle
}}
</view>
<!--
<view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view>
-->
<!--
<view
class=
"cardtitle3"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
-->
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
list
:
[
'文章'
,
'视频'
],
curNow
:
0
,
hotList
:
[],
videoList
:
[]
}
},
onLoad
()
{
this
.
init
()
},
methods
:
{
sectionChange
(
index
)
{
this
.
curNow
=
index
;
},
init
()
{
const
unitList
=
this
.
vuex_unit
this
.
$u
.
get
(
'cmsnews/miniProgram/listByClassification?page=1&rows=10&unitId='
+
unitList
[
0
].
businessId
).
then
(
res
=>
{
const
videoChild
=
res
.
records
this
.
hotList
=
videoChild
})
this
.
$u
.
get
(
'cmsvideo/miniProgram/listByClassification?page=1&rows=10&unitId='
+
unitList
[
0
].
businessId
).
then
(
res
=>
{
const
videoChild
=
res
.
records
this
.
videoList
=
videoChild
})
}
}
}
</
script
>
<
style
>
.u-wrap
{
background
:
#F6F6F6
;
min-height
:
100vh
;
}
.body
{
padding
:
30
rpx
0
;
}
.indexcard
{
/* height: 127px; */
background
:
#FFFFFF
;
box-shadow
:
0px
0px
15px
1px
rgba
(
0
,
0
,
0
,
0.06
);
border-radius
:
12px
12px
12px
12px
;
display
:
flex
;
margin
:
0
30
rpx
22
rpx
30
rpx
;
/* margin-bottom: 22rpx; */
padding
:
22
rpx
;
}
.cardimage
{
width
:
210
rpx
!important
;
height
:
210
rpx
!important
;
border-radius
:
8px
8px
8px
8px
;
margin-right
:
22
rpx
;
/* margin: 22rpx; */
}
.cardtitle
{
width
:
414
rpx
;
}
.cardtitle1
{
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN-Medium
,
Source
Han
Sans
CN
;
font-weight
:
500
;
color
:
#333333
;
margin-bottom
:
30
rpx
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
}
.cardtitle2
{
font-size
:
14px
;
font-family
:
Source
Han
Sans
CN-Regular
,
Source
Han
Sans
CN
;
font-weight
:
400
;
color
:
#666666
;
/* margin-bottom: 30rpx; */
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
}
.cardtitle3
{
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN-Medium
,
Source
Han
Sans
CN
;
font-weight
:
500
;
color
:
#D94343
;
}
</
style
>
\ No newline at end of file
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