600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > 外卖优惠券小程序源码 美团外卖 饿了么外卖红包

外卖优惠券小程序源码 美团外卖 饿了么外卖红包

时间:2021-06-20 12:53:43

相关推荐

外卖优惠券小程序源码 美团外卖 饿了么外卖红包

美团/饿了么外卖小程序源码

只需注册阿里妈妈/美团联盟,就可以轻松获取推广佣金。

做淘客、京东联盟、多多客等导购的app越来越多,不少人在找美团和饿了么外卖红包的小程序源码!分享给大家

订单侠开放平台-美团联盟CPS外卖红包API可以一键生成适用于H5、App端推广活动页面链接,用户通过活动页链接领取相关优惠券红包,红包可在美团APP、美团外卖APP、美团外卖小程序下单且选择在线支付时使用。

一、简单算下投产:

投入:

1)时间:不到3天,平均每天2-3个小时左右;

2)人力:一个公众号,配置好菜单栏、自动回复;

3)裂变小程序,支持裂变跟踪

美团/饿了么外卖CPS联盟返利公众号小程序裂变核心源码

源代码地址

步骤

下载以上源代码到本地

修改为你自己的微信小程序,打开 /dist/pages/ele/index.js

微信小程序->开发管理->开发设置 添加 request的域名: 地址:

https://mp./wxamp/devprofile/get_profile?token=271531762&lang=zh_CN

小程序管理后台配置你的链接

后台地址:

进去之后选择小程序管理->无裂变小程序管理->添加小程序->填入你自己的链接

微信开发者工具,导入项目,提交审核

成品展示

代码

'use strict'var glob = require('glob')var path = require('path')function trueCasePathSync(fsPath) {// Normalize the path so as to resolve . and .. components.// !! As of Node v4.1.1, a path starting with ../ is NOT resolved relative// !! to the current dir, and glob.sync() below then fails.// !! When in doubt, resolve with fs.realPathSync() *beforehand*.var fsPathNormalized = path.normalize(fsPath)// OSX: HFS+ stores filenames in NFD (decomposed normal form) Unicode format,// so we must ensure that the input path is in that format first.if (process.platform === 'darwin') fsPathNormalized = fsPathNormalized.normalize('NFD')// !! Windows: Curiously, the drive component mustn't be part of a glob,// !! otherwise glob.sync() will invariably match nothing.// !! Thus, we remove the drive component and instead pass it in as the 'cwd'// !! (working dir.) property below.var pathRoot = path.parse(fsPathNormalized).rootvar noDrivePath = fsPathNormalized.slice(Math.max(pathRoot.length - 1, 0))// Perform case-insensitive globbing (on Windows, relative to the drive /// network share) and return the 1st match, if any.// Fortunately, glob() with nocase case-corrects the input even if it is// a *literal* path.return glob.sync(noDrivePath, {nocase: true, cwd: pathRoot })[0]}module.exports = trueCasePathSync

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。