1 Star 0 Fork 54

miegroups/羲云自助点餐微信小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
app.js 927 Bytes
一键复制 编辑 原始数据 按行查看 历史
羲云科技 提交于 2021-03-27 23:31 . update app.js.
//app.js
App({
onLaunch: function () {
var that=this;
wx.getSystemInfo({
success: (res) => {
//console.log('系统信息'+JSON.stringify(res));
that.globalData.systm = JSON.stringify(res);
that.globalData.nav_top = res.statusBarHeight
that.globalData.nav_height = 44 + res.statusBarHeight
}
});
//登录信息
var val = wx.getStorageSync('login_info');
if (val) {
var d = JSON.parse(val);
that.globalData.user_id = d.user_id;
that.globalData.logo = d.logo;
that.globalData.nickname = d.nickname;
that.globalData.session = d.session;
that.globalData.user_info = d;
console.log('登录成功');
}
},
globalData: {
server:'https://www.zjhn.com/dc/dc_ac.php'
},msg:function(t){wx.showToast({ title: t });},
err: function (t) {
wx.showModal({
title: '提示',
content: t,
})
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/miegroups/xiyun-buffet-ordering.git
git@gitee.com:miegroups/xiyun-buffet-ordering.git
miegroups
xiyun-buffet-ordering
羲云自助点餐微信小程序
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385