From a9e9233ff88495e022738179fefaea739e145abb Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Thu, 25 Jun 2026 10:43:57 +0800
Subject: [PATCH] UI:澜品优选 我的页面会员权益跳转逻辑调整

---
 pages/my/my.vue |   73 ++++++++++++++++++++++--------------
 1 files changed, 44 insertions(+), 29 deletions(-)

diff --git a/pages/my/my.vue b/pages/my/my.vue
index 6ace643..6147f84 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -88,11 +88,14 @@
 							<view>{{item.text}}</view>
 						</view>
 					</template>
-					<view class="mySerCon-v" @tap="toHuishou" >
-					  <template v-if="isShop">
+					<view v-if="isShop" class="mySerCon-v" @tap="toHuishou" >
+					  <template>
 						<image src="/static/imgs/quanshou.png" mode="widthFix"></image>
-						<text>会员权收</text></template>
-
+						<text>会员权益</text></template>
+					</view>
+					<view class="mySerCon-v" @tap="goAbout">
+						<image :src="'../../static/imgs/mf1.png'" mode=""></image>
+						<view>关于澜品优选</view>
 					</view>
 				</view>
 			</view>
@@ -159,6 +162,7 @@
 				],
 				errState: '',
 				isShop: false,
+        boughtEquity: 0,
 			}
 		},
 		onLoad() {
@@ -176,40 +180,51 @@
 				  },
 				  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)
 				  }
 				})
+			  } else {
+				  _this.isShop = false
 			  }
 		},
 		methods: {
-			  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()
-
-					}
-				  }
+			goAbout() {
+				uni.navigateTo({
+					url:'/pages/about/about'
 				})
-
-			  },
+			},
+      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: 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