Commit d9b190ba by 胡悦

去掉昵称授权

1 parent 07e35ef3
......@@ -47,8 +47,6 @@ Page({
curTabIndex: 0,
// 0-员工,1-代理商
customerType: 0,
// 是否授权昵称
hasUserInfo: false,
// 是否授权手机号
hasPhoneNumber: false,
curTab: [trackData.COMPANY, trackData.CUBE],
......@@ -184,16 +182,6 @@ Page({
getApp()
.login()
.then(({ data }) => {
if (data && data.nickName) {
this.setData({
hasUserInfo: true,
});
} else {
this.setData({
hasUserInfo: false
})
}
if (data && data.phone) {
this.setData({
hasPhoneNumber: true,
......
......@@ -35,7 +35,6 @@
</block>
</view>
<view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view>
<!-- 服务咨询 -->
<view class="floating-box">
<image class="floating-icon" style="margin-bottom: 10rpx;" webp bindtap="handleOpen" data-name="store" src="{{IMGURL}}home/icon-store.png?v={{img_version}}"></image>
......
const shareType = {
FIRST: 1,
SHARE_HOME: 2,
SHARE_D: 3
}
export default shareType
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!