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
1d4bac63
authored
Sep 11, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsalesProgram
parents
5b6e385d
c6076631
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
pages/person/certification/certificationmanage/index.wxml
pages/tab/me/me.js
pages/tab/me/me.wxml
pages/person/certification/certificationmanage/index.wxml
View file @
1d4bac63
...
...
@@ -48,7 +48,7 @@
</button>
</block>
<block wx:elif="{{authInfo.status === 3}}">
<button class="btn" data-type="3" data-id="{{authInfo.id}}" data-url='/pages/tab/
home/ho
me' bind:tap="toUrl">
<button class="btn" data-type="3" data-id="{{authInfo.id}}" data-url='/pages/tab/
me/
me' bind:tap="toUrl">
返回会员中心
</button>
</block>
...
...
pages/tab/me/me.js
View file @
1d4bac63
...
...
@@ -10,6 +10,7 @@ Page({
*/
data
:
{
isShow
:
false
,
headPic
:
''
,
userInfo
:
{
avatar
:
''
,
mobile
:
''
...
...
@@ -60,9 +61,23 @@ Page({
token
:
wx
.
getStorageSync
(
'access_token'
)
},
(
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
});
}
this
.
setData
({
userInfo
:
res
.
data
});
}
},
true
);
},
...
...
@@ -101,7 +116,7 @@ Page({
//认证管理
if
(
e
.
currentTarget
.
dataset
.
type
==
'certification'
)
{
if
(
this
.
data
.
userInfo
.
auth_status
==
null
)
{
wx
.
navigateTo
({
...
...
pages/tab/me/me.wxml
View file @
1d4bac63
<view class="mine">
<view class="head row verCenter">
<view class="pic">
<cover-image class="im" src="{{
userInfo.avatar ? 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="text">
<text class="t1">{{userInfo.company_name}}</text>
<view class="row verCenter">
<text class="t2" selectable="false" space="false" decode="false">普通会员</text>
<view>
<text class="t3">红包
:
</text>
<text class="t4">
13,123
</text>
<text class="t3">红包
:
</text>
<text class="t4">
{{userInfo.integral || 0}}
</text>
</view>
</view>
</view>
...
...
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