Showing
1 changed file
with
11 additions
and
3 deletions
@@ -234,6 +234,15 @@ const shop = { | @@ -234,6 +234,15 @@ const shop = { | ||
234 | baseShop.baseShopHome.banner += '?imageMogr2/auto-orient/strip/thumbnail/x150/crop/640x150'; | 234 | baseShop.baseShopHome.banner += '?imageMogr2/auto-orient/strip/thumbnail/x150/crop/640x150'; |
235 | } | 235 | } |
236 | } | 236 | } |
237 | + | ||
238 | + let appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + | ||
239 | + shopId + '","shop_name":"' + baseShop.shopName + '"}}'; | ||
240 | + | ||
241 | + if (shopInfoResult.is_red_shop === 1) { | ||
242 | + appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","is_red_shop":"1","shop_id":"' + | ||
243 | + shopId + '","shop_name":"' + baseShop.shopName + '"}}'; | ||
244 | + } | ||
245 | + | ||
237 | res.render('newshop/shop-base', { | 246 | res.render('newshop/shop-base', { |
238 | module: 'product', | 247 | module: 'product', |
239 | page: 'shop.base', | 248 | page: 'shop.base', |
@@ -251,8 +260,7 @@ const shop = { | @@ -251,8 +260,7 @@ const shop = { | ||
251 | shopId: shopId, | 260 | shopId: shopId, |
252 | shopPage: true, | 261 | shopPage: true, |
253 | _noLazy: true, | 262 | _noLazy: true, |
254 | - appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + | ||
255 | - shopId + '","shop_name":"' + baseShop.shopName + '"}}', | 263 | + appPath: appPath, |
256 | localCss: true | 264 | localCss: true |
257 | }); | 265 | }); |
258 | }); | 266 | }); |
@@ -289,7 +297,7 @@ const shop = { | @@ -289,7 +297,7 @@ const shop = { | ||
289 | description: result.seoTitle + '|Yoho!Buy有货' + result.seoTitle + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。', | 297 | description: result.seoTitle + '|Yoho!Buy有货' + result.seoTitle + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。', |
290 | shopId: shopId, | 298 | shopId: shopId, |
291 | shopPage: true, | 299 | shopPage: true, |
292 | - appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + | 300 | + appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"2","shop_id":"' + |
293 | shopId + '","shop_name":"' + result.seoTitle + '"}}', | 301 | shopId + '","shop_name":"' + result.seoTitle + '"}}', |
294 | localCss: true | 302 | localCss: true |
295 | }); | 303 | }); |
-
Please register or login to post a comment