Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // _getShopData, _getIemData, _getTestimonial - async funcs
- getData() {
- return this._getShopData().then(shop =>
- Promise.all([this._getIemData(this._MALL_ID), this._getTestimonial(shop.shop_url)]).then(
- ([item, testimonial]) => {
- return {
- item: {
- ...item,
- shop_info: shop
- },
- shop: { ...shop, testimonial: testimonial }
- };
- }
- )
- );
- }
Add Comment
Please, Sign In to add comment