前端-胡立永 1 week ago
parent
commit
8cd067c5f6
3 changed files with 45 additions and 9 deletions
  1. +39
    -4
      pages_order/mine/purse.vue
  2. +4
    -3
      pages_order/mine/runningWater.vue
  3. +2
    -2
      pages_order/order/createOrder.vue

+ 39
- 4
pages_order/mine/purse.vue View File

@ -17,7 +17,27 @@
placeholder="请输入提现积分"
v-model="withdrawAmount"
type="digit"
@input="onAmountInput"
/>
</view>
<view class="from-line">
<input
placeholder="请输入姓名"
v-model="form.name"
type="digit"
/>
</view>
<view class="from-line">
<input
placeholder="请输入开户行"
v-model="form.openingBank"
type="digit"
/>
</view>
<view class="from-line">
<input
placeholder="请输入银行卡号"
v-model="form.cardNumber"
type="digit"
/>
</view>
<view class="tips" v-if="userInfo.money">
@ -25,7 +45,7 @@
</view>
<!-- 快捷积分选择 -->
<view class="quick-amounts" v-if="userInfo.money && parseFloat(userInfo.money) > 0">
<!-- <view class="quick-amounts" v-if="userInfo.money && parseFloat(userInfo.money) > 0">
<view class="quick-label">快捷选择</view>
<view class="amount-buttons">
<view
@ -44,7 +64,7 @@
全部
</view>
</view>
</view>
</view> -->
<!-- <view class="from-line">
<input placeholder="请输入姓名" />
</view>
@ -91,6 +111,7 @@
withdrawAmount: '', //
isSubmitting: false, //
quickAmounts: [10, 50, 100, 200, 500], //
form : {},
}
},
computed: {
@ -100,6 +121,10 @@
},
onLoad() {
this.$store.commit('getUserInfo');
let form = uni.getStorageSync('purse_form')
if(form){
this.form = form
}
},
methods: {
//
@ -141,6 +166,13 @@
});
return false;
}
if(this.$utils.verificationAll(this.form, {
name : '请输入姓名',//
openingBank : '请输入开户行',//
cardNumber : '请输入银行卡号',//
})){
return
}
const amount = parseFloat(this.withdrawAmount);
if (isNaN(amount) || amount <= 0) {
@ -179,6 +211,8 @@
//
if (!this.validateAmount()) return;
uni.setStorageSync('purse_form', this.form)
//
uni.showModal({
title: '确认提现',
@ -196,7 +230,8 @@
this.isSubmitting = true;
const params = {
money: parseFloat(this.withdrawAmount)
money: parseFloat(this.withdrawAmount),
...this.form,
};
this.$api('openMoney', params, res => {


+ 4
- 3
pages_order/mine/runningWater.vue View File

@ -19,7 +19,8 @@
<view class="card-divider"></view>
<view class="card-section">
<view class="amount-title">累计提现</view>
<view class="amount-value">¥ {{ info.lj_price }}</view>
<view class="amount-value">¥ {{ userInfo.price || 0 }}</view>
<!-- <view class="amount-value">¥ {{ info.lj_price }}</view> -->
</view>
</view>
</view>
@ -57,7 +58,7 @@
<view class="price">
{{ x[item.type] + (item.money) }}
</view>
<view class="uni-color-btn"
<!-- <view class="uni-color-btn"
@click="requestMerchantTransfer(item)"
v-if="item.type == 2 && item.status == 1"
>
@ -66,7 +67,7 @@
<view class="status"
v-else-if="item.state_dictText">
{{ item.state_dictText }}<text v-if="item.money">到账 {{ item.money }}</text>
</view>
</view> -->
</view>
</template>


+ 2
- 2
pages_order/order/createOrder.vue View File

@ -116,8 +116,8 @@
<view class="cell-item-left">
<image src="@/pages_order/static/createOrder/account.png" mode="widthFix" class="cell-icon">
</image>
<view class="user-name">账户余额</view>
<view class="descript">(余额: {{ userInfo.money }})</view>
<view class="user-name">账户积分</view>
<view class="descript">(积分: {{ userInfo.money }})</view>
</view>
<view class="cell-item-right">
<uv-radio activeColor="#E3441A"


Loading…
Cancel
Save