淘宝联盟饿了么推广 API取链转链 永久有效
作者:互联网
直接上代码:
美团/饿了么外卖CPS联盟返利公众号小程序裂变核心源码
源代码地址
https://gitee.com/caonima008/coupon/
步骤
- 下载以上源代码到本地
https://gitee.com/caonima008/coupon/ - 修改为你自己的微信小程序,打开 /dist/pages/ele/index.js
- 微信小程序->开发管理->开发设置 添加 request的域名: 地址:
https://mp.weixin.qq.com/wxamp/devprofile/get_profile?token=271531762&lang=zh_CN
- 小程序管理后台配置你的链接
后台地址: http://q.mybei.cn - 进去之后选择小程序管理->无裂变小程序管理->添加小程序->填入你自己的链接
- 微信开发者工具,导入项目,提交审核
成品展示
return {
current: 0,
tabs: [
{
icon: '/static/all.png',
text: '全部',
tabId: 0
},
{
icon: '/static/ele.png',
text: '饿了么',
tabId: 1
},
{
icon: '/static/meituan.png',
text: '美团',
tabId: 2
},
// {
// icon: '/static/11.png',
// text: '双十一',
// tabId: 5,
// },
{
icon: '/static/didi.jpg',
text: '打车',
tabId: 3
},
{
icon: '/static/vip.png',
text: '更多',
tabId: 4,
}
],
couponList: [],
coupons: [
{
name: '饿了么红包',
icon: '/static/coupon/ele.png',
bannerPic: '/static/coupon/ele_banner.png',
url:
'https://tb.ele.me/wow/ele-ad/act/elmtkhd?wh_biz=tm&from=cps_tk&ali_trackid=2:mm_17120259_1010400477_109662050039:1607398661_119_1629495769&e=-s022gHq5crPAmiDjxfUJROfATV4nr9Y1FFtZuCzlv27mRUTeZ0QE64UVHKHFuMuONvsF6zKMmObEje2lfmV4xcMndCkKGN82ncKjxDgv3oKeRnj5dFGkw0BGavJ6RgdkoJLCXMnrHGjPEv5ttQNbNMm9WDjC2BxL9aGWjy0uED82X4WDcbFzM3Z7VR28KvAIMmPfPPQ7PIUSSnsLX1wF8KDVT7Ixewyypsi41tM8dvXtd1UEu8xf6eiPgnegetzxUeG0IYKPKv91Nsuybs9m5BFKdKN&union_lens=lensId%3AAPP%401607395473%400b83472c_0fa8_176403c777e_1409%40023MZVePSQEXiGt6FZGcA7R4',
type: 1,
tabId: 1,
minapp: {
appid: 'wxece3a9a4c82f58c9',
path:
'pages/sharePid/web/index?scene=s.click.ele.me%2FeoTiVtu'
}
},
{
name: '饿了么超级红包',
icon: '/static/coupon/ele.png',
bannerPic: '/static/coupon/elede.png',
url:
'https://tb.ele.me/wow/ele-ad/act/elmtkhd?wh_biz=tm&from=cps_tk&ali_trackid=2:mm_17120259_1010400477_109662050039:1607398661_119_1629495769&e=-s022gHq5crPAmiDjxfUJROfATV4nr9Y1FFtZuCzlv27mRUTeZ0QE64UVHKHFuMuONvsF6zKMmObEje2lfmV4xcMndCkKGN82ncKjxDgv3oKeRnj5dFGkw0BGavJ6RgdkoJLCXMnrHGjPEv5ttQNbNMm9WDjC2BxL9aGWjy0uED82X4WDcbFzM3Z7VR28KvAIMmPfPPQ7PIUSSnsLX1wF8KDVT7Ixewyypsi41tM8dvXtd1UEu8xf6eiPgnegetzxUeG0IYKPKv91Nsuybs9m5BFKdKN&union_lens=lensId%3AAPP%401607395473%400b83472c_0fa8_176403c777e_1409%40023MZVePSQEXiGt6FZGcA7R4',
type: 3,
tabId: 1,
minapp: {
appid: 'wxece3a9a4c82f58c9',
path:
'ele-recommend-price/pages/guest/index?inviterId=28d2c682'
}
},
{
name: '饿了么果蔬大折扣',
icon: '/static/coupon/ele.png',
bannerPic: '/static/coupon/elecs.png',
url: 'https://tb.ele.me/wow/ele-ad/act/dgz-xls-online?wh_biz=tm&ali_trackid=2:mm_17120259_1010400477_109662050039:1607411389_119_1507480059&e=-s029aNb27DVXFFiL6Ir4pMplDoS0coNnv6WsDyi0fC9REQSHrKXuXkIRL2IW0dQYccl1oImXofSsHyPcJkhJeoLAoPIcnvr7QvBsE4lTLsu1afVA0hSy8h6GPr3BUqDrMJYUnmqdEMKATgqH3AN1P9Ejt90zKB2sI805JoDlIIsGHvqKWn1Fa4VRVAma4imlDsYJOExCch6S0MePZAfdpKZeOI6jmFi9t0cQEBZH3zDwCGFfWNnIhtCxkhjyeGsCmjeZRqyKu5kugrME&union_lens=lensId%3AAPP%401607411363%40210751e2_0da7_176412eef2f_789a%40024umgIuxX5oWPZd7lsKJbVd',
type: 3,
tabId: 1,
minapp: {
appid: 'wxece3a9a4c82f58c9',
path: 'pages/sharePid/web/index?scene=s.click.ele.me%2FmZsiVtu'
}
},
{
name: '美团外卖红包',
icon: '/static/coupon/meituan.png',
bannerPic: '/static/coupon/mt56.png',
url:
'https%3a%2f%2fact.meituan.com%2fclover%2fpage%2fadunioncps%2fshare_coupon%3futmSource%3d57967%26utmMedium%3d3F46DFE8D61434CD17CF77DB9230DCE6%26activity%3dOwMkGzn6oK',
type: 1,
tabId: 2,
minapp: {
appid: 'wxde8ac0a21135c07d',
path:
'/index/pages/h5/h5?weburl=https%3a%2f%2fact.meituan.com%2fclover%2fpage%2fadunioncps%2fshare_coupon%3futmSource%3d57967%26utmMedium%3d3F46DFE8D61434CD17CF77DB9230DCE6%26activity%3dOwMkGzn6oK'
}
}
标签:tabId,coupon,ele,API,static,取链,转链,png,icon 来源: https://blog.csdn.net/waimai_hongbao/article/details/114376499