Commit 8493ce83 by 梁建民

提现

parent 4d36a40d
...@@ -193,34 +193,6 @@ Page({ ...@@ -193,34 +193,6 @@ Page({
} }
}, },
/** /**
* 提现
*/
withdrawalfn: function () {
let exchange_id = this.data.weixin_exchange_info.exchange_id;
let money = 10;
if (exchange_id) {
http.getData(apis.userExchangesConfirm, 'GET', {
exchange_id: exchange_id
}, (res) => {
if (res.errcode === 0) {
wx.navigateTo({
url: '/pages/person/withdrawalsuccess/index?money=' + money
});
} else {
wx.showToast({
title: res.errmsg,
icon: 'none',
duration: 2000
});
}
}, true, false, true);
}
},
/**
* 关闭提示 * 关闭提示
*/ */
closeTip: function () { closeTip: function () {
......
...@@ -64,9 +64,7 @@ ...@@ -64,9 +64,7 @@
</block> </block>
</view> </view>
<block wx:if="{{weixin_exchange_info.assist_count == 2}}"> <block wx:if="{{weixin_exchange_info.assist_count == 2}}">
<button class="btn {{can_exchange == -1 || can_exchange == 0 ? 'opacity':''}}" bind:tap="withdrawalfn" data-status='yes'> <button class="btn">等待到账</button>
申请微信提现
</button>
</block> </block>
<block wx:else> <block wx:else>
<block wx:if="{{weixin_exchange_info.exchanging == 0}}"> <block wx:if="{{weixin_exchange_info.exchanging == 0}}">
...@@ -78,7 +76,9 @@ ...@@ -78,7 +76,9 @@
<button class="btns" open-type="share">分享给好友助力,可提现</button> <button class="btns" open-type="share">分享给好友助力,可提现</button>
</block> </block>
</block> </block>
<text class="fr-txt">好友助力,已完成({{weixin_exchange_info.assist_count}}/2)</text> <block wx:if="{{weixin_exchange_info.exchanging != 0}}">
<text class="fr-txt">好友助力,已完成({{weixin_exchange_info.assist_count}}/2)</text>
</block>
</view> </view>
</block> </block>
<view class="txt column"> <view class="txt column">
......
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 sign in to comment