Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9d449fec
authored
Sep 08, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整
1 parent
2022ba44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
16 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.js
View file @
9d449fe
...
...
@@ -45,12 +45,11 @@ Page({
customerType
:
0
,
// 是否授权昵称
hasUserInfo
:
false
,
<<<<<<<
HEAD
// 是否授权手机号
hasPhoneNumber
:
false
=======
curTab
:
[
trackData
.
COMPANY
,
trackData
.
CUBE
]
>>>>>>>
8
d35ac732b4e690c36b92f97d7f3262c98e54c4a
hasPhoneNumber
:
false
,
curTab
:
[
trackData
.
COMPANY
,
trackData
.
CUBE
],
// 员工名片信息
cardInfo
:
[]
},
introduce
(
e
)
{
const
curTabIndex
=
e
.
currentTarget
.
dataset
.
index
;
...
...
@@ -87,15 +86,21 @@ Page({
*/
onLoad
(
options
)
{
console
.
log
(
this
.
data
.
hasUserInfo
);
// 获取员工名片信息
const
sessionId
=
util
.
getSessionId
();
let
params
=
{};
params
.
cardId
=
21
;
params
.
sessionId
=
sessionId
;
console
.
log
(
params
,
"+++"
);
// entmicroApi.getCardDetail(params).then((res) => {
// console.log(res);
// });
getApp
().
login
().
then
(({
data
})
=>
{
console
.
log
(
data
);
if
(
data
)
{
this
.
setData
({
hasUserInfo
:
true
})
}
if
(
data
.
phone
)
{
this
.
setData
({
hasPhoneNumber
:
true
})
}
else
{
this
.
getCardDetail
()
}
})
},
/**
...
...
@@ -292,5 +297,20 @@ Page({
})
}
})
}
},
// 获取员工名片信息
getCardDetail
()
{
const
sessionId
=
util
.
getSessionId
();
let
params
=
{};
params
.
cardId
=
21
;
params
.
sessionId
=
sessionId
;
console
.
log
(
params
,
"+++"
);
entmicroApi
.
getCardDetail
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
)
{
}
});
}
})
pages/tab/index/index.wxml
View file @
9d449fe
...
...
@@ -6,7 +6,7 @@
<import src="../../template/equity/equity" />
<import src="../../template/clue/clue" /> -->
<view class="main-box">
<user-info></user-info>
<user-info
data="{{cardInfo}}"
></user-info>
<view class="main-bottom">
<!-- 面向渠道 -->
<template is="channel"></template>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment