From 140559584af1684d31e8f69640cfd3e1757af2c7 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Thu, 25 Jun 2026 11:36:38 +0800
Subject: [PATCH] UI:qxg 我的页面会员权益跳转逻辑调整
---
pages/my/my.vue | 59 ++++++++++++++++++++++++++++++++++-------------------------
1 files changed, 34 insertions(+), 25 deletions(-)
diff --git a/pages/my/my.vue b/pages/my/my.vue
index f357ffe..fcb9b01 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -26,7 +26,7 @@
</template>
</view>
</view>
- </view>
+ </view>
<view class="myNavs">
<view class="myNavs-tips" @tap="$util.checkLogin('/pages/order/order')">
@@ -59,7 +59,7 @@
</view>
</view>
</view>
-
+
<view class="myServe">
<view class="myNavs-tips">
<text class="myNavs-tips-text">我的服务</text>
@@ -106,7 +106,7 @@
</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>
@@ -138,7 +138,8 @@
userInfo: this.$util.getUserInfo(),
Config: {put_open: 1},
isShop:false,
- errState:''
+ errState:'',
+ boughtEquity: 0,
}
},
onLoad() {
@@ -150,12 +151,14 @@
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)
}
})
@@ -167,25 +170,31 @@
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'
+ })
+ }
},
@@ -198,7 +207,7 @@
},
setImg(){
if(uni.getSystemInfoSync().platform != 'ios'){
- this.$refs['authpup'].open()
+ this.$refs['authpup'].open()
}else{
this.chooseImg()
}//调起自定义权限目的弹框,具体可看示例里面很详细
@@ -206,7 +215,7 @@
changeAuth () {
//这里是权限通过后执行自己的代码逻辑
if(uni.getSystemInfoSync().platform !='ios'){
- this.$refs['camears'].open()
+ this.$refs['camears'].open()
}
this.chooseImg()
},
@@ -268,7 +277,7 @@
})
},
wechatWork () {
- let t = this
+ let t = this
if(t.Config){
if(t.Config.put_open == 1){
uni.showModal({
@@ -291,11 +300,11 @@
console.log("success:" + JSON.stringify(res))
},
fail: (err) => {
- console.log("fail:" + JSON.stringify(err))
+ console.log("fail:" + JSON.stringify(err))
}
})
}
- }
+ }
}
}
}
--
Gitblit v1.9.3