| | |
| | | <input type="text" disabled v-model="userInfo.idcard" placeholder="请输入身份证" /> |
| | | </view> |
| | | </view> |
| | | <view class="profile-item"> |
| | | <!-- <view class="profile-item"> |
| | | <text class="label">总余额</text> |
| | | <view class=""> |
| | | <input type="text" disabled v-model="userInfo.edu" placeholder="请输入可用额度" /> |
| | |
| | | <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)"/> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | <view class="logout" @tap="logOut">退出登录</view> |
| | | <view class="logout red" @tap="logOff">注销账号</view> |
| | |
| | | }) |
| | | }, |
| | | logOut () { |
| | | uni.setStorageSync('lzsc-token', null) |
| | | uni.setStorageSync('pig-token', null) |
| | | uni.setStorageSync('user-info', null) |
| | | uni.setStorageSync('choose-address',null) |
| | | uni.setStorageSync('choose-bank',null) |
| | |
| | | title: res.msg || '' |
| | | }) |
| | | setTimeout(() => { |
| | | uni.setStorageSync('lzsc-token', null) |
| | | uni.setStorageSync('pig-token', null) |
| | | uni.setStorageSync('user-info', null) |
| | | uni.navigateTo({ |
| | | url: '/pages/login/login' |
| | |
| | | sizeType: ['original', 'compressed'], |
| | | success: (chooseImageRes) => { |
| | | let tempFilePaths = chooseImageRes.tempFilePaths |
| | | let token = uni.getStorageSync('lzsc-token') |
| | | let token = uni.getStorageSync('pig-token') |
| | | let header = { |
| | | 'Accept': 'application/json', |
| | | 'authorization': token, |