Commit aab6802e authored by wykolor's avatar wykolor

feat: 奖励金明细界面

parent 3b63085d
...@@ -10,5 +10,10 @@ ...@@ -10,5 +10,10 @@
color: #2c3e50; color: #2c3e50;
background: #f6f6f6; background: #f6f6f6;
min-height: 100vh; min-height: 100vh;
box-sizing: border-box;
font-size: 26px;
}
* {
box-sizing: inherit;
} }
</style> </style>
...@@ -3,7 +3,7 @@ import App from "./App.vue"; ...@@ -3,7 +3,7 @@ import App from "./App.vue";
import router from "./router"; import router from "./router";
import store from "./store"; import store from "./store";
import 'vant/lib/index.css'; import 'vant/lib/index.css';
// import 'amfe-flexible'; import 'amfe-flexible';
createApp(App) createApp(App)
.use(store) .use(store)
.use(router) .use(router)
......
<template> <template>
<div class="bonus-detail"> <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"> <van-tab title="支出" class="bonus-detail-pay-list">
<div <div
v-for="item in payList" v-for="item in payList"
...@@ -11,7 +18,10 @@ ...@@ -11,7 +18,10 @@
<li style="color: #000">{{ item.title }}</li> <li style="color: #000">{{ item.title }}</li>
<li class="flex gray"> <li class="flex gray">
<span>{{ item.handleTime }}</span> <span>{{ item.handleTime }}</span>
<label>流水号:{{ item.handleNumber }}</label> <label
>{{ item.status === 0 ? "流水号:" : "订单号:"
}}{{ item.handleNumber }}</label
>
</li> </li>
</ul> </ul>
<ul class="bonus-detail-pay-item-desc"> <ul class="bonus-detail-pay-item-desc">
...@@ -26,7 +36,7 @@ ...@@ -26,7 +36,7 @@
<li v-if="item.status === 1">{{ item.className }}</li> <li v-if="item.status === 1">{{ item.className }}</li>
<li <li
v-if="item.status === 1" v-if="item.status === 1"
class="bonus-detail-pay-item-desc-money" class="bonus-detail-pay-item-desc-money flex"
> >
<span>{{ item.schoolName }}</span <span>{{ item.schoolName }}</span
><label>¥{{ item.money }}</label> ><label>¥{{ item.money }}</label>
...@@ -34,7 +44,21 @@ ...@@ -34,7 +44,21 @@
</ul> </ul>
</div> </div>
</van-tab> </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> </van-tabs>
</div> </div>
</template> </template>
...@@ -49,19 +73,19 @@ const BonusDetail = defineComponent({ ...@@ -49,19 +73,19 @@ const BonusDetail = defineComponent({
incomeList: [ incomeList: [
{ {
title: "转介绍转入", title: "转介绍转入",
money: 3000, money: 3000.06,
handleTime: "2020.10.12 12:10", handleTime: "2020.10.12 12:10",
status: 0 status: 0
}, },
{ {
title: "被介绍转入", title: "被介绍转入",
money: 3000, money: 3000.05,
handleTime: "2020.10.12 12:10", handleTime: "2020.10.12 12:10",
status: 1 status: 1
}, },
{ {
title: "订单返回", title: "订单返回",
money: 3000, money: 3000.05,
handleTime: "2020.10.12 12:10", handleTime: "2020.10.12 12:10",
status: 2 status: 2
} }
...@@ -71,7 +95,7 @@ const BonusDetail = defineComponent({ ...@@ -71,7 +95,7 @@ const BonusDetail = defineComponent({
title: "微信提现至 - 渣画化", title: "微信提现至 - 渣画化",
applyTime: "2020.10.12 12:10", applyTime: "2020.10.12 12:10",
arrivalTime: "2020.10.12 12:10", arrivalTime: "2020.10.12 12:10",
money: 3000, money: 3000.05,
handleTime: "2020.10.12 12:10", handleTime: "2020.10.12 12:10",
handleNumber: "AAAA8888", handleNumber: "AAAA8888",
status: 0 status: 0
...@@ -91,7 +115,27 @@ const BonusDetail = defineComponent({ ...@@ -91,7 +115,27 @@ const BonusDetail = defineComponent({
title: "微信提现至 - 渣画化", title: "微信提现至 - 渣画化",
applyTime: "2020.10.12 12:10", applyTime: "2020.10.12 12:10",
arrivalTime: "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", handleTime: "2020.10.12 12:10",
handleNumber: "AAAA8888", handleNumber: "AAAA8888",
status: 0 status: 0
...@@ -106,6 +150,26 @@ const BonusDetail = defineComponent({ ...@@ -106,6 +150,26 @@ const BonusDetail = defineComponent({
status: 1, status: 1,
className: "清水河18寒春5年级数学极智1班", className: "清水河18寒春5年级数学极智1班",
schoolName: "清华坊校区" 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({ ...@@ -124,19 +188,20 @@ const BonusDetail = defineComponent({
}); });
export default BonusDetail; export default BonusDetail;
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bonus-detail { .bonus-detail {
.bonus-detail-pay-list { .bonus-detail-pay-list,
padding: 1rem; .bonus-detail-income-list {
.bonus-detail-pay-item { padding: 30px;
.bonus-detail-pay-item,
.bonus-detail-income-item {
background: #fff; background: #fff;
margin-bottom: 0.8rem; margin-bottom: 30px;
padding: 0.8rem; padding: 20px;
border-radius: 0.5rem; border-radius: 20px;
ul { ul {
li { li {
line-height: 1.8rem; line-height: 47px;
} }
} }
.flex { .flex {
...@@ -145,14 +210,21 @@ export default BonusDetail; ...@@ -145,14 +210,21 @@ export default BonusDetail;
} }
.gray { .gray {
color: #bdc4d1; color: #bdc4d1;
font-size: 0.9rem; font-size: 24px;
} }
.bonus-detail-pay-item-desc { .bonus-detail-pay-item-desc {
background: #f5faff; background: #f5faff;
padding: 0.7rem; padding: 20px;
border-radius: 0.3rem; border-radius: 15px;
color: #606263; color: #606263;
} }
.bonus-detail-pay-item-desc-money {
label {
color: #f1551e;
font-size: 28px;
font-weight: 600;
}
}
} }
} }
} }
......
<template> <template>
<div class="bonus"> <div class="bonus">
<div class="bonus-account"> <div class="bonus-account">
<van-row align="center"> <van-row align="center" class="bonus-account-title">
<van-col span="12" style="opacity: 0.5;" <van-col span="12" style="opacity: 0.5;"
><i class="iconfont icon-qiandai">&nbsp;</i ><i class="iconfont icon-qiandai">&nbsp;</i
><span>账户余额(元)</span></van-col ><span>账户余额(元)</span></van-col
...@@ -10,10 +10,8 @@ ...@@ -10,10 +10,8 @@
><span>提现规则</span>&nbsp;<i class="iconfont icon-tishi"></i ><span>提现规则</span>&nbsp;<i class="iconfont icon-tishi"></i
></van-col> ></van-col>
</van-row> </van-row>
<van-row style="margin: 0.8rem 0 2rem" align="center"> <van-row class="bonus-account-money" align="center">
<van-col span="12" style="font-size: 2rem; font-weight: 600" <van-col span="12" class="money-desc"><span>¥1200.00</span></van-col>
><span>¥1200.00</span></van-col
>
<van-col span="12" style="text-align: right" <van-col span="12" style="text-align: right"
><van-button ><van-button
style="border-color: #fff; width: 45%" style="border-color: #fff; width: 45%"
...@@ -45,7 +43,7 @@ ...@@ -45,7 +43,7 @@
center center
title="可提现金额:¥12.00" title="可提现金额:¥12.00"
size="large" size="large"
style="border-radius: 0.5rem;" style="border-radius: 0.3rem;"
:border="false" :border="false"
> >
<van-button <van-button
...@@ -59,9 +57,12 @@ ...@@ -59,9 +57,12 @@
</van-cell> </van-cell>
<!-- --> <!-- -->
<div class="bouns-record"> <div class="bouns-record">
<van-row style="margin-bottom: 1rem"> <van-row>
<van-col span="12" class="tip">&emsp;奖励金提现金额</van-col> <van-col span="12" class="tip">&emsp;奖励金提现金额</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元&nbsp;</van-col >总计:570.00元&nbsp;</van-col
> >
</van-row> </van-row>
...@@ -163,7 +164,7 @@ ...@@ -163,7 +164,7 @@
:show-cancel-button="false" :show-cancel-button="false"
:show-confirm-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 当前账号存在风险,无法进行提现操作! 如需帮助请联系:400-8777389
</p> </p>
<div class="dialog-handle-btns"> <div class="dialog-handle-btns">
...@@ -303,11 +304,18 @@ export default Bonus; ...@@ -303,11 +304,18 @@ export default Bonus;
.bonus { .bonus {
padding: 30px; padding: 30px;
.bonus-account { .bonus-account {
padding: 0.8rem; padding: 30px;
color: #fff; color: #fff;
background: url("../../assets/images/account-bg.png") no-repeat; background: url("../../assets/images/account-bg.png") no-repeat;
background-size: 100% 100%; 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 { .bonus-account-status {
text-align: center; text-align: center;
.van-col { .van-col {
...@@ -317,24 +325,29 @@ export default Bonus; ...@@ -317,24 +325,29 @@ export default Bonus;
label { label {
opacity: 0.5; opacity: 0.5;
} }
span {
font-size: 32px;
}
} }
} }
} }
.bouns-record { .bouns-record {
margin-top: 1rem; margin-top: 30px;
color: #484c4f; color: #484c4f;
.van-row { .van-row {
padding: 0 0.5rem; padding: 0 20px;
margin-bottom: 40px;
color: #141414;
.tip { .tip {
position: relative; position: relative;
font-size: 1.1rem; color: #141414;
color: #484c4f;
font-weight: 550; font-weight: 550;
font-size: 30px;
&::after { &::after {
content: ""; content: "";
display: block; display: block;
height: 1.2rem; height: 32px;
width: 4px; width: 7px;
background: #027aff; background: #027aff;
position: absolute; position: absolute;
border-radius: 2px; border-radius: 2px;
...@@ -342,12 +355,15 @@ export default Bonus; ...@@ -342,12 +355,15 @@ export default Bonus;
top: 3px; top: 3px;
} }
} }
.tip-money {
font-size: 28px;
}
} }
.bonus-record-item { .bonus-record-item {
background: #fff; background: #fff;
margin-bottom: 0.6rem; margin-bottom: 20px;
padding: 0.3rem 0.7rem 0.7rem; padding: 20px 19px;
border-radius: 0.5rem; border-radius: 30px;
.bonus-record-item-header { .bonus-record-item-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -356,16 +372,16 @@ export default Bonus; ...@@ -356,16 +372,16 @@ export default Bonus;
display: flex; display: flex;
align-items: center; align-items: center;
i { i {
font-size: 2rem; font-size: 54px;
margin-right: 0.5rem; margin-right: 20px;
} }
span { span {
margin-right: 0.4rem; margin-right: 30px;
font-weight: 600; font-weight: 600;
} }
label { label {
color: #a6a8aa; color: #a6a8aa;
font-size: 0.9rem; font-size: 28px;
} }
} }
.bonus-record-item-apply-money { .bonus-record-item-apply-money {
...@@ -376,8 +392,8 @@ export default Bonus; ...@@ -376,8 +392,8 @@ export default Bonus;
.bonus-record-item-detail { .bonus-record-item-detail {
background: #f5faff; background: #f5faff;
opacity: 0.9; opacity: 0.9;
padding: 0.8rem; padding: 20px;
border-radius: 0.4rem; border-radius: 30px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #484c4f; color: #484c4f;
...@@ -390,29 +406,32 @@ export default Bonus; ...@@ -390,29 +406,32 @@ export default Bonus;
::v-deep .bunus-rule-dialog { ::v-deep .bunus-rule-dialog {
.van-dialog__header { .van-dialog__header {
background: linear-gradient(213deg, #05b2ff 0%, #027aff 100%); background: linear-gradient(213deg, #05b2ff 0%, #027aff 100%);
padding: 1rem 0; padding: 23px 0;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
font-size: 1.2rem; font-size: 36px;
} }
.bonus-rule-list { .bonus-rule-list {
padding: 1.5rem 1.5rem 0; padding: 42px 51px;
color: #505253; color: #565858;
font-size: 0.9rem;
li { li {
line-height: 1.4em; line-height: 48px;
margin-bottom: 0.8rem;
} }
} }
} }
.dialog-handle-btns { .dialog-handle-btns {
display: flex; display: flex;
padding: 1rem; padding: 30px;
margin-bottom: 1rem; margin-bottom: 30px;
justify-content: space-between; justify-content: space-between;
.van-button { .van-button {
flex: 0.47; flex: 0.47;
font-size: 28px;
} }
} }
.dangerous-dialog-tip {
padding: 48px;
line-height: 44px;
}
} }
</style> </style>
/* eslint-disable @typescript-eslint/no-var-requires */
// const tsImportPluginFactory = require('ts-import-plugin') // const tsImportPluginFactory = require('ts-import-plugin')
const { merge } = require("webpack-merge");
module.exports = { module.exports = {
devServer: { devServer: {
hot: true, hot: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment