Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
d455afef
Commit
d455afef
authored
Oct 25, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销
parent
f2e6e7f4
Pipeline
#3856
canceled with stages
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
25 deletions
+70
-25
withdraw-item.vue
pages/bonus/components/withdraw-item.vue
+32
-7
income.vue
pages/bonus/income/income.vue
+3
-1
index.vue
pages/bonus/index.vue
+11
-1
invite-record.vue
pages/bonus/invite-record/invite-record.vue
+21
-12
quick-login.vue
pages/login/quick-login/quick-login.vue
+2
-2
index.vue
pages/mine/share/index.vue
+1
-0
login.js
store/modules/login.js
+0
-2
No files found.
pages/bonus/components/withdraw-item.vue
View file @
d455afef
...
...
@@ -2,14 +2,20 @@
<view
class=
"detail"
@
click=
"toBill"
>
<view
class=
"content-item"
>
<view
class=
"content-item-label"
>
<view
class=
"content-item-label-icon"
v-if=
"detail.channel&&detail.channel.code==='alipay'"
><image
:src=
"alipayIcon"
mode=
""
></image></view>
<text>
{{
detail
.
memberName
&&
detail
.
memberName
.
desc
}}
</text>
<view
class=
"content-item-label-icon"
v-if=
"detail.channel==='alipay'"
><image
:src=
"alipayIcon"
mode=
""
></image></view>
<!--
<text>
{{
detail
.
memberName
&&
detail
.
memberName
.
desc
}}
</text>
-->
<text>
提现
</text>
</view>
<view
class=
"content-item-value"
>
{{
detail
.
amount
}}
</view>
</view>
<view
class=
"detail-right"
>
<view
class=
"detail-right-label"
>
{{
detail
.
createTime
}}
</view>
<view
class=
"detail-right-value"
:class=
"
{ 'detail-right-status': detail.status
&&
detail.status.code==='WAIT' }">
{{
detail
.
status
&&
detail
.
status
.
desc
}}
</view>
<view
class=
"detail-right-value"
@
click
.
stop=
"statusClick"
>
<text
:class=
"
{ red: detail.status
&&
detail.status.code === 'REJECT', green: detail.status
&&
detail.status.code === 'WAIT' }">
{{
detail
.
status
&&
detail
.
status
.
desc
}}
</text>
<view
class=
"invalid-icon"
v-if=
"detail.status && detail.status.code === 'REJECT'"
><image
:src=
"invalidIcon"
mode=
""
></image></view>
</view>
</view>
</view>
</
template
>
...
...
@@ -35,6 +41,7 @@ export default {
data
()
{
return
{
alipayIcon
:
mineBaseUrl
+
'zhifubao@3x.png'
,
invalidIcon
:
mineBaseUrl
+
'wuxiaotuiguangtishi@3x.png'
,
};
},
methods
:
{
...
...
@@ -43,6 +50,11 @@ export default {
},
toBill
()
{
this
.
$emit
(
'cellClick'
,
this
.
detail
);
},
statusClick
(){
if
(
this
.
detail
.
status
&&
this
.
detail
.
status
.
code
===
'REJECT'
){
this
.
$emit
(
"invalidClick"
,
this
.
detail
.
applyRemark
)
}
}
}
};
...
...
@@ -78,14 +90,27 @@ export default {
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
text-align
:
right
;
font-size
:
28upx
;
font-size
:
24upx
;
line-height
:
28upx
;
margin-top
:
12rpx
;
color
:
#8d8d8d
;
&
-status
{
color
:
#fc524d
;
&
-value
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
}
.invalid-icon
{
width
:
24rpx
;
height
:
24rpx
;
display
:
flex
;
margin-left
:
8rpx
;
}
}
.red
{
color
:
#fc524d
;
}
.green
{
color
:
$default-color
;
}
}
</
style
>
pages/bonus/income/income.vue
View file @
d455afef
...
...
@@ -214,9 +214,11 @@ export default {
.search-wrap
{
width
:
100%
;
height
:
156rpx
;
background
:
#02A074
;
//
background: #02A074;
border-radius
:
12rpx
;
padding-top
:
40rpx
;
overflow
:
hidden
;
background
:
url(https://static-book.kaying.cc/icon/mine/jianbianbeijing%402x.png)
no-repeat
100%
100%
;
}
.tabs-box
{
margin
:
32upx
0
;
...
...
pages/bonus/index.vue
View file @
d455afef
...
...
@@ -43,7 +43,7 @@
enable-back-to-top
>
<view
class=
"list-view"
v-if=
"list && list.length > 0"
>
<WithdrawItem
v-for=
"item in list"
:key=
"item.id"
:detail=
"item"
@
cellClick=
"cellClick"
></WithdrawItem>
<WithdrawItem
v-for=
"item in list"
:key=
"item.id"
:detail=
"item"
@
cellClick=
"cellClick"
@
invalidClick=
"invalidClick"
></WithdrawItem>
<view
class=
"load-more-view"
v-show=
"(current == 1 && !loading) || current > 1"
><u-loadmore
:status=
"loadStatus"
bgColor=
"#FFFFFF"
></u-loadmore></view>
</view>
<NoData
v-else-if=
"!loading"
text=
"当前暂无提现记录"
customStyle=
"margin-top: 0rpx;"
imageName=
"bill/wuqiankuanxinxi@3x.png"
/>
...
...
@@ -52,12 +52,15 @@
</view>
</view>
<u-toast
ref=
"uToast"
/>
<PopInput
title=
"驳回理由"
type=
"text"
sureText=
"我知道了"
:content=
"rejectText"
:showCancel=
"false"
:visible
.
sync=
"visible"
>
</PopInput>
</view>
</
template
>
<
script
>
import
NoData
from
'@/components/no-data'
;
import
NavbarNormal
from
'@/components/navbar-normal'
;
import
PopInput
from
'@/components/pop-input-view'
;
import
WithdrawItem
from
'./components/withdraw-item'
;
import
BillCount
from
'./components/bill-count.vue'
;
import
{
baseUrl
,
mineBaseUrl
}
from
'@/utils/config.js'
;
...
...
@@ -69,11 +72,14 @@ export default {
components
:
{
NoData
,
NavbarNormal
,
PopInput
,
WithdrawItem
,
BillCount
},
data
()
{
return
{
visible
:
false
,
rejectText
:
""
,
bonusCountOptions
,
bonusEnterOptions
,
backgroundImage
:
mineBaseUrl
+
'jiangjinbeijing@3x.png'
,
...
...
@@ -118,6 +124,10 @@ export default {
}
},
methods
:
{
invalidClick
(
content
){
this
.
rejectText
=
content
this
.
visible
=
true
},
cellClick
(){},
async
getList
()
{
if
(
this
.
current
==
1
)
{
...
...
pages/bonus/invite-record/invite-record.vue
View file @
d455afef
...
...
@@ -38,7 +38,14 @@
<NoData
v-if=
"noData(index)"
text=
"当前暂无邀请记录"
customStyle=
"margin-top: 0rpx;"
imageName=
"bill/wuqiankuanxinxi@3x.png"
/>
<template
v-else
>
<view
class=
"container"
v-if=
"listData && listData.length"
>
<bill-detail
v-for=
"item in listData"
:key=
"item.id"
:detail=
"item"
:current=
"current"
@
cellClick=
"cellClick"
@
invalidClick=
"invalidClick"
></bill-detail>
<bill-detail
v-for=
"item in listData"
:key=
"item.id"
:detail=
"item"
:current=
"current"
@
cellClick=
"cellClick"
@
invalidClick=
"invalidClick"
></bill-detail>
</view>
<view
class=
"loading-view"
v-if=
"!getCurrentPage(index).loaded && !getCurrentPage(index).freshing"
><u-loading
mode=
"flower"
></u-loading></view>
...
...
@@ -68,7 +75,7 @@ import BillCount from './components/bill-count.vue';
import
{
baseUrl
,
billBaseUrl
}
from
'@/utils/config.js'
;
import
{
projectBillPages
}
from
'@/utils/options/workpoint/index.js'
;
import
{
inviteRecordTabs
}
from
'@/utils/options/mine/bonus.js'
;
import
{
getInviteLists
,
getInvitationData
}
from
'@/api/bonus/invite-record.js'
;
import
{
getInviteLists
,
getInvitationData
}
from
'@/api/bonus/invite-record.js'
;
export
default
{
components
:
{
NoData
,
...
...
@@ -78,12 +85,12 @@ export default {
},
data
()
{
return
{
visible
:
false
,
visible
:
false
,
inviteInfo
:
{
total
:
0
,
paidCount
:
0
,
unpaidCount
:
0
,
invalidCount
:
0
,
total
:
0
,
paidCount
:
0
,
unpaidCount
:
0
,
invalidCount
:
0
},
list
:
{
'0'
:
[
...
...
@@ -141,8 +148,8 @@ export default {
uni
.
$off
(
this
.
notification
);
},
methods
:
{
invalidClick
(){
this
.
visible
=
true
invalidClick
()
{
this
.
visible
=
true
;
},
cellClick
(
item
)
{
// uni.$on(this.notification, res => {
...
...
@@ -162,7 +169,7 @@ export default {
async
getInviteInfo
()
{
try
{
let
{
data
}
=
await
getInvitationData
();
this
.
inviteInfo
=
data
this
.
inviteInfo
=
data
;
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
...
...
@@ -268,9 +275,11 @@ export default {
.search-wrap
{
width
:
100%
;
height
:
156rpx
;
background
:
#02a074
;
//
background: #02a074;
border-radius
:
12rpx
;
padding-top
:
40rpx
;
overflow
:
hidden
;
background
:
url(https://static-book.kaying.cc/icon/mine/jianbianbeijing%402x.png)
no-repeat
100%
100%
;
}
.tabs-box
{
margin
:
32upx
0
;
...
...
@@ -301,7 +310,7 @@ export default {
width
:
100%
;
height
:
100%
;
}
.invalid-popup
{
.invalid-popup
{
text-align
:
center
;
font-size
:
32rpx
;
line-height
:
48rpx
;
...
...
pages/login/quick-login/quick-login.vue
View file @
d455afef
...
...
@@ -241,8 +241,8 @@ export default {
const
detail
=
e
.
detail
||
{};
let
params
=
{
encryptedData
:
detail
.
encryptedData
,
iv
:
detail
.
iv
// c
ode: detail.code,
iv
:
detail
.
iv
,
mobileC
ode
:
detail
.
code
,
};
this
.
$store
.
dispatch
(
'Auto_login'
,
params
)
...
...
pages/mine/share/index.vue
View file @
d455afef
...
...
@@ -171,6 +171,7 @@ export default {
margin-right
:
12rpx
;
overflow
:
hidden
;
border
:
2rpx
solid
#ffffff
;
background
:
#f6f7fa
;
}
}
...
...
store/modules/login.js
View file @
d455afef
...
...
@@ -176,7 +176,6 @@ const actions = {
loginChannel
:
loginChannel
,
code
:
code
,
}
// return false
if
(
params
)
{
info
=
{
...
info
,
...
...
@@ -194,7 +193,6 @@ const actions = {
refreshToken
}
=
res
.
data
let
timestamp
=
res
.
timestamp
console
.
log
(
"timestamp==="
,
new
Date
(
res
.
timestamp
))
setToken
(
token
)
setRefreshToken
(
refreshToken
)
dispatch
(
"Set_auto_login"
,
true
)
...
...
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