1 Star 0 Fork 1

关贺/表情包小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.js 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
关贺 提交于 2020-07-27 13:47 . 表情小程序
function e(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
var t;
App({
onLaunch: function() {
var e = this;
wx.cloud.init();
var t = this;
wx.getSetting({
success: function(e) {
e.authSetting["scope.userInfo"] ? t.scopeUserInfo = 1 : t.scopeUserInfo = 0;
}
}), this.globalData.myDevice = wx.getSystemInfoSync(), wx.login({
success: function(e) {}
}), wx.getSetting({
success: function(t) {
t.authSetting["scope.userInfo"] && wx.getUserInfo({
success: function(t) {
e.globalData.userInfo = t.userInfo, e.userInfoReadyCallback && e.userInfoReadyCallback(t);
}
});
}
}), wx.request({
url: "https://ishare20.net/gifmaker/appset.json",
headers: {
"Content-Type": "application/json"
},
success: function(e) {
t.globalData.appset = e.data;
}
}), wx.request({
url: "https://ishare20.net/gifmaker/wxminiset.json",
headers: {
"Content-Type": "application/json"
},
success: function(e) {
t.globalData.wxminiset = e.data;
}
});
},
globalData: (t = {
userInfo: null,
myDevice: null,
imgUrl: [],
selectImageUrl: "",
apiUrl: "https://ishare20.net/textToPic"
}, e(t, "userInfo", null), e(t, "ad", {}), e(t, "appset", {}), e(t, "appid", "wxb95c179e268861ca"),
e(t, "wxminiset", []), t)
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wx_562cc13b19/emoticon_package_applet.git
[email protected]:wx_562cc13b19/emoticon_package_applet.git
wx_562cc13b19
emoticon_package_applet
表情包小程序
master

搜索帮助