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 ac9f9b55
authored
Jun 02, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.11.2' into v3.11.1
2 parents
84da153d
945de646
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
components/UserInfo/UserInfo.wxss
pages/tab/index/index.js
components/UserInfo/UserInfo.wxss
View file @
ac9f9b5
...
...
@@ -32,8 +32,8 @@
align-items: center;
}
.company-logo{
width: 1
7
2rpx;
height:
48
rpx;
width: 1
9
2rpx;
height:
56
rpx;
}
.user-company text {
font-size: 18rpx;
...
...
pages/tab/index/index.js
View file @
ac9f9b5
...
...
@@ -221,16 +221,16 @@ Page({
menus
:
[
'shareAppMessage'
]
})
app
.
getBaseData
().
then
(
res
=>
{
const
productData
=
res
[
0
].
list
const
systemData
=
res
[
1
].
list
this
.
setData
({
[
`tabList[0].name`
]:
res
[
0
].
name
,
[
`tabList[1]name`
]:
res
[
1
].
name
,
systemData
,
productData
})
})
//
app.getBaseData().then(res => {
//
const productData = res[0].list
//
const systemData = res[1].list
//
this.setData({
//
[`tabList[0].name`]: res[0].name,
//
[`tabList[1]name`]: res[1].name,
//
systemData,
//
productData
//
})
//
})
},
addAll
(
data
)
{
...
...
@@ -276,6 +276,17 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow
()
{
const
app
=
getApp
()
app
.
getBaseData
().
then
(
res
=>
{
const
productData
=
res
[
0
].
list
const
systemData
=
res
[
1
].
list
this
.
setData
({
[
`tabList[0].name`
]:
res
[
0
].
name
,
[
`tabList[1]name`
]:
res
[
1
].
name
,
systemData
,
productData
})
})
const
userInfo
=
wx
.
$util
.
getUserInfo
()
this
.
setData
({
hasPhoneNumber
:
!!
(
userInfo
&&
userInfo
.
phone
)
...
...
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