| | |
| | | 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({ |
| | |
| | | }); |
| | | } |
| | | }; |
| | | 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{ |