| | |
| | | <button class="chance-item" open-type="share"> |
| | | <view class="chance-icon">👥</view> |
| | | <text class="chance-title">分享好友</text> |
| | | <text class="chance-subtitle">+1次机会</text> |
| | | </button> |
| | | <!-- <view class="chance-item" @tap="shareToTimeline"> |
| | | <view class="chance-icon">🌐</view> |
| | |
| | | <view class="chance-item" @tap="watchVideo"> |
| | | <view class="chance-icon">🎬</view> |
| | | <text class="chance-title">浏览视频</text> |
| | | <text class="chance-subtitle">+1次机会</text> |
| | | </view> |
| | | <view class="chance-item" @tap="browseProduct"> |
| | | <view class="chance-icon">🛍️</view> |
| | | <text class="chance-title">浏览商品</text> |
| | | <text class="chance-subtitle">+1次机会</text> |
| | | </view> |
| | | <view class="chance-item " @tap="goShopping"> |
| | | <view class="chance-icon">🛒</view> |
| | | <text class="chance-title">去购物</text> |
| | | <text class="chance-subtitle">享受购物乐趣</text> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | prizeInfo, |
| | | prizeNum, |
| | | prize, |
| | | grantRecord |
| | | grantRecord, |
| | | addPrizeNum |
| | | } from '@/api/prize.js' |
| | | export default { |
| | | data() { |
| | |
| | | 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); |
| | | |
| | | let param2 = { |
| | | addType:"USER_STAY_TIME", |
| | | extend:"", |
| | | } |
| | | addPrizeNum(param2); |
| | | } |
| | | }, |
| | | async onLoad(option) { |
| | | if(option.shareId){ |