当前位置:网站首页>(最新版) Wifi分销多开版+安装框架
(最新版) Wifi分销多开版+安装框架
2022-07-03 11:56:00 【程序员-南】
Wifi分销多开版
免费分享给大家
功能模块:
WIFI管理
新建编辑WIFI、累计有效次数统计、搜索WIFI、WIFI码管理、批量新建WIFI码
佣金管理
查看每日佣金记录
查看每次连接分成
任意比例设置
团队管理
团长、拓展员、商家
可任意设置下级佣金比例
可通过审核和拒绝代理申请
结算单管理
提现管理
支付宝提现、微信提现、收款码上传
话不多说先看效果图
小程序采用原生代码
use: [ "customLoading", "custom", "userInfo" ],
data: {
singlePage: "singlePage" === i.globalData.mode,
menuList: [],
defaultAvatar: "".concat(i.globalData.moduleHost, "/resources/image/default_user.png"),
defaultInvite: "".concat(i.globalData.moduleHost, "/resources/image/invite.png"),
defaultManager: "".concat(i.globalData.moduleHost, "/resources/image/invite.png"),
showPopupImage: !1,
currentItem: {
}
},
onLoad: function() {
var e = this;
t.default.getCustom(function(t) {
console.log("custom: ", t), e._initAd(), t.title && wx.setNavigationBarTitle({
title: t.title
});
});
},
_initAd: function() {
var e = this.data.$.custom;
wx.createInterstitialAd && 1 == e.ad_screen_active && (n = wx.createInterstitialAd({
adUnitId: e.ad_screen || ""
})).onError(function(e) {
console.error("插屏广告加载失败:", e);
});
},
onShow: function() {
var e = this.data.$.custom;
setTimeout(function() {
n && 1 == e.ad_screen_active && n.show().catch(function(e) {
console.error("插屏广告加载失败:", e);
});
}, 1e3 * e.ad_screen_timeout);
},
onClose: function() {
this.setData({
showPopupImage: !1
});
},
handleBannerItemClick: function(e) {
var t = e.currentTarget.dataset.item;
switch (t.type) {
case "h5":
t.url ? wx.navigateTo({
url: "/pages/webview/index?src=".concat(t.url)
}) : i.utils.modalText("未设置跳转内容,操作失败");
break;
case "mini":
wx.navigateToMiniProgram({
appId: t.appid,
path: decodeURIComponent(t.url),
fail: function(e) {
var a = e.errMsg;
"navigateToMiniProgram:fail invalid appid" === a ? i.utils.modalText("跳转失败,可能是小程序路径或appid填写错误") : "navigateToMiniProgram:fail can't navigate to myself" === a && wx.navigateTo({
url: decodeURIComponent(t.url)
});
}
});
}
},
handleItemClick: function(e) {
var t = e.currentTarget.dataset.item;
switch (t.type) {
case "h5":
t.url ? wx.navigateTo({
url: "/pages/webview/index?src=".concat(t.url)
}) : i.utils.modalText("未设置内容,操作失败");
break;
case "image":
t.content ? this.setData({
showPopupImage: !0,
currentItem: {
content: t.content
}
}) : i.utils.modalText("未设置内容,操作失败");
break;
case "text":
t.content ? wx.showModal({
title: t.title || "",
content: t.content,
showCancel: !1,
confirmText: t.confirm_text || "我知道了"
}) : i.utils.toastText("未设置内容,操作失败");
break;
case "mini":
if (!t.appid) return void wx.navigateTo({
url: t.url
});
wx.navigateToMiniProgram({
appId: t.appid,
path: decodeURIComponent(t.url),
fail: function(e) {
var a = e.errMsg;
"navigateToMiniProgram:fail invalid appid" === a ? i.utils.modalText("跳转失败,可能是小程序路径或appid填写错误") : "navigateToMiniProgram:fail can't navigate to myself" === a && wx.navigateTo({
url: t.url
});
}
});
}
},
handleCreateWifi: function() {
wx.navigateTo({
url: "/wifi/edit/index"
});
},
handleManagerClick: function() {
wx.navigateTo({
url: "/wifi/list/index"
});
},
handleInvite: function() {
wx.navigateTo({
url: "/pages/invite/index"
});
},
handleMember: function() {
wx.navigateTo({
url: "/pages/member/index"
});
},
onShareAppMessage: function() {
var e = this.data.$.custom || {
};
return {
title: e.share_title || "无需密码,一键连WiFi",
path: "/pages/home/index?share=1&uid=" + this.data.$.userInfo.id,
imageUrl: e.share_icon || i.globalData.moduleHost + "/resources/image/wifi_square2.png"
};
},
onShareTimeline: function() {
var e = this.data.$.custom || {
};
return {
title: e.share_title || "点击创建您的专属WiFi",
imageUrl: e.share_icon || i.globalData.moduleHost + "/resources/image/wifi_square2.png"
};
}
附上下载地址:立即下载
留下个关注吧~
感谢阅读
边栏推荐
- [combinatorics] permutation and combination (summary of permutation and combination content | selection problem | set permutation | set combination)
- Nodejs+Express+MySQL实现登陆功能(含验证码)
- 剑指Offer03. 数组中重复的数字【简单】
- temp
- The future of cloud computing cloud native
- (construction notes) grasp learning experience
- Pki/ca and digital certificate
- Flutter Widget : Flow
- Shutter: add gradient stroke to font
- Applet wxss introduction
猜你喜欢
【附下载】密码获取工具LaZagne安装及使用
ES6新特性
With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?
剑指Offer09. 用两个栈实现队列
4000字超详解指针
Sword finger offer03 Repeated numbers in the array [simple]
Sword finger offer06 Print linked list from end to end
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
Idea packages the web project into a war package and deploys it to the server to run
OpenGL index cache object EBO and lineweight mode
随机推荐
2.9 overview of databinding knowledge points
20. Valid brackets
LeetCode 0556.下一个更大元素 III - 4步讲完
Is it safe to open an account for online stock speculation? Who can answer
Introduction to concurrent programming (II)
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
Shutter widget: centerslice attribute
云计算未来 — 云原生
Adult adult adult
雲計算未來 — 雲原生
347. Top k high frequency elements
公纵号发送提示信息(用户微服务--消息微服务)
2021 autumn Information Security Experiment 1 (password and hiding technology)
[combinatorics] permutation and combination (summary of permutation and combination content | selection problem | set permutation | set combination)
Public and private account sending prompt information (user microservice -- message microservice)
[ManageEngine] the role of IP address scanning
Sword finger offer05 Replace spaces
Sword finger offer03 Repeated numbers in the array [simple]
Sqoop1.4.4原生增量导入特性探秘
idea将web项目打包成war包并部署到服务器上运行