修改小程序与app的兼容文件

This commit is contained in:
gaoxs
2020-04-06 17:18:09 +08:00
parent c837a94363
commit 57ae931f2d
31 changed files with 1257 additions and 1101 deletions

View File

@ -1,6 +1,6 @@
<template>
<view class="container">
<view v-if="!$store.getters.token&&$deviceType=='Weixin'">
<view v-if="!$store.getters.token&&$deviceType=='weixin'">
<view class="getUserInfo">
<text>您还未允许微信登录授权请点击下方按钮允许微信授权登录</text>
<button type="primary" open-type="getUserInfo" @getuserinfo="getUserInfo">允许微信登录授权</button>
@ -8,7 +8,7 @@
<button @click="back">取消微信登录授权</button>
</view>
</view>
<view v-if="!$store.getters.token&&$deviceType!='Weixin'">
<view v-if="!$store.getters.token&&$deviceType!='weixin'&&$deviceType=='app'">
<view class="getUserInfo">
<text>请先登录</text>
<button type="primary" @click="this.toLogin">去登录</button>
@ -42,7 +42,8 @@
computed: {
...mapState(["isAuthorization"])
},
onShow() {
onShow() {
this.UPDATE_AUTHORIZATIONPAGE(true);
},
onHide() {