我的 头像名称从缓存中获取
This commit is contained in:
parent
2744a8492d
commit
a0e1ab5614
|
|
@ -6,9 +6,9 @@ export default {
|
|||
uni.addInterceptor('request', {
|
||||
invoke(args) {
|
||||
// request 触发前拼接 url
|
||||
// args.url = 'https://www.opsoul.com' + args.url;
|
||||
args.url = 'https://www.opsoul.com' + args.url;
|
||||
// args.url = 'http://192.168.2.3:80' + args.url;
|
||||
args.url = 'http://127.0.0.1:80' + args.url;
|
||||
// args.url = 'http://127.0.0.1:80' + args.url;
|
||||
// console.log("停止触发");
|
||||
// return false;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
<view class="padding bg-main-color" :style="'padding-top: ' + pageContentTop + 'px; padding-bottom: 100rpx;'">
|
||||
<view class="flex justify-start padding-bottom-xl solid-bottom">
|
||||
<view class="cu-avatar round"
|
||||
:style="'width: 120rpx; height: 120rpx; background-image:url(' + myInfo.picUrl + ');'"></view>
|
||||
:style="'width: 120rpx; height: 120rpx; background-image:url(' + curUserInfo.userInfo.avatarUrl + ');'"></view>
|
||||
<view class="margin-lr-sm">
|
||||
<view class="text-xl margin-bottom-xs">{{myInfo.name}}</view>
|
||||
<view class="text-xl margin-bottom-xs">{{curUserInfo.userInfo.nickName}}</view>
|
||||
<view class="padding-xs text-sm">
|
||||
<view v-if="myInfo.vipInfo.isVip" class='cu-tag bg-yellow radius'>{{myInfo.vipInfo.level}}会员
|
||||
</view>
|
||||
|
|
@ -245,6 +245,7 @@
|
|||
data() {
|
||||
return {
|
||||
pageContentTop: this.CustomBar,
|
||||
curUserInfo: {},
|
||||
myInfo: {},
|
||||
servOrderTabList: [{
|
||||
type: 'ordersWait2Pay',
|
||||
|
|
@ -287,8 +288,8 @@
|
|||
},
|
||||
methods: {
|
||||
async loadData() {
|
||||
this.curUserInfo = this.$request.getCurUserInfo();
|
||||
this.myInfo = await this.$api.data('myInfo');
|
||||
console.log(this.myInfo)
|
||||
},
|
||||
showMyOrders(tabHeaderList, tabCur, orderType) {
|
||||
let tabInfo = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue