From a6b058ccf88d30ba97d0e159f83f0d98874412fb Mon Sep 17 00:00:00 2001
From: wangjw <wangjw@dbc-healthcare.com>
Date: Thu, 23 Apr 2020 11:37:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=88=86=E6=9C=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pages/certification/certification.vue |  2 +-
 pages/financial/financialstage.vue    |  2 +-
 pages/installment/installmentinfo.vue | 13 +++++++++----
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/pages/certification/certification.vue b/pages/certification/certification.vue
index 64014b7..8f0291d 100644
--- a/pages/certification/certification.vue
+++ b/pages/certification/certification.vue
@@ -175,12 +175,12 @@
 					data: this.params,
 					method: 'POST',
 					success: (res) => {
+						this.submitFlag = true;
 						if(res.data.code === 0) {
 							uni.navigateTo({
 								url: '/pages/apply/choosetype'
 							});
 						} else {
-							this.submitFlag = true;
 							uni.hideToast();
 							uni.showToast({
 								icon: 'none',
diff --git a/pages/financial/financialstage.vue b/pages/financial/financialstage.vue
index b1d26ae..85b5f3c 100644
--- a/pages/financial/financialstage.vue
+++ b/pages/financial/financialstage.vue
@@ -99,6 +99,7 @@
 					method: 'GET',
 					dataType: 'json',
 					success: (res) => {
+						uni.hideLoading();
 						this.EquipmentRecommendList = res.data.data.EquipmentRecommendList;
 						this.isLogin = res.data.login_flg;
 						if(res.data.data.EquipmentHotList instanceof Array) {
@@ -113,7 +114,6 @@
 						if(this.EquipmentHotList[0].length > 3) {
 							this.height = true;
 						}
-						uni.hideLoading();
 					}
 				});
 			},
diff --git a/pages/installment/installmentinfo.vue b/pages/installment/installmentinfo.vue
index 092facb..34f482e 100644
--- a/pages/installment/installmentinfo.vue
+++ b/pages/installment/installmentinfo.vue
@@ -215,10 +215,15 @@
 							...this.data,
 							...res.data.data
 						}
-						this.e_info = {
-							...this.e_info,
-							...res.data.data.Equipmentproperty[0]
-						}
+						res.data.data.Equipmentproperty.forEach((item, index) => {
+							if(item.is_def ==  1) {
+								this.e_info = {
+									...this.e_info,
+									...item
+								}
+								this.periodTab = index
+							}
+						});
 						this.equipment_detail = res.data.data.EquipmentInfo.equipment_details ? res.data.data.EquipmentInfo.equipment_details.replace(/\<img/g, `<image style="max-width: 100%;width: auto !important;height: auto !important"`) : '';
 						this.isLogin = res.data.login_flg;
 						this.contract_no = res.data.data.contract_no;
-- 
2.18.1