Authored by 李奇

修正eslint rules违背

@@ -3,17 +3,17 @@ @@ -3,17 +3,17 @@
3 <div v-if="hasdata"> 3 <div v-if="hasdata">
4 <div class='nav'> 4 <div class='nav'>
5 <div class="fixed"> 5 <div class="fixed">
6 - <v-touch  
7 - tag="span"  
8 - :class="{focus2:cate.focus}"  
9 - v-for="(cate, index) in category" 6 + <v-touch
  7 + tag="span"
  8 + :class="{focus2:cate.focus}"
  9 + v-for="(cate, index) in category"
10 :key="cate.category_id" 10 :key="cate.category_id"
11 @tap="focusCate(cate.category_id,index, $event)">{{cate.category_name}}</v-touch> 11 @tap="focusCate(cate.category_id,index, $event)">{{cate.category_name}}</v-touch>
12 </div> 12 </div>
13 </div> 13 </div>
14 - <swiper-list  
15 - :list="list"  
16 - @showbutton="showbutton" 14 + <swiper-list
  15 + :list="list"
  16 + @showbutton="showbutton"
17 @hidebutton="hidebutton" 17 @hidebutton="hidebutton"
18 @deleteskn="deleteskn"></swiper-list> 18 @deleteskn="deleteskn"></swiper-list>
19 </div> 19 </div>
@@ -165,7 +165,7 @@ export default { @@ -165,7 +165,7 @@ export default {
165 modal.confirm('确定清空"' + name + '"下的浏览记录', '确定清空?', function() { 165 modal.confirm('确定清空"' + name + '"下的浏览记录', '确定清空?', function() {
166 let skn = []; 166 let skn = [];
167 167
168 - for (let i in that.list) { 168 + for (let i in that.list) { // eslint-disable-line
169 skn.push(that.list[i].product_skn); 169 skn.push(that.list[i].product_skn);
170 } 170 }
171 171
@@ -79,11 +79,11 @@ @@ -79,11 +79,11 @@
79 }, 79 },
80 methods: { 80 methods: {
81 reload() { 81 reload() {
82 - this.page= 0; 82 + this.page = 0;
83 this.pageTotal = 1; 83 this.pageTotal = 1;
84 - this.orderList= [];  
85 - this.busy= false;  
86 - this.emptybox= 'hide'; 84 + this.orderList = [];
  85 + this.busy = false;
  86 + this.emptybox = 'hide';
87 87
88 this.getRefundData(); 88 this.getRefundData();
89 89
@@ -117,10 +117,10 @@ @@ -117,10 +117,10 @@
117 cancelApply(id, type) { 117 cancelApply(id, type) {
118 let _this = this; 118 let _this = this;
119 119
120 - Modal.confirm('', '确认取消吗?', function() { 120 + Modal.confirm('', '确认取消吗?', function() {
121 this.hide(); 121 this.hide();
122 122
123 - // type refundType 1为退货,2为换货 123 + // type refundType 1为退货,2为换货
124 $.ajax({ 124 $.ajax({
125 url: '/me/return/' + (Number(type) === 2 ? 'exchange' : 'refund') + '/cancel-apply', 125 url: '/me/return/' + (Number(type) === 2 ? 'exchange' : 'refund') + '/cancel-apply',
126 type: 'post', 126 type: 'post',