From 20d53d148ab6b5b8cf75247d306735c36b051c8a Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期二, 27 六月 2023 14:06:51 +0800 Subject: [PATCH] no message --- public/html/fengqiangbang.html | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/public/html/fengqiangbang.html b/public/html/fengqiangbang.html index 8a8bdb4..261e1dd 100644 --- a/public/html/fengqiangbang.html +++ b/public/html/fengqiangbang.html @@ -29,11 +29,17 @@ var _config = { appKey: 'bkuibk',//姝ゅ鏇挎崲鎴愮敤鎴穉ppKey - jumpGoodsUrl: function (items) { //榛樿鐩存帴杞摼 + jumpGoodsUrl: function (items,sourceType) { //榛樿鐩存帴杞摼 + var url='/pages/goods/goodsDetail?id=' + items.goodsid; + switch(sourceType) + { + case "jd": + url='/pages/goods/goodsDetail?info=' + encodeURIComponent(JSON.stringify(items)) + break; + } uni.navigateTo({ - url: '/pages/goods/goodsDetail?id=' + items.goodsid + url: url }); - // return '/pages/goods/goodsDetail?id=' + items.goodsid; //鏇挎崲涓鸿缁嗛〉闈㈢殑鍦板潃 } }; </script> @@ -366,7 +372,7 @@ <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;"> @@ -418,9 +424,9 @@ 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", @@ -447,7 +453,15 @@ 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); } return; var params = { @@ -712,6 +726,10 @@ }) }, imgFomate:function(img){ + if(this.platid!='tb') + { + return img; + } if(img.indexOf('http')!='-1'){ return img+'_310x310.jpg' }else{ -- Gitblit v1.9.3