Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
6 years ago
Commit
e86ecb362d79f54c71e58c9292311a6e95281512
1 parent
c3ea197f
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
9 deletions
apps/pages/single/gain/components/list.vue
apps/store/gain/index.js
package.json
apps/pages/single/gain/components/list.vue
View file @
e86ecb3
<template>
<div class="list-comp">
<div class="title">邀请记录</div>
<div class="header">
<div style="width: 25%; text-align: left;">我邀请的好友</div>
<div style="width: 55%; text-align: center;">注册时间</div>
<div style="width: 20%; text-align: right;">我的佣金</div>
<div class="header-wrapper">
<div class="header">
<div style="width: 25%; text-align: left;">我邀请的好友</div>
<div class="register-time">注册时间</div>
<div style="width: 20%; text-align: right;">我的佣金</div>
</div>
</div>
<Scroll ref="scroll" class="list" :options="scrollOptions" :data="list" v-if="list.length" @pulling-up="onPullingUp">
<div class="item" v-for="item in list">
<div class="name" style="width: 25%; text-align: center; text-overflow:ellipsis; overflow: hidden; white-space: nowrap;">{{item.nickname}}</div>
<div class="
date" style="width: 55%; text-align: center;"
>{{item.dateStr}}</div>
<div class="
register-time"
>{{item.dateStr}}</div>
<div class="amount" style="width: 20%; text-align: center;">{{item.amountStr}}</div>
</div>
</Scroll>
...
...
@@ -73,6 +75,11 @@ export default {
margin-bottom: 20px;
}
.header-wrapper {
position: relative;
height: 100px;
}
.header {
display: flex;
font-size: 28px;
...
...
@@ -80,7 +87,26 @@ export default {
justify-content: space-between;
height: 100px;
line-height: 100px;
border-bottom: 0.5PX solid #b0b0b0;
}
.header:before {
content: " ";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
border-top: 1px solid #b0b0b0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.register-time {
position: absolute;
width: 100%;
text-align: center;
}
.list {
...
...
@@ -94,6 +120,9 @@ export default {
display: flex;
border-bottom: 0.5PX solid #b0b0b0;
line-height: 100px;
position: relative;
display: flex;
justify-content: space-between;
}
.empty {
...
...
apps/store/gain/index.js
View file @
e86ecb3
...
...
@@ -35,12 +35,12 @@ export default function() {
commit
(
'changePage'
,
{
page
:
++
page
});
}
return
result
.
data
.
length
||
0
;
return
result
.
data
?
result
.
data
.
length
:
0
;
},
async
fetchResource
({
commit
})
{
const
result
=
await
this
.
$api
.
get
(
'/api/yoho/resource'
,
{
content_code
:
'a51c8222d21b3d88faa4a49c01c9c93e'
});
commit
(
'addResource'
,
{
url
:
getImgUrl
(
get
(
result
,
'data[0].data.src'
)
||
''
,
700
,
5
00
)
});
commit
(
'addResource'
,
{
url
:
getImgUrl
(
get
(
result
,
'data[0].data.src'
)
||
''
,
1000
,
10
00
)
});
},
async
fetchUnionStatus
()
{
...
...
package.json
View file @
e86ecb3
{
"name"
:
"ufo-app-web"
,
"version"
:
"1.0.
5
"
,
"version"
:
"1.0.
6
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
Please
register
or
login
to post a comment