Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
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
frontend
mall-webview
Commits
aab6802e
Commit
aab6802e
authored
Mar 18, 2021
by
wykolor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 奖励金明细界面
parent
3b63085d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
153 additions
and
57 deletions
+153
-57
App.vue
src/App.vue
+5
-0
main.ts
src/main.ts
+1
-1
index.vue
src/views/bonus-detail/index.vue
+92
-20
index.vue
src/views/bonus/index.vue
+54
-35
vue.config.js
vue.config.js
+1
-1
No files found.
src/App.vue
View file @
aab6802e
...
...
@@ -10,5 +10,10 @@
color
:
#2c3e50
;
background
:
#f6f6f6
;
min-height
:
100vh
;
box-sizing
:
border-box
;
font-size
:
26px
;
}
*
{
box-sizing
:
inherit
;
}
</
style
>
src/main.ts
View file @
aab6802e
...
...
@@ -3,7 +3,7 @@ import App from "./App.vue";
import
router
from
"./router"
;
import
store
from
"./store"
;
import
'vant/lib/index.css'
;
//
import 'amfe-flexible';
import
'amfe-flexible'
;
createApp
(
App
)
.
use
(
store
)
.
use
(
router
)
...
...
src/views/bonus-detail/index.vue
View file @
aab6802e
<
template
>
<div
class=
"bonus-detail"
>
<van-tabs
v-model:active=
"active"
>
<van-tabs
color=
"#027AFF"
title-active-color=
"#027AFF"
title-inactive-color=
"#4C4E4F"
line-width=
"150"
:sticky=
"true"
v-model:active=
"active"
>
<van-tab
title=
"支出"
class=
"bonus-detail-pay-list"
>
<div
v-for=
"item in payList"
...
...
@@ -11,7 +18,10 @@
<li
style=
"color: #000"
>
{{
item
.
title
}}
</li>
<li
class=
"flex gray"
>
<span>
{{
item
.
handleTime
}}
</span>
<label>
流水号:
{{
item
.
handleNumber
}}
</label>
<label
>
{{
item
.
status
===
0
?
"流水号:"
:
"订单号:"
}}{{
item
.
handleNumber
}}
</label
>
</li>
</ul>
<ul
class=
"bonus-detail-pay-item-desc"
>
...
...
@@ -26,7 +36,7 @@
<li
v-if=
"item.status === 1"
>
{{
item
.
className
}}
</li>
<li
v-if=
"item.status === 1"
class=
"bonus-detail-pay-item-desc-money"
class=
"bonus-detail-pay-item-desc-money
flex
"
>
<span>
{{
item
.
schoolName
}}
</span
><label>
¥
{{
item
.
money
}}
</label>
...
...
@@ -34,7 +44,21 @@
</ul>
</div>
</van-tab>
<van-tab
title=
"收入"
>
内容 25545454
</van-tab>
<van-tab
title=
"收入"
class=
"bonus-detail-income-list"
>
<div
class=
"bonus-detail-income-item"
v-for=
"item in incomeList"
:key=
"item.id"
>
<ul>
<li>
{{
item
.
title
}}
</li>
<li
class=
"flex bonus-detail-pay-item-desc-money"
>
<span
class=
"gray"
>
{{
item
.
handleTime
}}
</span>
<label>
¥
{{
item
.
money
}}
</label>
</li>
</ul>
</div>
</van-tab>
</van-tabs>
</div>
</
template
>
...
...
@@ -49,19 +73,19 @@ const BonusDetail = defineComponent({
incomeList
:
[
{
title
:
"转介绍转入"
,
money
:
3000
,
money
:
3000
.06
,
handleTime
:
"2020.10.12 12:10"
,
status
:
0
},
{
title
:
"被介绍转入"
,
money
:
3000
,
money
:
3000
.05
,
handleTime
:
"2020.10.12 12:10"
,
status
:
1
},
{
title
:
"订单返回"
,
money
:
3000
,
money
:
3000
.05
,
handleTime
:
"2020.10.12 12:10"
,
status
:
2
}
...
...
@@ -71,7 +95,7 @@ const BonusDetail = defineComponent({
title
:
"微信提现至 - 渣画化"
,
applyTime
:
"2020.10.12 12:10"
,
arrivalTime
:
"2020.10.12 12:10"
,
money
:
3000
,
money
:
3000
.05
,
handleTime
:
"2020.10.12 12:10"
,
handleNumber
:
"AAAA8888"
,
status
:
0
...
...
@@ -91,7 +115,27 @@ const BonusDetail = defineComponent({
title
:
"微信提现至 - 渣画化"
,
applyTime
:
"2020.10.12 12:10"
,
arrivalTime
:
"2020.10.12 12:10"
,
money
:
3000
,
money
:
3000.05
,
handleTime
:
"2020.10.12 12:10"
,
handleNumber
:
"AAAA8888"
,
status
:
0
},
{
title
:
"支付"
,
applyTime
:
"2020.10.12 12:10"
,
arrivalTime
:
"2020.10.12 12:10"
,
money
:
3000.05
,
handleTime
:
"2020.10.12 12:10"
,
handleNumber
:
"AAAA8888"
,
status
:
1
,
className
:
"清水河18寒春5年级数学极智1班"
,
schoolName
:
"清华坊校区"
},
{
title
:
"微信提现至 - 渣画化"
,
applyTime
:
"2020.10.12 12:10"
,
arrivalTime
:
"2020.10.12 12:10"
,
money
:
3000.05
,
handleTime
:
"2020.10.12 12:10"
,
handleNumber
:
"AAAA8888"
,
status
:
0
...
...
@@ -106,6 +150,26 @@ const BonusDetail = defineComponent({
status
:
1
,
className
:
"清水河18寒春5年级数学极智1班"
,
schoolName
:
"清华坊校区"
},
{
title
:
"微信提现至 - 渣画化"
,
applyTime
:
"2020.10.12 12:10"
,
arrivalTime
:
"2020.10.12 12:10"
,
money
:
3000.05
,
handleTime
:
"2020.10.12 12:10"
,
handleNumber
:
"AAAA8888"
,
status
:
0
},
{
title
:
"支付"
,
applyTime
:
"2020.10.12 12:10"
,
arrivalTime
:
"2020.10.12 12:10"
,
money
:
3000.05
,
handleTime
:
"2020.10.12 12:10"
,
handleNumber
:
"AAAA8888"
,
status
:
1
,
className
:
"清水河18寒春5年级数学极智1班"
,
schoolName
:
"清华坊校区"
}
]
};
...
...
@@ -124,19 +188,20 @@ const BonusDetail = defineComponent({
});
export
default
BonusDetail
;
</
script
>
<
style
lang=
"scss"
scoped
>
.bonus-detail
{
.bonus-detail-pay-list
{
padding
:
1rem
;
.bonus-detail-pay-item
{
.bonus-detail-pay-list
,
.bonus-detail-income-list
{
padding
:
30px
;
.bonus-detail-pay-item
,
.bonus-detail-income-item
{
background
:
#fff
;
margin-bottom
:
0
.8rem
;
padding
:
0
.8rem
;
border-radius
:
0
.5rem
;
margin-bottom
:
30px
;
padding
:
20px
;
border-radius
:
20px
;
ul
{
li
{
line-height
:
1
.8rem
;
line-height
:
47px
;
}
}
.flex
{
...
...
@@ -145,14 +210,21 @@ export default BonusDetail;
}
.gray
{
color
:
#bdc4d1
;
font-size
:
0
.9rem
;
font-size
:
24px
;
}
.bonus-detail-pay-item-desc
{
background
:
#f5faff
;
padding
:
0
.7rem
;
border-radius
:
0
.3rem
;
padding
:
20px
;
border-radius
:
15px
;
color
:
#606263
;
}
.bonus-detail-pay-item-desc-money
{
label
{
color
:
#f1551e
;
font-size
:
28px
;
font-weight
:
600
;
}
}
}
}
}
...
...
src/views/bonus/index.vue
View file @
aab6802e
<
template
>
<div
class=
"bonus"
>
<div
class=
"bonus-account"
>
<van-row
align=
"center"
>
<van-row
align=
"center"
class=
"bonus-account-title"
>
<van-col
span=
"12"
style=
"opacity: 0.5;"
><i
class=
"iconfont icon-qiandai"
>
</i
><span>
账户余额(元)
</span></van-col
...
...
@@ -10,10 +10,8 @@
><span>
提现规则
</span>
<i
class=
"iconfont icon-tishi"
></i
></van-col>
</van-row>
<van-row
style=
"margin: 0.8rem 0 2rem"
align=
"center"
>
<van-col
span=
"12"
style=
"font-size: 2rem; font-weight: 600"
><span>
¥1200.00
</span></van-col
>
<van-row
class=
"bonus-account-money"
align=
"center"
>
<van-col
span=
"12"
class=
"money-desc"
><span>
¥1200.00
</span></van-col>
<van-col
span=
"12"
style=
"text-align: right"
><van-button
style=
"border-color: #fff; width: 45%"
...
...
@@ -45,7 +43,7 @@
center
title=
"可提现金额:¥12.00"
size=
"large"
style=
"border-radius: 0.
5
rem;"
style=
"border-radius: 0.
3
rem;"
:border=
"false"
>
<van-button
...
...
@@ -59,9 +57,12 @@
</van-cell>
<!-- -->
<div
class=
"bouns-record"
>
<van-row
style=
"margin-bottom: 1rem"
>
<van-row>
<van-col
span=
"12"
class=
"tip"
>
 
奖励金提现金额
</van-col>
<van-col
span=
"12"
style=
"text-align: right; font-weight: 550"
<van-col
span=
"12"
class=
"tip-money"
style=
"text-align: right; font-weight: 550"
>
总计:570.00元
</van-col
>
</van-row>
...
...
@@ -163,7 +164,7 @@
:show-cancel-button=
"false"
:show-confirm-button=
"false"
>
<p
style=
"padding: 0 1.2rem;
text-align: center"
>
<p
class=
"dangerous-dialog-tip"
style=
"
text-align: center"
>
当前账号存在风险,无法进行提现操作! 如需帮助请联系:400-8777389
</p>
<div
class=
"dialog-handle-btns"
>
...
...
@@ -303,11 +304,18 @@ export default Bonus;
.bonus
{
padding
:
30px
;
.bonus-account
{
padding
:
0
.8rem
;
padding
:
30px
;
color
:
#fff
;
background
:
url("../../assets/images/account-bg.png")
no-repeat
;
background-size
:
100%
100%
;
margin-bottom
:
1rem
;
margin-bottom
:
30px
;
.bonus-account-money
{
margin
:
28px
0
70px
;
.money-desc
{
font-size
:
72px
;
font-weight
:
600
;
}
}
.bonus-account-status
{
text-align
:
center
;
.van-col
{
...
...
@@ -317,24 +325,29 @@ export default Bonus;
label
{
opacity
:
0
.5
;
}
span
{
font-size
:
32px
;
}
}
}
}
.bouns-record
{
margin-top
:
1rem
;
margin-top
:
30px
;
color
:
#484c4f
;
.van-row
{
padding
:
0
0
.5rem
;
padding
:
0
20px
;
margin-bottom
:
40px
;
color
:
#141414
;
.tip
{
position
:
relative
;
font-size
:
1
.1rem
;
color
:
#484c4f
;
color
:
#141414
;
font-weight
:
550
;
font-size
:
30px
;
&
:
:
after
{
content
:
""
;
display
:
block
;
height
:
1
.2rem
;
width
:
4
px
;
height
:
32px
;
width
:
7
px
;
background
:
#027aff
;
position
:
absolute
;
border-radius
:
2px
;
...
...
@@ -342,12 +355,15 @@ export default Bonus;
top
:
3px
;
}
}
.tip-money
{
font-size
:
28px
;
}
}
.bonus-record-item
{
background
:
#fff
;
margin-bottom
:
0
.6rem
;
padding
:
0
.3rem
0
.7rem
0
.7rem
;
border-radius
:
0
.5rem
;
margin-bottom
:
20px
;
padding
:
20px
19px
;
border-radius
:
30px
;
.bonus-record-item-header
{
display
:
flex
;
justify-content
:
space-between
;
...
...
@@ -356,16 +372,16 @@ export default Bonus;
display
:
flex
;
align-items
:
center
;
i
{
font-size
:
2rem
;
margin-right
:
0
.5rem
;
font-size
:
54px
;
margin-right
:
20px
;
}
span
{
margin-right
:
0
.4rem
;
margin-right
:
30px
;
font-weight
:
600
;
}
label
{
color
:
#a6a8aa
;
font-size
:
0
.9rem
;
font-size
:
28px
;
}
}
.bonus-record-item-apply-money
{
...
...
@@ -376,8 +392,8 @@ export default Bonus;
.bonus-record-item-detail
{
background
:
#f5faff
;
opacity
:
0
.9
;
padding
:
0
.8rem
;
border-radius
:
0
.4rem
;
padding
:
20px
;
border-radius
:
30px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#484c4f
;
...
...
@@ -390,29 +406,32 @@ export default Bonus;
::v-deep
.bunus-rule-dialog
{
.van-dialog__header
{
background
:
linear-gradient
(
213deg
,
#05b2ff
0%
,
#027aff
100%
);
padding
:
1rem
0
;
padding
:
23px
0
;
color
:
#fff
;
font-weight
:
bold
;
font-size
:
1
.2rem
;
font-size
:
36px
;
}
.bonus-rule-list
{
padding
:
1
.5rem
1
.5rem
0
;
color
:
#505253
;
font-size
:
0
.9rem
;
padding
:
42px
51px
;
color
:
#565858
;
li
{
line-height
:
1
.4em
;
margin-bottom
:
0
.8rem
;
line-height
:
48px
;
}
}
}
.dialog-handle-btns
{
display
:
flex
;
padding
:
1rem
;
margin-bottom
:
1rem
;
padding
:
30px
;
margin-bottom
:
30px
;
justify-content
:
space-between
;
.van-button
{
flex
:
0
.47
;
font-size
:
28px
;
}
}
.dangerous-dialog-tip
{
padding
:
48px
;
line-height
:
44px
;
}
}
</
style
>
vue.config.js
View file @
aab6802e
/* eslint-disable @typescript-eslint/no-var-requires */
// const tsImportPluginFactory = require('ts-import-plugin')
const
{
merge
}
=
require
(
"webpack-merge"
);
module
.
exports
=
{
devServer
:
{
hot
:
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