|
|
|
@ -15,53 +15,34 @@ |
|
|
|
|
余额提现 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0" |
|
|
|
|
></div> |
|
|
|
|
<div style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0"> |
|
|
|
|
</div> |
|
|
|
|
<div style="padding: 0px 30px" class="applydraw"> |
|
|
|
|
<p> |
|
|
|
|
<span style="font-size: 16px; color: #000000ff">转出到</span> |
|
|
|
|
<span style="font-size: 13px; color: #808080ff; margin-left: 10px" |
|
|
|
|
>请选择余额转出到哪里</span |
|
|
|
|
> |
|
|
|
|
<span style="font-size: 13px; color: #808080ff; margin-left: 10px">请选择余额转出到哪里</span> |
|
|
|
|
</p> |
|
|
|
|
<el-select |
|
|
|
|
v-model="Withdrawalform.withdraw" |
|
|
|
|
style="width: 500px" |
|
|
|
|
@change="settype" |
|
|
|
|
placeholder="请选择添加类型" |
|
|
|
|
> |
|
|
|
|
<el-select v-model="Withdrawalform.withdraw" style="width: 500px" @change="settype" |
|
|
|
|
placeholder="请选择添加类型"> |
|
|
|
|
<el-option label="支付宝" value="alipay" /> |
|
|
|
|
<el-option label="银行卡" value="bank" /> |
|
|
|
|
</el-select> |
|
|
|
|
<br /> |
|
|
|
|
<el-input |
|
|
|
|
v-if="Withdrawalform.withdraw == 'alipay' && accountdata.alipay" |
|
|
|
|
:value="`${accountdata.alipay}(${accountdata.name})`" |
|
|
|
|
style="margin-top: 20px" |
|
|
|
|
disabled |
|
|
|
|
></el-input> |
|
|
|
|
<el-input |
|
|
|
|
v-if="Withdrawalform.withdraw == 'bank' && accountdata.bankAccount" |
|
|
|
|
:value="`${accountdata.bankAccount}(${accountdata.name})`" |
|
|
|
|
style="margin-top: 20px" |
|
|
|
|
disabled |
|
|
|
|
></el-input> |
|
|
|
|
<el-input v-if="Withdrawalform.withdraw == 'alipay' && accountdata.alipay" |
|
|
|
|
:value="`${accountdata.alipay}(${accountdata.name})`" style="margin-top: 20px" |
|
|
|
|
disabled></el-input> |
|
|
|
|
<el-input v-if="Withdrawalform.withdraw == 'bank' && accountdata.bankAccount" |
|
|
|
|
:value="`${accountdata.bankAccount}(${accountdata.name})`" style="margin-top: 20px" |
|
|
|
|
disabled></el-input> |
|
|
|
|
<br /> |
|
|
|
|
<el-input |
|
|
|
|
v-if="Withdrawalform.withdraw == 'bank' && accountdata.bankAccount" |
|
|
|
|
:value="accountdata.bankDeposit" |
|
|
|
|
style="margin-top: 20px" |
|
|
|
|
disabled |
|
|
|
|
></el-input> |
|
|
|
|
<el-input v-if="Withdrawalform.withdraw == 'bank' && accountdata.bankAccount" |
|
|
|
|
:value="accountdata.bankDeposit" style="margin-top: 20px" disabled></el-input> |
|
|
|
|
|
|
|
|
|
<div style="border: 1px dashed #ebebeb; margin: 20px 0; width: 500px"></div> |
|
|
|
|
<div style="display: flex; align-items: center"> |
|
|
|
|
<p style="font-size: 16px; color: #000000ff">提现金额</p> |
|
|
|
|
<i style="color: #fd5d5dff; margin: 0 5px" class="el-icon-warning"></i> |
|
|
|
|
<span style="font-size: 13px; color: #808080ff" |
|
|
|
|
>提现金额将在7个工作日到账,请耐心等待</span |
|
|
|
|
> |
|
|
|
|
<span style="font-size: 13px; color: #808080ff">提现金额将在7个工作日到账,请耐心等待</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input v-model="Withdrawalform.recordAmount" style="width: 500px"></el-input> |
|
|
|
|
<p style="font-size: 14px; color: #4d4d4dff"> |
|
|
|
@ -72,98 +53,66 @@ |
|
|
|
|
<div style="border: 1px dashed #ebebeb; margin: 20px 0; width: 500px"></div> |
|
|
|
|
<p> |
|
|
|
|
<span style="font-size: 16px; color: #000000ff">交易密码</span> |
|
|
|
|
<span v-if="accountdata.password" style="font-size: 13px; color: #808080ff; margin-left: 10px" |
|
|
|
|
>保证交易密码的安全</span |
|
|
|
|
> |
|
|
|
|
<span v-else style="font-size: 13px; color: #808080ff; margin-left: 10px" |
|
|
|
|
>您还未设置过交易密码 <span style="color: #2587f9;margin-left:5px" @click="activeName='3'">去设置</span></span |
|
|
|
|
> |
|
|
|
|
<span v-if="accountdata.password" |
|
|
|
|
style="font-size: 13px; color: #808080ff; margin-left: 10px">保证交易密码的安全</span> |
|
|
|
|
<span v-else style="font-size: 13px; color: #808080ff; margin-left: 10px">您还未设置过交易密码 |
|
|
|
|
<span style="color: #2587f9;margin-left:5px" |
|
|
|
|
@click="activeName = '3'">去设置</span></span> |
|
|
|
|
</p> |
|
|
|
|
<el-input |
|
|
|
|
show-password |
|
|
|
|
auto-complete="new-password" |
|
|
|
|
v-model="Withdrawalform.password" |
|
|
|
|
></el-input> |
|
|
|
|
<el-input show-password auto-complete="new-password" |
|
|
|
|
v-model="Withdrawalform.password"></el-input> |
|
|
|
|
<div style="border: 1px dashed #ebebeb; margin: 20px 0; width: 500px"></div> |
|
|
|
|
<p> |
|
|
|
|
<span style="font-size: 16px; color: #000000ff">备注</span> |
|
|
|
|
<span style="font-size: 13px; color: #808080ff; margin-left: 10px" |
|
|
|
|
>备注信息(非必需)</span |
|
|
|
|
> |
|
|
|
|
<span style="font-size: 13px; color: #808080ff; margin-left: 10px">备注信息(非必需)</span> |
|
|
|
|
</p> |
|
|
|
|
<el-input type="textarea" v-model="Withdrawalform.remark"></el-input> |
|
|
|
|
<div style="margin-top: 25px"> |
|
|
|
|
<el-button |
|
|
|
|
v-if="Withdrawalform.withdraw == 'alipay'" |
|
|
|
|
:disabled="!accountdata.alipay" |
|
|
|
|
@click="Withdapply('applyfor')" |
|
|
|
|
type="primary" |
|
|
|
|
class="butwidthdraw" |
|
|
|
|
>提现申请</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
v-if="Withdrawalform.withdraw == 'bank'" |
|
|
|
|
:disabled="!accountdata.bankAccount" |
|
|
|
|
@click="Withdapply('applyfor')" |
|
|
|
|
type="primary" |
|
|
|
|
class="butwidthdraw" |
|
|
|
|
>提现申请</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
@click="Withdapply('cancel')" |
|
|
|
|
type="primary" |
|
|
|
|
style=" |
|
|
|
|
<el-button v-if="Withdrawalform.withdraw == 'alipay'" |
|
|
|
|
:disabled="!accountdata.alipay" @click="Withdapply('applyfor')" type="primary" |
|
|
|
|
class="butwidthdraw">提现申请</el-button> |
|
|
|
|
<el-button v-if="Withdrawalform.withdraw == 'bank'" |
|
|
|
|
:disabled="!accountdata.bankAccount" @click="Withdapply('applyfor')" |
|
|
|
|
type="primary" class="butwidthdraw">提现申请</el-button> |
|
|
|
|
<el-button @click="Withdapply('cancel')" type="primary" style=" |
|
|
|
|
background: transparent; |
|
|
|
|
border: 1px solid #e0e0e0; |
|
|
|
|
margin-left: 15px; |
|
|
|
|
color: #666666ff; |
|
|
|
|
" |
|
|
|
|
class="butwidthdraw" |
|
|
|
|
>取消</el-button |
|
|
|
|
> |
|
|
|
|
" class="butwidthdraw">取消</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div v-else class="kitborder"> |
|
|
|
|
<div |
|
|
|
|
style=" |
|
|
|
|
<div style=" |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-left: 30px; |
|
|
|
|
margin-top: -10px; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
"> |
|
|
|
|
<div style="display: flex; align-items: center"> |
|
|
|
|
<div class="dvied"></div> |
|
|
|
|
<div style="font-weight: bold; color: #333333; font-size: 19px; margin-left: 10px"> |
|
|
|
|
测试宝余额 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
style="display: flex; align-items: center; font-size: 15px; cursor: pointer" |
|
|
|
|
@click="accountdatadia" |
|
|
|
|
> |
|
|
|
|
<p |
|
|
|
|
v-if="accountdata.alipay && accountdata.bankAccount" |
|
|
|
|
style="color: #2286fa; margin: 0 5px" |
|
|
|
|
> |
|
|
|
|
<div style="display: flex; align-items: center; font-size: 15px; cursor: pointer" |
|
|
|
|
@click="accountdatadia"> |
|
|
|
|
<p v-if="accountdata.alipay && accountdata.bankAccount" |
|
|
|
|
style="color: #2286fa; margin: 0 5px"> |
|
|
|
|
查看账户 |
|
|
|
|
</p> |
|
|
|
|
<p v-else style="color: #2286fa; margin: 0 5px"> |
|
|
|
|
<i style="color: #2286fa" class="el-icon-circle-plus-outline"></i> |
|
|
|
|
添加账户 |
|
|
|
|
<span |
|
|
|
|
v-if="!accountdata.alipay && !accountdata.bankAccount" |
|
|
|
|
style="color: #333333; font-size: 14px" |
|
|
|
|
>(还未添加账户,无法提现)</span |
|
|
|
|
> |
|
|
|
|
<span v-if="!accountdata.alipay && !accountdata.bankAccount" |
|
|
|
|
style="color: #333333; font-size: 14px">(还未添加账户,无法提现)</span> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0" |
|
|
|
|
></div> |
|
|
|
|
<div style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0"> |
|
|
|
|
</div> |
|
|
|
|
<div style="padding: 0px 30px; font-size: 17px"> |
|
|
|
|
<div style="display: flex; color: #333333; align-items: center; margin: -10px 0 10px 0"> |
|
|
|
|
<p style="font-size: 28px; color: #fd461aff">¥{{ accountdata.balance }}</p> |
|
|
|
@ -172,12 +121,10 @@ |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<!-- <el-button type="info" disabled>充值</el-button> --> |
|
|
|
|
<el-button |
|
|
|
|
@click="openwitd" |
|
|
|
|
type="primary" |
|
|
|
|
:disabled="accountdata.availableBalance == 0" |
|
|
|
|
>提现</el-button |
|
|
|
|
> |
|
|
|
|
<el-button @click="openwitd" type="primary" |
|
|
|
|
:disabled="accountdata.availableBalance == 0">提现</el-button> |
|
|
|
|
<!-- <el-button @click="accountReset" type="primary" |
|
|
|
|
:disabled="!accountdata.alipay && !accountdata.balance">重置</el-button> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -190,9 +137,8 @@ |
|
|
|
|
交易记录 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0" |
|
|
|
|
></div> |
|
|
|
|
<div style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0"> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin: 30px"> |
|
|
|
|
<el-table :data="sactionData"> |
|
|
|
|
<el-table-column label="序号" width="100px" align="center"> |
|
|
|
@ -200,12 +146,7 @@ |
|
|
|
|
{{ scope.$index + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
label="交易名称" |
|
|
|
|
align="center" |
|
|
|
|
key="recordName" |
|
|
|
|
prop="recordName" |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="交易名称" align="center" key="recordName" prop="recordName" /> |
|
|
|
|
<el-table-column label="交易类型" align="center" key="recordType" prop="recordType"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<!-- <span v-if="scope.row.recordType==0" style="color:#e6a23c">充值</span> |
|
|
|
@ -218,36 +159,22 @@ |
|
|
|
|
<span v-if="scope.row.recordType == 3">收入</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
label="交易金额(元)" |
|
|
|
|
align="center" |
|
|
|
|
key="recordAmount" |
|
|
|
|
prop="recordAmount" |
|
|
|
|
> |
|
|
|
|
<el-table-column label="交易金额(元)" align="center" key="recordAmount" |
|
|
|
|
prop="recordAmount"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ hasDot(scope.row.recordAmount) }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
label="交易状态" |
|
|
|
|
align="center" |
|
|
|
|
key="recordStatus" |
|
|
|
|
prop="recordStatus" |
|
|
|
|
> |
|
|
|
|
<el-table-column label="交易状态" align="center" key="recordStatus" prop="recordStatus"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-tag |
|
|
|
|
:type=" |
|
|
|
|
scope.row.recordStatus == 0 |
|
|
|
|
? 'primary' |
|
|
|
|
: scope.row.recordStatus == 1 |
|
|
|
|
? 'success' |
|
|
|
|
: scope.row.recordStatus == 2 |
|
|
|
|
<el-tag :type="scope.row.recordStatus == 0 |
|
|
|
|
? 'primary' |
|
|
|
|
: scope.row.recordStatus == 1 |
|
|
|
|
? 'success' |
|
|
|
|
: scope.row.recordStatus == 2 |
|
|
|
|
? 'warning' |
|
|
|
|
: 'danger' |
|
|
|
|
" |
|
|
|
|
effect="dark" |
|
|
|
|
style="cursor: pointer" |
|
|
|
|
> |
|
|
|
|
" effect="dark" style="cursor: pointer"> |
|
|
|
|
<span v-if="scope.row.recordStatus == 0">处理中</span> |
|
|
|
|
<span v-if="scope.row.recordStatus == 1">已完成</span> |
|
|
|
|
<span v-if="scope.row.recordStatus == 2">已取消</span> |
|
|
|
@ -266,14 +193,9 @@ |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="total > 10" style="width: 100%; margin-top: 30px; text-align: center"> |
|
|
|
|
<el-pagination |
|
|
|
|
background |
|
|
|
|
@current-change="getSactionDataFn" |
|
|
|
|
:current-page="queryParams.pageNum" |
|
|
|
|
:page-size="queryParams.pageSize" |
|
|
|
|
layout="total, prev, pager, next, jumper" |
|
|
|
|
:total="total" |
|
|
|
|
> |
|
|
|
|
<el-pagination background @current-change="getSactionDataFn" |
|
|
|
|
:current-page="queryParams.pageNum" :page-size="queryParams.pageSize" |
|
|
|
|
layout="total, prev, pager, next, jumper" :total="total"> |
|
|
|
|
</el-pagination> |
|
|
|
|
<!-- <el-pagination |
|
|
|
|
background |
|
|
|
@ -295,9 +217,8 @@ |
|
|
|
|
交易密码 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0" |
|
|
|
|
></div> |
|
|
|
|
<div style="width: 100%; height: 1px; background-color: #ebebeb; margin: 14px 0 19px 0"> |
|
|
|
|
</div> |
|
|
|
|
<div style="margin: 30px"> |
|
|
|
|
<p style="color: #a6a6a6; font-size: 13px">*请确保交易密码与登录密码不同!</p> |
|
|
|
|
<p style="color: #a6a6a6; font-size: 13px"> |
|
|
|
@ -308,12 +229,8 @@ |
|
|
|
|
<span style="color: #1989fa">个人信息</span> |
|
|
|
|
<span>页面验证工作手机。</span> |
|
|
|
|
</p> |
|
|
|
|
<el-form |
|
|
|
|
ref="sactionform" |
|
|
|
|
:model="sactionform" |
|
|
|
|
:rules="sactionFormRules" |
|
|
|
|
label-width="120px" |
|
|
|
|
> |
|
|
|
|
<el-form ref="sactionform" :model="sactionform" :rules="sactionFormRules" |
|
|
|
|
label-width="120px"> |
|
|
|
|
<el-form-item label="手机号码"> |
|
|
|
|
<span v-if="userinform.phonenumber">+86 {{ userinform.phonenumber }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
@ -327,9 +244,8 @@ |
|
|
|
|
<el-input v-model="sactionform.code" maxlength="6" auto-complete="off"> |
|
|
|
|
<el-button slot="suffix" @click="getVerify" :disabled="tranVerify.disabled"> |
|
|
|
|
<span v-show="tranVerify.show" style="color: #0066eb">获取验证码</span> |
|
|
|
|
<span v-show="!tranVerify.show" class="count" |
|
|
|
|
>{{ tranVerify.count }} s</span |
|
|
|
|
> |
|
|
|
|
<span v-show="!tranVerify.show" class="count">{{ tranVerify.count }} |
|
|
|
|
</span> |
|
|
|
|
</el-button> |
|
|
|
|
</el-input> |
|
|
|
|
</el-form-item> |
|
|
|
@ -341,99 +257,98 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
<el-dialog |
|
|
|
|
class="dialogacount" |
|
|
|
|
:title="accountdata.alipay && accountdata.bankAccount ? '查看账户' : '添加账户'" |
|
|
|
|
:visible.sync="addacount" |
|
|
|
|
width="550px" |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
append-to-body |
|
|
|
|
@close="addacount = false" |
|
|
|
|
> |
|
|
|
|
<el-dialog class="dialogacount" |
|
|
|
|
:title="motify ? '重置账户' : (accountdata.alipay && accountdata.bankAccount) ? '查看账户' : '添加账户'" |
|
|
|
|
:visible.sync="addacount" width="550px" :close-on-click-modal="false" append-to-body |
|
|
|
|
@close="dialogClose"> |
|
|
|
|
<el-divider></el-divider> |
|
|
|
|
<p class="selectadd">选择添加类型</p> |
|
|
|
|
<el-select |
|
|
|
|
v-model="accountform.paytype" |
|
|
|
|
style="width: 100%" |
|
|
|
|
@change="settypedialog" |
|
|
|
|
placeholder="请选择添加类型" |
|
|
|
|
> |
|
|
|
|
<el-option label="支付宝" value="1" /> |
|
|
|
|
<el-option label="银行卡" value="2" /> |
|
|
|
|
<p class="selectadd">{{ motify ? '' : '请选择添加类型' }}</p> |
|
|
|
|
<el-select v-model="accountform.paytype" style="width: 100%" @change="settypedialog" |
|
|
|
|
v-show="!motify" placeholder="请选择添加类型"> |
|
|
|
|
<el-option v-show="motify ? accountdata.alipay : true" label="支付宝" value="1" /> |
|
|
|
|
<el-option v-show="motify ? accountdata.bankAccount : true" label="银行卡" value="2" /> |
|
|
|
|
</el-select> |
|
|
|
|
<div style="border: 1px dashed #ebebeb; margin: 20px 0"></div> |
|
|
|
|
<div v-if="accountform.paytype == 1" style="display: flex; align-items: center"> |
|
|
|
|
<img style="width: 19px; height: 19px; margin-right: 5px" src="/assets/crowd/payb.png" alt="" /> |
|
|
|
|
<p class="selectadd">支付宝账号</p> |
|
|
|
|
<div style="border: 1px dashed #ebebeb; margin: 20px 0" v-show="!motify"></div> |
|
|
|
|
<div v-if="accountform.paytype == 1 && !motify" |
|
|
|
|
style="display: flex; align-items: center;justify-content: space-between"> |
|
|
|
|
<div style="display: flex;align-items: center;"> |
|
|
|
|
<img style="width: 19px; height: 19px; margin-right: 5px" src="/assets/crowd/payb.png" |
|
|
|
|
alt="" /> |
|
|
|
|
<p class="selectadd">支付宝账号</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="resetBtn" @click="accountReset('1')" v-show="!motify && accountdata.alipay">重置账户 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="accountform.paytype == 2" style="display: flex; align-items: center"> |
|
|
|
|
<img |
|
|
|
|
style="width: 18px; height: 15px; margin-right: 5px" |
|
|
|
|
src="/assets/crowd/bankcad.png" |
|
|
|
|
alt="" |
|
|
|
|
/> |
|
|
|
|
<p class="selectadd">银行卡账号</p> |
|
|
|
|
|
|
|
|
|
<div v-if="accountform.paytype == 2" |
|
|
|
|
style="display: flex; align-items: center;justify-content: space-between;"> |
|
|
|
|
<div style="display: flex;align-items: center;"> |
|
|
|
|
<img style="width: 18px; height: 15px; margin-right: 5px" src="/assets/crowd/bankcad.png" |
|
|
|
|
alt="" /> |
|
|
|
|
<p class="selectadd">银行卡账号</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="resetBtn" @click="accountReset('2')" v-show="!motify && accountdata.alipay">重置账户 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-form ref="accountform" :model="accountform" :rules="accountformRules" label-width="80px"> |
|
|
|
|
<el-form-item v-if="accountform.paytype == 1" label="姓 名:" prop="name"> |
|
|
|
|
<el-input v-model="accountform.name" :disabled="Boolean(accountdata.alipay)"></el-input> |
|
|
|
|
<el-input v-model="accountform.name" |
|
|
|
|
:disabled="Boolean(accountdata.alipay) && !motify"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="accountform.paytype == 2" label="姓 名:" prop="name"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="accountform.name" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount)" |
|
|
|
|
></el-input> |
|
|
|
|
<el-input v-model="accountform.name" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount) && !motify"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div v-if="accountform.paytype == 1"> |
|
|
|
|
<el-form-item label="账 号:" prop="alipay"> |
|
|
|
|
<el-input |
|
|
|
|
:disabled="Boolean(accountdata.alipay)" |
|
|
|
|
v-model="accountform.alipay" |
|
|
|
|
></el-input> |
|
|
|
|
<el-input :disabled="Boolean(accountdata.alipay) && !motify" |
|
|
|
|
v-model="accountform.alipay"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="accountform.paytype == 2"> |
|
|
|
|
<el-form-item label="开户行:" prop="bankDeposit"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="accountform.bankDeposit" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount)" |
|
|
|
|
></el-input> |
|
|
|
|
<el-input v-model="accountform.bankDeposit" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount) && !motify"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="账 号:" prop="bankAccount"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="accountform.bankAccount" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount)" |
|
|
|
|
></el-input> |
|
|
|
|
<el-input v-model="accountform.bankAccount" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount) && !motify"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="motify"> |
|
|
|
|
<el-form-item label="手机号:" prop="mobile"> |
|
|
|
|
<el-input v-model="accountform.mobile" disabled></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="验证码:" prop="code"> |
|
|
|
|
<div style="display: flex;"> |
|
|
|
|
<el-input v-model="accountform.code" |
|
|
|
|
:disabled="Boolean(accountdata.code) && !motify"></el-input> |
|
|
|
|
<el-button type="primary" @click="getCode" :disabled="verifyCodeText.disabled" |
|
|
|
|
style="width: 150px;">{{ |
|
|
|
|
verifyCodeText.text |
|
|
|
|
}}</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<!-- <el-form-item label="账 号:" prop="bankAccount"> |
|
|
|
|
<el-input v-model="accountform.bankAccount" ></el-input> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<div style="display: flex; margin-top: 30px"> |
|
|
|
|
<el-button |
|
|
|
|
v-if="accountform.paytype == 1" |
|
|
|
|
:disabled="Boolean(accountdata.alipay)" |
|
|
|
|
type="primary" |
|
|
|
|
@click="acsumbit('determine')" |
|
|
|
|
class="acountbtn" |
|
|
|
|
>确定</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
v-else |
|
|
|
|
type="primary" |
|
|
|
|
:disabled="Boolean(accountdata.bankAccount)" |
|
|
|
|
@click="acsumbit('determine')" |
|
|
|
|
class="acountbtn" |
|
|
|
|
>确定</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="acsumbit('cancel')" |
|
|
|
|
class="acountbtn" |
|
|
|
|
style="border: 1px solid #e0e0e0; background: #ffffff; color: #666666" |
|
|
|
|
>取消</el-button |
|
|
|
|
> |
|
|
|
|
<div v-if="motify" style="text-align: center;"> |
|
|
|
|
<el-button type="primary" style="border-radius: 5px;" @click="acsumbit" |
|
|
|
|
class="acountbtn">确定</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div v-else style="display: flex; margin-top: 30px"> |
|
|
|
|
<el-button v-if="accountform.paytype == 1" |
|
|
|
|
:disabled="Boolean(accountdata.alipay) && !motify" type="primary" |
|
|
|
|
@click="acsumbit('determine')" class="acountbtn">确定</el-button> |
|
|
|
|
<el-button v-else type="primary" :disabled="Boolean(accountdata.bankAccount) && !motify" |
|
|
|
|
@click="acsumbit('determine')" class="acountbtn">确定</el-button> |
|
|
|
|
<!-- 修改账户 --> |
|
|
|
|
<el-button type="primary" @click="acsumbit('cancel')" class="acountbtn" |
|
|
|
|
style="border: 1px solid #e0e0e0; background: #ffffff; color: #666666">取消</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
@ -442,7 +357,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
|
import { queryAccount, queryRecord, setaddaccount, withdrawapp } from '@/api/my/testb' |
|
|
|
|
import { queryAccount, queryRecord, setaddaccount, withdrawapp, updateAccount } from '@/api/my/testb' |
|
|
|
|
import { isMobile } from '@/util/validate' |
|
|
|
|
import { getCodeUserLogin, scatpasswd } from '@/api/system/login' |
|
|
|
|
import { encrypt, decrypt } from '@/util/encrypt' |
|
|
|
@ -473,6 +388,7 @@ export default { |
|
|
|
|
return { |
|
|
|
|
isWithdrawal: false, //提现页面 |
|
|
|
|
addacount: false, |
|
|
|
|
motify: false, |
|
|
|
|
activeName: '1', |
|
|
|
|
accountdata: {}, |
|
|
|
|
sactionData: [], |
|
|
|
@ -496,6 +412,11 @@ export default { |
|
|
|
|
bankDeposit: '', |
|
|
|
|
bankAccount: '', |
|
|
|
|
}, |
|
|
|
|
verifyCodeText: { |
|
|
|
|
text: '获取验证码', |
|
|
|
|
timer: '', |
|
|
|
|
disable: false |
|
|
|
|
}, |
|
|
|
|
accountformRules: { |
|
|
|
|
name: [ |
|
|
|
|
{ required: true, message: '姓名不能为空', trigger: 'blur' }, |
|
|
|
@ -542,6 +463,13 @@ export default { |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
mobile: [ |
|
|
|
|
{ required: true, message: '', trigger: 'blur' }, |
|
|
|
|
], |
|
|
|
|
code: [ |
|
|
|
|
{ required: true, message: '请输入验证码', trigger: 'blur' }, |
|
|
|
|
// { min: 6, message: '密码长度最少为6位', trigger: 'blur' }, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
Withdrawalform: { withdraw: 'alipay', recordAmount: '', password: '' }, |
|
|
|
|
queryParams: { |
|
|
|
@ -594,6 +522,15 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
dialogClose() { |
|
|
|
|
this.addacount = false |
|
|
|
|
this.motify = false |
|
|
|
|
clearInterval(this.verifyCodeText.timer) // 清除定时器 |
|
|
|
|
this.verifyCodeText.timer = null |
|
|
|
|
this.verifyCodeText.disabled = false |
|
|
|
|
this.verifyCodeText.text = '获取验证码' |
|
|
|
|
this.$refs.accountform.clearValidate() |
|
|
|
|
}, |
|
|
|
|
// 获取短信验证码 |
|
|
|
|
getVerify() { |
|
|
|
|
if (!this.sactionform.newpassword) { |
|
|
|
@ -605,6 +542,7 @@ export default { |
|
|
|
|
this.$message.warning('手机格式不对') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.tranVerify.disabled = true |
|
|
|
|
// 获取注册验证码的接口 |
|
|
|
|
getCodeUserLogin(phone) |
|
|
|
@ -629,7 +567,34 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((err) => {}) |
|
|
|
|
.catch((err) => { }) |
|
|
|
|
}, |
|
|
|
|
getCode() { |
|
|
|
|
const phone = this.userinform.phonenumber |
|
|
|
|
this.verifyCodeText.disabled = true |
|
|
|
|
getCodeUserLogin(phone) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.accountform.uuid = res.uuid |
|
|
|
|
this.$message.success('短信发送成功,请注意查收') |
|
|
|
|
const TIME_COUNT = 60 //更改倒计时时间 |
|
|
|
|
if (!this.verifyCodeText.timer) { |
|
|
|
|
this.verifyCodeText.text = TIME_COUNT |
|
|
|
|
this.verifyCodeText.disabled = true |
|
|
|
|
this.verifyCodeText.timer = setInterval(() => { |
|
|
|
|
if (this.verifyCodeText.text > 0 && this.verifyCodeText.text <= TIME_COUNT) { |
|
|
|
|
this.verifyCodeText.text-- |
|
|
|
|
} else { |
|
|
|
|
this.verifyCodeText.disabled = false |
|
|
|
|
// this.verifyCodeText.show = true |
|
|
|
|
clearInterval(this.verifyCodeText.timer) // 清除定时器 |
|
|
|
|
this.verifyCodeText.timer = null |
|
|
|
|
this.verifyCodeText.text = '获取验证码' |
|
|
|
|
} |
|
|
|
|
}, 1000) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 修改密码提交 |
|
|
|
|
onSubmit() { |
|
|
|
@ -657,6 +622,23 @@ export default { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 重置账户 |
|
|
|
|
async accountReset(val) { |
|
|
|
|
this.addacount = true |
|
|
|
|
this.motify = true |
|
|
|
|
this.accountform = { |
|
|
|
|
paytype: '', |
|
|
|
|
name: '', |
|
|
|
|
bankDeposit: '', |
|
|
|
|
bankAccount: '', |
|
|
|
|
alipay: '', |
|
|
|
|
mobile: '' |
|
|
|
|
} |
|
|
|
|
this.accountform.paytype = val |
|
|
|
|
this.accountform.mobile = this.userinform.phonenumber |
|
|
|
|
await this.$nextTick() |
|
|
|
|
this.$refs.accountform.clearValidate() |
|
|
|
|
}, |
|
|
|
|
// 打开添加账户的弹窗 |
|
|
|
|
accountdatadia() { |
|
|
|
|
this.addacount = true |
|
|
|
@ -684,6 +666,14 @@ export default { |
|
|
|
|
settypedialog(e) { |
|
|
|
|
this.$refs.accountform.clearValidate() |
|
|
|
|
}, |
|
|
|
|
//修改账户 |
|
|
|
|
ResetAccount() { |
|
|
|
|
this.$refs.accountform.validate((valid) => { |
|
|
|
|
if (valid) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 添加账户 |
|
|
|
|
acsumbit(type) { |
|
|
|
|
if (type == 'cancel') { |
|
|
|
@ -710,16 +700,34 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// return; |
|
|
|
|
setaddaccount(data).then((res) => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('添加成功') |
|
|
|
|
this.addacount = false |
|
|
|
|
this.getAccount() |
|
|
|
|
} |
|
|
|
|
if (res.data.code == 400) { |
|
|
|
|
this.$message.error(res.data.msg) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
if (this.motify) { |
|
|
|
|
data.code = this.accountform.code |
|
|
|
|
data.uuid = this.accountform.uuid |
|
|
|
|
updateAccount(data).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('重置成功') |
|
|
|
|
this.addacount = false |
|
|
|
|
this.getAccount() |
|
|
|
|
} |
|
|
|
|
if (res.code == 400) { |
|
|
|
|
this.$message.error(res.data.msg) |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
|
console.log(err); |
|
|
|
|
this.$message.error(err) |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
setaddaccount(data).then((res) => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('添加成功') |
|
|
|
|
this.addacount = false |
|
|
|
|
this.getAccount() |
|
|
|
|
} |
|
|
|
|
if (res.data.code == 400) { |
|
|
|
|
this.$message.error(res.data.msg) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -791,32 +799,46 @@ export default { |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style scoped> |
|
|
|
|
.crowdnum >>> .el-tabs--border-card { |
|
|
|
|
.resetBtn { |
|
|
|
|
font-weight: bold; |
|
|
|
|
font-size: 6rpx; |
|
|
|
|
color: #1578ED; |
|
|
|
|
line-height: 27rpx; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-tabs--border-card { |
|
|
|
|
background: transparent; |
|
|
|
|
border: none; |
|
|
|
|
box-shadow: none; |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-tabs--border-card > .el-tabs__header .el-tabs__item { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-tabs--border-card>.el-tabs__header .el-tabs__item { |
|
|
|
|
border: none; |
|
|
|
|
color: #1a1a1a; |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active { |
|
|
|
|
color: #0066eb; |
|
|
|
|
/* font-size: 16px; */ |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-tabs--border-card > .el-tabs__content { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-tabs--border-card>.el-tabs__content { |
|
|
|
|
padding: 30px 0; |
|
|
|
|
overflow: unset; |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-tabs--border-card > .el-tabs__header { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-tabs--border-card>.el-tabs__header { |
|
|
|
|
border: none; |
|
|
|
|
background-color: #f7f7f7; |
|
|
|
|
/* color:#1A1A1A */ |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-tabs__item { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-tabs__item { |
|
|
|
|
height: 45px; |
|
|
|
|
line-height: 45px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.kitborder { |
|
|
|
|
/* width: 1627px; */ |
|
|
|
|
/* height: 229px; */ |
|
|
|
@ -824,12 +846,14 @@ export default { |
|
|
|
|
box-shadow: 0px 1px 12px 0px rgba(17, 19, 21, 0.06); |
|
|
|
|
padding: 25px 0 30px 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.dvied { |
|
|
|
|
width: 5px; |
|
|
|
|
height: 18px; |
|
|
|
|
background: #1578ed; |
|
|
|
|
border-radius: 3px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tagWithdrawal { |
|
|
|
|
/* width: 174px; */ |
|
|
|
|
/* height: 36px; */ |
|
|
|
@ -839,6 +863,7 @@ export default { |
|
|
|
|
text-align: center; |
|
|
|
|
/* line-height: 36px; */ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.butRecharge { |
|
|
|
|
width: 90px; |
|
|
|
|
height: 36px; |
|
|
|
@ -848,20 +873,24 @@ export default { |
|
|
|
|
background: #2286fa; |
|
|
|
|
line-height: 11px; |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-table th { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-table th { |
|
|
|
|
background-color: #f7f7f7; |
|
|
|
|
color: #666666; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-table td { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-table td { |
|
|
|
|
/* text-align:center; */ |
|
|
|
|
background-color: #ffffff; |
|
|
|
|
height: 60px; |
|
|
|
|
color: #333333; |
|
|
|
|
} |
|
|
|
|
.crowdnum >>> .el-table--border th { |
|
|
|
|
|
|
|
|
|
.crowdnum>>>.el-table--border th { |
|
|
|
|
border-right: #f7f7f7; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* .kitborder{ |
|
|
|
|
width:800px; |
|
|
|
|
height: 500px; |
|
|
|
@ -878,13 +907,14 @@ export default { |
|
|
|
|
font-size: 16px; |
|
|
|
|
background-color: #0066eb; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* .kitborder >>> .el-input { |
|
|
|
|
width: 300px; |
|
|
|
|
} |
|
|
|
|
.verifybtn >>> .el-input { |
|
|
|
|
width: 300px; |
|
|
|
|
} */ |
|
|
|
|
.verifybtn >>> .el-button { |
|
|
|
|
.verifybtn>>>.el-button { |
|
|
|
|
margin-top: -3px; |
|
|
|
|
margin-left: -28px; |
|
|
|
|
width: 100%; |
|
|
|
@ -897,22 +927,27 @@ export default { |
|
|
|
|
z-index: -1; |
|
|
|
|
/* 18798569999 */ |
|
|
|
|
} |
|
|
|
|
.verifybtn >>> .el-button.is-disabled:hover { |
|
|
|
|
|
|
|
|
|
.verifybtn>>>.el-button.is-disabled:hover { |
|
|
|
|
background: transparent; |
|
|
|
|
} |
|
|
|
|
.dialogacount >>> .el-dialog__title { |
|
|
|
|
|
|
|
|
|
.dialogacount>>>.el-dialog__title { |
|
|
|
|
color: #000000; |
|
|
|
|
font-size: 20px; |
|
|
|
|
font-weight: bold; |
|
|
|
|
} |
|
|
|
|
.dialogacount >>> .el-divider--horizontal { |
|
|
|
|
|
|
|
|
|
.dialogacount>>>.el-divider--horizontal { |
|
|
|
|
margin-top: -20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.selectadd { |
|
|
|
|
color: #000000; |
|
|
|
|
font-size: 16px; |
|
|
|
|
font-weight: bold; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.acountbtn { |
|
|
|
|
width: 250px; |
|
|
|
|
/* height: 44px; */ |
|
|
|
@ -922,15 +957,19 @@ export default { |
|
|
|
|
font-size: 16px; |
|
|
|
|
/* line-height: 44px; */ |
|
|
|
|
} |
|
|
|
|
.applydraw >>> .el-input__inner { |
|
|
|
|
|
|
|
|
|
.applydraw>>>.el-input__inner { |
|
|
|
|
width: 500px !important; |
|
|
|
|
} |
|
|
|
|
.applydraw >>> .el-input { |
|
|
|
|
|
|
|
|
|
.applydraw>>>.el-input { |
|
|
|
|
width: 500px; |
|
|
|
|
} |
|
|
|
|
.applydraw >>> .el-textarea__inner { |
|
|
|
|
|
|
|
|
|
.applydraw>>>.el-textarea__inner { |
|
|
|
|
width: 500px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.butwidthdraw { |
|
|
|
|
width: 200px; |
|
|
|
|
/* height: 44px; */ |
|
|
|
@ -940,4 +979,4 @@ export default { |
|
|
|
|
/* line-height: 44px; */ |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
</style> |