新增账户管理和委托管理模块

This commit is contained in:
唐明明
2023-12-15 10:14:00 +08:00
parent 43320b6870
commit 46d29ae6b6
18 changed files with 1188 additions and 18 deletions

View File

@@ -4,9 +4,9 @@
<view class="header">
<view class="header-title">实付金额</view>
<view class="header-price"><text></text>{{total}}</view>
<block v-if="rate != 1">
<view class="header-fire">火力值{{totalFire}}</view>
<view class="header-no">当前火力值比例1:{{rate}}</view>
<block v-if="totalFire > 0">
<view class="header-fire">最大可抵扣{{totalFire}}</view>
<!-- <view class="header-no">当前火力值比例1:{{rate}}</view> -->
</block>
<view class="header-no">订单号:{{orderNo}}</view>
</view>
@@ -56,9 +56,16 @@
</view>
<radio class="choose-radio" value="code" :checked="payMethod == 'code'"></radio>
</label>
<label class="choose-item nowrap" v-if="payCan.offline">
<view class="choose-text">
<image src="@/static/icons/pay_bank.png" mode="aspectFill"></image>
线下打款
</view>
<radio class="choose-radio" value="offline" :checked="payMethod == 'offline'"></radio>
</label>
</radio-group>
</view>
<view class="deduction" v-if="(payMethod == 'wx' || payMethod == 'ali' || payMethod == 'dgwx' || payMethod == 'dgali') && payType != 'free'">
<view class="deduction" v-if="payCan.deduction == 1 && payType != 'free'">
<view class="deduction-item">
<view class="deduction-label">
<view class="title">使用火力值抵扣</view>
@@ -101,9 +108,13 @@
</view>
</u-popup>
<!-- 确认支付 -->
<view class="payBtn">
<view class="payBtn" v-if="payMethod != 'offline'">
<button size="default" @click="onPay">支付</button>
</view>
<!-- 上传打款凭证 -->
<view class="payBtn" v-else>
<button size="default" @click="onOffline">上传打款凭证</button>
</view>
</view>
</template>
@@ -124,8 +135,10 @@
umsSynthesize,
dgSynthesize,
coinSynthesize,
} from '@/apis/interfaces/pay.js'
cashierOffline
} from '@/apis/interfaces/pay.js'
import mixin from 'uview-ui/libs/mixin/mixin';
import { uploads } from '@/apis/interfaces/uploading.js'
export default {
data() {
return {
@@ -186,6 +199,8 @@
let order_type = this.$Route.query.orderType.replace(/\-/g, '\\')
oderinfo( this.$Route.query.orderId, order_type).then(res => {
let { order_no, price, score, order_id, rate, total_fire, can_use_channel } = res
this.rate = rate
this.totalFire = total_fire
this.orderType = order_type
@@ -259,7 +274,7 @@
clearInterval(outTime)
wx.showModal({
title : '提示',
content : this.$Route.query.paytype === 'synthesize' ? '支付成功,可在工作台综法订单管理查询您的订单' : '支付成功',
content : this.$Route.query.paytype === 'synthesize' ? '支付成功,可在工作台查询您的订单' : '支付成功',
showCancel : false,
confirmColor: '#446EFE',
success : () => {
@@ -355,8 +370,46 @@
if(this.payType == 'free') this.onDgFreePay('app_alipay', false)
if(this.payType == 'synthesize') this.onFreeToast('onDgSynthesizePay', 'app_alipay', false)
break
case 'offline':
console.log('线下打款')
break
}
},
// 上传打款凭证
onOffline(){
uni.chooseImage({
count: 1,
success: path => {
let { tempFiles } = path;
uploads([{
name: 'file' + tempFiles[0].size,
uri : tempFiles[0].path
}], {}).then(updRes => {
let { path } = updRes
cashierOffline({
image : path[0],
order_type : this.orderType,
order_id : this.orderId,
}).then(res => {
uni.showModal({
title : '上传成功',
content : '请耐心等待打款审核',
showCancel : false,
success : () => {
uni.navigateBack()
}
})
})
uni.hideLoading()
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
})
},
// 火力值 - 综法
onCoinSynthesizePay(){
coinSynthesize({