fix(Sku): scroll issue and add default picture (#6605)

Co-authored-by: 水墨 <laihuamin@youzan.com>
This commit is contained in:
来铧敏
2020-06-24 14:08:20 +08:00
committed by GitHub
co-authored by 水墨
parent 62cd251327
commit eb58e3cb74
3 changed files with 7 additions and 4 deletions
+5 -1
View File
@@ -19,7 +19,11 @@ export default createComponent({
computed: {
imgUrl() {
return this.skuValue.imgUrl || this.skuValue.img_url;
const url = this.skuValue.imgUrl || this.skuValue.img_url;
return this.largePicturePreview
? url ||
'https://img.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png'
: url;
},
choosable() {