Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 0b28e0bb
authored
Oct 12, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改选择账号样式
1 parent
f755133f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
login/accountItems/accountItems.js
login/accountItems/accountItems.wxml
login/accountItems/accountItems.js
View file @
0b28e0b
...
...
@@ -3,11 +3,14 @@ import USERAPI from '~/api/usersApi/index'
import
{
selectAccountLogin
}
from
'~/login/lib/index'
const
navStyle
=
'background-color: rgba(0,0,0,0)'
Page
({
/**
* 页面的初始数据
*/
data
:
{},
data
:
{
navStyle
},
onRoute
({
sessionId
})
{
...
...
@@ -19,6 +22,17 @@ Page({
onLoad
:
function
(
options
)
{
},
onPageScroll
({
scrollTop
})
{
let
scrollTop_num
=
scrollTop
/
100
if
(
scrollTop_num
>
0
&&
scrollTop_num
<=
1
&&
this
.
data
.
navStyle
!=
'background-color:#FFF;'
)
this
.
setData
({
navStyle
:
`background-color:#FFF;`
})
if
(
scrollTop_num
==
0
)
this
.
setData
({
navStyle
})
},
getListSelectAccount
(
sessionId
)
{
wx
.
$api
.
showLoading
(
'加载中...'
)
USERAPI
.
getAccountList
(
sessionId
).
then
(({
...
...
login/accountItems/accountItems.wxml
View file @
0b28e0b
<view class="layout">
<navigation-bar navStyle="
background-color: rgba(0,0,0,0)
">选择账号</navigation-bar>
<navigation-bar navStyle="
{{navStyle}}
">选择账号</navigation-bar>
<view class="title">请选择登录的账号</view>
<view class="list">
<block wx:if="{{flag}}">
...
...
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