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 cca4463b
authored
Nov 18, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
82be361a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
68 deletions
pages/tab/index/index.js
pages/tab/index/index.wxss
pages/tab/index/index.js
View file @
cca4463
...
@@ -385,35 +385,6 @@ Page({
...
@@ -385,35 +385,6 @@ Page({
};
};
drawCard
();
drawCard
();
},
},
// 获取用户昵称
getUserProfile
(
e
)
{
this
.
setData
({
hasUserInfo
:
true
,
});
// 推荐使用 wx.getUserProfile 获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
// 开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
wx
.
getUserProfile
({
desc
:
"用于完善资料"
,
// 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success
:
(
res
)
=>
{
ssoApi
.
authUserInfo
({
...
res
,
})
.
then
(({
code
})
=>
{
if
(
code
==
"0"
)
{
getApp
()
.
login
()
.
then
(({
data
})
=>
{
this
.
setData
({
userInfo
:
data
,
// hasUserInfo: true
});
});
}
});
},
});
},
// banner跳转
// banner跳转
jumpBanner
(
e
)
{
jumpBanner
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
...
pages/tab/index/index.wxss
View file @
cca4463
...
@@ -98,14 +98,6 @@ page {
...
@@ -98,14 +98,6 @@ page {
}
}
.application {
position: fixed;
bottom: 0;
width: 100%;
}
.main-box {
.main-box {
box-sizing: border-box;
box-sizing: border-box;
height: 100%;
height: 100%;
...
@@ -120,37 +112,7 @@ page {
...
@@ -120,37 +112,7 @@ page {
padding-top: 24rpx;
padding-top: 24rpx;
flex: 1;
flex: 1;
}
}
/* 用户授权 */
.user-profile {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
background-color: transparent;
}
/* 手机号授权 */
.phone-number {
display: flex;
align-items: center;
justify-content: center;
margin: 16rpx 48rpx;
color: #fff;
background: #5850FF;
background-image: linear-gradient(180deg, #4791FF 0%, #5850FF 100%, #643DFF 100%);
border-radius: 8rpx;
}
.icon-arrow {
width: 32rpx;
height: 32rpx;
}
.icon-arrow:first-child {
margin-right: 48rpx;
}
.icon-arrow:last-child {
margin-left: 48rpx;
}
/* 了解更多 */
/* 了解更多 */
.more-box {
.more-box {
position: relative;
position: relative;
...
...
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