| | |
| | | ...mapMutations(['login']), |
| | | getAppInfo: function() { |
| | | var that = this; |
| | | this.$u.api.comminInt({}).then(e => { |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | that.globalData.appinfo = e.data.basic |
| | | utils.setCache('appInfo', e.data.basic) |
| | | utils.setCache('baseUrl', this.$u.http.config.baseUrl) |
| | | // #ifdef APP-PLUS |
| | | if (plus.os.name == 'iOS') { |
| | | if (that.globalData.appinfo.iosExamine && plus.runtime.version == e.data.basic.IosExamineV) { |
| | |
| | | that.globalData.ifwt = 0 |
| | | } |
| | | } |
| | | // #endif |
| | | |
| | | this.$u.api.comminInt({}).then(e => { |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | that.globalData.appinfo = e.data.basic |
| | | utils.setCache('appInfo', e.data.basic) |
| | | utils.setCache('baseUrl', this.$u.http.config.baseUrl) |
| | | // #ifdef APP-PLUS |
| | | /* if (plus.os.name == 'iOS') { |
| | | if (that.globalData.appinfo.iosExamine && plus.runtime.version == e.data.basic.IosExamineV) { |
| | | that.globalData.ifwt = 0 |
| | | } else { |
| | | if (plus.runtime.isApplicationExist({ |
| | | action: 'weixin://' |
| | | }) && plus.runtime.isApplicationExist({ |
| | | action: 'taobao://' |
| | | })) { |
| | | that.globalData.ifwt = 1 //是否安装微信和淘宝 1代表安装 |
| | | } else { |
| | | that.globalData.ifwt = 0 |
| | | } |
| | | } |
| | | } else { |
| | | if (plus.runtime.isApplicationExist({pname:'com.tencent.mm', |
| | | action: 'weixin://' |
| | | })) { |
| | | console.log("安卓端已安装微信") |
| | | that.globalData.ifwt = 1 //是否安装微信 1代表安装 |
| | | } else { |
| | | console.log("安卓端未安装微信") |
| | | that.globalData.ifwt = 0 |
| | | } |
| | | } */ |
| | | // #endif |
| | | }).catch(function(err) {}) |
| | | |