zhaojs
2023-06-27 be5fb211d502ca106a5e927888de4510b6df7d40
public/html/fengqiangbang.html
@@ -29,13 +29,27 @@
        
        var _config = {
            appKey: 'bkuibk',//此处替换成用户appKey
            jumpGoodsUrl: function (items,sourceType,faction) {   //默认直接转链
            jumpGoodsUrl: function (items,sourceType) {   //默认直接转链
                var url='/pages/goods/goodsDetail?id=' + items.goodsid;
                switch(sourceType)
                {
                    case "jd":
                       var itemsStr=Infoformat(JSON.stringify(items));
                        url='/pages/goods/goodsDetail?sourcefrom=fqb&info=' + encodeURIComponent(itemsStr)
                        break;
                }
                uni.navigateTo({
                  url: '/pages/goods/goodsDetail?id=' + items.goodsid+"&sourceType="+sourceType+"&faction="+faction
                  url: url
                });
              //  return '/pages/goods/goodsDetail?id=' + items.goodsid; //替换为详细页面的地址
            }
        };
        function Infoformat(info){
            let formatObj = info.replace(/\%/g,"%25")
            formatObj = info.replace(/\#/g,"%23")
            formatObj = info.replace(/\&/g,"%26")
            formatObj = info.replace(/\?/g,"%3F")
            return formatObj;
        }
    </script>
    <style>
        body{
@@ -455,7 +469,7 @@
                        case "pdd":faction="p";break;
                        case "dy":faction="d";break;
                    }
                    _config.jumpGoodsUrl(items,this.platid,faction);
                    _config.jumpGoodsUrl(items,this.platid);
                }
                return;
                var params = {