From ebea702b9cf6566423fa26c63b603cdc989153e2 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Fri, 12 Jun 2026 15:14:23 +0800
Subject: [PATCH] UI:星享购
---
pages/my/my.vue | 76 ++++++++++++++++++++++---------------
1 files changed, 45 insertions(+), 31 deletions(-)
diff --git a/pages/my/my.vue b/pages/my/my.vue
index e25ea2d..6fbc633 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -70,15 +70,15 @@
<image src="/static/imgs/right.png" mode=""></image>
</view>
</template>
- <!-- <view class="mySerCon-v" @tap="toHuishou" >
+ <view class="mySerCon-v" @tap="toHuishou" v-if="isShop">
<view class="mySerCon-l">
- <template v-if="isShop">
+ <template>
<image src="/static/imgs/quanshou.png" mode="widthFix"></image>
<text>会员权收</text>
</template>
</view>
<image src="/static/imgs/right.png" mode=""></image>
- </view> -->
+ </view>
</view>
</view>
@@ -95,14 +95,18 @@
<agreePup ref="agreePup1" :gp="1" title="注册协议"></agreePup>
<agreePup ref="agreePup2" :gp="2" title="隐私政策"></agreePup>
<uni-popup type="center" ref="comment" >
- <view style="background-image: url('/static/imgs/BOXSDF.png');background-repeat: no-repeat;background-size: 100% 100%">
- <view style="border-radius: 48rpx;padding: 28rpx 20rpx">
- <view style="text-align: center;padding-top: 30rpx;" >
+ <view style="border-radius: 48rpx;padding: 28rpx 0;width: 538rpx;background: #FFFFFF;padding-top: 0;">
+ <view style="background: url('/static/img/xuniBg.png') no-repeat top center; background-size: 100%;width: 100%;height: 300rpx;border-radius: 48rpx 48rpx 0 0;">
+ <!-- <view style="text-align: center;padding-top: 30rpx;" >
<image src="/static/imgs/wuImg.png" style="width: 372rpx;height: 240rpx;"></image>
- </view>
- <view style="font-size: 32rpx;font-weight: 600;color: #333333;text-align: center;margin-top: 34rpx;margin-bottom: 80rpx;padding: 0 28rpx;">{{errState}}</view>
- <view @click="$refs.comment.close()" style="font-weight: 500;font-size: 32rpx;color: #fff;text-align: center;padding: 24rpx 28rpx;border-top: 2rpx solid #EEEEEE;background: #FF1472;;border-radius: 40rpx ;">好的</view>
+ </view> -->
+ <!-- <view style="font-size: 32rpx;font-weight: 600;color: #333333;text-align: center;margin-top: 34rpx;margin-bottom: 80rpx;padding: 0 28rpx;">{{errState}}</view> -->
+
</view>
+ <view style="font-size: 32rpx;font-weight: 600;color: #333333;text-align: center;margin-top: 60rpx;margin-bottom: 80rpx;padding: 0 28rpx;">
+ <view>{{ errState }}</view>
+ </view>
+ <view @click="$refs.comment.close()" style="font-weight: 500;font-size: 32rpx;color: #fff;text-align: center;padding: 24rpx 28rpx;border-top: 2rpx solid #EEEEEE;background: #4766FE;border-radius: 40rpx ;margin: 0 40rpx;">好的</view>
</view>
</uni-popup>
@@ -138,7 +142,8 @@
{index: 6, text: '联系客服'},
],
isShop:false,
- errState: ''
+ errState: '',
+ boughtEquity: 0,
}
},
onLoad() {
@@ -149,18 +154,22 @@
const _this = this;
if(_this.$util.getUserInfo()?.phone){
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=11',
data:{
customerId: uni.getStorageSync('ygxLogin').customerId,
appId: uni.getStorageSync('ygxLogin').appId
},
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)
}
})
+ } else {
+ _this.isShop = false
}
},
methods: {
@@ -169,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