fix: 去掉zan-utils依赖

This commit is contained in:
niunai 2017-09-30 20:01:44 +08:00
parent 367a23ed48
commit d6a40478a3
3 changed files with 4 additions and 6 deletions

View File

@ -11,7 +11,7 @@ var _global = {
"v": [{
"id": "30349",
"name": "\u5929\u84dd\u8272",
"imgUrl": "upload_files\/2017\/02\/21\/FjKTOxjVgnUuPmHJRdunvYky9OHP.jpg"
"imgUrl": "https:\/\/img.yzcdn.cn\/upload_files\/2017\/02\/21\/FjKTOxjVgnUuPmHJRdunvYky9OHP.jpg!100x100.jpg"
}],
"k_s": "s1",
"count": 2

View File

@ -12,8 +12,6 @@
</template>
<script>
import urlHelper from 'zan-utils/url/helper';
export default {
name: 'van-sku-header',
@ -32,7 +30,7 @@ export default {
goodsImg() {
const s1Id = this.selectedSku.s1;
const skuImg = this.getSkuImg(s1Id);
// 使sku
return skuImg || this.goods.picture;
},
price() {
@ -60,7 +58,7 @@ export default {
const matchedSku = treeItem.v.filter(skuValue => skuValue.id === id)[0];
if (matchedSku && matchedSku.imgUrl) {
return urlHelper.getCdnImageUrl(matchedSku.imgUrl);
return matchedSku.imgUrl;
}
}
}

View File

@ -11,7 +11,7 @@ var _global = {
"v": [{
"id": "30349",
"name": "\u5929\u84dd\u8272",
"imgUrl": "upload_files\/2017\/02\/21\/FjKTOxjVgnUuPmHJRdunvYky9OHP.jpg"
"imgUrl": "https:\/\/img.yzcdn.cn\/upload_files\/2017\/02\/21\/FjKTOxjVgnUuPmHJRdunvYky9OHP.jpg!100x100.jpg"
}],
"k_s": "s1"
}, {