Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
71d8c9e4
authored
Oct 15, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
bea16c25
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
pages/person/company/index.js
pages/person/company/index.wxml
pages/tab/me/me.js
pages/person/company/index.js
View file @
71d8c9e4
...
...
@@ -12,17 +12,17 @@ Page({
data
:
{
userInfo
:
null
,
business
:
null
,
headPic
:
''
,
type
:
""
,
token
:
""
,
userId
:
""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
let
type
=
options
.
type
;
//1编辑 2查看
let
userId
=
options
.
userId
||
''
;
//查看时别人公司的id
let
userId
=
options
.
userId
||
''
;
//查看时别人公司的id
let
token
=
wx
.
getStorageSync
(
'access_token'
)
||
''
;
let
me
=
this
;
this
.
setData
({
...
...
@@ -73,6 +73,18 @@ Page({
}
http
.
getData
(
apis
.
userInfo
,
'GET'
,
params
,
(
res
)
=>
{
if
(
res
.
errcode
===
0
)
{
// 未企业认证的时候优先读取微信头像
if
(
res
.
data
.
avatar
==
''
)
{
this
.
setData
({
headPic
:
res
.
data
.
wechat_oauth
.
oauth_head
});
}
else
{
this
.
setData
({
headPic
:
res
.
data
.
avatar
});
}
me
.
setData
({
userInfo
:
res
.
data
});
...
...
pages/person/company/index.wxml
View file @
71d8c9e4
...
...
@@ -2,7 +2,7 @@
<view class="head boxsiz row verCenter bothSide">
<view class="row">
<view class="pic">
<cover-image class="im" src="{{
userInfo.avatar||
'/res/images/imgs/heads.png'}}"></cover-image>
<cover-image class="im" src="{{
headPic ? headPic:
'/res/images/imgs/heads.png'}}"></cover-image>
</view>
<view class="txt">
<text class="t1">{{userInfo.company_name||'--'}}</text>
...
...
@@ -56,7 +56,7 @@
<text class="icon iconfont iconChevron"></text>
</view>
</view>
<view class="txt-wrap boxsiz
">
<view class="txt-wrap boxsiz">
<view class="pic" wx:if="{{userInfo.com_pic}}">
<cover-image class="im" src="{{userInfo.com_pic}}"></cover-image>
</view>
...
...
pages/tab/me/me.js
View file @
71d8c9e4
...
...
@@ -27,10 +27,8 @@ Page({
*/
onLoad
:
function
(
options
)
{
if
(
!
http
.
judgeToken
(
true
))
{
return
return
;
}
},
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment