源文件

This commit is contained in:
gyq
2024-05-23 14:39:33 +08:00
commit a1128dd791
2997 changed files with 500069 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<template>
<view>
<defaultRate ref="defaultRateRef" title="新增支付类型" isCheck="all" :isUtmpay="true" />
<!-- 银联前置平台专属 -->
<view class="submit" @click="submitHandle">保存新增支付类型</view>
</view>
</template>
<script setup>
import { ref, reactive, inject, toRaw } from 'vue'
import { $payConfAdd } from '@/http/apiManager.js'
import defaultRate from '../../components/defaultRate.vue' // 默认费率
let vdata = reactive({
paywayFeeList: []
})
const defaultRateRef = ref()
const channelInfo = inject('channelInfo')
const submitHandle = () => {
// 拿费率组件的值
applyDetailInfo.paywayFeeList = defaultRateRef.value.getList(false)
payConfAdd()
}
const payConfAdd = () => {
$payConfAdd(channelInfo.applyId, { paywayFeeList: toRaw(vdata.paywayFeeList) }).then((res) => {
console.log(vdata.paywayFeeList)
uni.showToast({title: '保存成功', icon: 'none'})
})
}
</script>
<style scoped lang="scss">
.submit{
display: flex;
justify-content: center;
margin: 30rpx auto;
width: 380rpx;
height: 90rpx;
line-height: 90rpx;
border-radius: 10rpx;
background: #3981FF;
font-weight: 500;
font-size: 30rpx;
color: #fff;
}
</style>