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