Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
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
李伟
cust-app
Commits
2a1ed63d
Commit
2a1ed63d
authored
Feb 19, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改访问量
parent
4286343e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
index.js
api/user/index.js
+9
-0
userInfo.vue
pagesUser/userInfo.vue
+9
-2
No files found.
api/user/index.js
View file @
2a1ed63d
...
@@ -201,3 +201,12 @@ export function deleteTalk(data) {
...
@@ -201,3 +201,12 @@ export function deleteTalk(data) {
method
:
'delete'
,
method
:
'delete'
,
})
})
}
}
// 新增访问量
export
function
addMemTraffic
(
data
)
{
return
request
({
url
:
'/app/memtraffic/add'
,
method
:
'post'
,
data
:
data
})
}
\ No newline at end of file
pagesUser/userInfo.vue
View file @
2a1ed63d
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
addFollow
,
addMessage
,
deleteFollow
,
isFollow
,
likeUser
,
userDetail
}
from
"../api/user"
;
import
{
addFollow
,
addMe
mTraffic
,
addMe
ssage
,
deleteFollow
,
isFollow
,
likeUser
,
userDetail
}
from
"../api/user"
;
import
{
getCity
,
getValue
}
from
'../common/options'
import
{
getCity
,
getValue
}
from
'../common/options'
import
{
parseDate
,
calculateAge
}
from
'../common/index'
import
{
parseDate
,
calculateAge
}
from
'../common/index'
import
LsSwiper
from
'../components/ls-swiper/index.vue'
;
import
LsSwiper
from
'../components/ls-swiper/index.vue'
;
...
@@ -249,8 +249,9 @@ import {getDict} from "../api/system/dict/data";
...
@@ -249,8 +249,9 @@ import {getDict} from "../api/system/dict/data";
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
memberId
=
options
.
memberId
;
this
.
memberId
=
options
.
memberId
;
this
.
getUserDetail
()
;
this
.
getUserDetail
()
this
.
getUserLikeDict
()
this
.
getUserLikeDict
()
this
.
addMemTraffic
()
if
(
options
.
share
!=
null
)
{
if
(
options
.
share
!=
null
)
{
this
.
share
=
options
.
share
;
this
.
share
=
options
.
share
;
}
}
...
@@ -475,6 +476,12 @@ import {getDict} from "../api/system/dict/data";
...
@@ -475,6 +476,12 @@ import {getDict} from "../api/system/dict/data";
url
:
"/pagesUser/addMessage?userId="
+
id
url
:
"/pagesUser/addMessage?userId="
+
id
})
})
},
},
addMemTraffic
(){
const
form
=
{
memberId
:
this
.
memberId
,
}
addMemTraffic
(
form
)
},
//返回按钮
//返回按钮
backbar
()
{
backbar
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
...
...
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