lin
2026-07-10 c5542e9e2b2fd14633b596334b957535459ae30e
pages/my/my.vue
@@ -88,12 +88,15 @@
                     <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>
               </view> -->
                  <text>会员权益</text></template>
               </view>
               <view class="mySerCon-v" @tap="goAbout">
                  <image :src="'../../static/imgs/mf1.png'" mode=""></image>
                  <view>关于澜品优选</view>
               </view>
            </view>
         </view>
         <!-- <view style="text-align: center;font-size: 24rpx;color: #666666;margin: 80rpx 0;">
@@ -159,6 +162,7 @@
            ],
            errState: '',
            isShop: false,
        boughtEquity: 0,
         }
      },
      onLoad() {
@@ -176,6 +180,7 @@
              },
              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)
@@ -186,32 +191,41 @@
           }
      },
      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: _this.$APPID
              // 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) {