You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// app.ts
|
|
|
|
const licia = require("miniprogram-licia");
|
|
|
|
import { request } from "./utils/request";
|
|
|
|
|
|
|
|
App<IAppOption>({
|
|
|
|
globalData: {
|
|
|
|
// 测试号 wx2b0bb13edf717c1d
|
|
|
|
// dev
|
|
|
|
// appid:wxaae50c206446a964
|
|
|
|
url: "https://m.takeda.hbraas.com",
|
|
|
|
upFileUrl: "https://m.takeda.hbraas.com/",
|
|
|
|
imageUrl: "https://m.takeda.hbraas.com/zd/",
|
|
|
|
// pro
|
|
|
|
// appid:wx96f45ca4f1fa36ec
|
|
|
|
// url: 'https://m.takeda.hbraas.com',
|
|
|
|
// upFileUrl: 'https://m.takeda.hbraas.com/',
|
|
|
|
// imageUrl: 'https://m.takeda.hbraas.com/zd/',
|
|
|
|
},
|
|
|
|
onLaunch() {
|
|
|
|
wx.ajax = licia.curry(request)({ gUrl: this.globalData.url });
|
|
|
|
|
|
|
|
wx.login({
|
|
|
|
success: (res) => {
|
|
|
|
console.log("code", res);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
waitLogin() {
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
resolve(true);
|
|
|
|
reject(false);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|