main
fanfan 7 months ago
parent 00d03e5725
commit 122bf7c837
  1. 15
      pages/dealer/withdraw/apply.vue
  2. 2
      pages/news/recycling/confirm.vue
  3. 31
      pages/news/user/withdrawal.vue
  4. 14
      pages/order/detail.vue
  5. 6
      pages/order/index.vue

@ -21,7 +21,7 @@
<view class="item__left">{{ words.money.value }}</view>
<view class="item__right flex-box">
<input class="input" v-model="inputValue" type="digit" name="money"
@input="wordsAmount" :placeholder="words.money_placeholder.value" />
@blur="wordsAmount" :placeholder="words.money_placeholder.value" />
</view>
</view>
</view>
@ -150,6 +150,7 @@
methods: {
wordsAmount(e) {
let that=this
let amount = e.detail.value
let num = null
num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1')
@ -168,19 +169,19 @@
.replace(/\./g, "")
.replace("$#$", ".")
}
if (num > Number(this.settlement.min_money)) {
if (num > Number(that.settlement.min_money)) {
uni.showToast({
title: this.settlement.min_money > 0 ? `最多可用${Number(this.settlement.min_money)}元, 请重新输入` :
title: that.settlement.min_money > 0 ? `最多可用${Number(that.settlement.min_money)}元, 请重新输入` :
'暂无可提现金额',
icon: 'none',
duration: 2000
})
this.inputValue = ''
this.$forceUpdate();
that.inputValue = ''
that.$forceUpdate();
} else {
if (!num) { // value,amount0,
this.inputValue = ''
this.$forceUpdate();
that.inputValue = ''
that.$forceUpdate();
}
}
},

@ -56,7 +56,7 @@
<view class="item">
<view class="a">服务时间</view>
<view class="b" @click="openPage(1)">
<view class="select" :class="server_time?'select-on':''">{{server_time?server_time:(type == 2?'请选择预约上门时间':'请选择预约到店时间')}}
<view class="select" :class="server_time?'select-on':''">{{server_time?server_time:(type == 1?'请选择预约上门时间':'请选择预约到店时间')}}
</view>
<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon>
</view>

@ -13,7 +13,7 @@
<view class="a">
<view class="l">提现金</view>
<view class="r">
<view class="p"><input type="digit" @input="onCheck" v-model="obj.money" placeholder="请输入金额" />
<view class="p"><input type="digit" @blur="onCheck" v-model="obj.money" placeholder="请输入金额" />
</view>
<view class="w" @click="allMoeny" style="color:#FF3126 ;width: 140rpx;text-align: right;">全部提现
</view>
@ -288,6 +288,7 @@
})
},
onCheck(e) {
let that = this
let amount = e.detail.value
let num = null
num = amount.replace(new RegExp('^(\\d+\\.\\d{2}).+'), '$1')
@ -306,26 +307,36 @@
.replace(/\./g, "")
.replace("$#$", ".")
}
if (num > Number(this.balance)) {
if (num > Number(that.balance)) {
uni.showToast({
title: this.balance > 0 ? `最多可用${Number(this.balance)}元, 请重新输入` : '暂无可提现金额',
title: that.balance > 0 ? `最多可用${Number(that.balance)}元, 请重新输入` : '暂无可提现金额',
icon: 'none',
duration: 2000
})
this.obj.money = this.balance > 0 ? this.balance : ''
this.$forceUpdate();
that.obj.money = ''
that.$set(that.obj, 'money', '')
} else {
if (!num) {
this.obj.money = ''
this.$forceUpdate();
that.obj.money = ''
that.$set(that.obj, 'money', '')
} else {
this.obj.money = num
this.$forceUpdate();
that.$set(that.obj, 'money', num)
that.obj.money = num
}
}
},
allMoeny() { //
this.obj.money = this.balance
if (this.balance > 0) {
this.obj.money = this.balance
} else {
uni.showToast({
title: '暂无可提现金额',
icon: 'none',
duration: 2000
})
}
},
tabItem(i) {
this.obj.source = i;

@ -145,10 +145,10 @@
{{ order.total_num }}件商品实付款<text>{{ order.pay_price?Number(order.pay_price):order.pay_price }}</text>
</view>
<view class="line"
v-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
v-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&order.order_status == OrderStatusEnum.NORMAL.value">
</view>
<view class="cancel" @click="onCancel(order.order_id)"
v-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
v-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&order.order_status == OrderStatusEnum.NORMAL.value">
取消订单
</view>
</view>
@ -266,15 +266,15 @@
<view v-if="menushow" class="menuarea">
<view class="menulist">
<view class="" @click="onInvoicing(order.order_id,order)"
v-if="order.order_status == OrderStatusEnum.COMPLETED.value">
v-if="order.order_status == OrderStatusEnum.COMPLETED.value&&item.pay_status == PayStatusEnum.SUCCESS.value">
申请开票
</view>
<view class="" @click="onDelete(order.order_id)"
v-if="order.order_status == OrderStatusEnum.COMPLETED.value">
v-if="order.order_status == OrderStatusEnum.COMPLETED.value&&item.pay_status == PayStatusEnum.SUCCESS.value">
删除订单
</view>
<view class=""
v-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value"
v-if="order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&order.order_status == OrderStatusEnum.NORMAL.value"
@click="onCancel(order.order_id)">
取消订单
</view>
@ -283,7 +283,7 @@
</view>
<view class="footer">
<view class="meetPrice" @click="changeMenu"
v-if="order.order_status == OrderStatusEnum.COMPLETED.value || (order.pay_status == PayStatusEnum.PENDING.value&&order.order_status == OrderStatusEnum.NORMAL.value)">
v-if="(order.order_status == OrderStatusEnum.COMPLETED.value&&item.pay_status == PayStatusEnum.SUCCESS.value) || (order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&order.order_status == OrderStatusEnum.NORMAL.value)">
更多
</view>
<view v-else style="color: #fff;">-</view>
@ -313,7 +313,7 @@
确认收货
</view>
<view class="buyAgain" @click="onCdDia(order.order_id)"
v-if="order.delivery_type == DeliveryTypeEnum.EXPRESS.value&&order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value">
v-if="order.delivery_type == DeliveryTypeEnum.EXPRESS.value&&order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&order.order_status == OrderStatusEnum.NORMAL.value">
催发货
</view>
<!-- <view class="buyAgain" @click="onCancel(order.order_id)"

@ -63,7 +63,7 @@
v-if="item.order_status == OrderStatusEnum.COMPLETED.value && item.pay_status == PayStatusEnum.SUCCESS.value">
删除订单
</view>
<view class="" v-if="item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value"
<view class="" v-if="item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&item.order_status == OrderStatusEnum.NORMAL.value"
@click="onCancel(item.order_id)">
取消订单
</view>
@ -72,7 +72,7 @@
</view>
<view class="btn">
<view class="a" @click="changeMenu(index)"
v-if="(item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value)||(item.order_status == OrderStatusEnum.COMPLETED.value)|| (item.pay_status == PayStatusEnum.PENDING.value&&item.order_status == OrderStatusEnum.NORMAL.value)">
v-if="(item.order_status == OrderStatusEnum.COMPLETED.value && item.pay_status == PayStatusEnum.SUCCESS.value)|| (item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&item.order_status == OrderStatusEnum.NORMAL.value)">
更多</view>
<view class="b">
<view class="n" v-if="item.jd_link" @click="onCopyLink(item.jd_link)">复制链接</view>
@ -94,7 +94,7 @@
v-if="(item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == ReceiptStatusEnum.NOT_RECEIVED.value)||item.order_status == OrderStatusEnum.CANCELLED.value"
@click="handleTargetGoods(item.goods[0].goods_id)">再次购买</view>
<view class="n"
v-if="item.delivery_type == DeliveryTypeEnum.EXPRESS.value&&item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value"
v-if="item.delivery_type == DeliveryTypeEnum.EXPRESS.value&&item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value&&item.order_status == OrderStatusEnum.NORMAL.value"
@click="onCdDia(item.order_id)">催发货</view>
<!-- <view class="n"
v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value"

Loading…
Cancel
Save