| | |
| | | <view class="startBar"></view> |
| | | <view class="myContent"> |
| | | <view class="myHeader"> |
| | | <image :src="userInfo != null ? userInfo.avatar : '/static/imgs/headimg.png'" class="avatar" mode="" @tap="setImg"></image> |
| | | <image :src="userInfo != null ? userInfo.avatar : '/static/imgs/headimg.png'" class="avatar" mode=""></image> |
| | | <!-- <image :src="userInfo != null ? userInfo.avatar : '/static/imgs/headimg.png'" class="avatar" mode="" @tap="setImg"></image> --> |
| | | <view class="myNick"> |
| | | <template> |
| | | <view v-if="userInfo == null" @tap="$util.goPages('/pages/login/login')">未登录</view> |
| | |
| | | <image src="/static/imgs/right.png" mode=""></image> |
| | | </view> |
| | | </template> |
| | | <!-- <view class="mySerCon-v" @tap="toHuishou" > |
| | | <view class="mySerCon-v" @tap="toHuishou" v-if="isShop"> |
| | | <view class="mySerCon-l"> |
| | | <template v-if="isShop"> |
| | | <template> |
| | | <image src="/static/imgs/quanshou.png" mode="widthFix"></image> |
| | | <text>会员权收</text> |
| | | </template> |
| | | </view> |
| | | <image src="/static/imgs/right.png" mode=""></image> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | const _this = this; |
| | | if(_this.$util.getUserInfo()?.phone){ |
| | | 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=11', |
| | | data:{ |
| | | customerId: uni.getStorageSync('ygxLogin').customerId, |
| | | appId: uni.getStorageSync('ygxLogin').appId |
| | |
| | | console.log('res',res) |
| | | } |
| | | }) |
| | | } else { |
| | | _this.isShop = false |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | 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, |