| | |
| | | </template> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="myNavs"> |
| | | <view class="myNavs-tips" @tap="$util.checkLogin('/pages/order/order')"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="myServe"> |
| | | <view class="myNavs-tips"> |
| | | <text class="myNavs-tips-text">我的服务</text> |
| | |
| | | </view> |
| | | <view @tap="goWebUrl('http://beian.miit.gov.cn')">APP备案号: {{Config.icp}}</view> |
| | | <view @tap="goWebUrl('http://beian.miit.gov.cn')">Copyright © 2025 {{Config.url}} All Rights Reserved.</view> |
| | | |
| | | |
| | | </view> |
| | | <agreePup ref="agreePup1" :gp="1" title="注册协议"></agreePup> |
| | | <agreePup ref="agreePup2" :gp="2" title="隐私政策"></agreePup> |
| | |
| | | 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 |
| | | } |
| | | uni.request({ |
| | | url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone, |
| | | data:{ |
| | | customerId: uni.getStorageSync('qxgLogin').customerId, |
| | | appId: uni.getStorageSync('qxgLogin').appId |
| | | }, |
| | | success: function (res) { |
| | | if(res.data.code==200){ |
| | | uni.navigateTo( { |
| | | url: '/pages/quanshou/index' |
| | | }) |
| | | if(_this.boughtEquity) { |
| | | uni.request({ |
| | | url: _this.$webHost + '/api/v2/customer/ryxIsBuyEquity?phone=' + _this.$util.getUserInfo().phone, |
| | | data: { |
| | | customerId: uni.getStorageSync('qxgLogin').customerId, |
| | | appId: uni.getStorageSync('qxgLogin').appId |
| | | }, |
| | | success: function (res) { |
| | | if (res.data.code == 200) { |
| | | uni.navigateTo({ |
| | | url: '/pages/quanshou/index' |
| | | }) |
| | | |
| | | } else { |
| | | _this.errState = res.data.data; |
| | | _this.$refs.comment.open() |
| | | } else { |
| | | _this.errState = res.data.data; |
| | | _this.$refs.comment.open() |
| | | |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/quanyi/index' |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | |
| | |
| | | }, |
| | | setImg(){ |
| | | if(uni.getSystemInfoSync().platform != 'ios'){ |
| | | this.$refs['authpup'].open() |
| | | this.$refs['authpup'].open() |
| | | }else{ |
| | | this.chooseImg() |
| | | }//调起自定义权限目的弹框,具体可看示例里面很详细 |
| | |
| | | changeAuth () { |
| | | //这里是权限通过后执行自己的代码逻辑 |
| | | if(uni.getSystemInfoSync().platform !='ios'){ |
| | | this.$refs['camears'].open() |
| | | this.$refs['camears'].open() |
| | | } |
| | | this.chooseImg() |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | wechatWork () { |
| | | let t = this |
| | | let t = this |
| | | if(t.Config){ |
| | | if(t.Config.put_open == 1){ |
| | | uni.showModal({ |
| | |
| | | console.log("success:" + JSON.stringify(res)) |
| | | }, |
| | | fail: (err) => { |
| | | console.log("fail:" + JSON.stringify(err)) |
| | | console.log("fail:" + JSON.stringify(err)) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |