| | |
| | | </view> |
| | | </view> |
| | | <view class="rightbackbox btnbox colCenCen" @tap="getCouponUrl()"> |
| | | <view class="priceText"> |
| | | <view v-if="frompage=='freebuy'" class="priceText"> |
| | | ¥{{optionsInfo.actualPrice}} |
| | | </view> |
| | | <view v-else class="priceText"> |
| | | ¥{{optionsInfo.fanli}} |
| | | </view> |
| | | <view class="texttips"> |
| | |
| | | showtar: false, |
| | | platform: '', |
| | | inviteCodeShow: false, |
| | | inviterShow: false |
| | | inviterShow: false, |
| | | frompage:'', |
| | | }; |
| | | }, |
| | | onPageScroll(e) { |
| | |
| | | console.log("初始化") |
| | | getApp().getAppInfo(); |
| | | } |
| | | //console.log("2222222222222222-"+getApp().globalData.hasbcinit); |
| | | if(!getApp().globalData.hasbcinit) |
| | | { |
| | | getApp().bcInit(); |
| | |
| | | this.showtar = getApp().globalData.ifwt == 1 ? false : true; |
| | | this.platform = plus.os.name |
| | | // #endif |
| | | if(options.frompage) |
| | | { |
| | | this.frompage=options.frompage; |
| | | } |
| | | if (options.id) { |
| | | this.optionsInfo.goodsId = options.id |
| | | this.pageType = this.optionsInfo.sourceType ? this.optionsInfo.sourceType : 'tb'; |
| | |
| | | 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 |
| | |
| | | }).then(e => { |
| | | console.log(e) |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | if(that.frompage=='freebuy') |
| | | {//0元购的记录商品id |
| | | console.log(e.data.info.itemId); |
| | | this.$u.api.updateFirstFreeBrowse({ |
| | | goodsid:that.optionsInfo.goodsId, |
| | | new_goodsId:e.data.info.itemId |
| | | }).then(e=>{ |
| | | |
| | | }); |
| | | } |
| | | var res = e.data.info; |
| | | var tburl = res.shortUrl |
| | | // #ifdef APP-PLUS |