| | |
| | | <view class="pageContent borderBox colCen"> |
| | | <image class="applogo" :src="appInfo.logo" mode="aspectFill"></image> |
| | | |
| | | <view class="wxlogoBtn rowCenCen" @tap="wxlogin()" v-if="haswxlogin"> |
| | | <view class="wxlogoBtn rowCenCen" @tap="wxlogin()" v-if="supportWx"> |
| | | <image class="logoIcon" src="../../static/images/mine/wxwhite.png" mode=""></image> |
| | | <view>微信一键登录</view> |
| | | </view> |
| | |
| | | isread: false, |
| | | haswxlogin: false, |
| | | isSupportMob:false, |
| | | isother:false |
| | | isother:false, |
| | | supportWx:true |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.appInfo = uni.getStorageSync('appInfo') |
| | | console.log(this.appInfo.iosExamine) |
| | | console.log(getApp().globalData.ifwt) |
| | | //this.haswxlogin = this.appInfo.iosExamine ? false : (getApp().globalData.ifwt == 1 ? true : false) |
| | | this.haswxlogin = getApp().globalData.ifwt == 1 ? true :false; |
| | | this.checkSupportWx(); |
| | | this.isSupportMoblie(); |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['login']), |
| | | checkSupportWx() |
| | | { |
| | | // #ifdef APP-PLUS |
| | | if (plus.os.name == 'iOS') { |
| | | if (plus.runtime.isApplicationExist({ |
| | | action: 'weixin://' |
| | | }) && plus.runtime.isApplicationExist({ |
| | | action: 'taobao://' |
| | | })) { |
| | | this.supportWx = true //是否安装微信和淘宝 1代表安装 |
| | | } else { |
| | | this.supportWx = false |
| | | } |
| | | } else { |
| | | if (plus.runtime.isApplicationExist({pname:'com.tencent.mm', |
| | | action: 'weixin://' |
| | | })) { |
| | | this.supportWx = true //是否安装微信 1代表安装 |
| | | } else { |
| | | this.supportWx = false |
| | | } |
| | | } |
| | | // #endif |
| | | }, |
| | | backHome() { |
| | | var pages = getCurrentPages(); |
| | | console.log(pages.length); |
| | |
| | | { |
| | | "normalColor":"#F73314", |
| | | "highlightColor":"#F73314" |
| | | }, |
| | | "privacyTerms":{ |
| | | "defaultCheckBoxState":false |
| | | } |
| | | |
| | | }, |
| | |
| | | if(res.errCode==30002) |
| | | {//切换登录方式 |
| | | that.isother=true; |
| | | univerifyManager.close(); |
| | | } |
| | | else |
| | | { |
| | |
| | | univerifyManager.close(); |
| | | },2000); |
| | | } |
| | | |
| | | that.isother=true; |
| | | } |
| | | }) |
| | |
| | | url: './setInviteCode' |
| | | }) |
| | | } |
| | | else if (e.data.userinfo.isPwd == 'N') { |
| | | /* else if (e.data.userinfo.isPwd == 'N') { |
| | | uni.redirectTo({ |
| | | url: './setPass' |
| | | }) |
| | | } else { |
| | | } */ else { |
| | | uni.switchTab({ |
| | | url: '../index/index' |
| | | }) |