[Improvement] eslint: use vue-libs (#1237)

This commit is contained in:
neverland
2018-06-07 11:59:02 +08:00
committed by GitHub
parent 5b7542b8f0
commit a1c5c6fef4
27 changed files with 222 additions and 344 deletions
+1 -1
View File
@@ -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">
+6 -6
View File
@@ -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('积分兑换');
}
}
};