| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- // app.js
- App({
- globalData: {
- Version: "1.0.13",
- //IsProduction: true,
- IsProduction: false,
- ShareTitle: "上海中考招生信息查询工具",
- SharePath: "pages/index/index",
- ShareImage: '../images/fs_a01.png',
- ProgramID: 173,
- ProgramName: "秒过分数线",
- AppID: "wx39bc498e7fdacb6b",
- serverUrl: "https://www.kylx365.com/apiData/",
- serverUrlServer: "https://www.kylx365.com/apiData/",
- serverUrlLocalhost: "http://localhost:3020/apiData/",
- uploadImageUrl: "https://miaguo-1253256735.file.myqcloud.com/",
- IsIOS: true,
- IsAndroid: false,
- IsIPad: false,
- IsIPhoneX: false,
- IsOppo: false,
- systemInfo: null,
- userInfo: null,
- Key: "kylx365_chengjie",
- IV: "kylx365hongliren",
- SourceID: 0,//来源ID
- IsGoto:true,//可以跳转
- WebViewUrl:"",//webview的链接
- PageCount:100,//每一页翻页数
- MyWish:{},//我的福帖
- },
- onLaunch: function (options) {
- this.getSystemInfo();
- },
- onShow: function(options) {
- if (options && options.scene) {
- this.globalData.userSource = options.scene;
- console.log("options.scene2:" + options.scene);
- }
- },
- getSystemInfo: function () {
- this.globalData.systemInfo = wx.getSystemInfoSync();
- if (this.globalData.systemInfo.system.indexOf("Android") >= 0) {
- this.globalData.IsIOS =false;
- this.globalData.IsAndroid=true;
- }
- else if (this.globalData.systemInfo.system.indexOf("iOS") >= 0) {
- this.globalData.IsIOS = true;
- this.globalData.IsAndroid=false;
- if (this.globalData.systemInfo.model.indexOf("X") >= 0
- || this.globalData.systemInfo.model.indexOf("11") >= 0
- || this.globalData.systemInfo.model.indexOf("12") >= 0
- || this.globalData.systemInfo.model.indexOf("13") >= 0
- || this.globalData.systemInfo.model.indexOf("14") >= 0)
- this.globalData.IsIPhoneX=true;
- }
- if (this.globalData.systemInfo.model.indexOf("iPad")>=0){
- this.globalData.IsIPad=true;
- }
- if (this.globalData.systemInfo.brand.indexOf("OPPO")>=0){
- this.globalData.IsOppo=true;
- }
- }
- })
|