| | |
| | | <yk-authpup ref="authpup" type="top" @changeAuth="changeAuth" noticeTitle="便于您使用该功能上传您的照片用于核实身份场景中读取相册内容" permissionID="WRITE_EXTERNAL_STORAGE"></yk-authpup> |
| | | <yk-authpup ref="camears" type="top" @changeAuth="changeAuth2" noticeTitle="便于您使用该功能便于您拍摄上传用于核实身份场景" permissionID="CAMERA"></yk-authpup> |
| | | <view class="profile"> |
| | | <view class="profile-item"> |
| | | <!-- <view class="profile-item"> |
| | | <text class="label">头像(点击更换)</text> |
| | | <view class="" @tap="setImg"> |
| | | <image :src="$baseUrl + userInfo.avatar" mode=""></image> |
| | | </view> |
| | | </view> |
| | | <view class="profile-item"> |
| | | </view> --> |
| | | <!-- <view class="profile-item"> |
| | | <text class="label">姓名</text> |
| | | <view class=""> |
| | | <input type="text" disabled v-model="userInfo.realname" placeholder="请输入姓名" /> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="profile-item"> |
| | | <text class="label">手机号</text> |
| | | <view class=""> |
| | | <input type="text" disabled v-model="userInfo.phone" placeholder="请输入手机号" /> |
| | | </view> |
| | | </view> |
| | | <view class="profile-item"> |
| | | <!-- <view class="profile-item"> |
| | | <text class="label">身份证</text> |
| | | <view class=""> |
| | | <input type="text" disabled v-model="userInfo.idcard" placeholder="请输入身份证" /> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <!-- <view class="profile-item"> |
| | | <text class="label">总余额</text> |
| | | <view class=""> |
| | |
| | | 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, |