From c5542e9e2b2fd14633b596334b957535459ae30e Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Fri, 10 Jul 2026 16:17:15 +0800
Subject: [PATCH] UI:澜品优选:1.行权问题修复;2.版本更新提示

---
 pages/my/my.vue |   58 ++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 32 insertions(+), 26 deletions(-)

diff --git a/pages/my/my.vue b/pages/my/my.vue
index ffd23dc..a0b91a8 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -162,6 +162,7 @@
 				],
 				errState: '',
 				isShop: false,
+        boughtEquity: 0,
 			}
 		},
 		onLoad() {
@@ -179,6 +180,7 @@
 				  },
 				  success: function (res) {
 					_this.isShop = res?.data?.data?.isShop;
+          _this.boughtEquity = res?.data?.data?.boughtEquity;
 					uni.setStorageSync('ygxLogin', res.data.data)
 					console.log('isShop',_this.isShop)
 					console.log('res',res)
@@ -194,32 +196,36 @@
 					url:'/pages/about/about'
 				})
 			},
-			  toHuishou(){
-				const _this = this;
-				if(!_this.isShop){
-				  return
-				}
-				uni.request({
-				  url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone,
-				  data:{
-					customerId: uni.getStorageSync('ygxLogin').customerId,
-					appId: uni.getStorageSync('ygxLogin').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()
-
-					}
-				  }
-				})
-
-			  },
+      toHuishou(){
+        const _this = this;
+        if(!_this.isShop){
+          return
+        }
+        if(_this.boughtEquity) {
+          uni.request({
+            url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone,
+            data:{
+              customerId: uni.getStorageSync('ygxLogin').customerId,
+              appId: _this.$APPID
+              // appId: uni.getStorageSync('ygxLogin').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 {
+          uni.navigateTo({
+            url: '/pages/quanyi/index'
+          })
+        }
+      },
 			// 收藏+浏览记录
 			goMenuPage(url) {
 			  if (this.userInfo) {

--
Gitblit v1.9.3