Merge branch 'feature/appalert2' into 'release/5.5.1'
H5 唤起 APP 店铺相关规则调整 See merge request !413
Showing
1 changed file
with
11 additions
and
3 deletions
@@ -240,6 +240,15 @@ const shop = { | @@ -240,6 +240,15 @@ const shop = { | ||
240 | baseShop.baseShopHome.banner += '?imageMogr2/auto-orient/strip/thumbnail/x150/crop/640x150'; | 240 | baseShop.baseShopHome.banner += '?imageMogr2/auto-orient/strip/thumbnail/x150/crop/640x150'; |
241 | } | 241 | } |
242 | } | 242 | } |
243 | + | ||
244 | + let appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + | ||
245 | + shopId + '","shop_name":"' + baseShop.shopName + '"}}'; | ||
246 | + | ||
247 | + if (shopInfoResult.is_red_shop === 1) { | ||
248 | + appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","is_red_shop":"1","shop_id":"' + | ||
249 | + shopId + '","shop_name":"' + baseShop.shopName + '"}}'; | ||
250 | + } | ||
251 | + | ||
243 | res.render('newshop/shop-base', { | 252 | res.render('newshop/shop-base', { |
244 | module: 'product', | 253 | module: 'product', |
245 | page: 'shop.base', | 254 | page: 'shop.base', |
@@ -257,8 +266,7 @@ const shop = { | @@ -257,8 +266,7 @@ const shop = { | ||
257 | shopId: shopId, | 266 | shopId: shopId, |
258 | shopPage: true, | 267 | shopPage: true, |
259 | _noLazy: true, | 268 | _noLazy: true, |
260 | - appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + | ||
261 | - shopId + '","shop_name":"' + baseShop.shopName + '"}}', | 269 | + appPath: appPath, |
262 | localCss: true | 270 | localCss: true |
263 | }); | 271 | }); |
264 | }); | 272 | }); |
@@ -295,7 +303,7 @@ const shop = { | @@ -295,7 +303,7 @@ const shop = { | ||
295 | description: result.seoTitle + '|Yoho!Buy有货' + result.seoTitle + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。', | 303 | description: result.seoTitle + '|Yoho!Buy有货' + result.seoTitle + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。', |
296 | shopId: shopId, | 304 | shopId: shopId, |
297 | shopPage: true, | 305 | shopPage: true, |
298 | - appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + | 306 | + appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"2","shop_id":"' + |
299 | shopId + '","shop_name":"' + result.seoTitle + '"}}', | 307 | shopId + '","shop_name":"' + result.seoTitle + '"}}', |
300 | localCss: true | 308 | localCss: true |
301 | }); | 309 | }); |
-
Please register or login to post a comment