Commit d9b190ba by 胡悦

去掉昵称授权

1 parent 07e35ef3
...@@ -47,8 +47,6 @@ Page({ ...@@ -47,8 +47,6 @@ Page({
curTabIndex: 0, curTabIndex: 0,
// 0-员工,1-代理商 // 0-员工,1-代理商
customerType: 0, customerType: 0,
// 是否授权昵称
hasUserInfo: false,
// 是否授权手机号 // 是否授权手机号
hasPhoneNumber: false, hasPhoneNumber: false,
curTab: [trackData.COMPANY, trackData.CUBE], curTab: [trackData.COMPANY, trackData.CUBE],
...@@ -184,16 +182,6 @@ Page({ ...@@ -184,16 +182,6 @@ Page({
getApp() getApp()
.login() .login()
.then(({ data }) => { .then(({ data }) => {
if (data && data.nickName) {
this.setData({
hasUserInfo: true,
});
} else {
this.setData({
hasUserInfo: false
})
}
if (data && data.phone) { if (data && data.phone) {
this.setData({ this.setData({
hasPhoneNumber: true, hasPhoneNumber: true,
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
</block> </block>
</view> </view>
<view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view>
<!-- 服务咨询 --> <!-- 服务咨询 -->
<view class="floating-box"> <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> <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 \ 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!