zhaojs
2023-06-27 be5fb211d502ca106a5e927888de4510b6df7d40
public/html/fengqiangbang.html
@@ -34,7 +34,8 @@
                switch(sourceType)
                {
                    case "jd":
                        url='/pages/goods/goodsDetail?info=' + encodeURIComponent(JSON.stringify(items))
                       var itemsStr=Infoformat(JSON.stringify(items));
                        url='/pages/goods/goodsDetail?sourcefrom=fqb&info=' + encodeURIComponent(itemsStr)
                        break;
                }
                uni.navigateTo({
@@ -42,6 +43,13 @@
                });
            }
        };
        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{