Authored by 李奇

修正eslint rules违背

... ... @@ -3,17 +3,17 @@
<div v-if="hasdata">
<div class='nav'>
<div class="fixed">
<v-touch
tag="span"
:class="{focus2:cate.focus}"
v-for="(cate, index) in category"
<v-touch
tag="span"
:class="{focus2:cate.focus}"
v-for="(cate, index) in category"
:key="cate.category_id"
@tap="focusCate(cate.category_id,index, $event)">{{cate.category_name}}</v-touch>
</div>
</div>
<swiper-list
:list="list"
@showbutton="showbutton"
<swiper-list
:list="list"
@showbutton="showbutton"
@hidebutton="hidebutton"
@deleteskn="deleteskn"></swiper-list>
</div>
... ... @@ -165,7 +165,7 @@ export default {
modal.confirm('确定清空"' + name + '"下的浏览记录', '确定清空?', function() {
let skn = [];
for (let i in that.list) {
for (let i in that.list) { // eslint-disable-line
skn.push(that.list[i].product_skn);
}
... ...
... ... @@ -79,11 +79,11 @@
},
methods: {
reload() {
this.page= 0;
this.page = 0;
this.pageTotal = 1;
this.orderList= [];
this.busy= false;
this.emptybox= 'hide';
this.orderList = [];
this.busy = false;
this.emptybox = 'hide';
this.getRefundData();
... ... @@ -117,10 +117,10 @@
cancelApply(id, type) {
let _this = this;
Modal.confirm('', '确认取消吗?', function() {
Modal.confirm('', '确认取消吗?', function() {
this.hide();
// type refundType 1为退货,2为换货
// type refundType 1为退货,2为换货
$.ajax({
url: '/me/return/' + (Number(type) === 2 ? 'exchange' : 'refund') + '/cancel-apply',
type: 'post',
... ...