Commit 524439895fa510b9c99349998f8ddc28f324ad6f
1 parent
8cb7a103
商品广告详情
Showing
6 changed files
with
46 additions
and
6 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
1 | var t = require("../../../../utils/util.js"), | 1 | var t = require("../../../../utils/util.js"), |
2 | ut = t, | 2 | ut = t, |
3 | e = require("../../../../utils/common.js"), | 3 | e = require("../../../../utils/common.js"), |
4 | + common =e, | ||
4 | a = require("../../../../utils/wxParse/wxParse.js"), | 5 | a = require("../../../../utils/wxParse/wxParse.js"), |
5 | s = getApp(), | 6 | s = getApp(), |
6 | i = s.request, | 7 | i = s.request, |
@@ -287,7 +288,7 @@ Page({ | @@ -287,7 +288,7 @@ Page({ | ||
287 | is_get_guide:0, | 288 | is_get_guide:0, |
288 | keyword:'', //门店搜索 | 289 | keyword:'', //门店搜索 |
289 | sec_i:-1,//选中分类门店 下标 | 290 | sec_i:-1,//选中分类门店 下标 |
290 | - | 291 | + goodInfo_ad:"",//商品详情广告 |
291 | adding:0 //避免重复点击 | 292 | adding:0 //避免重复点击 |
292 | }, | 293 | }, |
293 | 294 | ||
@@ -466,7 +467,10 @@ Page({ | @@ -466,7 +467,10 @@ Page({ | ||
466 | ee.init(gid); | 467 | ee.init(gid); |
467 | //------几人评价------- | 468 | //------几人评价------- |
468 | //n.init(th, "", "comments"); | 469 | //n.init(th, "", "comments"); |
469 | - | 470 | + //商品详情广告---- |
471 | + a.wxParse("goodInfo_ad", "html", ut.format_content(e.goods_bottomconent), ee, 6); | ||
472 | + common.wxParseAddFullImageUrl(ee, "goodInfo_ad"); | ||
473 | + //------- | ||
470 | th.requestCardNum(), wx.pageScrollTo && th.setData({ | 474 | th.requestCardNum(), wx.pageScrollTo && th.setData({ |
471 | supportPageScroll: !0 | 475 | supportPageScroll: !0 |
472 | }); | 476 | }); |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
@@ -676,6 +676,10 @@ | @@ -676,6 +676,10 @@ | ||
676 | <view class="wxParse"> | 676 | <view class="wxParse"> |
677 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> | 677 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> |
678 | </view> | 678 | </view> |
679 | + <!-- 详情广告 --> | ||
680 | + <view class="wxParse"> | ||
681 | + <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template> | ||
682 | + </view> | ||
679 | </view> | 683 | </view> |
680 | <!-- 推荐商品 --> | 684 | <!-- 推荐商品 --> |
681 | <view class="flex-center rel xc-linellae-frame"> | 685 | <view class="flex-center rel xc-linellae-frame"> |
@@ -758,6 +762,10 @@ | @@ -758,6 +762,10 @@ | ||
758 | <view class="wxParse"> | 762 | <view class="wxParse"> |
759 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> | 763 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> |
760 | </view> | 764 | </view> |
765 | + <!-- 详情广告 --> | ||
766 | + <view class="wxParse"> | ||
767 | + <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template> | ||
768 | + </view> | ||
761 | </view> | 769 | </view> |
762 | <!-- -------------评价页面------------ --> | 770 | <!-- -------------评价页面------------ --> |
763 | <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}"> | 771 | <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}"> |
packageC/pages/presell/goodsInfo/goodsInfo.js
1 | var ut = require("../../../../utils/util.js"), | 1 | var ut = require("../../../../utils/util.js"), |
2 | e = require("../../../../utils/common.js"), | 2 | e = require("../../../../utils/common.js"), |
3 | + common = e, | ||
3 | a = require("../../../../utils/wxParse/wxParse.js"), | 4 | a = require("../../../../utils/wxParse/wxParse.js"), |
4 | s = getApp(), app = s, | 5 | s = getApp(), app = s, |
5 | i = s.request, | 6 | i = s.request, |
@@ -259,6 +260,7 @@ Page({ | @@ -259,6 +260,7 @@ Page({ | ||
259 | is_retail_price: 0, | 260 | is_retail_price: 0, |
260 | keyword:'', //门店搜索 | 261 | keyword:'', //门店搜索 |
261 | sec_i:-1,//选中分类门店 下标 | 262 | sec_i:-1,//选中分类门店 下标 |
263 | + goodInfo_ad:'',//商品详情广告 | ||
262 | }, | 264 | }, |
263 | 265 | ||
264 | //------初始化加载---------- | 266 | //------初始化加载---------- |
@@ -400,6 +402,10 @@ Page({ | @@ -400,6 +402,10 @@ Page({ | ||
400 | appoint_pick_keyid: json_d.appoint_pick_keyid | 402 | appoint_pick_keyid: json_d.appoint_pick_keyid |
401 | 403 | ||
402 | }); | 404 | }); |
405 | + //商品详情广告---- | ||
406 | + a.wxParse("goodInfo_ad", "html", ut.format_content(e.goods_bottomconent), ee, 6); | ||
407 | + common.wxParseAddFullImageUrl(ee, "goodInfo_ad"); | ||
408 | + //------- | ||
403 | // ee.init(gid); | 409 | // ee.init(gid); |
404 | //------几人评价------- | 410 | //------几人评价------- |
405 | //n.init(th, "", "comments"); | 411 | //n.init(th, "", "comments"); |
packageC/pages/presell/goodsInfo/goodsInfo.wxml
@@ -338,6 +338,10 @@ | @@ -338,6 +338,10 @@ | ||
338 | <view class="wxParse"> | 338 | <view class="wxParse"> |
339 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> | 339 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> |
340 | </view> | 340 | </view> |
341 | + <!-- 详情广告 --> | ||
342 | + <view class="wxParse"> | ||
343 | + <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template> | ||
344 | + </view> | ||
341 | </view> | 345 | </view> |
342 | <!-- 推荐商品 --> | 346 | <!-- 推荐商品 --> |
343 | <view class="flex-center rel xc-linellae-frame"> | 347 | <view class="flex-center rel xc-linellae-frame"> |
@@ -427,6 +431,10 @@ | @@ -427,6 +431,10 @@ | ||
427 | <view class="wxParse"> | 431 | <view class="wxParse"> |
428 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> | 432 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> |
429 | </view> | 433 | </view> |
434 | + <!-- 详情广告 --> | ||
435 | + <view class="wxParse"> | ||
436 | + <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template> | ||
437 | + </view> | ||
430 | </view> | 438 | </view> |
431 | <!-- -------------评价页面------------ --> | 439 | <!-- -------------评价页面------------ --> |
432 | <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}"> | 440 | <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}"> |
pages/goods/goodsInfo/goodsInfo.js
1 | var t = require("../../../utils/util.js"), | 1 | var t = require("../../../utils/util.js"), |
2 | ut = t, | 2 | ut = t, |
3 | e = require("../../../utils/common.js"), | 3 | e = require("../../../utils/common.js"), |
4 | + common =e, | ||
4 | a = require("../../../utils/wxParse/wxParse.js"), | 5 | a = require("../../../utils/wxParse/wxParse.js"), |
5 | s = getApp(), | 6 | s = getApp(), |
6 | i = s.request, | 7 | i = s.request, |
@@ -274,8 +275,8 @@ Page({ | @@ -274,8 +275,8 @@ Page({ | ||
274 | showFold:true, | 275 | showFold:true, |
275 | new_share_imgurl:'', //普通商品分享图片 | 276 | new_share_imgurl:'', //普通商品分享图片 |
276 | 277 | ||
277 | - adding:0 //加入购物车的避免重复 | ||
278 | - | 278 | + adding:0 , //加入购物车的避免重复 |
279 | + goodInfo_ad:"",//商品详情广告 | ||
279 | }, | 280 | }, |
280 | 281 | ||
281 | //------初始化加载---------- | 282 | //------初始化加载---------- |
@@ -484,10 +485,15 @@ Page({ | @@ -484,10 +485,15 @@ Page({ | ||
484 | is_closecoupon: json_d.is_closecoupon, | 485 | is_closecoupon: json_d.is_closecoupon, |
485 | is_newsales_rules: json_d.is_newsales_rules, | 486 | is_newsales_rules: json_d.is_newsales_rules, |
486 | is_retail_price: json_d.is_retail_price || 0, | 487 | is_retail_price: json_d.is_retail_price || 0, |
487 | - appoint_pick_keyid: json_d.appoint_pick_keyid | ||
488 | - | 488 | + appoint_pick_keyid: json_d.appoint_pick_keyid, |
489 | + // goods_bottomconent:e.goods_bottomconent | ||
489 | }); | 490 | }); |
490 | 491 | ||
492 | + //商品详情广告---- | ||
493 | + a.wxParse("goodInfo_ad", "html", ut.format_content(e.goods_bottomconent), ee, 6); | ||
494 | + common.wxParseAddFullImageUrl(ee, "goodInfo_ad"); | ||
495 | + //------- | ||
496 | + | ||
491 | //------几人评价------- | 497 | //------几人评价------- |
492 | //n.init(th, "", "comments"); | 498 | //n.init(th, "", "comments"); |
493 | 499 |
pages/goods/goodsInfo/goodsInfo.wxml
@@ -868,6 +868,10 @@ | @@ -868,6 +868,10 @@ | ||
868 | <view class="wxParse"> | 868 | <view class="wxParse"> |
869 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> | 869 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> |
870 | </view> | 870 | </view> |
871 | + <!-- 详情广告 --> | ||
872 | + <view class="wxParse"> | ||
873 | + <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template> | ||
874 | + </view> | ||
871 | </view> | 875 | </view> |
872 | <!-- 推荐商品 --> | 876 | <!-- 推荐商品 --> |
873 | <view class="flex-center rel xc-linellae-frame"> | 877 | <view class="flex-center rel xc-linellae-frame"> |
@@ -950,6 +954,10 @@ | @@ -950,6 +954,10 @@ | ||
950 | <view class="wxParse"> | 954 | <view class="wxParse"> |
951 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> | 955 | <template is="wxParse" data="{{wxParseData:content.nodes}}"></template> |
952 | </view> | 956 | </view> |
957 | + <!-- 详情广告 --> | ||
958 | + <view class="wxParse"> | ||
959 | + <template is="wxParse" data="{{wxParseData:goodInfo_ad.nodes}}"></template> | ||
960 | + </view> | ||
953 | </view> | 961 | </view> |
954 | <!-- -------------评价页面------------ --> | 962 | <!-- -------------评价页面------------ --> |
955 | <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}"> | 963 | <view class="goods-comment" hidden="{{activeCategoryId==2?false:true}}"> |