| | |
| | | </view> |
| | | </view> |
| | | <view class="vip-info-container rowCenBet" v-if="!showtar || platform!='iOS'"> |
| | | <view class="left-info" v-if="user.level != 3"> |
| | | 现在升级成为{{pageInfo.topLevelName}},立即赚{{pageInfo.topFanli}}元 |
| | | </view> |
| | | <view class="left-info" v-else> |
| | | 您已经是最高等级,快去邀请好友赚佣金吧! |
| | | </view> |
| | | |
| | | <view class="left-info" v-if="user.level != 3"> |
| | | 现在升级成为{{pageInfo.topLevelName}},立即赚{{pageInfo.topFanli}}元 |
| | | </view> |
| | | <view class="left-info" v-else> |
| | | 您已经是最高等级,快去邀请好友赚佣金吧! |
| | | </view> |
| | | |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-if="user.level != 3"> |
| | | <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | 立即升级 |
| | | </view> |
| | | </view> |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-else> |
| | | <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | 立即查看 |
| | | </view> |
| | | </view> |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-if="user.level != 3"> |
| | | <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | 立即升级 |
| | | </view> |
| | | </view> |
| | | <view class="rt-btn rowCenCen" @tap="golevelRules()" v-else> |
| | | <image class="vipimg" src="../../static/images/goods/vip.png" mode="aspectFill"></image> |
| | | <view class="level-txt"> |
| | | 立即查看 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="quanWrap" v-if="optionsInfo.couponPrice>0 || pageInfo.couponPrice>0"> |
| | | <image src="../../static/images/goods/qbg.png" mode='aspectFit' class="quanBg"></image> |
| | |
| | | <image class="detailpic" :src="items" mode="widthFix"></image> |
| | | </block> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | |
| | | <view class="bottombox"> |
| | | </view> |
| | | <view class="footerWrap rowSta"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | <view class="right-container rowCen borderBox"> |
| | | <!-- <view class="right-container rowCen borderBox" v-if="!showtar || platform!='iOS'"> |
| | | <view class="leftsharebox btnbox colCenCen" @tap="goPath()"> |
| | | <view class="priceText"> |
| | | ¥{{optionsInfo.fanli}} |
| | |
| | | 购买返 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view class="right-container rowCen borderBox"> |
| | | <view class="leftsharebox btnbox colCenCen" style="background: #ffb030;" @tap="goPath()"> |
| | | <view class="priceText"> |
| | | ¥{{optionsInfo.fanli}} |
| | | </view> |
| | | <view class="texttips"> |
| | | 分享赚 |
| | | </view> |
| | | </view> |
| | | <view class="rightbackbox btnbox colCenCen" style="background: #fe0350;" @tap="getCouponUrl()"> |
| | | <view v-if="frompage=='freebuy'" class="priceText"> |
| | | ¥{{optionsInfo.actualPrice}} |
| | | </view> |
| | | <view v-else class="priceText"> |
| | | ¥{{optionsInfo.fanli}} |
| | | </view> |
| | | <view class="texttips"> |
| | | 购买返 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- taobao --> |
| | |
| | | <u-popup v-model="inviterShow" mode="center" border-radius="32" v-if="inviterShow" :mask-close-able='true'> |
| | | <inviter-model ref='invitermodel' @rewrite='rewriteCode' @setInvite='setCodebtn'></inviter-model> |
| | | </u-popup> |
| | | <uni-popup ref="popup_pddtip" type="center"> |
| | | <view class="pdd_pop_contant"> |
| | | <view class="pdd_pop_title">比价订单</view> |
| | | <view class="pdd_pop_text">本次自购涉及比价行为,自购收益为0,建议先收藏该商品,2小时候通过大返官app购买,可正常获取对应收益。</view> |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | inviteCodeShow: false, |
| | | inviterShow: false, |
| | | frompage:'', |
| | | isshowpdd:false |
| | | }; |
| | | }, |
| | | onPageScroll(e) { |
| | |
| | | getApp().bcInit(); |
| | | } |
| | | }, |
| | | onReady(){ |
| | | if(this.isshowpdd) |
| | | { |
| | | this.$refs.popup_pddtip.open(); |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | this.appinfo = utils.getCacheSync('appInfo') |
| | | // #ifdef APP-PLUS |
| | |
| | | this.pageType = this.optionsInfo.sourceType ? this.optionsInfo.sourceType : 'tb'; |
| | | this.faction = this.optionsInfo.faction ? this.optionsInfo.faction : 't'; |
| | | } else { |
| | | console.log(options); |
| | | this.optionsInfo = JSON.parse(options.info); |
| | | this.pageInfo = JSON.parse(options.info); |
| | | console.log(options); |
| | | if(options.sourcefrom) |
| | | { |
| | | console.log(decodeURIComponent(options.info)); |
| | | this.optionsInfo = JSON.parse(decodeURIComponent(options.info)); |
| | | this.pageInfo = JSON.parse(decodeURIComponent(options.info)); |
| | | console.log(this.optionsInfo) |
| | | } |
| | | else |
| | | { |
| | | this.optionsInfo = JSON.parse(options.info); |
| | | this.pageInfo = JSON.parse(options.info); |
| | | } |
| | | |
| | | this.pageType = this.optionsInfo.sourceType; |
| | | if (!this.optionsInfo.faction) { |
| | | if (this.pageType == 'tb' || this.pageType == 'tm' || this.pageType == 'tmshop') this.faction = 't'; |
| | | if (this.pageType == 'jd') this.faction = 'j'; |
| | | if (this.pageType == 'pdd') this.faction = 'p'; |
| | | if (this.pageType == 'pdd') |
| | | { |
| | | this.faction = 'p'; |
| | | if(options.proform&&options.proform=="clipboard") |
| | | {//来自剪贴板 |
| | | this.isshowpdd=true; |
| | | } |
| | | } |
| | | if (this.pageType == 'wph') this.faction = 'w'; |
| | | if (this.pageType == 'dy') this.faction = 'd'; |
| | | } else { |
| | |
| | | goodsId: this.optionsInfo.goodsId, |
| | | goods: JSON.stringify(this.optionsInfo) |
| | | }).then(e => { |
| | | console.log(e) |
| | | var res = e.data.detailPics; |
| | | this.JdDetails = that.JdDetails.concat(res) |
| | | that.$forceUpdate() |
| | |
| | | console.log(this.pageType) |
| | | if (this.pageType == 'tb' || this.pageType == 'tmshop' || this.pageType == 'tm') { |
| | | if (this.user.tb_account) { |
| | | |
| | | this.getTbsrc() |
| | | } else { |
| | | this.empowerModel = true |
| | |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | if(that.frompage=='freebuy') |
| | | {//0元购的记录商品id |
| | | console.log(e.data.info.itemId); |
| | | console.log(e.data.info.itemId); |
| | | this.$u.api.updateFirstFreeBrowse({ |
| | | goodsid:that.optionsInfo.goodsId, |
| | | new_goodsId:e.data.info.itemId |
| | | new_goodsId:e.data.info.itemId, |
| | | plateform:'tb' |
| | | }).then(e=>{ |
| | | |
| | | }); |
| | |
| | | }).then(e => { |
| | | var res = e.data.info; |
| | | console.log(res) |
| | | if(that.frompage=='freebuy') |
| | | {//0元购的记录商品id |
| | | this.$u.api.updateFirstFreeBrowse({ |
| | | goodsid:that.optionsInfo.goodsId, |
| | | new_goodsId:that.optionsInfo.goodsId, |
| | | plateform:'dy' |
| | | }).then(e=>{ |
| | | |
| | | }); |
| | | } |
| | | // #ifdef APP-PLUS |
| | | plus.runtime.openURL(res.dy_deeplink, e => { |
| | | uni.navigateTo({ |
| | |
| | | } |
| | | </style> |
| | | <style lang="scss" scoped> |
| | | .pdd_pop_contant{ |
| | | background-color: rgb(255, 255, 255); |
| | | padding: 40rpx; |
| | | width: 80%; |
| | | margin:0 auto; |
| | | border-radius: 20rpx; |
| | | .pdd_pop_title |
| | | { |
| | | text-align: center; |
| | | margin-bottom: 30rpx; |
| | | font-size: 18px; |
| | | } |
| | | .pdd_pop_text |
| | | { |
| | | margin-bottom: 30rpx; |
| | | color: #868080; |
| | | } |
| | | } |
| | | .container { |
| | | .flexbox { |
| | | position: fixed; |
| | |
| | | border-radius: 5rpx; |
| | | padding: 0 20rpx; |
| | | margin-bottom: 20rpx; |
| | | |
| | | |
| | | .left-info { |
| | | font-size: 24rpx; |
| | | font-weight: 500; |