feat: 现金加释放
This commit is contained in:
@@ -20,6 +20,23 @@
|
||||
<view class="mid-view">
|
||||
<text class="text-gray text-32">{{ type == 0 ? '提现' : '充值' }}方式</text>
|
||||
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="item-view" @click="onSelect('0')" style="border-bottom: 0;">
|
||||
<image src="https://static.tbmall.xin/static/new/wx.png"></image>
|
||||
<text class="text-gray text-32 " style="margin-left:20rpx;">微信</text>
|
||||
<view class="right-icon-view" v-if="type == 1">
|
||||
<u-radio-group v-model="curSelect">
|
||||
<u-radio name="0" activeColor="#7934F6"></u-radio>
|
||||
</u-radio-group>
|
||||
</view>
|
||||
<view class="right-icon-view" v-else>
|
||||
<text class="text-32 text-gray" style="margin-right:12rpx"
|
||||
v-if="selectVal && curSelect == '0'">{{ selectVal.name + '/' + selectVal.account }}</text>
|
||||
<u-icon size="14" name="arrow-right" color="#333"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="item-view" @click="onSelect('0')" v-if="!isWeb || type != 0">
|
||||
<image src="https://static.tbmall.xin/static/new/wx.png"></image>
|
||||
<text class="text-gray text-32 " style="margin-left:20rpx;">微信</text>
|
||||
@@ -48,6 +65,7 @@
|
||||
<u-icon size="14" name="arrow-right" color="#333"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
<view class="mid-view">
|
||||
<view class="flex-r-lr">
|
||||
@@ -57,20 +75,118 @@
|
||||
|
||||
<view class="input-view">
|
||||
<text class="text-52 text-zu text-bold">¥</text>
|
||||
<input style="background: #fff;margin-top:10rpx;"
|
||||
<input style="background: #fff;margin-top:10rpx;width: 400rpx;"
|
||||
:placeholder="type == 0 ? '请输入提现金额(0.3-2000)' : '输入充值金额'"
|
||||
placeholder-style="color:#999;font-weight:400" @input="onInput" border="0" v-model="money"
|
||||
:customStyle="inputCss"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zhu-view" v-if="selectVal">
|
||||
<u-icon size="12" style="margin-top:5rpx;margin-right:12rpx" name="error-circle"
|
||||
color="#7934F6"></u-icon>
|
||||
<text class="text-24 text-zi"
|
||||
style="font-weight: 400;">通过支付宝或微信提现时,将由支付宝/微信官方收取0.6%的费用,本平台不收取任何费用。</text>
|
||||
|
||||
|
||||
<view class="mid-view">
|
||||
<view class="flex-r-lr" style="border-bottom: 2rpx solid #F6F6F6; padding-bottom: 20rpx;">
|
||||
<text class="text-gray text-32 text-bold">提现说明</text>
|
||||
</view>
|
||||
<view class="instructions-container">
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>一、可提现额度说明</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<view class="sub-item">1. 单笔提现最低限额为<text class="text-highlight">0.3元</text>,单笔最高限额为<text
|
||||
class="text-highlight">200元</text>;</view>
|
||||
<view class="sub-item">2. 单个账户单日累计提现最高限额为<text class="text-highlight">2000元</text>。</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>二、提现次数限制</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<text>每个自然日,单个用户账户最多可发起<text class="text-highlight">10次</text>提现申请;</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>三、提现受理与处理时间</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<text>本平台提现功能支持<text class="text-highlight">7×24小时</text>全天候提交申请,无工作日 /
|
||||
节假日限制,提交时间以系统记录为准。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>四、到账时间说明</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<text>1. 提现申请提交后,资金将在<text
|
||||
class="text-highlight">3~5天</text>内直接划转至您绑定的账户;(正常情况下资金实时到账,您理解并同意如遇支付渠道维护、网络延迟或系统异常,到账时间可能顺延)</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>五、提现渠道说明</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<text>仅支持提现至绑定的零钱账户,暂不支持提现至银行卡或其他账户。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>六、提现手续费说明</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<text>本平台每笔提现将按提现金额的<text class="text-highlight">0.6%</text>收取手续费,手续费直接从提现金额中扣除,实际到账金额 =
|
||||
申请提现金额 - 提现手续费。</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>七、提现失败说明</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<view class="sub-item" style="margin-bottom: 8rpx; color: #333; font-weight: 500;">
|
||||
出现以下情形时,提现将失败,资金将原路退回至您的账户余额:</view>
|
||||
<view class="sub-item">1. 绑定的收款账户信息有误、账户已注销或处于异常状态;</view>
|
||||
<view class="sub-item">2. 提现金额未达到最低限额,或超出当日 / 当月累计提现额度;</view>
|
||||
<view class="sub-item">3. 账户未完成实名认证,或存在异常交易、违规操作被系统限制提现。</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="instruction-item">
|
||||
<view class="instruction-title">
|
||||
<view class="title-dot"></view>
|
||||
<text>八、其他注意事项</text>
|
||||
</view>
|
||||
<view class="instruction-content">
|
||||
<view class="sub-item">1. 发起提现前请确保账户已完成实名认证,未实名账户无法发起提现;</view>
|
||||
<view class="sub-item">2. 请绑定本人实名的微信零钱 / 银行卡账户,否则可能导致提现失败或资金风险;</view>
|
||||
<view class="sub-item">3. 如有疑问,可通过小程序内「联系客服」入口咨询在线客服。</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="zhu-view" v-if="selectVal">
|
||||
<u-icon size="12" style="margin-top:5rpx;margin-right:12rpx" name="error-circle"
|
||||
color="#7934F6"></u-icon>
|
||||
<text class="text-24 text-zi" style="font-weight: 400;">通过支付宝或微信提现时,将由微信官方收取0.6%的费用,本平台不收取任何费用。</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom-btn">
|
||||
<MyBtn :text="bottomText" @ok="onAdd"></MyBtn>
|
||||
@@ -120,6 +236,7 @@ export default {
|
||||
"border-radius": "30rpx",
|
||||
"border": "0rpx",
|
||||
"padding-left": "12rpx",
|
||||
"width": "320rpx"
|
||||
},
|
||||
dataList: [
|
||||
|
||||
@@ -275,23 +392,6 @@ export default {
|
||||
category: 'balance',
|
||||
payway: this.curSelect == '0' ? 'wechat' : 'alipay'
|
||||
}
|
||||
if (params.payway == "wechat") {
|
||||
// #ifdef MP-WEIXIN
|
||||
params["payway"] = "wechatMiniProgram";
|
||||
params["code"] = await new Promise((resolve) => {
|
||||
uni.login({
|
||||
provider: "weixin",
|
||||
onlyAuthorize: true,
|
||||
success: function (loginRes) {
|
||||
resolve(loginRes.code);
|
||||
},
|
||||
fail: (err) => {
|
||||
resolve(""); // 登录失败时返回空字符串,避免后续流程中断
|
||||
},
|
||||
});
|
||||
});
|
||||
// #endif
|
||||
}
|
||||
recharge(params).then(result => {
|
||||
if (result && result.bizcode === 100) {
|
||||
const item = result.data;
|
||||
@@ -365,9 +465,8 @@ export default {
|
||||
|
||||
} else {
|
||||
console.log('开始提现', res, this.curSelect)
|
||||
// #ifdef APP-PLUS
|
||||
requestMerchantTransfer({
|
||||
// uni.requestMerchantTransfer({
|
||||
// #ifdef MP-WEIXIN
|
||||
wx.requestMerchantTransfer({
|
||||
"mchId": "1725999656",
|
||||
"appId": "wx7a5902cd556d9396",
|
||||
"package": res.data.wxResponse.packageInfo,
|
||||
@@ -477,7 +576,6 @@ export default {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
@@ -519,6 +617,57 @@ export default {
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
.instructions-container {
|
||||
margin-top: 16rpx;
|
||||
padding-bottom: 32rpx;
|
||||
|
||||
.instruction-item {
|
||||
margin-top: 28rpx;
|
||||
|
||||
.instruction-title {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.title-dot {
|
||||
width: 6rpx;
|
||||
height: 24rpx;
|
||||
background: linear-gradient(180deg, #B164FB 0%, #7934F6 100%);
|
||||
border-radius: 4rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
|
||||
text {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
.instruction-content {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
line-height: 1.6;
|
||||
padding-left: 18rpx;
|
||||
|
||||
.text-highlight {
|
||||
color: #7934F6;
|
||||
font-weight: bold;
|
||||
margin: 0 4rpx;
|
||||
}
|
||||
|
||||
.sub-item {
|
||||
margin-bottom: 8rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user