| | |
| | | if (/MicroMessenger/i.test(navigator.userAgent)) { |
| | | platform = 'gzh'; |
| | | }else{ |
| | | if (!this.userInfo.token) { |
| | | // 如果不是微信浏览器环境,则显示退出登陆的按钮 |
| | | if (!this.userInfo.token) { //判断是否有用户登陆来进行退出登陆的显示与隐藏 |
| | | this.isPC = false |
| | | }else{ |
| | | this.isPC = true |
| | |
| | | |
| | | } |
| | | // #endif |
| | | return (platform == 'gzh' && this.$store.state.config.wxGzhPay == 1) || (platform == 'wxmp' && this.$store.state.config.mpPay == 1) |
| | | return (!!this.userInfo.token) |
| | | // return (platform == 'gzh' && this.$store.state.config.wxGzhPay == 1) || (platform == 'wxmp' && this.$store.state.config.mpPay == 1) |
| | | }, |
| | | ...mapState(['userInfo', 'num', 'config','tabbar']) |
| | | }, |
| | |
| | | }) |
| | | console.log('pay rr') |
| | | }) |
| | | }else{ |
| | | uni.showToast({ |
| | | title: 'PC端用户支付!', |
| | | icon: "error" |
| | | }) |
| | | } |
| | | // #endif |
| | | // #ifdef MP-WEIXIN |