-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
28 lines (28 loc) · 742 Bytes
/
Copy pathapp.js
File metadata and controls
28 lines (28 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//app.js
var qcloud = require('./vendor/wafer2-client-sdk/index')
var config = require('./config')
App({
onLaunch: function () {
qcloud.setLoginUrl(config.service.loginUrl)
}
})
// App({
// onLaunch: function () {
// qcloud.setLoginUrl(config.service.loginUrl);
// wx.login({
// success: function (res) {
// if (res.code) {
// //发起网络请求
// wx.request({
// url: config.service.loginUrl,
// data: {
// code: res.code
// }
// })
// } else {
// console.log('登录失败!' + res.errMsg)
// }
// }
// });
// }
// })