From c1a6f6667d70385ee8f0dd936723ed54aa91979c Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Sat, 27 Mar 2021 12:18:45 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=8A=A5=E4=BF=AE?=
=?UTF-8?q?=E4=B8=8D=E8=AE=BE=E7=BD=AE=E6=8A=A5=E4=BF=AE=E7=B1=BB=E5=9E=8B?=
=?UTF-8?q?=E5=AF=BC=E8=87=B4=20=E9=A1=B5=E9=9D=A2=E4=B8=8D=E5=87=BA?=
=?UTF-8?q?=E6=9D=A5=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/repair/repair.vue | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
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) {