lin
2026-05-15 083fc3bf0f01788bc69b5072026a500ebc0dc086
pages/profile/profile.vue
@@ -42,8 +42,8 @@
         <view class="profile-item" v-if="Config.put_open == 2">
            <text class="label">支付权益</text>
            <view class="">
               <switch @change="equityOpen" v-if="userInfo.equity_open == 1" checked color="#e3b400" style="transform:scale(0.7)"/>
               <switch @change="equityOpen" v-else color="#e3b400" style="transform:scale(0.7)"/>
               <switch @change="equityOpen" v-if="userInfo.equity_open == 1" checked color="#37AA25" style="transform:scale(0.7)"/>
               <switch @change="equityOpen" v-else color="#37AA25" style="transform:scale(0.7)"/>
            </view>
         </view> -->
      </view>
@@ -73,7 +73,7 @@
      },
      data() {
         return {
            userInfo: uni.getStorageSync('user-info') ? JSON.parse(uni.getStorageSync('user-info')) : null,
            userInfo: uni.getStorageSync('user-info') ? JSON.parse(uni.getStorageSync('user-info')) : null,
            Config: uni.getStorageSync('Config') ? JSON.parse(uni.getStorageSync('Config')) : null
         }
      },
@@ -169,7 +169,7 @@
         changeAuth () {
            //这里是权限通过后执行自己的代码逻辑
            if(uni.getSystemInfoSync().platform !='ios'){
               this.$refs['camears'].open()
               this.$refs['camears'].open()
            }
            this.chooseImg()
         },
@@ -178,7 +178,7 @@
         },
         setImg(){
            if(uni.getSystemInfoSync().platform != 'ios'){
               this.$refs['authpup'].open()
               this.$refs['authpup'].open()
            }else{
               this.chooseImg()
            }//调起自定义权限目的弹框,具体可看示例里面很详细