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
ef674b0f
Commit
ef674b0f
authored
Jun 24, 2024
by
杨硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加触底加载
parent
d45a28fc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
6 deletions
+55
-6
index.vue
pages/myArticle/index.vue
+13
-1
index.vue
pages/myVedio/index.vue
+12
-0
index.vue
pages/sort/index.vue
+12
-0
setting.vue
setting/setting/setting.vue
+18
-5
No files found.
pages/myArticle/index.vue
View file @
ef674b0f
...
@@ -27,15 +27,27 @@
...
@@ -27,15 +27,27 @@
return
{
return
{
hotList
:
[],
hotList
:
[],
page
:
1
,
page
:
1
,
rows
:
5
,
rows
:
10
,
total
:
0
,
total
:
0
,
articleStatus
:
"loadmore"
articleStatus
:
"loadmore"
}
}
},
},
onLoad
()
{
onLoad
()
{
this
.
noToken
()
},
onShow
()
{
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
noToken
()
{
const
token
=
this
.
vuex_token
console
.
log
(
"token"
,
token
);
if
(
token
.
length
<=
0
){
this
.
$u
.
route
({
url
:
'/login/login/passwordLogin'
})
}
},
init
(){
init
(){
this
.
articleStatus
=
this
.
page
*
this
.
rows
>=
this
.
total
?
this
.
articleStatus
=
this
.
page
*
this
.
rows
>=
this
.
total
?
'nomore'
:
'loadmore'
'nomore'
:
'loadmore'
...
...
pages/myVedio/index.vue
View file @
ef674b0f
...
@@ -34,6 +34,9 @@
...
@@ -34,6 +34,9 @@
}
}
},
},
onLoad
()
{
this
.
noToken
()
},
onShow
()
{
onShow
()
{
this
.
init
()
this
.
init
()
},
},
...
@@ -43,6 +46,15 @@
...
@@ -43,6 +46,15 @@
// #endif
// #endif
},
},
methods
:
{
methods
:
{
noToken
()
{
const
token
=
this
.
vuex_token
console
.
log
(
"token"
,
token
);
if
(
token
.
length
<=
0
){
this
.
$u
.
route
({
url
:
'/login/login/passwordLogin'
})
}
},
init
(){
init
(){
this
.
status
=
this
.
page
*
this
.
rows
>=
this
.
total
?
this
.
status
=
this
.
page
*
this
.
rows
>=
this
.
total
?
'nomore'
:
'loadmore'
'nomore'
:
'loadmore'
...
...
pages/sort/index.vue
View file @
ef674b0f
...
@@ -64,10 +64,22 @@
...
@@ -64,10 +64,22 @@
}
}
},
},
onLoad
()
{
onLoad
()
{
this
.
noToken
()
},
onShow
()
{
this
.
init
()
this
.
init
()
this
.
queryVideo
()
this
.
queryVideo
()
},
},
methods
:
{
methods
:
{
noToken
()
{
const
token
=
this
.
vuex_token
console
.
log
(
"token"
,
token
);
if
(
token
.
length
<=
0
){
this
.
$u
.
route
({
url
:
'/login/login/passwordLogin'
})
}
},
sectionChange
(
index
)
{
sectionChange
(
index
)
{
this
.
curNow
=
index
;
this
.
curNow
=
index
;
},
},
...
...
setting/setting/setting.vue
View file @
ef674b0f
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
<image
class=
"settingimage1"
:src=
"vuex_avatar"
></image>
<image
class=
"settingimage1"
:src=
"vuex_avatar"
></image>
<image
class=
"settingrightimage"
src=
"../../static/img/image/wode_icon_jiantou@2x.png"
></image>
<image
class=
"settingrightimage"
src=
"../../static/img/image/wode_icon_jiantou@2x.png"
></image>
</view>
-->
</view>
-->
<view
class=
"card2"
@
click=
"updateNickName"
>
<view
class=
"card2"
>
<image
src=
"../../static/image/shezhi_icon_xingming@2x.png"
class=
"settingimage"
></image>
<image
src=
"../../static/image/shezhi_icon_xingming@2x.png"
class=
"settingimage"
></image>
<view
class=
"settingtitle"
>
姓名
</view>
<view
class=
"settingtitle"
>
姓名
</view>
<view
class=
"righttitle1"
>
{{
user
.
name
}}
</view>
<view
class=
"righttitle1"
>
{{
user
.
name
}}
</view>
<image
class=
"settingrightimage"
src=
"../../static/img/image/wode_icon_jiantou@2x.png"
></image>
<image
class=
"settingrightimage"
src=
"../../static/img/image/wode_icon_jiantou@2x.png"
></image>
</view>
</view>
<view
class=
"card1"
@
click=
"updateGender"
>
<view
class=
"card1"
>
<image
src=
"../../static/image/shezhi_icon_xingbie@2x.png"
class=
"settingimage"
></image>
<image
src=
"../../static/image/shezhi_icon_xingbie@2x.png"
class=
"settingimage"
></image>
<view
class=
"settingtitle"
>
性别
</view>
<view
class=
"settingtitle"
>
性别
</view>
<view
class=
"righttitle1"
>
{{
user
.
genderStr
}}
</view>
<view
class=
"righttitle1"
>
{{
user
.
genderStr
}}
</view>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<u-modal
v-model=
"nickName.show"
title=
"修改用户名"
@
confirm=
"submitNickName"
:show-cancel-button=
"true"
>
<u-modal
v-model=
"nickName.show"
title=
"修改用户名"
@
confirm=
"submitNickName"
:show-cancel-button=
"true"
>
<view
style=
"padding:10px 50px;"
>
<view
style=
"padding:10px 50px;"
>
<u-input
style=
"padding: 0rpx 30rpx;
background-color: #ededed;
"
v-model=
"nickName.value"
<u-input
style=
"padding: 0rpx 30rpx;"
v-model=
"nickName.value"
placeholder=
"请输入用户名"
/>
placeholder=
"请输入用户名"
/>
</view>
</view>
</u-modal>
</u-modal>
...
@@ -90,10 +90,22 @@
...
@@ -90,10 +90,22 @@
}
}
},
},
onLoad
()
{
onLoad
()
{
this
.
noToken
()
this
.
init
();
this
.
init
();
if
(
this
.
vuex_unit
.
length
>
0
){
this
.
unitName
=
this
.
vuex_unit
[
0
].
unitName
this
.
unitName
=
this
.
vuex_unit
[
0
].
unitName
}
},
},
methods
:
{
methods
:
{
noToken
()
{
const
token
=
this
.
vuex_token
console
.
log
(
"token"
,
token
);
if
(
token
.
length
<=
0
){
this
.
$u
.
route
({
url
:
'/login/login/passwordLogin'
})
}
},
init
()
{
init
()
{
const
user
=
this
.
vuex_user
;
const
user
=
this
.
vuex_user
;
if
(
user
.
nickName
!==
'未登录'
)
{
if
(
user
.
nickName
!==
'未登录'
)
{
...
@@ -199,9 +211,10 @@
...
@@ -199,9 +211,10 @@
});
});
this
.
$u
.
vuex
(
'vuex_unit'
,[])
this
.
$u
.
vuex
(
'vuex_unit'
,[])
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/user/profile'
,
url
:
'pages/user/profile'
,
params
:
{}
type
:
'tab'
})
})
},
},
toDoc
()
{
toDoc
()
{
...
...
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