1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 分享一个很好用的外卖红包小程序源码(可三级裂变分销 绑定公众号)

分享一个很好用的外卖红包小程序源码(可三级裂变分销 绑定公众号)

时间:2020-11-26 07:56:21

相关推荐

分享一个很好用的外卖红包小程序源码(可三级裂变分销 绑定公众号)

一个小程序,一个公众号,每天可领叠加外卖红包,还有其它的福利捡漏,很好用的。抢茅台开源。

外卖cps带分销返利源码

怎么推广“外卖CPS项目”赚佣金?

饿了么美团外卖红包小程序搭建教程

源代码地址

搭建步骤

下载以上源代码到本地

成品展示

截图

步骤

下载以上源代码到本地

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

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

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

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

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

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

没用的代码

exports.alphasort = alphasortexports.alphasorti = alphasortiexports.setopts = setoptsexports.ownProp = ownPropexports.makeAbs = makeAbsexports.finish = finishexports.mark = markexports.isIgnored = isIgnoredexports.childrenIgnored = childrenIgnoredfunction ownProp (obj, field) {return Object.prototype.hasOwnProperty.call(obj, field)}var path = require("path")var minimatch = require("minimatch")var isAbsolute = require("path-is-absolute")var Minimatch = minimatch.Minimatchfunction alphasorti (a, b) {return a.toLowerCase().localeCompare(b.toLowerCase())}function alphasort (a, b) {return a.localeCompare(b)}function setupIgnores (self, options) {self.ignore = options.ignore || []if (!Array.isArray(self.ignore))self.ignore = [self.ignore]if (self.ignore.length) {self.ignore = self.ignore.map(ignoreMap)}}// ignore patterns are always in dot:true mode.function ignoreMap (pattern) {var gmatcher = nullif (pattern.slice(-3) === '/**') {var gpattern = pattern.replace(/(\/\*\*)+$/, '')gmatcher = new Minimatch(gpattern, {dot: true })}return {matcher: new Minimatch(pattern, {dot: true }),gmatcher: gmatcher}}function setopts (self, pattern, options) {if (!options)options = {}// base-matching: just use globstar for that.if (options.matchBase && -1 === pattern.indexOf("/")) {if (options.noglobstar) {throw new Error("base matching requires globstar")}pattern = "**/" + pattern}self.silent = !!options.silentself.pattern = patternself.strict = options.strict !== falseself.realpath = !!options.realpathself.realpathCache = options.realpathCache || Object.create(null)self.follow = !!options.followself.dot = !!options.dotself.mark = !!options.markself.nodir = !!options.nodirif (self.nodir)self.mark = trueself.sync = !!options.syncself.nounique = !!options.nouniqueself.nonull = !!options.nonullself.nosort = !!options.nosortself.nocase = !!options.nocaseself.stat = !!options.statself.noprocess = !!options.noprocessself.absolute = !!options.absoluteself.maxLength = options.maxLength || Infinityself.cache = options.cache || Object.create(null)self.statCache = options.statCache || Object.create(null)self.symlinks = options.symlinks || Object.create(null)setupIgnores(self, options)self.changedCwd = falsevar cwd = process.cwd()if (!ownProp(options, "cwd"))self.cwd = cwdelse {self.cwd = path.resolve(options.cwd)self.changedCwd = self.cwd !== cwd}self.root = options.root || path.resolve(self.cwd, "/")self.root = path.resolve(self.root)if (process.platform === "win32")self.root = self.root.replace(/\\/g, "/")// TODO: is an absolute `cwd` supposed to be resolved against `root`?// e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)if (process.platform === "win32")self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")self.nomount = !!options.nomount// disable comments and negation in Minimatch.// Note that they are not supported in Glob itself anyway.options.nonegate = trueoptions.nocomment = trueself.minimatch = new Minimatch(pattern, options)self.options = self.minimatch.options}function finish (self) {var nou = self.nouniquevar all = nou ? [] : Object.create(null)for (var i = 0, l = self.matches.length; i < l; i ++) {var matches = self.matches[i]if (!matches || Object.keys(matches).length === 0) {if (self.nonull) {// do like the shell, and spit out the literal globvar literal = self.minimatch.globSet[i]if (nou)all.push(literal)elseall[literal] = true}} else {// had matchesvar m = Object.keys(matches)if (nou)all.push.apply(all, m)elsem.forEach(function (m) {all[m] = true})}}if (!nou)all = Object.keys(all)if (!self.nosort)all = all.sort(self.nocase ? alphasorti : alphasort)// at *some* point we statted all of theseif (self.mark) {for (var i = 0; i < all.length; i++) {all[i] = self._mark(all[i])}if (self.nodir) {all = all.filter(function (e) {var notDir = !(/\/$/.test(e))var c = self.cache[e] || self.cache[makeAbs(self, e)]if (notDir && c)notDir = c !== 'DIR' && !Array.isArray(c)return notDir})}}if (self.ignore.length)all = all.filter(function(m) {return !isIgnored(self, m)})self.found = all}function mark (self, p) {var abs = makeAbs(self, p)var c = self.cache[abs]var m = pif (c) {var isDir = c === 'DIR' || Array.isArray(c)var slash = p.slice(-1) === '/'if (isDir && !slash)m += '/'else if (!isDir && slash)m = m.slice(0, -1)if (m !== p) {var mabs = makeAbs(self, m)self.statCache[mabs] = self.statCache[abs]self.cache[mabs] = self.cache[abs]}}return m}// lotta situps...function makeAbs (self, f) {var abs = fif (f.charAt(0) === '/') {abs = path.join(self.root, f)} else if (isAbsolute(f) || f === '') {abs = f} else if (self.changedCwd) {abs = path.resolve(self.cwd, f)} else {abs = path.resolve(f)}if (process.platform === 'win32')abs = abs.replace(/\\/g, '/')return abs}// Return true, if pattern ends with globstar '**', for the accompanying parent directory.// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contentsfunction isIgnored (self, path) {if (!self.ignore.length)return falsereturn self.ignore.some(function(item) {return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))})}function childrenIgnored (self, path) {if (!self.ignore.length)return falsereturn self.ignore.some(function(item) {return !!(item.gmatcher && item.gmatcher.match(path))})}

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