...
|
...
|
@@ -21,6 +21,7 @@ Page(Object.assign({ |
|
|
data: {
|
|
|
login: false,
|
|
|
shopId: 0,
|
|
|
shopInfo: {},
|
|
|
productSkn: 0,
|
|
|
countInCart: 0,
|
|
|
productName: '',
|
...
|
...
|
@@ -111,6 +112,7 @@ Page(Object.assign({ |
|
|
this.supportService();
|
|
|
this.productIntro();
|
|
|
this.preferList();
|
|
|
this._getShopInfo();
|
|
|
this._getCountInCart();
|
|
|
}, 500);
|
|
|
|
...
|
...
|
@@ -143,6 +145,9 @@ Page(Object.assign({ |
|
|
scrollTop: 0
|
|
|
});
|
|
|
},
|
|
|
toShop: function() {
|
|
|
router.go('home');
|
|
|
},
|
|
|
onShareAppMessage: function(res) {
|
|
|
let params = {
|
|
|
FROM: res.from,
|
...
|
...
|
@@ -344,6 +349,7 @@ Page(Object.assign({ |
|
|
storage_sum: res.data.storage_sum,
|
|
|
snapshootShareData: snapData,
|
|
|
shopId: res.data.shop_id,
|
|
|
brandId: res.data.brand_id,
|
|
|
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,
|
...
|
...
|
@@ -703,6 +709,26 @@ Page(Object.assign({ |
|
|
}
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
_getShopInfo: function() {
|
|
|
const params = {
|
|
|
brand_id: this.data.brandId,
|
|
|
shop_id: this.data.shopId
|
|
|
};
|
|
|
|
|
|
detailModel.getShopInfo(params)
|
|
|
.then(res => {
|
|
|
const shopList = res.data;
|
|
|
|
|
|
if (shopList && shopList.length > 0) {
|
|
|
const shopInfo = shopList[0];
|
|
|
|
|
|
this.setData({
|
|
|
shopInfo,
|
|
|
shopList
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
_payNow: function() {
|
|
|
router.go('cartEnsure', {
|
|
|
productSku: this.data.selectedSKU,
|
...
|
...
|
|