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

默认分期

parent 12635be6
......@@ -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',
......
......@@ -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();
}
});
},
......
......@@ -215,10 +215,15 @@
...this.data,
...res.data.data
}
res.data.data.Equipmentproperty.forEach((item, index) => {
if(item.is_def == 1) {
this.e_info = {
...this.e_info,
...res.data.data.Equipmentproperty[0]
...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;
......
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