dengjie commit : 上传头像和收藏产品

This commit is contained in:
dengjie
2023-01-30 14:40:45 +08:00
parent 78c7cbf3ec
commit 66e1fdd8a8
5 changed files with 60 additions and 33 deletions

View File

@@ -53,10 +53,10 @@
url: '../../packageMy/changeAvatar/changeAvatar'
})
},
//获取普通会员和VIP会员
//获取头像昵称和普通会员和VIP会员
getUser() {
this.$apiServe.getUser().then(res => {
// console.log('个人信息==', res.data.data);
console.log('个人信息==', res.data.data);
var data = res.data.data
this.avatar = data.avatar
this.nickname = data.nickname

View File

@@ -29,9 +29,10 @@
</view>
</view>
</view>
<u-button v-if="type==1" type="success" text="移除" color="#0EBB5B" @click="deleteProduct(item)">
<u-button v-if="type==1" type="success" text="取消收藏" color="#0EBB5B" @click="cancelCollect(item)">
</u-button>
<u-button v-if="type==2" type="success" text="取消收藏" color="#0EBB5B" @click="cancelCollect(item)">
<u-button v-if="type==2" type="success" text="移除" color="#0EBB5B" @click="deleteProduct(item)">
</u-button>
</u-grid-item>
</u-grid>
@@ -40,10 +41,11 @@
</u-modal> -->
<view style="font-size: 24rpx;color: #A3A3A3;text-align: center;padding: 26rpx 0;"
v-if="type==1&&productList.length==0">
暂无更多浏览记录</view>
暂无更多收藏记录</view>
<view style="font-size: 24rpx;color: #A3A3A3;text-align: center;padding: 26rpx 0;"
v-if="type==2&&productList.length==0">
暂无更多收藏记录</view>
暂无更多浏览记录</view>
</view>
</view>
</template>