lin
2026-04-27 079aa94eb35c059d465fbe5629912c2b8a313db5
feat: 澜品优选我的页面权收功能
1 files modified
64 ■■■■■ changed files
pages/my/my.vue 64 ●●●●● patch | view | raw | blame | history
pages/my/my.vue
@@ -88,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;">
@@ -106,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>
@@ -137,7 +156,8 @@
                    {index: 3, text: '我的收藏', url: '/pages/collect/collect'},
                    // {index: 4, text: '会员权收', url: '/pages/quanshou/index'},
                    {index: 6, text: '联系客服'},
                ]
                ],
                errState: '',
            }
        },
        onLoad() {
@@ -145,8 +165,50 @@
        onShow() {
            this.getConfig()
            this.getUserInfo()
              const _this = this;
              if(_this.$util.getUserInfo()?.phone){
                uni.request({
                  url: _this.$webHost+'/api/v2/auth/qxgIosUnionLogin?phone='+_this.$util.getUserInfo().phone,
                  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) {