...
|
...
|
@@ -16,8 +16,7 @@ let {windowHeight} = app.getSystemInfo(); |
|
|
|
|
|
let yas;
|
|
|
|
|
|
Page({
|
|
|
...Actionsheet,
|
|
|
Page(Object.assign({
|
|
|
data: {
|
|
|
shopId: 0,
|
|
|
productSkn: 0,
|
...
|
...
|
@@ -299,7 +298,7 @@ Page({ |
|
|
pickData.view.goodPrice = res.data.format_sales_price;
|
|
|
|
|
|
let default_image = formatImage.image(ImgUrls.length > 0 ? ImgUrls[0].image_url : '', 750, 1000);
|
|
|
let product_qrCode = config.domains.api + '/wechat/miniapp/img-check.jpg?param=' + res.data.product_skn;
|
|
|
let product_qrCode = config.domains.api + '/wechat/miniapp/img-check.jpg?param=' + res.data.product_skn; // eslint-disable-line
|
|
|
|
|
|
let snapData = {
|
|
|
product_name: res.data.product_name,
|
...
|
...
|
@@ -334,8 +333,8 @@ Page({ |
|
|
// bundle_type: res.data.bundle_type,
|
|
|
// store_show_status: res.data.store_show_status,
|
|
|
// attribute: res.data.attribute,
|
|
|
productOnlyProvideByYohoAPP: res.data.is_secKill === 'Y' || res.data.is_advance === 'Y' || res.data.attribute === 3 || res.data.attribute === 4 || res.data.isLimitBuy || res.data.is_deposit_advance === 'Y',
|
|
|
productOnlyProvideByYohoStore: res.data.store_show_status === 3 || res.data.store_show_status === 4,
|
|
|
productOnlyProvideByYohoAPP: res.data.is_secKill === 'Y' || res.data.is_advance === 'Y' || res.data.attribute === 3 || res.data.attribute === 4 || res.data.isLimitBuy || res.data.is_deposit_advance === 'Y', // eslint-disable-line
|
|
|
productOnlyProvideByYohoStore: res.data.store_show_status === 3 || res.data.store_show_status === 4, // eslint-disable-line
|
|
|
productNotForSale: res.data.attribute === 2,
|
|
|
showBottomTipView: true
|
|
|
});
|
...
|
...
|
@@ -384,7 +383,7 @@ Page({ |
|
|
});
|
|
|
},
|
|
|
buyImmediate: function() {
|
|
|
if (this.data.productOnlyProvideByYohoAPP || this.data.productOnlyProvideByYohoStore || this.data.productNotForSale) {
|
|
|
if (this.data.productOnlyProvideByYohoAPP || this.data.productOnlyProvideByYohoStore || this.data.productNotForSale) { // eslint-disable-line
|
|
|
return wx.showToast({
|
|
|
title: '该商品暂时不支持当前小程序购买,请到Yoho!Buy有货查看',
|
|
|
icon: 'none',
|
...
|
...
|
@@ -466,7 +465,7 @@ Page({ |
|
|
pickData.view.sizeList[parseInt(event.currentTarget.id)] = tempItem;
|
|
|
|
|
|
// 设置数量加减按钮启用状态
|
|
|
pickData.view.plusButtonEnable = (!pickData.view.buy_limit_number || pickData.view.buy_limit_number > 1) && tempItem.storage_number > 1;
|
|
|
pickData.view.plusButtonEnable = (!pickData.view.buy_limit_number || pickData.view.buy_limit_number > 1) && tempItem.storage_number > 1; // eslint-disable-line
|
|
|
|
|
|
pickData.view.minusButtonEnable = false;
|
|
|
pickData.view.buyButtonEnable = true;
|
...
|
...
|
@@ -597,7 +596,7 @@ Page({ |
|
|
|
|
|
minReachedLimitAction: function(n) {
|
|
|
return wx.showToast({
|
|
|
title: n + '件' + '起售',
|
|
|
title: n + '件起售',
|
|
|
icon: 'none',
|
|
|
duration: 1000
|
|
|
});
|
...
|
...
|
@@ -637,4 +636,4 @@ Page({ |
|
|
PRD_ID: this.data.selectedProductId
|
|
|
});
|
|
|
}
|
|
|
}); |
|
|
}, Actionsheet)); |
...
|
...
|
|