diff --git a/pages/repair/repair.vue b/pages/repair/repair.vue index e5f7d64..062a71a 100644 --- a/pages/repair/repair.vue +++ b/pages/repair/repair.vue @@ -31,7 +31,11 @@ 报修信息 报修类型 - {{repairTypes[repairTypeIndex].repairTypeName}} @@ -468,7 +472,7 @@ //动态数据 success: function(res) { let _json = res.data; - if (_json.code == 0) { + if (_json.code == 0 && _json.data.length > 0) { _that.repairTypes = _json.data; let selected = _that.repairTypes[_that.repairTypeIndex] //获取选中的数组 @@ -478,6 +482,11 @@ if (_payFeeFlag == 'T') { _that.priceScope = selected.priceScope; } + }else{ + uni.showToast({ + icon:"none", + title:"未配置报修设置" + }) } }, fail: function(e) {