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
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
63881ca2a3bd5e7631d6831a91b3167743f0c164
2 parents
aa44f672
b2b9453b
Merge branch 'feature/invite' of git.yoho.cn:fe/ufo-app-web into feature/invite
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
15 deletions
apps/index.html
apps/pages/single/invite/detail/components/bankcard-status.vue
apps/pages/single/invite/detail/components/friend-list.vue
apps/pages/single/invite/detail/components/invite-code.vue
apps/pages/single/invite/detail/components/record-list.vue
apps/pages/single/invite/detail/detail.vue
apps/store/invite/invite/actions.js
apps/store/invite/invite/index.js
apps/index.html
View file @
63881ca
...
...
@@ -8,7 +8,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
>
<meta
content=
"telephone=
yes
"
name=
"format-detection"
>
<meta
content=
"telephone=
no
"
name=
"format-detection"
>
<meta
content=
"email=no"
name=
"format-detection"
>
<script
type=
"text/javascript"
>
(
function
(
d
,
c
){
var
e
=
d
.
documentElement
,
a
=
"orientationchange"
in
window
?
"orientationchange"
:
"resize"
,
b
=
function
(){
var
f
=
e
.
clientWidth
;
if
(
!
f
){
return
}
if
(
f
>=
750
){
e
.
style
.
fontSize
=
"40px"
}
else
{
e
.
style
.
fontSize
=
40
*
(
f
/
750
)
+
"px"
}};
if
(
!
d
.
addEventListener
){
return
}
b
();
c
.
addEventListener
(
a
,
b
,
false
);
d
.
addEventListener
(
"DOMContentLoaded"
,
b
,
false
)})(
document
,
window
);
...
...
apps/pages/single/invite/detail/components/bankcard-status.vue
View file @
63881ca
...
...
@@ -28,7 +28,8 @@ export default {
},
props: {
card: {
type: Object,
type: Boolean,
default: false
}
},
methods: {
...
...
apps/pages/single/invite/detail/components/friend-list.vue
View file @
63881ca
...
...
@@ -15,7 +15,7 @@
<tbody class="tbody">
<tr v-for="item in list">
<td align="left">
<span>{{item.nickName}}</span>
<span
class="nick-name"
>{{item.nickName}}</span>
</td>
<td align="center">
<span>{{item.enterTime}}</span>
...
...
@@ -72,15 +72,23 @@ export default {
tbody {
tr {
height: 110px;
bo
x-shadow: inset 0 -1px 0 0 rgba(255,255,255,
0.09);
bo
rder-bottom: 1px solid rgba(255, 255, 255,
0.09);
span {
color: #94b0c4;
display:
inline-
block;
display: block;
height: 110px;
line-height: 110px;
}
}
}
}
.nick-name {
width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
...
...
apps/pages/single/invite/detail/components/invite-code.vue
View file @
63881ca
...
...
@@ -41,6 +41,7 @@
<script>
import ClipboardJS from 'clipboard';
import {get} from 'lodash';
export default {
name: 'InviteCode',
...
...
@@ -80,7 +81,7 @@ export default {
async onClick() {
const result = await this.$store.dispatch('license/form/getStoreStatus', null, { root: true});
if (result.data === true ||
result.data.isStoredSeller
) {
if (result.data === true ||
get(result, 'data.isStoredSeller', false)
) {
this.$yoho.goPage('go.ufo', {
pagename: 'merchantsSettled',
isnavhidden: 1,
...
...
apps/pages/single/invite/detail/components/record-list.vue
View file @
63881ca
...
...
@@ -86,7 +86,7 @@ export default {
tbody {
tr {
height: 110px;
bo
x-shadow: inset 0 -1px 0 0
rgba(255, 255, 255, 0.09);
bo
rder-bottom: 1px solid
rgba(255, 255, 255, 0.09);
span {
color: #94b0c4;
...
...
apps/pages/single/invite/detail/detail.vue
View file @
63881ca
...
...
@@ -4,7 +4,7 @@
<div class="body-wrapper">
<InviteCode class="mg" :data="inviteCode"></InviteCode>
<FriendList class="mg" :list="inviteCode.inviteRecordList" v-if="inviteCode.inviteRecordList.length > 0"></FriendList>
<BankStatus class="mg" :card="
card
"></BankStatus>
<BankStatus class="mg" :card="
getBandLength
"></BankStatus>
<RecordList class="mg" :list="recordList"></RecordList>
<DescPage class="mg"></DescPage>
</div>
...
...
@@ -20,12 +20,20 @@ import DescPage from '../components/desc';
import BannerPage from './components/banner';
import {createNamespacedHelpers} from 'vuex';
const {mapState} = createNamespacedHelpers('invite/invite');
const {mapState
, mapGetters
} = createNamespacedHelpers('invite/invite');
export default {
name: 'detailPage',
computed: {
...mapState(['card', 'recordList', 'inviteCode'])
...mapState(['recordList', 'inviteCode']),
...mapGetters(['getBandLength'])
},
data() {
return {
card: null
};
},
mounted() {
},
components: {
InviteCode,
...
...
apps/store/invite/invite/actions.js
View file @
63881ca
import
*
as
Types
from
'./types'
;
import
{
get
}
from
'lodash'
;
export
default
{
async
fetchOrderList
({
commit
})
{
const
result
=
await
this
.
$api
.
get
(
'/api/ufo/invite/recordList'
);
if
(
result
.
code
===
200
)
{
commit
(
Types
.
FETCH_INVITE_ORDERLIST
,
{
list
:
result
.
data
.
list
});
commit
(
Types
.
FETCH_INVITE_ORDERLIST
,
{
list
:
get
(
result
,
'data.list'
,
[])
});
}
},
...
...
@@ -13,7 +14,9 @@ export default {
const
result
=
await
this
.
$api
.
get
(
'/api/ufo/invite/friendList'
);
if
(
result
.
code
===
200
)
{
commit
(
Types
.
FETCH_INVITE_CODE
,
result
.
data
);
commit
(
Types
.
FETCH_INVITE_CODE
,
Object
.
assign
({
inviteRecordList
:
[]
},
result
.
data
));
}
},
...
...
@@ -32,8 +35,7 @@ export default {
async
fetchAll
({
dispatch
})
{
return
Promise
.
all
([
dispatch
(
'fetchFriendList'
),
dispatch
(
'fetchOrderList'
),
dispatch
(
'mine/bankCard/fetchBankCard'
,
null
,
{
root
:
true
})
dispatch
(
'fetchOrderList'
)
]);
}
};
...
...
apps/store/invite/invite/index.js
View file @
63881ca
...
...
@@ -16,6 +16,11 @@ export default function() {
status
:
0
},
actions
,
mutations
mutations
,
getters
:
{
getBandLength
(
state
,
getters
,
rootState
)
{
return
rootState
.
mine
.
bankCard
.
bankCardList
.
length
===
1
;
}
}
};
}
...
...
Please
register
or
login
to post a comment