Commit 1745e2b1 authored by wykolor's avatar wykolor

feat: 配置文件更改

parent 3c4285a2
......@@ -8,6 +8,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"amfe-flexible": "^2.2.1",
"axios": "^0.21.1",
"core-js": "^3.6.5",
"vant": "^3.0.9",
......@@ -34,6 +35,7 @@
"eslint-plugin-vue": "^7.0.0-0",
"less": "^4.1.1",
"less-loader": "^8.0.0",
"postcss-plugin-px2rem": "^0.8.1",
"prettier": "^1.19.1",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
......
......@@ -11,17 +11,4 @@
background: #f6f6f6;
min-height: 100vh;
}
#nav {
padding: 30px;
a {
font-weight: bold;
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
}
}
}
</style>
......@@ -3,6 +3,7 @@ import App from "./App.vue";
import router from "./router";
import store from "./store";
import 'vant/lib/index.css';
// import 'amfe-flexible';
createApp(App)
.use(store)
.use(router)
......
<template>
<div>
<van-nav-bar title="奖励金收支明细" left-arrow @click-left="onClickLeft" />
<div class="bonus-detail">
<van-tabs v-model:active="active">
<van-tab title="支出">内32323容 34431</van-tab>
<van-tab title="支出" class="bonus-detail-pay-list">
<div
v-for="item in payList"
:key="item.id"
class="bonus-detail-pay-item"
>
<ul>
<li style="color: #000">{{ item.title }}</li>
<li class="flex gray">
<span>{{ item.handleTime }}</span>
<label>流水号:{{ item.handleNumber }}</label>
</li>
</ul>
<ul class="bonus-detail-pay-item-desc">
<li v-if="item.status === 0">申请时间:{{ item.applyTime }}</li>
<li
v-if="item.status === 0"
class="bonus-detail-pay-item-desc-money flex"
>
<span>到账时间: {{ item.arrivalTime }}</span>
<label>¥{{ item.money }}</label>
</li>
<li v-if="item.status === 1">{{ item.className }}</li>
<li
v-if="item.status === 1"
class="bonus-detail-pay-item-desc-money"
>
<span>{{ item.schoolName }}</span
><label>¥{{ item.money }}</label>
</li>
</ul>
</div>
</van-tab>
<van-tab title="收入">内容 25545454</van-tab>
</van-tabs>
</div>
</template>
<script lang="ts">
import { NavBar, Tab, Tabs } from "vant";
import { NavBar, Tab, Tabs, Cell } from "vant";
import { defineComponent } from "vue";
const BonusDetail = defineComponent({
data() {
return {
active: 0
active: 0,
incomeList: [
{
title: "转介绍转入",
money: 3000,
handleTime: "2020.10.12 12:10",
status: 0
},
{
title: "被介绍转入",
money: 3000,
handleTime: "2020.10.12 12:10",
status: 1
},
{
title: "订单返回",
money: 3000,
handleTime: "2020.10.12 12:10",
status: 2
}
],
payList: [
{
title: "微信提现至 - 渣画化",
applyTime: "2020.10.12 12:10",
arrivalTime: "2020.10.12 12:10",
money: 3000,
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,
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,
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,
handleTime: "2020.10.12 12:10",
handleNumber: "AAAA8888",
status: 1,
className: "清水河18寒春5年级数学极智1班",
schoolName: "清华坊校区"
}
]
};
},
components: {
[NavBar.name]: NavBar,
[Tab.name]: Tab,
[Tabs.name]: Tabs
[Tabs.name]: Tabs,
[Cell.name]: Cell
},
methods: {
onClickLeft() {
......@@ -31,4 +125,35 @@ const BonusDetail = defineComponent({
export default BonusDetail;
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.bonus-detail {
.bonus-detail-pay-list {
padding: 1rem;
.bonus-detail-pay-item {
background: #fff;
margin-bottom: 0.8rem;
padding: 0.8rem;
border-radius: 0.5rem;
ul {
li {
line-height: 1.8rem;
}
}
.flex {
display: flex;
justify-content: space-between;
}
.gray {
color: #bdc4d1;
font-size: 0.9rem;
}
.bonus-detail-pay-item-desc {
background: #f5faff;
padding: 0.7rem;
border-radius: 0.3rem;
color: #606263;
}
}
}
}
</style>
......@@ -16,13 +16,13 @@
>
<van-col span="12" style="text-align: right"
><van-button
style="border-color: #fff"
style="border-color: #fff; width: 45%"
round
color="inherit"
size="small"
type="primary"
to="bonusDetail"
>&nbsp;&nbsp;明细&nbsp;&nbsp;</van-button
>明细</van-button
></van-col
>
</van-row>
......@@ -48,8 +48,13 @@
style="border-radius: 0.5rem;"
:border="false"
>
<van-button color="#F1551E" round size="small" @click="withdraw"
>&nbsp;提现&nbsp;</van-button
<van-button
color="#F1551E"
round
size="small"
@click="withdraw"
style="width: 50%"
>提现</van-button
>
</van-cell>
<!-- -->
......@@ -114,6 +119,61 @@
</div>
</van-list>
</div>
<!-- 规则弹窗 -->
<van-dialog
v-model:show="showDialog"
title="提现规则说明"
:show-cancel-button="false"
:show-confirm-button="false"
class="bunus-rule-dialog"
>
<ul class="bonus-rule-list">
<li>1.当前只有转介绍收入可以在线提现;</li>
<li>2.提现前,确保已经绑定了微信,且微信已经实名认证;</li>
<li>3.每个学生,单日累计提现金额不超过500.00元;</li>
<li>4.每个家长,单日累计提现金额不超过1000.00元;</li>
<li>5.系统一般都是“秒到账”,具体到账时间, 请以系统提示为准;</li>
<li>6.如需帮助请联系:400—8777389!</li>
</ul>
<div class="dialog-handle-btns">
<van-button type="default" round @click="showDialog = false"
>电话咨询</van-button
><van-button type="primary" round @click="showDialog = false"
>我知道了</van-button
>
</div>
</van-dialog>
<van-dialog
v-model:show="showBindWx"
:show-cancel-button="false"
:show-confirm-button="false"
title="绑定微信后,才可以进行提现!"
>
<div class="dialog-handle-btns">
<van-button type="default" round @click="showBindWx = false"
>取消</van-button
><van-button type="primary" round @click="showBindWx = false"
>绑定微信</van-button
>
</div>
</van-dialog>
<van-dialog
v-model:show="showDangerous"
:show-cancel-button="false"
:show-confirm-button="false"
>
<p style="padding: 0 1.2rem; text-align: center">
当前账号存在风险,无法进行提现操作! 如需帮助请联系:400-8777389
</p>
<div class="dialog-handle-btns">
<van-button type="default" round @click="showDangerous = false"
>确定</van-button
><van-button type="primary" round @click="showDangerous = false"
>电话咨询</van-button
>
</div>
</van-dialog>
</div>
</template>
......@@ -190,11 +250,15 @@ const Bonus = defineComponent({
[Col.name]: Col,
[Row.name]: Row,
[Cell.name]: Cell,
[List.name]: List
[List.name]: List,
[Dialog.Component.name]: Dialog.Component
},
data() {
return {
showTime: "获取验证码"
showTime: "获取验证码",
showDialog: false,
showBindWx: false,
showDangerous: false
};
},
methods: {
......@@ -203,27 +267,7 @@ const Bonus = defineComponent({
},
withdrawRule() {
Dialog.confirm({
title: "提现规则说明",
message: `1.当前只有转介绍收入可以在线提现;\n
2.提现前,确保已经绑定了微信,且微信已经实名认证;\n
3.每个学生,单日累计提现金额不超过500.00元;\n
4.每个家长,单日累计提现金额不超过1000.00元;\n
5.系统一般都是“秒到账”,具体到账时间,请以系统提示为准;\n
6.如需帮助请联系:400——8777389!`,
messageAlign: "left",
confirmButtonText: "我知道了",
cancelButtonText: "电话咨询",
theme: "round-button",
cancelButtonColor: "#DCDEE0",
confirmButtonColor: "#4288FF"
})
.then(() => {
console.log("确定");
})
.catch(() => {
console.log("取消");
});
this.showDialog = true;
},
getVerificationCode() {
......@@ -248,10 +292,7 @@ const Bonus = defineComponent({
},
withdraw() {
// Dialog.confirm({
// title: "绑定微信后才可提现"
// });
// this.$nativeBridge.$nativeTitle("我是重新设置的title");
this.showDangerous = true;
}
}
});
......@@ -260,7 +301,7 @@ export default Bonus;
<style lang="scss" scoped>
.bonus {
padding: 0.8rem;
padding: 30px;
.bonus-account {
padding: 0.8rem;
color: #fff;
......@@ -346,5 +387,32 @@ export default Bonus;
}
}
}
::v-deep .bunus-rule-dialog {
.van-dialog__header {
background: linear-gradient(213deg, #05b2ff 0%, #027aff 100%);
padding: 1rem 0;
color: #fff;
font-weight: bold;
font-size: 1.2rem;
}
.bonus-rule-list {
padding: 1.5rem 1.5rem 0;
color: #505253;
font-size: 0.9rem;
li {
line-height: 1.4em;
margin-bottom: 0.8rem;
}
}
}
.dialog-handle-btns {
display: flex;
padding: 1rem;
margin-bottom: 1rem;
justify-content: space-between;
.van-button {
flex: 0.47;
}
}
}
</style>
// const tsImportPluginFactory = require('ts-import-plugin')
const { merge } = require("webpack-merge");
module.exports = {
devServer: {
hot: true,
open: true,
// host: "192.168.44.20",
// port: 8080,
https: false,
//以上的ip和端口是我们本机的;下面为需要跨域的
proxy: {
//配置跨域
"/api": {
target: "http://localhost:5001/api/", //这里后台的地址模拟的;应该填写你们真实的后台接口
ws: true,
changOrigin: true, //允许跨域
pathRewrite: {
"^/api": "" //请求的时候使用这个api就可以
}
}
}
},
css: {
loaderOptions: {
postcss: {
plugins: [
require("postcss-plugin-px2rem")({
rootValue: 75,
propList: ["*"],
replace: true,
mediaQuery: false,
minPixelValue: 0,
exclude: /(node_module)/
})
]
}
}
}
};
// const tsImportPluginFactory = require('ts-import-plugin')
const { merge } = require('webpack-merge')
module.exports = {
devServer: {
hot: true,
open: true,
host: 'localhost',
port: 8080,
https: false,
//以上的ip和端口是我们本机的;下面为需要跨域的
proxy: {//配置跨域
'/api': {
target: 'http://localhost:5001/api/',//这里后台的地址模拟的;应该填写你们真实的后台接口
ws: true,
changOrigin: true,//允许跨域
pathRewrite: {
'^/api': ''//请求的时候使用这个api就可以
}
}
}
},
// chainWebpack: config => {
// config.module.rule('ts')
// .use('ts-loader')
// .tap(options => {
// options = merge(options, {
// transpileOnly: true,
// getCustomTransformers: () => ({
// before: [
// tsImportPluginFactory({
// libraryName: 'vant',
// libraryDirectory: 'es',
// style: true
// })
// ]
// }),
// compilerOptions: {
// module: 'es2015'
// }
// });
// return options;
// })
// },
}
\ No newline at end of file
......@@ -1781,6 +1781,11 @@ alphanum-sort@^1.0.0:
resolved "https://registry.npm.taobao.org/alphanum-sort/download/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=
amfe-flexible@^2.2.1:
version "2.2.1"
resolved "https://registry.npm.taobao.org/amfe-flexible/download/amfe-flexible-2.2.1.tgz#353f00289e4d38ca88a21eb3854420308af0b559"
integrity sha1-NT8AKJ5NOMqIoh6zhUQgMIrwtVk=
ansi-colors@^3.0.0:
version "3.2.4"
resolved "https://registry.npm.taobao.org/ansi-colors/download/ansi-colors-3.2.4.tgz?cache=0&sync_timestamp=1593529711167&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-colors%2Fdownload%2Fansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf"
......@@ -4500,6 +4505,11 @@ has-bigints@^1.0.0:
resolved "https://registry.npm.taobao.org/has-bigints/download/has-bigints-1.0.0.tgz#d9b2100824195e39a0c343c127f389d66a5e27dc"
integrity sha1-2bIQCCQZXjmgw0PBJ/OJ1mpeJ9w=
has-flag@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
integrity sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=
has-flag@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
......@@ -5313,6 +5323,11 @@ jest-worker@^25.4.0:
merge-stream "^2.0.0"
supports-color "^7.0.0"
js-base64@^2.1.9:
version "2.6.4"
resolved "https://registry.npm.taobao.org/js-base64/download/js-base64-2.6.4.tgz?cache=0&sync_timestamp=1604450326544&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-base64%2Fdownload%2Fjs-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4"
integrity sha1-9OaGxd4eofhn28rT1G2WlCjfmMQ=
js-message@1.0.7:
version "1.0.7"
resolved "https://registry.npm.taobao.org/js-message/download/js-message-1.0.7.tgz#fbddd053c7a47021871bb8b2c95397cc17c20e47"
......@@ -6965,6 +6980,13 @@ postcss-ordered-values@^4.1.2:
postcss "^7.0.0"
postcss-value-parser "^3.0.0"
postcss-plugin-px2rem@^0.8.1:
version "0.8.1"
resolved "https://registry.npm.taobao.org/postcss-plugin-px2rem/download/postcss-plugin-px2rem-0.8.1.tgz#e8adf28fd2befbc079a119126b5c62a88905d5e1"
integrity sha1-6K3yj9K++8B5oRkSa1xiqIkF1eE=
dependencies:
postcss "^5.0.21"
postcss-reduce-initial@^4.0.3:
version "4.0.3"
resolved "https://registry.npm.taobao.org/postcss-reduce-initial/download/postcss-reduce-initial-4.0.3.tgz#7fd42ebea5e9c814609639e2c2e84ae270ba48df"
......@@ -7033,6 +7055,16 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0:
resolved "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb"
integrity sha1-RD9qIM7WSBor2k+oUypuVdeJoss=
postcss@^5.0.21:
version "5.2.18"
resolved "https://registry.npm.taobao.org/postcss/download/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5"
integrity sha1-ut+hSX1GJE9jkPWLMZgw2RB4U8U=
dependencies:
chalk "^1.1.3"
js-base64 "^2.1.9"
source-map "^0.5.6"
supports-color "^3.2.3"
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6:
version "7.0.35"
resolved "https://registry.npm.taobao.org/postcss/download/postcss-7.0.35.tgz#d2be00b998f7f211d8a276974079f2e92b970e24"
......@@ -8186,6 +8218,13 @@ supports-color@^2.0.0:
resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-2.0.0.tgz?cache=0&sync_timestamp=1611394023277&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=
supports-color@^3.2.3:
version "3.2.3"
resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-3.2.3.tgz?cache=0&sync_timestamp=1611394023277&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
integrity sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=
dependencies:
has-flag "^1.0.0"
supports-color@^5.3.0:
version "5.5.0"
resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-5.5.0.tgz?cache=0&sync_timestamp=1611394023277&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
......
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