| | |
| | | |
| | | var _config = { |
| | | appKey: 'bkuibk',//此处替换成用户appKey |
| | | jumpGoodsUrl: function (items) { //默认直接转链 |
| | | jumpGoodsUrl: function (items,sourceType,faction) { //默认直接转链 |
| | | uni.navigateTo({ |
| | | url: '/pages/goods/goodsDetail?id=' + items.goodsid |
| | | url: '/pages/goods/goodsDetail?id=' + items.goodsid+"&sourceType="+sourceType+"&faction="+faction |
| | | }); |
| | | // return '/pages/goods/goodsDetail?id=' + items.goodsid; //替换为详细页面的地址 |
| | | } |
| | |
| | | <span>{{item.dtitle}}</span> |
| | | </div> |
| | | <div class="lable" style="margin-bottom: 12px;"> |
| | | <div class="coupon" style="display: inline-flex;"> |
| | | <div v-if="item.quanJine>0" class="coupon" style="display: inline-flex;"> |
| | | <span>券</span>{{item.quanJine}}元 |
| | | </div> |
| | | <div style="margin-left:10px;background: linear-gradient(-90deg, #7619EC, #A429F3);" class="coupon" style="display: inline-flex;"> |
| | |
| | | ss:0, |
| | | cid:0, |
| | | type:1, |
| | | posturl:'http://dfg.shop.com', |
| | | //posturl:'http://dfg.shop.com', |
| | | // posturl:'http://dfgapp.ushopvip.com', |
| | | //posturl:'http://appapitest.ushopvip.com', |
| | | posturl:'http://appapitest.ushopvip.com', |
| | | platlist:[ |
| | | { |
| | | id:"tb", |
| | |
| | | methods:{ |
| | | handleCdetailFavorite: function (items) { |
| | | if(_config.jumpGoodsUrl){ |
| | | _config.jumpGoodsUrl(items); |
| | | var faction='t'; |
| | | switch(this.platid) |
| | | { |
| | | case "tb":faction="t";break; |
| | | case "jd":faction="j";break; |
| | | case "pdd":faction="p";break; |
| | | case "dy":faction="d";break; |
| | | } |
| | | _config.jumpGoodsUrl(items,this.platid,faction); |
| | | } |
| | | return; |
| | | var params = { |
| | |
| | | }) |
| | | }, |
| | | imgFomate:function(img){ |
| | | if(this.platid!='tb') |
| | | { |
| | | return img; |
| | | } |
| | | if(img.indexOf('http')!='-1'){ |
| | | return img+'_310x310.jpg' |
| | | }else{ |