14 changed files with 388 additions and 322 deletions
@ -3,7 +3,7 @@ |
|||||
<view class="my-cont" @click="keCode=1"> |
<view class="my-cont" @click="keCode=1"> |
||||
<image src="../../static/home/[email protected]" mode=""></image> |
<image src="../../static/home/[email protected]" mode=""></image> |
||||
</view> |
</view> |
||||
<!-- <u-mask :z-index="10" v-if="keCode!=1"></u-mask> --> |
<u-mask :z-index="10" :show="keCode==1"></u-mask> |
||||
<view class="tc" v-show="keCode==1"> |
<view class="tc" v-show="keCode==1"> |
||||
|
|
||||
<view class="title"> |
<view class="title"> |
||||
|
@ -3,14 +3,14 @@ |
|||||
<view class="pro-head"> |
<view class="pro-head"> |
||||
promotion |
promotion |
||||
<view class="pro-hea-rig"> |
<view class="pro-hea-rig"> |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1"></image> |
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img1" @click="goInviteRule()"></image> |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img2" @click="invMore=true,msShow=true"></image> |
<image src="../../../static/promo/[email protected]" mode="aspectFit" class="img2" @click="invMore=true,msShow=true"></image> |
||||
|
|
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="pro-body"> |
<view class="pro-body"> |
||||
<view class="pro-body-p1"> |
<view class="pro-body-p1"> |
||||
bonus: <span class="category-sigh">₦</span><span class="s1">{{inviteRule.bonusCapital}}</span> |
bonus: <span class="category-sigh">{{currencySymbol}}</span><span class="s1">{{inviteRule.bonusCapital}}</span> |
||||
</view> |
</view> |
||||
|
|
||||
<view class="pro-body-btn1" @click="appl=true,msShow=true"> |
<view class="pro-body-btn1" @click="appl=true,msShow=true"> |
||||
@ -88,7 +88,7 @@ |
|||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="msg-box-bg" v-show="msShow"> |
<view class="msg-box-bg" v-show="msShow" @click="invMore=false,msShow=false,appl=false"> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
@ -100,6 +100,7 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
currencySymbol:'', |
||||
leaId:0, |
leaId:0, |
||||
inviteRule:[], |
inviteRule:[], |
||||
tranAmt:'', |
tranAmt:'', |
||||
@ -124,6 +125,8 @@ |
|||||
} |
} |
||||
}, |
}, |
||||
onLoad() { |
onLoad() { |
||||
|
|
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
uni.request({ |
uni.request({ |
||||
url: '/start/api/user/inviteCode', |
url: '/start/api/user/inviteCode', |
||||
data: { |
data: { |
||||
@ -135,8 +138,7 @@ |
|||||
method: 'POST', //请求方式 或GET,必须为大写 |
method: 'POST', //请求方式 或GET,必须为大写 |
||||
success: (res) => { |
success: (res) => { |
||||
this.inviteRule=res.data.data |
this.inviteRule=res.data.data |
||||
this.copyText='http://www.ngnclub.vip/#/register?r_code='+this.inviteRule.inviteCode; |
this.copyText=this.inviteRule.qrcodeUrl; |
||||
// this.copyText=this.inviteRule.qrcodeUrl+this.inviteRule.inviteCode; |
|
||||
console.log(res.data,9999); |
console.log(res.data,9999); |
||||
}, |
}, |
||||
fail: (res) => { |
fail: (res) => { |
||||
@ -152,6 +154,11 @@ |
|||||
|
|
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
goInviteRule(){ |
||||
|
uni.navigateTo({ |
||||
|
url:'../rule/inviteRule/index' |
||||
|
}) |
||||
|
}, |
||||
applyAll(){ |
applyAll(){ |
||||
this.tranAmt=this.inviteRule.bonusCapital; |
this.tranAmt=this.inviteRule.bonusCapital; |
||||
}, |
}, |
||||
|
@ -7,8 +7,8 @@ |
|||||
</view> |
</view> |
||||
</navigation> |
</navigation> |
||||
<view class="rech-body"> |
<view class="rech-body"> |
||||
<view class="pro-body-p1">Balance:<span data-v-642729fd="" class="category-sigh">₦</span><span |
<view class="pro-body-p1">Balance:<span data-v-642729fd="" class="category-sigh">{{currencySymbol}}</span><span |
||||
class="s1">385853.5</span></view> |
class="s1">{{currentBalance}}</span></view> |
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
<view class="login-sigh login-sigh2 flex"> |
<view class="login-sigh login-sigh2 flex"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
@ -24,12 +24,12 @@ |
|||||
<input type="text" value="" placeholder="Name" |
<input type="text" value="" placeholder="Name" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;" /> |
placeholder-style="color: #BFC2CCFF;font-size:14px;" /> |
||||
</view> --> |
</view> --> |
||||
<view class="input-item flex"> |
<view class="input-item flex" v-show="pd==0"> |
||||
<view class="login-sigh flex"> |
<view class="login-sigh flex"> |
||||
<span class="quhao">+{{areacode}}</span> |
<span class="quhao">+{{areacode}}</span> |
||||
</view> |
</view> |
||||
<input type="text" value="" placeholder="mobile number" |
<input type="text" value="" placeholder="mobile number" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" disabled /> |
placeholder-style="color: #BFC2CCFF;font-size:14px;" v-model="mobile" /> |
||||
</view> |
</view> |
||||
<!-- <view class="input-item flex"> |
<!-- <view class="input-item flex"> |
||||
<input type="text" value="" placeholder="email" |
<input type="text" value="" placeholder="email" |
||||
@ -40,9 +40,9 @@ |
|||||
|
|
||||
</view> |
</view> |
||||
|
|
||||
<view class="rech-mount flex"> |
<view class="rech-mount flex" v-show="pd==0"> |
||||
<view class="mount" v-for="(item,index) in recharge_amount" :key="item" @click="getMonVal(item)"> |
<view class="mount" v-for="(item,index) in recharge_amount" :key="item" @click="getMonVal(item)"> |
||||
₦ {{item}} |
{{currencySymbol}} {{item}} |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
@ -51,23 +51,16 @@ |
|||||
payment |
payment |
||||
</view> |
</view> |
||||
<view class="paymentType"> |
<view class="paymentType"> |
||||
<view class="capy"> |
|
||||
|
|
||||
<image src="../../../static/login/[email protected]" mode=""></image> |
|
||||
CPAY |
|
||||
</view> |
|
||||
|
|
||||
|
|
||||
<u-radio-group v-model="payType" @change="radioGroupChange" class="payTypenName"> |
<u-radio-group v-model="payType" @change="radioGroupChange" class="payTypenName"> |
||||
<u-radio @change="radioChange" v-for="(item, index) in paymentType" :key="index" |
<u-radio @change="radioChange(item)" v-for="(item, index) in paymentType" :key="index" |
||||
:name="item.payType" :disabled="item.disabled" active-color="#954DE3FF"> |
:name="item.typeName" :disabled="item.disabled" active-color="#954DE3FF"> |
||||
{{item.payType}} |
{{item.typeName}} |
||||
</u-radio> |
</u-radio> |
||||
</u-radio-group> |
</u-radio-group> |
||||
|
|
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<view class="rech-btn-con"> |
<view class="rech-btn-con" v-show="pd==0"> |
||||
<view class="rech-btn" @click="PayTo()"> |
<view class="rech-btn" @click="PayTo()"> |
||||
Confirm |
Confirm |
||||
</view> |
</view> |
||||
@ -83,6 +76,7 @@ |
|||||
export default { |
export default { |
||||
data() { |
data() { |
||||
return { |
return { |
||||
|
pd:0, |
||||
mobile:'', |
mobile:'', |
||||
areacode: '', |
areacode: '', |
||||
tranAmt: '', |
tranAmt: '', |
||||
@ -90,13 +84,16 @@ |
|||||
recharge_amount: [], |
recharge_amount: [], |
||||
paymentType: [], |
paymentType: [], |
||||
payType: '', |
payType: '', |
||||
|
currencySymbol:'', |
||||
|
currentBalance:'' |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
this.mobile=uni.getStorageSync('loginMobile'); |
this.mobile=uni.getStorageSync('loginMobile'); |
||||
|
this.currentBalance=uni.getStorageSync('currentBalance'); |
||||
this.areacode = uni.getStorageSync('siteInfo').areaCode; |
this.areacode = uni.getStorageSync('siteInfo').areaCode; |
||||
|
this.currencySymbol=uni.getStorageSync('siteInfo').currencySymbol; |
||||
uni.request({ |
uni.request({ |
||||
url: '/start/api/recharge/rechargeConfig', |
url: '/start/api/recharge/rechargeConfig', |
||||
data: { |
data: { |
||||
@ -264,11 +261,17 @@ |
|||||
}); |
}); |
||||
}, |
}, |
||||
radioChange(e) { |
radioChange(e) { |
||||
|
if(e.payType=='pay.offline'){ |
||||
|
this.pd=1; |
||||
|
}else{ |
||||
|
this.pd=0; |
||||
|
} |
||||
|
console.log(e) |
||||
}, |
}, |
||||
// 选中任一radio时,由radio-group触发 |
// 选中任一radio时,由radio-group触发 |
||||
radioGroupChange(e) { |
radioGroupChange(e) { |
||||
// console.log(e); |
// console.log(e); |
||||
console.log(this.payType); |
|
||||
}, |
}, |
||||
getMonVal(m) { |
getMonVal(m) { |
||||
this.tranAmt = m |
this.tranAmt = m |
||||
|
@ -2,7 +2,7 @@ |
|||||
<view class="content"> |
<view class="content"> |
||||
<view class="ru-head"> |
<view class="ru-head"> |
||||
<view class="ru-imgcon"> |
<view class="ru-imgcon"> |
||||
<image src="../../../../static/home/[email protected]" mode=""></image> |
<image src="../../../../static/home/[email protected]" mode="" @click="back"></image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
|
|
||||
@ -63,7 +63,9 @@ |
|||||
}); |
}); |
||||
}, |
}, |
||||
methods: { |
methods: { |
||||
|
back(){ |
||||
|
uni.navigateBack() |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
</script> |
</script> |
||||
|
@ -1,36 +1,41 @@ |
|||||
<template> |
<template> |
||||
<view class="content"> |
<view class="content"> |
||||
<navigation> |
<navigation> |
||||
withdrawal |
withdrawal |
||||
<view class="bread" slot="bread"> |
<view class="bread" slot="bread"> |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit" @click="invMore=true,msShow=true"></image> |
<image src="../../../static/promo/[email protected]" mode="aspectFit" |
||||
</view> |
@click="invMore=true,msShow=true"></image> |
||||
</navigation> |
</view> |
||||
<view class="rech-body"> |
</navigation> |
||||
<view class="pro-body-p1">Balance:<span data-v-642729fd="" class="category-sigh">₦</span><span class="s1">{{withdrawConfig.currentBalance}}</span></view> |
<view class="rech-body"> |
||||
<view > |
<view class="pro-body-p1">Balance:<span data-v-642729fd="" |
||||
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm" confirm-color="#954DE3FF"> |
class="category-sigh">{{currentBalance}}</span><span class="s1"></span></view> |
||||
|
<view> |
||||
|
<u-modal v-model="show" width="80%" :show-title="false" confirm-text="Confirm" |
||||
|
confirm-color="#954DE3FF"> |
||||
<view class="" v-html="content" class="p_con"></view> |
<view class="" v-html="content" class="p_con"></view> |
||||
</u-modal> |
</u-modal> |
||||
</view> |
</view> |
||||
|
|
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
<view class="login-sigh login-sigh2 flex"> |
<view class="login-sigh login-sigh2 flex"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
<image src="../../../static/promo/[email protected]" mode="aspectFit"></image> |
<image src="../../../static/promo/[email protected]" mode="aspectFit"></image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<input value="" placeholder="enter withdrawal amount" placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt" @input="calulate"/> |
<input value="" placeholder="enter withdrawal amount" |
||||
</view> |
placeholder-style="color: #BFC2CCFF;font-size:14px;text-transform:capital" v-model="tranAmt" |
||||
<view class="p_con"> |
@input="calulate" /> |
||||
<view class="fee"> |
</view> |
||||
FEE:{{this.fee}}, TO ACCOUNT {{this.trueMoney}} |
<view class="p_con"> |
||||
</view> |
<view class="fee"> |
||||
<view class="minnum"> |
FEE:{{this.fee}}, TO ACCOUNT {{this.trueMoney}} |
||||
MINIMUM WITHDRAWAL AMOUNT: {{withdrawConfig.withdraw_min_amt}} |
</view> |
||||
</view> |
<view class="minnum"> |
||||
</view> |
MINIMUM WITHDRAWAL AMOUNT: {{withdrawConfig.withdraw_limit_min}} |
||||
<!-- <view class="rech-capy"> |
</view> |
||||
|
</view> |
||||
|
<!-- <view class="rech-capy"> |
||||
<view class="payment"> |
<view class="payment"> |
||||
payment |
payment |
||||
</view> |
</view> |
||||
@ -38,22 +43,20 @@ |
|||||
<image src="../../static/login/[email protected]" mode="" class="img1"></image> CPAY |
<image src="../../static/login/[email protected]" mode="" class="img1"></image> CPAY |
||||
</view> |
</view> |
||||
</view> --> |
</view> --> |
||||
<view class="rech-input-con"> |
<view class="rech-input-con"> |
||||
<!-- <view class="input-item flex"> |
<!-- <view class="input-item flex"> |
||||
<input type="text" value="" placeholder="IFSC Code" placeholder-style="color: #BFC2CCFF;font-size:14px;"/> |
<input type="text" value="" placeholder="IFSC Code" placeholder-style="color: #BFC2CCFF;font-size:14px;"/> |
||||
</view> --> |
</view> --> |
||||
<view class="input-item flex"> |
<view class="input-item flex"> |
||||
<view class="login-sigh login-sigh2 flex"> |
<view class="login-sigh login-sigh2 flex"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
<image src="../../../static/login/[email protected]" mode=""></image> |
<image src="../../../static/login/[email protected]" mode=""></image> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
<input type="text" value="" placeholder="mobile phone" v-model="mobile" disabled |
<input type="text" value="" placeholder="mobile phone" v-model="mobile" disabled |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;" |
placeholder-style="color: #BFC2CCFF;font-size:14px;" /> |
||||
|
</view> |
||||
/> |
<!-- <view class="input-item flex"> |
||||
</view> |
|
||||
<!-- <view class="input-item flex"> |
|
||||
<view class="login-sigh login-sigh2 flex"> |
<view class="login-sigh login-sigh2 flex"> |
||||
<view class="imgcon"> |
<view class="imgcon"> |
||||
<image src="../../static/login/[email protected]" mode=""></image> |
<image src="../../static/login/[email protected]" mode=""></image> |
||||
@ -62,41 +65,41 @@ |
|||||
<input type="password" value="" placeholder="Enter Your Login Password" v-mode="password" |
<input type="password" value="" placeholder="Enter Your Login Password" v-mode="password" |
||||
placeholder-style="color: #BFC2CCFF;font-size:14px;" @focus="btncol=1" @blur="btncol=2" /> |
placeholder-style="color: #BFC2CCFF;font-size:14px;" @focus="btncol=1" @blur="btncol=2" /> |
||||
</view> --> |
</view> --> |
||||
</view> |
</view> |
||||
|
|
||||
|
|
||||
</view> |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
<view class="rech-btn-con"> |
</view> |
||||
<view class="rech-btn" @click="widthDrawl" :class="btncol==1?'active':''"> |
|
||||
Withdrawal |
|
||||
</view> |
|
||||
</view> |
|
||||
|
<view class="rech-btn-con"> |
||||
|
<view class="rech-btn" @click="widthDrawl" :class="btncol==1?'active':''"> |
||||
<view class="invite-more" v-show="invMore"> |
Withdrawal |
||||
<view class="invite-con"> |
|
||||
<view class="more-a" @click="goBouns"> |
|
||||
transactions record |
|
||||
</view> |
</view> |
||||
<view class="more-a" @click="goProRe"> |
</view> |
||||
withdrawl record |
|
||||
|
|
||||
|
<view class="invite-more" v-show="invMore"> |
||||
|
<view class="invite-con"> |
||||
|
<view class="more-a" @click="goBouns"> |
||||
|
transactions record |
||||
|
</view> |
||||
|
<view class="more-a" @click="goProRe"> |
||||
|
withdrawl record |
||||
|
</view> |
||||
|
<view class="more-a" @click="gow"> |
||||
|
withdrawl |
||||
|
</view> |
||||
</view> |
</view> |
||||
<view class="more-a" @click="gow"> |
<view class="invite-con2"> |
||||
withdrawl |
<view class="more-a" @click="invMore=false,msShow=false"> |
||||
|
cancel |
||||
|
</view> |
||||
</view> |
</view> |
||||
</view> |
|
||||
<view class="invite-con2"> |
|
||||
<view class="more-a" @click="invMore=false,msShow=false"> |
|
||||
cancel |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
</view> |
||||
<view class="msg-box-bg" v-show="invMore"> |
<view class="msg-box-bg" v-show="invMore"> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
@ -105,24 +108,27 @@ |
|||||
import utils from '@/utils' |
import utils from '@/utils' |
||||
import cont from "@/components/navigation/navigation.vue" |
import cont from "@/components/navigation/navigation.vue" |
||||
import md5 from 'js-md5' |
import md5 from 'js-md5' |
||||
export default{ |
export default { |
||||
data(){ |
data() { |
||||
return{ |
return { |
||||
withdrawConfig:[], |
currentBalance: '', |
||||
show: false, |
currencySymbol: '', |
||||
content: '', |
withdrawConfig: [], |
||||
password:'', |
show: false, |
||||
tranAmt:'', |
content: '', |
||||
mobile:'', |
password: '', |
||||
fee:'', |
tranAmt: '', |
||||
trueMoney:'', |
mobile: '', |
||||
btncol:0, |
fee: '', |
||||
invMore:false, |
trueMoney: '', |
||||
} |
btncol: 0, |
||||
}, |
invMore: false, |
||||
|
} |
||||
|
}, |
||||
|
|
||||
onLoad() { |
onLoad() { |
||||
this.mobile=uni.getStorageSync('loginMobile'); |
this.currentBalance = uni.getStorageSync('currentBalance'); |
||||
|
this.mobile = uni.getStorageSync('loginMobile'); |
||||
uni.request({ |
uni.request({ |
||||
url: '/start/api/withdraw/withdrawConfig', |
url: '/start/api/withdraw/withdrawConfig', |
||||
data: { |
data: { |
||||
@ -132,171 +138,182 @@ |
|||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
||||
}, |
}, |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
method: 'POST', //请求方式 或GET,必须为大写 |
||||
success: (res) => { |
success: (res) => { |
||||
this.withdrawConfig=res.data.data; |
this.withdrawConfig = res.data.data; |
||||
this.content=this.withdrawConfig.tips; |
this.content = this.withdrawConfig.tips; |
||||
console.log(res.data,8880); |
console.log(res.data, 8880); |
||||
console.log(this.withdrawConfig,9990); |
console.log(this.withdrawConfig, 9990); |
||||
this.show=true; |
this.show = true; |
||||
}, |
}, |
||||
fail: (res) => { |
fail: (res) => { |
||||
console.log(res.data); |
console.log(res.data); |
||||
} |
} |
||||
}); |
}); |
||||
|
|
||||
|
|
||||
}, |
}, |
||||
methods:{ |
methods: { |
||||
gow(){ |
gow() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
url:'../index' |
url: '../index' |
||||
}) |
}) |
||||
}, |
}, |
||||
goBouns(){ |
goBouns() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
url:'./transactions/index' |
url: './transactions/index' |
||||
}) |
}) |
||||
}, |
}, |
||||
goProRe(){ |
goProRe() { |
||||
uni.reLaunch({ |
uni.reLaunch({ |
||||
url:'./withdrawlRecord/index' |
url: './withdrawlRecord/index' |
||||
}) |
}) |
||||
}, |
}, |
||||
calulate(){ |
calulate() { |
||||
this.fee=this.tranAmt*0.1; |
this.fee = this.tranAmt * 0.1; |
||||
this.trueMoney=this.tranAmt-this.fee; |
this.trueMoney = this.tranAmt - this.fee; |
||||
this.btncol=1; |
this.btncol = 1; |
||||
if(this.tranAmt==''){ |
if (this.tranAmt == '') { |
||||
this.btncol=0; |
this.btncol = 0; |
||||
} |
} |
||||
}, |
}, |
||||
open(){ |
open() { |
||||
this.show=true; |
this.show = true; |
||||
}, |
}, |
||||
widthDrawl(){ |
widthDrawl() { |
||||
if(this.mobile==''){ |
// if(this.mobile==''){ |
||||
uni.showToast({ |
// uni.showToast({ |
||||
title: 'Please input mobile phone number', |
// title: 'Please input mobile phone number', |
||||
icon: 'none', |
// icon: 'none', |
||||
duration: 1500 |
// duration: 1500 |
||||
}) |
// }) |
||||
return; |
// return; |
||||
} |
// } |
||||
var a= /^[0-9]{4,14}$/; |
// var a= /^[0-9]{4,14}$/; |
||||
if(!a.test(this.mobile)){ |
// if(!a.test(this.mobile)){ |
||||
uni.showToast({ |
// uni.showToast({ |
||||
title: 'Wrong format of mobile phone number', |
// title: 'Wrong format of mobile phone number', |
||||
icon: 'none', |
// icon: 'none', |
||||
duration: 1500 |
// duration: 1500 |
||||
}) |
// }) |
||||
return; |
// return; |
||||
} |
// } |
||||
// if (this.password == '') { |
// if (this.password == '') { |
||||
// uni.showToast({ |
// uni.showToast({ |
||||
// title: 'password is empty', |
// title: 'password is empty', |
||||
// icon: 'none', |
// icon: 'none', |
||||
// duration: 1500 |
// duration: 1500 |
||||
// }) |
// }) |
||||
// return; |
// return; |
||||
// } |
// } |
||||
// var a= /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,19}$/; |
// var a= /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,19}$/; |
||||
// if(!a.test(this.password)){ |
// if(!a.test(this.password)){ |
||||
// uni.showToast({ |
// uni.showToast({ |
||||
// title: 'Incorrect password format,a password requires a combination of numbers and letters', |
// title: 'Incorrect password format,a password requires a combination of numbers and letters', |
||||
// icon: 'none', |
// icon: 'none', |
||||
// duration: 1500 |
// duration: 1500 |
||||
// }) |
// }) |
||||
// return; |
// return; |
||||
// } |
// } |
||||
|
|
||||
// if(this.tranAmt<withdrawConfig.withdraw_min_amt){ |
// if(this.tranAmt<withdrawConfig.withdraw_min_amt){ |
||||
// uni.showToast({ |
// uni.showToast({ |
||||
// title: 'The withdrawal amount cannot be less than the minimum withdrawal amount', |
// title: 'The withdrawal amount cannot be less than the minimum withdrawal amount', |
||||
// icon: 'none', |
// icon: 'none', |
||||
// duration: 1500 |
// duration: 1500 |
||||
// }) |
// }) |
||||
// return; |
// return; |
||||
// } |
// } |
||||
|
|
||||
// if(this.tranAmt<withdrawConfig.withdraw_max_amt){ |
// if(this.tranAmt<withdrawConfig.withdraw_max_amt){ |
||||
// uni.showToast({ |
// uni.showToast({ |
||||
// title: 'The withdrawal amount cannot be greater than the maximum withdrawal amount', |
// title: 'The withdrawal amount cannot be greater than the maximum withdrawal amount', |
||||
// icon: 'none', |
// icon: 'none', |
||||
// duration: 1500 |
// duration: 1500 |
||||
// }) |
// }) |
||||
// return; |
// return; |
||||
// } |
// } |
||||
|
uni.showLoading({ |
||||
|
title: 'loading' |
||||
|
}); |
||||
|
if (this.tranAmt == null) { |
||||
|
uni.showToast({ |
||||
uni.request({ |
title: 'Please enter the withdrawal amount', |
||||
url: '/start/api/withdraw/withdraw', |
icon: 'none', |
||||
data: { |
duration: 1500 |
||||
"ticket": uni.getStorageSync('logInfo').data, |
}) |
||||
// 'password': md5(this.password), |
return; |
||||
"tranAmt":this.tranAmt, |
} |
||||
}, |
|
||||
header: { |
|
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
|
||||
}, |
uni.request({ |
||||
method: 'POST', //请求方式 或GET,必须为大写 |
url: '/start/api/withdraw/withdraw', |
||||
success: (res) => { |
data: { |
||||
if(res.data.success==true){ |
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
// 'password': md5(this.password), |
||||
|
"tranAmt": this.tranAmt, |
||||
|
}, |
||||
|
header: { |
||||
|
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
||||
|
}, |
||||
|
method: 'POST', //请求方式 或GET,必须为大写 |
||||
|
success: (res) => { |
||||
|
|
||||
|
if (res.data.success == true) { |
||||
|
uni.showToast({ |
||||
|
title: res.data.errMsg, |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
uni.request({ |
||||
|
url: '/start/api/withdraw/withdrawServiceCharge', |
||||
|
data: { |
||||
|
"ticket": uni.getStorageSync('logInfo').data, |
||||
|
// 'password': md5(this.password), |
||||
|
"tranAmt": this.tranAmt, |
||||
|
"ticket": uni.getStorageSync('MyInfo').data, |
||||
|
}, |
||||
|
header: { |
||||
|
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
||||
|
}, |
||||
|
method: 'POST', //请求方式 或GET,必须为大写 |
||||
|
success: (res) => { |
||||
|
|
||||
|
console.log(res.data, '45464654646446'); |
||||
|
}, |
||||
|
fail: (res) => { |
||||
|
uni.showToast({ |
||||
|
title: res.data.errMsg, |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
uni.showToast({ |
||||
|
title: 'Withdrawal failed', |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
} |
||||
|
console.log(res.data); |
||||
|
}, |
||||
|
fail: (res) => { |
||||
|
|
||||
uni.showToast({ |
uni.showToast({ |
||||
title: res.data.errMsg, |
title: res.data.errMsg, |
||||
icon: 'none', |
icon: 'none', |
||||
duration: 1500 |
|
||||
}) |
|
||||
uni.request({ |
|
||||
url: '/start/api/withdraw/withdrawServiceCharge', |
|
||||
data: { |
|
||||
"ticket": uni.getStorageSync('logInfo').data, |
|
||||
// 'password': md5(this.password), |
|
||||
"tranAmt":this.tranAmt, |
|
||||
"ticket":uni.getStorageSync('MyInfo').data, |
|
||||
}, |
|
||||
header: { |
|
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息 |
|
||||
}, |
|
||||
method: 'POST', //请求方式 或GET,必须为大写 |
|
||||
success: (res) => { |
|
||||
|
|
||||
console.log(res.data,'45464654646446'); |
|
||||
}, |
|
||||
fail: (res) => { |
|
||||
uni.showToast({ |
|
||||
title: res.data.errMsg, |
|
||||
icon: 'none', |
|
||||
duration: 1500 |
|
||||
}) |
|
||||
} |
|
||||
}); |
|
||||
}else{ |
|
||||
uni.showToast({ |
|
||||
title: 'Withdrawal failed', |
|
||||
icon: 'none', |
|
||||
duration: 1500 |
duration: 1500 |
||||
}) |
}) |
||||
} |
} |
||||
console.log(res.data); |
}); |
||||
}, |
} |
||||
fail: (res) => { |
|
||||
uni.showToast({ |
|
||||
title: res.data.errMsg, |
|
||||
icon: 'none', |
|
||||
duration: 1500 |
|
||||
}) |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
}, |
}, |
||||
|
|
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style> |
<style> |
||||
@import './index.css'; |
@import './index.css'; |
||||
</style> |
</style> |
||||
|
Loading…
Reference in new issue