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