Authored by 李奇

v-lazy-html之类升级问题修改

... ... @@ -105,12 +105,10 @@ export default (Vue) => {
bind(el, binding) {
// TODO 首屏幕不使用
let html = binding.value
.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, '<img v-bind:src="\'$1\'">')
.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, '<img src="$1">')
.replace(/https?:/gi, '');
el.innerHTML = html;
// this.vm.$compile(this.el);
}
});
Vue.directive('img-src', {
... ...
... ... @@ -261,7 +261,7 @@ const yoho = {
arguments: args
});
} else {
tip(tipInfo);
}
},
... ...
... ... @@ -54,7 +54,7 @@
},
methods: {
addressCallback(info) {
alert(JSON.stringify(info));
alert(JSON.stringify(info)); // eslint-disable-line
}
}
};
... ...
... ... @@ -10,8 +10,6 @@
</template>
<script>
var s = 1; // 测试代码检查
export default {
data() {
return {
... ...
... ... @@ -50,7 +50,7 @@
<div class="order-button" v-show="order.status != 1 && order.status != 2 && order.status != 3">
<template v-if="order.is_cancel === 'Y'">
<button @click="deleteOrder(order.order_code)" class="leftpad">删除订单</button>
<button @click="readdOrder(order)" class="normal">再次购买</button>
<button @click="readdOrder(order)" class="normal">再次购买</button>
</template>
<template v-else>
<button v-if="order.status == 0" @click="cancelOrder()">取消订单</button>
... ... @@ -273,7 +273,7 @@
if (yoho.goShopingKey && result.data && result.data.shopping_key) {
yoho.goShopingKey({shoppingKey: result.data.shopping_key});
}
yoho.goShopingCart();
yoho.goShopingCart();
}
});
});
... ...
... ... @@ -29,7 +29,7 @@
if (result[0]) {
let list = [];
for (let i in result) {
for (let i in result) { //eslint-disable-line
list = _.union(list, result[i].list);
}
for (let i = 0; i < list.length; i++) {
... ...