Commit a0ba21c7 by luyt

fix;分享产看产品

1 parent 2fd0ef8c
...@@ -142,7 +142,7 @@ Page({ ...@@ -142,7 +142,7 @@ Page({
let { let {
actNum, actNum,
activeNavIdx, activeNavIdx,
apiData, // apiData,
outshowVideo, outshowVideo,
// origin //跳转来源 home // origin //跳转来源 home
} = options; } = options;
...@@ -155,20 +155,20 @@ Page({ ...@@ -155,20 +155,20 @@ Page({
this.setData({ this.setData({
actNum, actNum,
activeNavIdx, activeNavIdx,
apiData, // apiData,
outshowVideo, outshowVideo,
// origin // origin
// isShare // isShare
}); });
let apiDataJson = JSON.stringify(apiData); // let apiDataJson = JSON.stringify(apiData);
let item = apiData[actNum]?.productList[activeNavIdx]; let item = senceData[actNum]?.productList[activeNavIdx];
this.shareQuery = `sceneCode=${apiData[actNum].sceneCode}&productCode=${ this.shareQuery = `sceneCode=${senceData[actNum].sceneCode}&productCode=${
item?.productCode item?.productCode
}&isShare=${true}&productDesc=${item?.productName}&category=${ }&isShare=${true}&productDesc=${item?.productName}&category=${
item?.category item?.category
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&apiData=${apiDataJson}`; }&actNum=${actNum}&activeNavIdx=${activeNavIdx}`;
this.shareTrackData = { this.shareTrackData = {
sceneCode: apiData[actNum]?.sceneCode, sceneCode: senceData[actNum]?.sceneCode,
productCode: item?.productCode, productCode: item?.productCode,
productName: item?.productName, productName: item?.productName,
category: item?.category, category: item?.category,
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</view> </view>
</view> </view>
</view> </view>
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" senceData="{{senceData}}" origin="home" apiData="{{apiData}}" bindsharehandle="sharehandle" /> <product stickyTop="{{headerHeight}}" actNum="{{actNum}}" senceData="{{senceData}}" origin="home" bindsharehandle="sharehandle" />
</view> </view>
<!-- 看线索内容 --> <!-- 看线索内容 -->
<view class="clue" wx:if="{{tabIndx == 0 }}" hover-class="none" hover-stop-propagation="false"> <view class="clue" wx:if="{{tabIndx == 0 }}" hover-class="none" hover-stop-propagation="false">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!