个人小程序/京东推广链接/长链接/短连接/跳转到京东购物小程序

1. path 页面路径:

商详或二合一页面路径格式:pages/union/proxy/proxy?spreadUrl={encoded 联盟推广链接} 

/pages/union/proxy/proxy?spreadUrl=https%3A%2F%2Funion-click.jd.com%2Fjdc%3Fe%3D%26p%3DAyIGZRprEAYUAFYTWCVGTV8LRGtMR1dGFxBFC1pXUwkEAEAdQFkJBV4RBBUEXRhETEdOWmVCWFZrREQ3WjhCXhBUFVstHXkITgNNVxkyFwZUGlgcBxcBVytbFAMQB1cbXRIEIjdVHmtDbBIGVBpaFAMaBFcrWRQDEQFUHlocBiIHUhpZFAQaBFMZXRIFIgddH2teQxEGVhpaEwIWN2UrWCUyIgdlGGtLbBNUVRIJRlVGaQ9NDRQDQAQCdVwWAhsHUh9rFwMTBVc%253D

 

2. 注意

1) spreadUrl=联盟推广链接,其中联盟推广链接需要 encodeURIComponent

示例:联盟推广链接是 https%3A%2F%2Funion-click.jd.com%2Fjdc%3Fe%3D%26p%3DAyIGZRprEAYUAFYTWCVGTV8LRGtMR1dGFxBFC1pXUwkEAEAdQFkJBV4RBBUEXRhETEdOWmVCWFZrREQ3WjhCXhBUFVstHXkITgNNVxkyFwZUGlgcBxcBVytbFAMQB1cbXRIEIjdVHmtDbBIGVBpaFAMaBFcrWRQDEQFUHlocBiIHUhpZFAQaBFMZXRIFIgddH2teQxEGVhpaEwIWN2UrWCUyIgdlGGtLbBNUVRIJRlVGaQ9NDRQDQAQCdVwWAhsHUh9rFwMTBVc%253D,需 encodeURIComponent 后

传参,

encodeURIComponent(‘https%3A%2F%2Funion-click.jd.com%2Fjdc%3Fe%3D%26p%3DAyIGZRprEAYUAFYTWCVGTV8LRGtMR1dGFxBFC1pXUwkEAEAdQFkJBV4RBBUEXRhETEdOWmVCWFZrREQ3WjhCXhBUFVstHXkITgNNVxkyFwZUGlgcBxcBVytbFAMQB1cbXRIEIjdVHmtDbBIGVBpaFAMaBFcrWRQDEQFUHlocBiIHUhpZFAQaBFMZXRIFIgddH2teQxEGVhpaEwIWN2UrWCUyIgdlGGtLbBNUVRIJRlVGaQ9NDRQDQAQCdVwWAhsHUh9rFwMTBVc%253D’)

即 https%3A%2F%2Funion-click.jd.com%2Fjdc%3Fe%3D%26p%3DAyIGZRprEAYUAFYTWCVGTV8LRGtMR1dGFxBFC1pXUwkEAEAdQFkJBV4RBBUEXRhETEdOWmVCWFZrREQ3WjhCXhBUFVstHXkITgNNVxkyFwZUGlgcBxcBVytbFAMQB1cbXRIEIjdVHmtDbBIGVBpaFAMaBFcrWRQDEQFUHlocBiIHUhpZFAQaBFMZXRIFIgddH2teQxEGVhpaEwIWN2UrWCUyIgdlGGtLbBNUVRIJRlVGaQ9NDRQDQAQCdVwWAhsHUh9rFwMTBVc%253D

 

欢迎了解我的个人微信小程序,搜索京淘查价,查询商品历史价格

 

 

 

    原文作者:shasha483
    原文地址: https://blog.csdn.net/shasha483/article/details/109157923
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞