main
liudan 1 year ago
parent 6ae244338e
commit 310eaa8617
  1. 2
      pages/detail/detail.vue
  2. 4
      pages/my/my.vue

@ -210,7 +210,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.details{ .details{
height:calc(100vh); min-height:calc(100vh);
background-color: #ffffff; background-color: #ffffff;
} }
.u-nav-slot{ .u-nav-slot{

@ -15,7 +15,7 @@
<view class="userInfo"> <view class="userInfo">
<view v-if="isLogin"> <view v-if="isLogin">
<view class="userName"> <view class="userName">
{{source=='phone'?userInfo.nickname:userInfo.nickName}} {{source=='phone'?userInfo.nickname:userInfo.nickname}}
</view> </view>
<view class="id" v-if="source=='phone'"> <view class="id" v-if="source=='phone'">
ID{{userInfo.user_id}} ID{{userInfo.user_id}}
@ -124,7 +124,7 @@
}, },
onShow() { onShow() {
this.source = uni.getStorageSync('source') this.source = uni.getStorageSync('source')
console.log(this.source) console.log(this.source,"ooo")
let info = JSON.parse(JSON.stringify(uni.getStorageSync('userInfo'))) let info = JSON.parse(JSON.stringify(uni.getStorageSync('userInfo')))
if(info.avatar){ if(info.avatar){
if(info.avatar.indexOf("http") == -1 && info.avatar.indexOf("uploads/") == 0){ if(info.avatar.indexOf("http") == -1 && info.avatar.indexOf("uploads/") == 0){

Loading…
Cancel
Save