lin
2026-06-25 dbad20a4290f1c3ae1217dea9ff5f4c49f577cf9
pages/my/my.vue
@@ -26,7 +26,7 @@
               </template>
            </view>
         </view>
      </view>
      </view>
      <view class="myNavs">
         <view class="myNavs-tips" @tap="$util.checkLogin('/pages/order/order')">
@@ -59,7 +59,7 @@
            </view>
         </view>
      </view>
      <view class="myServe">
         <view class="myNavs-tips">
            <text class="myNavs-tips-text">我的服务</text>
@@ -106,7 +106,7 @@
         </view>
         <view @tap="goWebUrl('http://beian.miit.gov.cn')">APP备案号: {{Config.icp}}</view>
         <view @tap="goWebUrl('http://beian.miit.gov.cn')">Copyright © 2025 {{Config.url}} All Rights Reserved.</view>
      </view>
      <agreePup ref="agreePup1" :gp="1" title="注册协议"></agreePup>
      <agreePup ref="agreePup2" :gp="2" title="隐私政策"></agreePup>
@@ -138,7 +138,8 @@
            userInfo: this.$util.getUserInfo(),
            Config: {put_open: 1},
        isShop:false,
        errState:''
        errState:'',
        boughtEquity: 0,
         }
      },
    onLoad() {
@@ -150,8 +151,15 @@
      if(_this.$util.getUserInfo()?.phone){
        await 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=4',
          data:{
            customerId: uni.getStorageSync('qxgLogin').customerId,
            appId: uni.getStorageSync('qxgLogin').appId
          },
          success: function (res) {
            _this.isShop = res.data.data.isShop;
            _this.isShop = res?.data?.data?.isShop;
            _this.boughtEquity = res?.data?.data?.boughtEquity;
            uni.setStorageSync('qxgLogin', res.data.data)
          }
        })
      }
@@ -162,21 +170,31 @@
        if(!_this.isShop){
          return
        }
        uni.request({
          url: _this.$webHost+'/api/v2/customer/ryxIsBuyEquity?phone='+_this.$util.getUserInfo().phone,
          success: function (res) {
            if(res.data.code==200){
              uni.navigateTo( {
                url: '/pages/quanshou/index'
              })
        if(_this.boughtEquity) {
          uni.request({
            url: _this.$webHost + '/api/v2/customer/ryxIsBuyEquity?phone=' + _this.$util.getUserInfo().phone,
            data: {
              customerId: uni.getStorageSync('qxgLogin').customerId,
              appId: uni.getStorageSync('qxgLogin').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 {
                _this.errState = res.data.data;
                _this.$refs.comment.open()
              }
            }
          }
        })
          })
        } else {
          uni.navigateTo({
            url: '/pages/quanyi/index'
          })
        }
      },
@@ -189,7 +207,7 @@
         },
         setImg(){
            if(uni.getSystemInfoSync().platform != 'ios'){
               this.$refs['authpup'].open()
               this.$refs['authpup'].open()
            }else{
               this.chooseImg()
            }//调起自定义权限目的弹框,具体可看示例里面很详细
@@ -197,7 +215,7 @@
         changeAuth () {
            //这里是权限通过后执行自己的代码逻辑
            if(uni.getSystemInfoSync().platform !='ios'){
               this.$refs['camears'].open()
               this.$refs['camears'].open()
            }
            this.chooseImg()
         },
@@ -259,7 +277,7 @@
            })
         },
         wechatWork () {
            let t = this
            let t = this
            if(t.Config){
               if(t.Config.put_open == 1){
                  uni.showModal({
@@ -282,11 +300,11 @@
                        console.log("success:" + JSON.stringify(res))
                     },
                     fail: (err) => {
                        console.log("fail:" + JSON.stringify(err))
                        console.log("fail:" + JSON.stringify(err))
                     }
                  })
               }
            }
            }
         }
      }
   }