| | |
| | | <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> |
| | |
| | | }, |
| | | 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 |
| | | } |
| | | }, |
| | |
| | | changeAuth () { |
| | | //这里是权限通过后执行自己的代码逻辑 |
| | | if(uni.getSystemInfoSync().platform !='ios'){ |
| | | this.$refs['camears'].open() |
| | | this.$refs['camears'].open() |
| | | } |
| | | this.chooseImg() |
| | | }, |
| | |
| | | }, |
| | | setImg(){ |
| | | if(uni.getSystemInfoSync().platform != 'ios'){ |
| | | this.$refs['authpup'].open() |
| | | this.$refs['authpup'].open() |
| | | }else{ |
| | | this.chooseImg() |
| | | }//调起自定义权限目的弹框,具体可看示例里面很详细 |