[Improvement] eslint: use vue-libs (#1237)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<div class="van-clearfix" v-if="paddingImg || imgList.length > 0">
|
||||
<!-- 已有的图片,图片右上角显示删除按钮 -->
|
||||
<div
|
||||
v-for="(img, index) in imgList"
|
||||
v-for="img in imgList"
|
||||
:class="b('img')"
|
||||
>
|
||||
<img :src="img">
|
||||
|
||||
@@ -115,12 +115,12 @@ export default {
|
||||
const { action, limitType, quota } = data;
|
||||
|
||||
if (action === 'minus') {
|
||||
Toast('至少选择一件商品');
|
||||
this.$toast('至少选择一件商品');
|
||||
} else if (action === 'plus') {
|
||||
if (limitType === LIMIT_TYPE.QUOTA_LIMIT) {
|
||||
Toast(`限购${quota}件`);
|
||||
this.$toast(`限购${quota}件`);
|
||||
} else {
|
||||
Toast('库存不够了~~');
|
||||
this.$toast('库存不够了~~');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -138,15 +138,15 @@ export default {
|
||||
|
||||
methods: {
|
||||
onBuyClicked(data) {
|
||||
Toast(JSON.stringify(data));
|
||||
this.$toast(JSON.stringify(data));
|
||||
},
|
||||
|
||||
onAddCartClicked(data) {
|
||||
Toast(JSON.stringify(data));
|
||||
this.$toast(JSON.stringify(data));
|
||||
},
|
||||
|
||||
onPointClicked() {
|
||||
Toast('积分兑换');
|
||||
this.$toast('积分兑换');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user