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
845a5947
Commit
845a5947
authored
Jan 07, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加阅读量增加
parent
011ae1c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
8 deletions
+21
-8
index.vue
pages/myArticle/index.vue
+3
-1
index.vue
pages/myVedio/index.vue
+3
-1
index.vue
pages/shop/index.vue
+9
-4
index.vue
pages/sort/index.vue
+6
-2
No files found.
pages/myArticle/index.vue
View file @
845a5947
...
@@ -83,7 +83,9 @@
...
@@ -83,7 +83,9 @@
params
:
{
params
:
{
businessId
:
id
businessId
:
id
}
}
})
}).
then
((
res
)
=>
{
this
.
$u
.
put
(
'/cmsnews/miniProgram/read/'
+
id
)
})
}
}
},
},
// 触底事件 - 上拉加载
// 触底事件 - 上拉加载
...
...
pages/myVedio/index.vue
View file @
845a5947
...
@@ -89,7 +89,9 @@
...
@@ -89,7 +89,9 @@
params
:
{
params
:
{
businessId
:
id
businessId
:
id
}
}
})
}).
then
((
res
)
=>
{
this
.
$u
.
put
(
'/cmsvideo/miniProgram/read/'
+
id
)
})
}
}
},
},
// 触底事件 - 上拉加载
// 触底事件 - 上拉加载
...
...
pages/shop/index.vue
View file @
845a5947
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<view
class=
"cardtitle"
@
click=
"toDetail(item.businessId)"
>
<view
class=
"cardtitle"
@
click=
"toDetail(item.businessId)"
>
<view
class=
"cardtitle1"
>
{{
item
.
title
}}
</view>
<view
class=
"cardtitle1"
>
{{
item
.
title
}}
</view>
<view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view>
<view
class=
"cardtitle2"
>
{{
item
.
details
.
replace
(
/<
[^
>
]
*>/g
,
''
)
}}
</view>
<view
class=
"cardtitle2"
>
总推广量:
{{
item
.
readNum
||
'-'
}}
</view>
<view
class=
"cardtitle2"
>
总推广量:
{{
formatReadNum
(
item
)
}}
</view>
<!--
<view
class=
"cardtitle3"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
-->
<!--
<view
class=
"cardtitle3"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
-->
</view>
</view>
</view>
</view>
...
@@ -270,9 +270,14 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
...
@@ -270,9 +270,14 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
this
.
$u
.
put
(
'/cmsvideo/miniProgram/read/'
+
id
)
this
.
$u
.
put
(
'/cmsvideo/miniProgram/read/'
+
id
)
})
})
}
}
},
formatReadNum
(
item
){
}
if
(
item
.
readCount
||
item
.
readNum
){
return
item
.
readNum
+
item
.
readCount
}
else
{
return
'-'
}
}
},
},
// 触底事件 - 上拉加载
// 触底事件 - 上拉加载
onReachBottom
()
{
onReachBottom
()
{
...
...
pages/sort/index.vue
View file @
845a5947
...
@@ -140,14 +140,18 @@
...
@@ -140,14 +140,18 @@
params
:
{
params
:
{
businessId
:
id
businessId
:
id
}
}
})
}).
then
((
res
)
=>
{
this
.
$u
.
put
(
'/cmsnews/miniProgram/read/'
+
id
)
})
}
else
if
(
this
.
curNow
===
1
){
}
else
if
(
this
.
curNow
===
1
){
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/myVedio/detail'
,
url
:
'pages/myVedio/detail'
,
params
:
{
params
:
{
businessId
:
id
businessId
:
id
}
}
})
}).
then
((
res
)
=>
{
this
.
$u
.
put
(
'/cmsvideo/miniProgram/read/'
+
id
)
})
}
}
}
}
...
...
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