绿满眶商城微信小程序-uniapp
zxl
3 天以前 796977e24baa7c1d3a333e2c1c8e06ca73fd9a56
pages/health/healthVideo.vue
@@ -265,6 +265,14 @@
import { getUserInfo } from "@/api/members";
import storage from "@/utils/storage.js";
import { getSessionId, userAction,userShare } from "@/api/userAction.js";
   import {
      prizeInfo,
      prizeNum,
      prize,
      grantRecord,
      addPrizeNum,
      getPrizeRule
   } from '@/api/prize.js'
export default {
  components: {TopBar},
  computed: {
@@ -376,12 +384,22 @@
  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)
      }
     })   
     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);
     }
     // const token = storage.getAccessToken();
     // if (! token) {
       //  this.wxSilentLogin(() => {