From 21f8def0bbfd537d7d722661d2fa55b2faa3856b Mon Sep 17 00:00:00 2001
From: youmengting <2080639302@qq.com>
Date: Mon, 15 Jan 2024 13:46:45 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=88=86=E6=9C=9F=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=B3=A8=E5=86=8C=E8=B5=84=E6=9C=AC=EF=BC=8C=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E8=B4=B9=E7=8E=87=E8=8C=83=E5=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/welcome/welcome.vue | 8 +--
subpackages/applyPeriod/applyPeriod.vue | 74 +++++++++++++++++++------
2 files changed, 60 insertions(+), 22 deletions(-)
diff --git a/pages/welcome/welcome.vue b/pages/welcome/welcome.vue
index edb0907..7d565b3 100644
--- a/pages/welcome/welcome.vue
+++ b/pages/welcome/welcome.vue
@@ -17,10 +17,10 @@
},
onLoad(options) {
- uni.reLaunch({
- url: '/pages/login/login'
- })
- return
+ // uni.reLaunch({
+ // url: '/pages/login/login'
+ // })
+ // return
let that = this;
diff --git a/subpackages/applyPeriod/applyPeriod.vue b/subpackages/applyPeriod/applyPeriod.vue
index 61c4d80..d2bf23e 100644
--- a/subpackages/applyPeriod/applyPeriod.vue
+++ b/subpackages/applyPeriod/applyPeriod.vue
@@ -25,36 +25,54 @@
+
+
+
+ 注册资本:
+
+
+
+
银联贴息方式(可多选):
-
+
+
+
+
+
+
+
+
- 银联分期费率(1类银行):范围(0~20)
+ 银联分期费率(1类银行):范围(0~1)最多保留3位小数
{{item.periodNum}}期
-
- 银联分期费率(2类银行):范围(0~20)
+ 银联分期费率(2类银行):范围(0~1)最多保留3位小数
{{item.periodNum}}期
-
@@ -125,6 +143,7 @@
unionpayRate1: [], //银联分期费率(1类银行)
unionpayRate2: [], //银联分期费率(2类银行)
agreementPics: '', // 协议照片(多张)
+ authCapital:'',//注册资本
},
periodNumList:[],//分期数列表
@@ -198,6 +217,7 @@
this.periodData.unionpayRate1 =this.handleUnionpayRate(this.showItem.unionpayRate1);
this.periodData.unionpayRate2 = this.handleUnionpayRate(this.showItem.unionpayRate2);
this.periodData.agreementPics = this.showItem.platformPeriod.agreementPics;
+ this.periodData.authCapital = this.showItem.platformPeriod.authCapital;
this.imgValue =this.periodData.agreementPics.split(',');
}else{
this.periodData.openUnionpay = true;
@@ -205,18 +225,17 @@
this.periodData.unionpayRate1 = this.handleUnionpayRate(this.periodNumList);
this.periodData.unionpayRate2 =this.handleUnionpayRate(this.periodNumList);
this.periodData.agreementPics = "";
+ this.periodData.authCapital ="";
this.imgValue =[];
}
- let arr = this.periodData.unionpayFeePaid.split(",");
+
this.unionpayFeePaidList.forEach(item => {
item.isSelect = false;
- arr.forEach(item2 => {
- if (item.id == item2) {
- item.isSelect = true;
- }
- })
+ if(this.periodData.unionpayFeePaid==item.id){
+ item.isSelect = true;
+ }
})
},
@@ -235,12 +254,17 @@
/* 贴息方式change */
checkBoxChange(e) {
- let selectArr = e.detail.value;
- this.periodData.unionpayFeePaid = selectArr.join(',');
+
+ console.log(e.detail.value)
+
+ this.periodData.unionpayFeePaid = e.detail.value;
+
+ // let selectArr = e.detail.value;
+ // this.periodData.unionpayFeePaid = selectArr.join(',');
},
/* 点击申请分期 */
apply() {
- if (!this.isVertify()) return;
+ if (!this.isVertify()) return;
uni.showLoading({
title: '加载中',
@@ -281,8 +305,20 @@
})
return false
}
-
- var reg = /^(([0-9]|[1][0-9])([.][0-9]{1,2})|([0-9]|1[0-9]|20))$/;
+
+ if(this.periodData.authCapital == ''){
+ uni.showToast({
+ title: '请输入注册资本',
+ icon: 'none'
+ })
+ return false
+ }
+
+
+
+ // var reg = /^(([0-9]|[1][0-9])([.][0-9]{1,2})|([0-9]|1[0-9]|20))$/;
+ /* 0-1:最多保留三位小数 */
+ let reg = /^((0+(\.\d{0,3})?)|1(\.0{0,3})?)$/;
let unionpayRate1Bool = this.periodData.unionpayRate1.every((item) => {
if (!reg.test(item.rate)) {
@@ -485,6 +521,8 @@
.fn {
font-weight: normal;
+ font-size: 12px;
+ color: #3c3c3c;
}
.down {
@@ -497,7 +535,7 @@
margin-bottom: 20rpx;
border-radius: 20rpx;
- input,.rate {
+ .rate {
height: 20px;
line-height: 20px;
border-radius: 10px;