Commit a6b058cc authored by 王建威's avatar 王建威

默认分期

parent 12635be6
...@@ -175,12 +175,12 @@ ...@@ -175,12 +175,12 @@
data: this.params, data: this.params,
method: 'POST', method: 'POST',
success: (res) => { success: (res) => {
this.submitFlag = true;
if(res.data.code === 0) { if(res.data.code === 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/apply/choosetype' url: '/pages/apply/choosetype'
}); });
} else { } else {
this.submitFlag = true;
uni.hideToast(); uni.hideToast();
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
......
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
method: 'GET', method: 'GET',
dataType: 'json', dataType: 'json',
success: (res) => { success: (res) => {
uni.hideLoading();
this.EquipmentRecommendList = res.data.data.EquipmentRecommendList; this.EquipmentRecommendList = res.data.data.EquipmentRecommendList;
this.isLogin = res.data.login_flg; this.isLogin = res.data.login_flg;
if(res.data.data.EquipmentHotList instanceof Array) { if(res.data.data.EquipmentHotList instanceof Array) {
...@@ -113,7 +114,6 @@ ...@@ -113,7 +114,6 @@
if(this.EquipmentHotList[0].length > 3) { if(this.EquipmentHotList[0].length > 3) {
this.height = true; this.height = true;
} }
uni.hideLoading();
} }
}); });
}, },
......
...@@ -215,10 +215,15 @@ ...@@ -215,10 +215,15 @@
...this.data, ...this.data,
...res.data.data ...res.data.data
} }
this.e_info = { res.data.data.Equipmentproperty.forEach((item, index) => {
...this.e_info, if(item.is_def == 1) {
...res.data.data.Equipmentproperty[0] 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.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.isLogin = res.data.login_flg;
this.contract_no = res.data.data.contract_no; this.contract_no = res.data.data.contract_no;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment