Authored by 沈志敏

fix bug

@@ -203,6 +203,10 @@ @@ -203,6 +203,10 @@
203 }, 203 },
204 created() { 204 created() {
205 yoho.addNativeMethod('editModel', () => { 205 yoho.addNativeMethod('editModel', () => {
  206 + if (!this.brandData.length) {
  207 + return false;
  208 + }
  209 +
206 this.hideDelBth(); 210 this.hideDelBth();
207 this.editmodel = !this.editmodel; 211 this.editmodel = !this.editmodel;
208 212
@@ -221,6 +221,10 @@ @@ -221,6 +221,10 @@
221 }, 221 },
222 created() { 222 created() {
223 yoho.addNativeMethod('editModel', () => { 223 yoho.addNativeMethod('editModel', () => {
  224 + if (!this.productData.length) {
  225 + return false;
  226 + }
  227 +
224 this.hideDelBth(); 228 this.hideDelBth();
225 this.editmodel = !this.editmodel; 229 this.editmodel = !this.editmodel;
226 230
@@ -101,13 +101,11 @@ @@ -101,13 +101,11 @@
101 type: this.type 101 type: this.type
102 } 102 }
103 }).then(result => { 103 }).then(result => {
104 - if (result.code === 200) {  
105 if (result.data && result.data.orderList.length > 0) { 104 if (result.data && result.data.orderList.length > 0) {
106 this.$set('orderList', this.orderList.concat(result.data.orderList)); 105 this.$set('orderList', this.orderList.concat(result.data.orderList));
107 this.pageTotal = result.data.pageTotal; 106 this.pageTotal = result.data.pageTotal;
108 this.busy = false; 107 this.busy = false;
109 } 108 }
110 - }  
111 109
112 if (this.orderList.length === 0) { 110 if (this.orderList.length === 0) {
113 this.emptybox = ''; 111 this.emptybox = '';
@@ -80,13 +80,11 @@ @@ -80,13 +80,11 @@
80 limit: this.limit 80 limit: this.limit
81 } 81 }
82 }).then(result => { 82 }).then(result => {
83 - if (result.code === 200) {  
84 if (result.data && result.data.list.length > 0) { 83 if (result.data && result.data.list.length > 0) {
85 this.$set('orderList', this.orderList.concat(result.data.list)); 84 this.$set('orderList', this.orderList.concat(result.data.list));
86 this.pageTotal = result.data.totalPage; 85 this.pageTotal = result.data.totalPage;
87 this.busy = false; 86 this.busy = false;
88 } 87 }
89 - }  
90 88
91 if (this.orderList.length === 0) { 89 if (this.orderList.length === 0) {
92 this.emptybox = ''; 90 this.emptybox = '';