| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //app.js
- App({
- onLaunch: function (options) {
- this.getSystemInfo();
- if (options && options.scene) {
- this.globalData.userSource = options.scene;
- }
- if (options && options.shareTicket) {
- this.globalData.shareTicket = options.shareTicket;
- }
- },
- getSystemInfo: function () {
- this.globalData.systemInfo = wx.getSystemInfoSync();
- },
- globalData: {
- Version: "1.0.0",
- IsProduction: false,
- ShareTitle: "可以用来记忆一切的工具",
- SharePath: "pages/index/index",
- ShareImage: '',
-
- ProgramID: 166,
- serverUrl: "https://www.kylx365.com/apiData/",
- serverUrlServer: "https://www.kylx365.com/apiData/",
- serverUrlLocalhost: "http://localhost:3020/apiData/",
- audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
- audioUrlYoudao: "https://dict.youdao.com/dictvoice?rate=5&le=auto&audio=",
-
-
- BaiduToken: "",//百度开发平台token
- systemInfo: null,
- userInfo: null,
- SourceID: 0,//来源ID
- shareTicket: null,
- userSource: null,//用户来源方式
- Key: "kylx365_chengjie",
- IV: "kylx365hongliren",
- IsEnter: true,//是否是刚进来
- }
- })
|