武田小程序
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.

35 lines
841 B

4 months ago
// app.ts
const licia = require("miniprogram-licia");
import { request } from "./utils/request";
4 months ago
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/',
},
4 months ago
onLaunch() {
wx.ajax = licia.curry(request)({ gUrl: this.globalData.url });
4 months ago
wx.login({
success: (res) => {
console.log("code", res);
},
});
},
4 months ago
waitLogin() {
return new Promise((resolve, reject) => {
resolve(true);
reject(false);
});
},
});