@@ -50,6 +50,9 @@ Page({ | |||||
url: config.api.checkPhoneStatus, | url: config.api.checkPhoneStatus, | ||||
data: {} | data: {} | ||||
}).then(res => { | }).then(res => { | ||||
wx.navigateTo({ | |||||
url: '/pages/edit/edit', | |||||
}) | |||||
}).catch(err => { | }).catch(err => { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: `/pages/getphoneInfo/index?mineFlag=mine`, | url: `/pages/getphoneInfo/index?mineFlag=mine`, | ||||
@@ -76,9 +79,7 @@ Page({ | |||||
} | } | ||||
}, | }, | ||||
gotoedit: function() { | gotoedit: function() { | ||||
wx.navigateTo({ | |||||
url: '/pages/edit/edit', | |||||
}) | |||||
this.checkUserStatus(); | |||||
}, | }, | ||||
onLoad() { | onLoad() { | ||||
this.getLocation(); | this.getLocation(); | ||||
@@ -145,7 +146,6 @@ Page({ | |||||
} | } | ||||
} | } | ||||
that.checkUserStatus(); | |||||
that.setData({ | that.setData({ | ||||
appVersion: extConfig.appVersion, | appVersion: extConfig.appVersion, | ||||
}) | }) | ||||
@@ -2,7 +2,7 @@ | |||||
<view class="user" style="padding-top:{{navigationBarHeight}};"> | <view class="user" style="padding-top:{{navigationBarHeight}};"> | ||||
<view class="top" style='background:{{banneColor}}'></view> | <view class="top" style='background:{{banneColor}}'></view> | ||||
<view class="top-content" wx:if="{{ifStoreApp!=1}}"> | <view class="top-content" wx:if="{{ifStoreApp!=1}}"> | ||||
<view class='user_title '> | |||||
<view class='user_title'> | |||||
<view class="user-avatar" bindtap='gotoedit'> | <view class="user-avatar" bindtap='gotoedit'> | ||||
<open-data class="open" type="userAvatarUrl"></open-data> | <open-data class="open" type="userAvatarUrl"></open-data> | ||||
</view> | </view> | ||||