Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
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
leiqingsong
XiTianSenMall
Commits
be920eba
Commit
be920eba
authored
3 years ago
by
leiqingsong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_lqs' into 'master'
优化 See merge request
!106
parents
726f6fa1
566db7b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
invite.vue
H5/src/views/invite.vue
+2
-1
leagueNums.vue
H5/src/views/leagueNums.vue
+2
-1
myStatus.vue
H5/src/views/my/myStatus.vue
+16
-9
No files found.
H5/src/views/invite.vue
View file @
be920eba
...
@@ -39,7 +39,8 @@ export default {
...
@@ -39,7 +39,8 @@ export default {
forbidClick
:
true
,
forbidClick
:
true
,
message
:
"加载中..."
message
:
"加载中..."
});
});
inviteCode
(
this
.
$userId
).
then
(
res
=>
{
const
userId
=
JSON
.
parse
(
localStorage
.
getItem
(
"user"
)).
userId
;
inviteCode
(
userId
).
then
(
res
=>
{
if
(
loading
)
_this
.
$toast
.
clear
();
if
(
loading
)
_this
.
$toast
.
clear
();
_this
.
imgSrc
=
_this
.
getUserPhoto
(
res
);
_this
.
imgSrc
=
_this
.
getUserPhoto
(
res
);
});
});
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/leagueNums.vue
View file @
be920eba
...
@@ -75,7 +75,8 @@ export default {
...
@@ -75,7 +75,8 @@ export default {
},
},
methods
:
{
methods
:
{
getMyTeam
()
{
getMyTeam
()
{
getMyTeam
(
this
.
$userId
).
then
(
res
=>
{
const
userId
=
JSON
.
parse
(
localStorage
.
getItem
(
"user"
)).
userId
;
getMyTeam
(
userId
).
then
(
res
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
list
.
forEach
(
v
=>
{
this
.
list
.
forEach
(
v
=>
{
v
.
num
=
res
.
data
[
v
[
"field"
]];
v
.
num
=
res
.
data
[
v
[
"field"
]];
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/my/myStatus.vue
View file @
be920eba
...
@@ -28,13 +28,14 @@
...
@@ -28,13 +28,14 @@
:key=
"`tba-$
{item.id}`"
:key=
"`tba-$
{item.id}`"
:title="`${item.name}(${item.num})`"
:title="`${item.name}(${item.num})`"
>
>
<base-refresh-scroll
@
downLoad=
"onDownLoad"
@
upRefresh=
"onUpRefresh"
>
<!--
<base-refresh-scroll
@
downLoad=
"onDownLoad"
@
upRefresh=
"onUpRefresh"
>
-->
<div
slot=
"content"
>
<div
v-if=
"inviteeArr.length > 0"
>
<div
v-for=
"item in inviteeArr"
:key=
"item.id"
>
<div
v-for=
"item in inviteeArr"
:key=
"item.id"
>
<invitee-item
:invitee-item=
"item"
/>
<invitee-item
:invitee-item=
"item"
/>
</div>
</div>
</div>
</base-refresh-scroll>
</div>
<p
class=
"no-data"
v-else
>
暂无数据~
</p>
<!--
</base-refresh-scroll>
-->
</van-tab>
</van-tab>
</van-tabs>
</van-tabs>
</div>
</div>
...
@@ -43,13 +44,13 @@
...
@@ -43,13 +44,13 @@
<
script
>
<
script
>
import
{
recomendInfo
,
recommendDetail
}
from
"@/api/myStatus"
;
import
{
recomendInfo
,
recommendDetail
}
from
"@/api/myStatus"
;
import
BaseRefreshScroll
from
"../../components/BaseRefreshScroll.vue"
;
//
import BaseRefreshScroll from "../../components/BaseRefreshScroll.vue";
import
InviteeItem
from
"./components/invitee"
;
import
InviteeItem
from
"./components/invitee"
;
export
default
{
export
default
{
name
:
"MyStatus"
,
name
:
"MyStatus"
,
components
:
{
components
:
{
InviteeItem
,
InviteeItem
BaseRefreshScroll
//
BaseRefreshScroll
},
},
filters
:
{
filters
:
{
userLevel
(
key
)
{
userLevel
(
key
)
{
...
@@ -154,6 +155,7 @@ export default {
...
@@ -154,6 +155,7 @@ export default {
},
},
methods
:
{
methods
:
{
changeTab
(
name
)
{
changeTab
(
name
)
{
console
.
log
(
"tab"
,
name
);
this
.
getRecommendDetail
(
name
);
this
.
getRecommendDetail
(
name
);
},
},
onDownLoad
(
val
)
{
onDownLoad
(
val
)
{
...
@@ -253,6 +255,11 @@ export default {
...
@@ -253,6 +255,11 @@ export default {
}
}
}
}
}
}
.no-data
{
text-align
:
center
;
font-size
:
12px
;
}
::v-deep
.van-tabs__content
{
::v-deep
.van-tabs__content
{
position
:
relative
;
position
:
relative
;
height
:
100vh
;
height
:
100vh
;
...
...
This diff is collapsed.
Click to expand it.
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