From f67e33dd60d08237e9c36ceec092c50792387d4a Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Tue, 26 May 2026 17:43:43 +0800
Subject: [PATCH] feat:星享购 绑卡+权收
---
pages/my/my.vue | 50 +++++++++++++++++++++++++++++---------------------
1 files changed, 29 insertions(+), 21 deletions(-)
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 5dbb64b..6fbc633 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -142,7 +142,8 @@
{index: 6, text: '联系客服'},
],
isShop:false,
- errState: ''
+ errState: '',
+ boughtEquity: 0,
}
},
onLoad() {
@@ -160,8 +161,10 @@
},
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('boughtEquity',_this.boughtEquity)
console.log('res',res)
}
})
@@ -175,26 +178,31 @@
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()
-
- }
- }
- })
-
+ 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'
+ })
+ }
},
goKefu() {
if(this.Config && this.Config.kefu_open == 1) {
--
Gitblit v1.9.3