1 Star 2 Fork 3

wmm387 / 你的名字重名查询

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.js 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
wmm387 提交于 2019-05-16 12:43 . fix bug
App({
onLaunch: function() {
// 获取系统信息
wx.getSystemInfo({
success: res => {
this.globalData.systemInfo = res
}
})
},
onShow: function(res) {
this.giftPaper(res);
},
giftPaper(res) {
let that = this;
if (that.globalData.isGiftPaper) {
if (res && res['query'] && res['query']['canshu'] && res['query']['dt'] && res['query']['openid']) {
let equipment_no = res['query']['canshu'];
let dt = res['query']['dt'];
let chuzhi_openid = res['query']['openid'];
wx.request({
url: 'https://api.xlqzh.com/xiaochengxu/chuzhi.aspx',
data: {
openid: chuzhi_openid,
sbh: equipment_no,
name: 'xyx',
pass: 'xyx',
dongzuo: 'put',
dt: dt
},
header: {
'content-type': 'application/json'
},
method: 'POST',
dataType: 'json',
success: (result) => {
console.log(result);
if (result && result.data == 'ok') {
wx.showToast({
title: '出纸成功',
duration: 1500,
});
} else {
wx.showToast({
title: '出纸失败',
icon: 'none',
duration: 1500,
});
}
},
});
that.globalData.isGiftPaper = false;
}
}
},
globalData: {
version: '1.0.7',
isGiftPaper: true,
systemInfo: null,
url: 'https://xcx.nanxuncn.com/api/cmcx/',
bannerlist: null,
share: false
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wmm387/repeat_name.git
git@gitee.com:wmm387/repeat_name.git
wmm387
repeat_name
你的名字重名查询
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891