From e649747b2c454f0d2cb18edc9c8e1b41363e0d65 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Mon, 27 Apr 2026 15:26:58 +0800
Subject: [PATCH] fix: 澜品优选iosShopUnionLogin接口对接
---
pages/my/my.vue | 80 ++++++++++++++++++++++++++++++++++++----
1 files changed, 72 insertions(+), 8 deletions(-)
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 2e17da6..ce6de84 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -6,13 +6,14 @@
<view class="startBar"></view>
<view class="myContent">
<view class="myHeader">
- <image :src="userInfo != null ? userInfo.avatar : '/static/imgs/headimg.png'" class="avatar" mode="" @tap="setImg"></image>
+ <image :src="userInfo != null ? userInfo.avatar : '/static/imgs/headimg.png'" class="avatar" mode=""></image>
+ <!-- <image :src="userInfo != null ? userInfo.avatar : '/static/imgs/headimg.png'" class="avatar" mode="" @tap="setImg"></image> -->
<view class="myNick">
<template>
<view v-if="userInfo == null" @tap="$util.goPages('/pages/login/login')">未登录</view>
<view v-else>{{userInfo.phone}}</view>
</template>
- <template v-if="userInfo != null && Config">
+ <!-- <template v-if="userInfo != null && Config">
<template v-if="userInfo.status == 1">
<view class="edu" v-if="userInfo != null && userInfo.edu_auth == 0 && Config.put_open == 2 && userInfo.over_auth == 0">额度:未认证</view>
<view class="edu" v-else-if="userInfo != null && userInfo.edu_auth == 0 && Config.put_open == 2 && userInfo.over_auth == 1">额度:授信中</view>
@@ -24,15 +25,15 @@
</template>
<template v-if="userInfo != null && userInfo.face_auth == 0">
<view class="edu" @tap="$util.checkGoPages('/pages/my/my')">未认证</view>
- </template>
+ </template> -->
</view>
</view>
- <view class="auth" v-if="userInfo && userInfo.over_auth != 1" @tap="$util.checkGoPages('/pages/my/my')">
+ <!-- <view class="auth" v-if="userInfo && userInfo.over_auth != 1" @tap="$util.checkGoPages('/pages/my/my')">
<image src="@/static/imgs/notice.png" mode=""></image>
<text>您还未进行实名认证,点击前往实名认证</text>
<view class="">去认证</view>
- </view>
+ </view> -->
<!-- <view class="num-wrapper tui-skeleton-rect">
<view class="num-item" style="display: flex;background: white;border-radius: 24rpx;padding: 22rpx;width: 48%;" @tap="$util.checkLogin('/pages/collect/collect')">
@@ -87,6 +88,12 @@
<view>{{item.text}}</view>
</view>
</template>
+ <view class="mySerCon-v" @tap="toHuishou" >
+ <template v-if="isShop">
+ <image src="/static/imgs/quanshou.png" mode="widthFix"></image>
+ <text>会员权收</text></template>
+
+ </view>
</view>
</view>
<!-- <view style="text-align: center;font-size: 24rpx;color: #666666;margin: 80rpx 0;">
@@ -105,6 +112,19 @@
</view>
<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="background: linear-gradient( 180deg, #269AFF 0%, #52F6FF 30%, #FFFBFC 50%, #ffffff 100%), linear-gradient( 180deg, #52F6FF 0%, #FFFBFC 50%, #ffffff 100%);border-radius: 40rpx 40rpx 40rpx 40rpx;">
+ <view style="border-radius: 48rpx;padding: 28rpx 20rpx">
+ <view style="text-align: center;padding-top: 30rpx;" >
+ <image src="/static/img/qsLifeIcon.png" style="width: 560rpx;height: 252rpx;"></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: #4766FE;;border-radius: 40rpx ;">好的</view>
+ </view>
+ </view>
+
+ </uni-popup>
</view>
</view>
@@ -125,7 +145,7 @@
{index: 1, text: '待支付', url: '/pages/order/order?status=1'},
{index: 3, text: '待发货', url: '/pages/order/order?status=4'},
{index: 4, text: '待收货', url: '/pages/order/order?status=5'},
- {index: 2, text: '待签约', url: '/pages/order/order?status=3'},
+ // {index: 2, text: '待签约', url: '/pages/order/order?status=3'},
{index: 5, text: '已完成', url: '/pages/order/order?status=8'}
],
mySerData: [
@@ -136,7 +156,9 @@
{index: 3, text: '我的收藏', url: '/pages/collect/collect'},
// {index: 4, text: '会员权收', url: '/pages/quanshou/index'},
{index: 6, text: '联系客服'},
- ]
+ ],
+ errState: '',
+ isShop: false,
}
},
onLoad() {
@@ -144,8 +166,50 @@
onShow() {
this.getConfig()
this.getUserInfo()
+ const _this = this;
+ if(_this.$util.getUserInfo()?.phone){
+ uni.request({
+ url: _this.$webHost+'/api/v2/auth/iosShopUnionLogin?phone='+_this.$util.getUserInfo().phone + '&configureToDomain=10',
+ data:{
+ customerId: uni.getStorageSync('ygxLogin').customerId,
+ appId: uni.getStorageSync('ygxLogin').appId
+ },
+ success: function (res) {
+ _this.isShop = res?.data?.data?.isShop;
+ uni.setStorageSync('ygxLogin', res.data.data)
+ console.log('isShop',_this.isShop)
+ console.log('res',res)
+ }
+ })
+ }
},
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()
+
+ }
+ }
+ })
+
+ },
// 收藏+浏览记录
goMenuPage(url) {
if (this.userInfo) {
@@ -187,7 +251,7 @@
sizeType: ['original', 'compressed'],
success: (chooseImageRes) => {
let tempFilePaths = chooseImageRes.tempFilePaths
- let token = uni.getStorageSync('lzsc-token')
+ let token = uni.getStorageSync('pig-token')
let header = {
'Accept': 'application/json',
'authorization': token,
--
Gitblit v1.9.3