更改文本描述
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="card-header">
|
||||
<h3>融豆匹配</h3>
|
||||
<div class="toggle-container">
|
||||
<span class="toggle-label">开启大额匹配</span>
|
||||
<span class="toggle-label">开启定量获取</span>
|
||||
<label class="apple-switch">
|
||||
<input
|
||||
type="checkbox"
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">分配笔数:</span>
|
||||
<span class="value">3笔</span>
|
||||
<span class="value">3-4笔</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">单笔范围:</span>
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 大额匹配信息 -->
|
||||
<!-- 定量获取信息 -->
|
||||
<div v-if="matchingType === 'large'" class="matching-info">
|
||||
<div class="info-item">
|
||||
<span class="label">购买数量:</span>
|
||||
@@ -49,10 +49,10 @@
|
||||
<el-input
|
||||
v-model="customAmount"
|
||||
type="number"
|
||||
:min="5000"
|
||||
:min="3000"
|
||||
:max="50000"
|
||||
step="100"
|
||||
placeholder="请输入5000-50000之间的金额"
|
||||
placeholder="请输入3000-50000之间的金额"
|
||||
>
|
||||
<template #prepend><img src='/imgs/profile/rongdou.png' alt="融豆" class="bean-image"></template>
|
||||
</el-input>
|
||||
@@ -78,14 +78,14 @@
|
||||
|
||||
<!-- 小额匹配提示 -->
|
||||
<div v-if="matchingType === 'small'" class="tips">
|
||||
<p>• 系统将为您匹配3笔订单,总获取5000融豆</p>
|
||||
<p>• 系统将为您匹配3-4笔订单,总获取5000融豆</p>
|
||||
<p>• 优先匹配拥有融豆并自愿出售的用户</p>
|
||||
<!-- <p>• 每笔金额随机分配,确保货款循环</p> -->
|
||||
</div>
|
||||
|
||||
<!-- 大额匹配提示 -->
|
||||
<!-- 定量获取提示 -->
|
||||
<div v-if="matchingType === 'large'" class="tips">
|
||||
<p>• 融豆数量:5000-50000</p>
|
||||
<p>• 融豆数量:3000-50000</p>
|
||||
<p>• 15000以下:分成多笔随机融豆</p>
|
||||
<p>• 15000以上:随机分拆,每笔100-10000</p>
|
||||
<p>• 优先匹配拥有融豆并自愿出售的用户</p>
|
||||
@@ -393,15 +393,15 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 大额匹配确认弹窗 -->
|
||||
<!-- 定量获取确认弹窗 -->
|
||||
<el-dialog
|
||||
v-model="showLargeMatchingConfirm"
|
||||
title="开启大额匹配"
|
||||
title="开启定量获取"
|
||||
width="90%"
|
||||
:style="{ maxWidth: '500px' }"
|
||||
>
|
||||
<div class="confirm-dialog-content">
|
||||
<p>确认要开启大额匹配吗?</p>
|
||||
<p>确认要开启定量获取吗?</p>
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
@@ -439,7 +439,7 @@ export default {
|
||||
showOrderDetail: false,
|
||||
selectedOrder: null,
|
||||
matchingType: 'small', // 匹配类型:small(小额) 或 large(大额)
|
||||
customAmount: '', // 大额匹配自定义金额
|
||||
customAmount: '', // 定量获取自定义金额
|
||||
transferDialog: {
|
||||
visible: false,
|
||||
allocationId: null,
|
||||
@@ -468,7 +468,7 @@ export default {
|
||||
methods: {
|
||||
handleMatchingTypeChange() {
|
||||
if (this.tempMatchingType === 'large') {
|
||||
// 如果要切换到大额匹配,显示确认对话框
|
||||
// 如果要切换到定量获取,显示确认对话框
|
||||
this.showLargeMatchingConfirm = true
|
||||
} else {
|
||||
// 直接切换到小额匹配
|
||||
@@ -479,7 +479,7 @@ export default {
|
||||
confirmLargeMatching() {
|
||||
this.matchingType = 'large'
|
||||
this.showLargeMatchingConfirm = false
|
||||
this.$message.success('已开启大额匹配模式')
|
||||
this.$message.success('已开启定量获取模式')
|
||||
},
|
||||
|
||||
cancelLargeMatching() {
|
||||
@@ -537,15 +537,15 @@ export default {
|
||||
let confirmMessage = ''
|
||||
|
||||
if (this.matchingType === 'small') {
|
||||
confirmMessage = '确定要开始小额匹配吗?\n\n匹配成功后将生成3笔转账分配。'
|
||||
confirmMessage = '确定要开始小额匹配吗?\n\n匹配成功后将生成3-4笔转账分配。'
|
||||
} else {
|
||||
if (!this.isValidCustomAmount) {
|
||||
this.$message.error('请输入有效的匹配金额(5000-50000元)')
|
||||
this.$message.error('请输入有效的匹配金额(3000-50000元)')
|
||||
return
|
||||
}
|
||||
const amount = parseFloat(this.customAmount)
|
||||
const count = this.getLargeMatchingCount()
|
||||
confirmMessage = `确定要开始大额匹配吗?\n\n匹配金额:${amount}元\n将生成${count}笔转账分配`
|
||||
confirmMessage = `确定要开始定量获取吗?\n\n匹配金额:${amount}元\n将生成${count}笔转账分配`
|
||||
}
|
||||
|
||||
// 二次确认对话框
|
||||
@@ -563,7 +563,7 @@ export default {
|
||||
matchingType: this.matchingType
|
||||
}
|
||||
|
||||
// 如果是大额匹配,添加自定义金额
|
||||
// 如果是定量获取,添加自定义金额
|
||||
if (this.matchingType === 'large') {
|
||||
requestData.customAmount = parseFloat(this.customAmount)
|
||||
}
|
||||
@@ -572,7 +572,7 @@ export default {
|
||||
|
||||
const successMessage = this.matchingType === 'small'
|
||||
? '小额匹配成功!已为您生成3笔转账分配'
|
||||
: `大额匹配成功!已为您生成${this.getLargeMatchingCount()}笔转账分配`
|
||||
: `定量获取成功!已为您生成${this.getLargeMatchingCount()}笔转账分配`
|
||||
|
||||
this.$message.success(successMessage)
|
||||
await this.loadData()
|
||||
@@ -719,15 +719,15 @@ export default {
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取大额匹配的分配规则描述
|
||||
* 获取定量获取的分配规则描述
|
||||
* @returns {string} 规则描述
|
||||
*/
|
||||
getLargeMatchingRule() {
|
||||
const amount = parseFloat(this.customAmount) || 0
|
||||
if (amount <= 0) {
|
||||
return '请输入金额'
|
||||
} else if (amount < 5000) {
|
||||
return '金额不能少于5000元'
|
||||
} else if (amount < 3000) {
|
||||
return '金额不能少于3000元'
|
||||
} else if (amount > 50000) {
|
||||
return '金额不能超过50000元'
|
||||
} else if (amount <= 15000) {
|
||||
@@ -738,7 +738,7 @@ export default {
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取大额匹配的预计笔数
|
||||
* 获取定量获取的预计笔数
|
||||
* @returns {string} 预计笔数描述
|
||||
*/
|
||||
getLargeMatchingCount() {
|
||||
@@ -930,7 +930,7 @@ export default {
|
||||
*/
|
||||
isValidCustomAmount() {
|
||||
const amount = parseFloat(this.customAmount)
|
||||
return !isNaN(amount) && amount >= 5000 && amount <= 50000
|
||||
return !isNaN(amount) && amount >= 3000 && amount <= 50000
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user