| | |
| | | </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 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"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view v-else 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 --> |
| | |
| | | import pddEmpower from '../../components/pddempower.vue' |
| | | import inviteCodeModel from '../../components/inviteCode.vue' |
| | | import inviterModel from '../../components/inviterModel.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | empowerModel, |
| | |
| | | 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(); |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | this.appinfo = utils.getCacheSync('appInfo') |
| | |
| | | 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 |
| | |
| | | goodsId: this.optionsInfo.goodsId, |
| | | type: 0 |
| | | }).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 |
| | | |
| | | if (plus.runtime.isApplicationExist({ |
| | | pname: 'com.taobao.taobao', |
| | | action: 'taobao://' |