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,12 +101,10 @@ @@ -101,12 +101,10 @@
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) {  
106 - this.$set('orderList', this.orderList.concat(result.data.orderList));  
107 - this.pageTotal = result.data.pageTotal;  
108 - this.busy = false;  
109 - } 104 + if (result.data && result.data.orderList.length > 0) {
  105 + this.$set('orderList', this.orderList.concat(result.data.orderList));
  106 + this.pageTotal = result.data.pageTotal;
  107 + this.busy = false;
110 } 108 }
111 109
112 if (this.orderList.length === 0) { 110 if (this.orderList.length === 0) {
@@ -80,12 +80,10 @@ @@ -80,12 +80,10 @@
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) {  
85 - this.$set('orderList', this.orderList.concat(result.data.list));  
86 - this.pageTotal = result.data.totalPage;  
87 - this.busy = false;  
88 - } 83 + if (result.data && result.data.list.length > 0) {
  84 + this.$set('orderList', this.orderList.concat(result.data.list));
  85 + this.pageTotal = result.data.totalPage;
  86 + this.busy = false;
89 } 87 }
90 88
91 if (this.orderList.length === 0) { 89 if (this.orderList.length === 0) {