| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <template>
- <view class="main">
- <view class="top">
- <view class="yue">
- <image src="" style="background: #F5CC57;border-radius: 8px;"></image>
- <!-- <view class="top" bindtap="goIntegral">提现记录</view> -->
- <view class="money">{{promoteInfo.balance}}<text style="font-size:16px;">元</text></view>
- <view class="txt">可提现金额</view>
- </view>
- </view>
- <view class="detail">
- <view class="input">
- <input class="num" placeholder="请输入提现的金额" onblue v-model="amount" style="width: 65%;border:none;margin:0;"></input>
- <view class="all" @tap="amount=promoteInfo.balance">全部提现</view>
- </view>
- <view class="info">
- <view class="ttxt">提现基础额为{{configDatas.min_withdraw_amount}}元,手续费{{configDatas.withdraw_ratio}}%</view>
- <!-- <view class="ttxt" style="color:#F7A731;">提现将在24小时内到账。</view> -->
- <view class="ttxt" style="color:#F7A731;">
- <view class="">
- 手续费: {{ numFilter(((configDatas.withdraw_ratio/100)*amount)) }}元
- </view>
- <view class="">
- 预计到账金额为: {{numFilter((100-configDatas.withdraw_ratio)/100*amount)}}元
- </view>
- </view>
- </view>
- </view>
- <!-- <view class="listtx">
- <view class="title">选择到账方式:</view>
- <view class="chose">
- <radio-group class="radio-group" bindchange="radioChange">
- <radio class="radio" v-for="( item , index ) in selects" :value="item.index" :checked="item.checked" style="margin:10px 10px;" v-if="item.value==1">
- <text>{{item.text}}</text>
- </radio>
- </radio-group>
- </view>
- <view class="input" v-if="txway&&txway=='bank'">
- <input class="num" placeholder="请输入姓名" bindinput="tixianname" :value="name"></input>
- </view>
- <view class="input" v-if="txway=='wxtransfer'">
- <input class="num" placeholder="请输入微信号" bindinput="tixianweixin" :value="weixin"></input>
- </view>
- <view class="input" v-if="txway=='aliPay'">
- <input class="num" placeholder="请输入支付宝账号" bindinput="tixianali" :value="alipay"></input>
- <input class="num" placeholder="请输入支付宝绑定的用户名称" bindinput="tixianaliname" :value="aliname"></input>
- </view>
- <view class="input" v-if="txway=='bank'">
- <input class="num" placeholder="请输入银行卡号" bindinput="tixianbankid" :value="bankid"></input>
- <input class="num" placeholder="请输入开户行" bindinput="tixianbank" :value="banks"></input>
- </view>
- </view> -->
- <view class="btn" @click="tixian">提交申请</view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- myIntegral: 0,
- amount: '',
- dian:0,
- datas:'',
- index:0,
- paymethods: [],
- currentPay: "",
- lessUp: !1,
- sending: !1,
- disable: !1,
- bindedPhone: !1,
- list: {},
- withdraw: !0,
- counttime: 10,
- btnState: !1,
- focus: !0,
- maskModal: !1,
- wechatNumber: "",
- explain: "",
- userInfo:'',
- usersi:'',
- selects:[
- { name: '微信零钱', way: '1', checked: true },
- { name: '微信转账', way: '4', checked: false },
- { name: '银行卡提现', way: '2', checked: false },
- { name: '支付宝提现', way: '3', checked: false },
- ],
- txway: "wechat",
- alipay:'',
- name:'',
- bankid:'',
- weixin: '',
- aliname:'',
- banks:'',
- promoteInfo:{},
- configDatas:''
- }
- },
- onLoad() {
- this.getPromoteInfo()
- },
- mounted(){
- this.configData()
- },
- methods: {
- numFilter(value){
- const realVal = parseFloat(value).toFixed(2);
- return realVal;
- },
- configData: async function() {
- let res = await this.$request.post('/api/SystemConfig/getSysteConfig');
- console.log(res.data);
- if (res.code == 200) {
- this.configDatas = res.data;
- }
- },
- getPromoteInfo:async function(){
- let res = await this.$request.post('/api/userPromote/promoteInfo',{});
- console.log(res)
- if(res.code == 200){
- this.promoteInfo = res.data
- }else {
- uni.showToast({
- icon: 'none',
- title: res.message
- });
- }
- },
- tixian:async function(){
- if(Number(this.amount) < Number(this.configDatas.min_withdraw_amount)){
- uni.showToast({
- icon: 'none',
- title: '未达最低提现金额,不能提现'
- });
- return false;
- }
- if(Number(this.amount) > Number(this.promoteInfo.balance)){
- uni.showToast({
- icon: 'none',
- title: '提现金额不能超过余额'
- });
- return false;
- }
- uni.navigateTo({
- url: "./bankCard?amount="+this.amount
- })
- }
- }
- }
- </script>
- <style>
- .header {
- height: 200rpx;
- border-bottom: 1rpx solid #e0e0e0;
- text-align: center;
- position: relative;
- box-sizing: border-box;
- padding-top: 50rpx;
- }
- .header:after {
- content: '';
- position: absolute;
- right: 30rpx;
- top: 50%;
- transform: translateY(-50%) rotate(-45deg);
- border-right: 1rpx solid #999;
- border-bottom: 1rpx solid #999;
- width: 24rpx;
- height: 24rpx;
- }
- .header .tit {
- font-size: 26rpx;
- color: #999;
- margin-bottom: 14rpx;
- }
- .header .count {
- font-size: 45rpx;
- line-height: 1;
- color: #333;
- position: relative;
- }
- .withdraw_detail {
- position: absolute;
- top: 10rpx;
- left: 30rpx;
- color: #f08300;
- border: 1rpx solid #f08300;
- border-radius: 30rpx;
- padding: 4rpx 10rpx;
- font-size: 22rpx;
- }
- .count .sup {
- position: absolute;
- top: 0;
- width: 100%;
- left: 0;
- color: red;
- font-size: 45rpx;
- line-break: 1;
- font-weight: bold;
- animation: buble .8s ease-in-out both;
- }
- @-webkit-keyframes buble {
- 0% {
- transform: translateY(0);
- opacity: 1;
- }
- 100% {
- transform: translateY(-100rpx);
- opacity: 0;
- }
- }
- @keyframes buble {
- 0% {
- transform: translateY(0);
- opacity: 1;
- }
- 100% {
- transform: translateY(-100rpx);
- opacity: 0;
- }
- }
- .body {
- padding: 30rpx;
- margin-bottom: 30rpx;
- }
- .body .form {
- display: flex;
- }
- .body input {
- flex: 2;
- vertical-align: middle;
- height: 70rpx;
- background: #e6e6e6;
- border-radius: 50px;
- font-size: 26rpx;
- display: inline-block;
- padding-left: 30rpx;
- margin-right: 30rpx;
- }
- .body .btn-exc {
- margin: 0;
- flex: 1;
- vertical-align: middle;
- }
- .body .tips {
- color: #666;
- font-size: 26rpx;
- padding-top: 20rpx;
- margin-bottom: 30rpx;
- }
- .body .tips .explain {
- color: #f00;
- }
- .paymethods {
- border-top: 1rpx solid #e0e0e0;
- padding-top: 30rpx;
- color: #666;
- }
- .paymethods .tit {
- margin-bottom: 40rpx;
- color: #333;
- }
- .paymethods .radio {
- margin-left: -30rpx;
- margin-right: -30rpx;
- }
- .mask {
- width: 100vw;
- height: 100vh;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 100;
- background: rgba(0,0,0,0.3);
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .mask .mask_box {
- background: #fff;
- width: 600rpx;
- padding: 30rpx;
- border-radius: 10rpx;
- }
- .mask .mask_box .mask_input {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .mask .mask_box input {
- text-align: left;
- padding: 20rpx;
- width: 410rpx;
- }
- .top{
- width: 100%;
- height: auto;
- }
- .top .yue{
- width: 86vw;
- height: 43vw;
- margin:10px 7vw;
- position: relative;
- }
- .yue image{
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- z-index: 0;
- }
- .yue .top{
- width: auto;
- height: 20px;
- line-height: 20px;
- position: absolute;
- top: 20px;
- left: 30px;
- color: #fff;
- z-index: 1;
- font-weight: 300;
- }
- .yue .money{
- width: 100%;
- height: 80px;
- line-height: 80px;
- text-align: center;
- color: #fff;
- z-index: 1;
- font-size: 34px;
- position: absolute;
- left: 0;
- top: 40px;
- }
- .yue .txt{
- width: 100%;
- height: 20px;
- line-height: 20px;
- text-align: center;
- color: #fff;
- z-index: 1;
- position: absolute;
- left: 0;
- bottom: 20px;
- font-weight: 300;
- }
- .detail{
- width: 86vw;
- height: auto;
- margin:10px 7vw;
- position: relative;
- }
- .detail .input{
- width: 100%;
- height: 40px;
- line-height: 40px;
- margin: 20px 0;
- border: 2px solid #eee;
- border-radius: 8px;
- display: flex;
- justify-content: space-between;
- }
- .input input{
- width: 80vw;
- height: 40px;
- line-height: 40px;
- padding-left: 5%;
- border-radius: 8px;
- border: 2px solid #eee;
- margin:10px 0;
- }
- input::-webkit-input-placeholder{
- color: #ccc;
- }
- .info{
- width: 100%;
- height: auto;
- }
- .info .ttxt{
- font-size: 12px;
- height: 20px;
- line-height: 20px;
- color: #aaa;
- }
- .listtx{
- width: 86vw;
- height: auto;
- margin:10px 7vw;
- position: relative;
- }
- .listtx .title{
- width: 100%;
- height: 30px;
- line-height: 30px;
- margin: 10px 0;
- }
- .btn{
- background: #F5CC57;
- width: 70vw;
- height: 40px;
- line-height: 40px;
- text-align: center;
- color: #fff;
- border-radius: 40px;
- margin: 30px 15vw 20px 15vw;
- box-shadow:0px 10px 20px 14px rgba(0,0,0,0.06);
- }
- .all{
- width: auto;
- height: 40px;
- line-height: 40px;
- color: #f08300;
- text-underline-position: auto;
- margin: 0;
- margin-right: 5%;
- }
- </style>
|