| | |
| | | userInfo: this.$util.getUserInfo(), |
| | | Config: {put_open: 1}, |
| | | isShop:false, |
| | | errState:'' |
| | | errState:'', |
| | | boughtEquity: 0, |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | if(_this.$util.getUserInfo()?.phone){ |
| | | await uni.request({ |
| | | url: _this.$webHost+'/api/v2/auth/qxgIosUnionLogin?phone='+_this.$util.getUserInfo().phone, |
| | | // url: _this.$webHost+'/api/v2/auth/iosShopUnionLogin?phone='+_this.$util.getUserInfo().phone + '&configureToDomain=4', |
| | | data:{ |
| | | customerId: uni.getStorageSync('qxgLogin').customerId, |
| | | appId: uni.getStorageSync('qxgLogin').appId |
| | | }, |
| | | success: function (res) { |
| | | _this.isShop = res?.data?.data?.isShop; |
| | | _this.boughtEquity = res?.data?.data?.boughtEquity; |
| | | uni.setStorageSync('qxgLogin', res.data.data) |
| | | } |
| | | }) |
| | |
| | | if(!_this.isShop){ |
| | | return |
| | | } |
| | | if(_this.boughtEquity) { |
| | | uni.request({ |
| | | url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone, |
| | | data:{ |
| | |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/quanyi/index' |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | |