lin
2026-06-01 464cf100a2a0482933914a0fca1dcf846571d7db
pages/my/my.vue
@@ -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() {
@@ -156,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)
              }
            })
@@ -171,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) {