绿满眶商城微信小程序-uniapp
zxl
2 天以前 c8cef398fbf1f9b63dbf23637ef520b421515dc9
pages/video/video-goods-detail-swiper.vue
@@ -302,7 +302,14 @@
import takeDownFormSaleGoods from "@/pages/product/m-take-down-sale-goods/index.vue"; //下架框
import setup from "@/pages/product/product/popup/popup.js";
import { getSessionId, userAction,userShare } from "@/api/userAction.js";
   import {
      prizeInfo,
      prizeNum,
      prize,
      grantRecord,
      addPrizeNum,
      getPrizeRule
   } from '@/api/prize.js'
import { getGoodsDetail } from "@/api/video.js"
import {
   getSTSToken
@@ -518,6 +525,16 @@
         });
         console.log('触发onLoad')
      }
      const shareId =   uni.getStorageSync("shareId");
      if(shareId){
      let param = {
         addType:"SHARE_USER_REGISTRY",
         extend:"",
      }
      let extend = {shareId:shareId}
      param.extend = JSON.stringify(extend)
      addPrizeNum(param);
      }
      this.actionParam.pageParams = JSON.stringify(options)
      this.videoId = options.videoId;
@@ -547,9 +564,9 @@
   async onShow() {
     getSessionId().then(res=>{
      this.pageSessionNo = res.data.data
      this.actionParam.sessionId = this.pageSessionNo
      if(this.pageSessionNo){
      let param = Object.assign({}, this.actionParam);
         param.sessionId = this.pageSessionNo
         userAction(param)
      }
     })