Commit 0b28e0bb by 李伟康

修改选择账号样式

1 parent f755133f
......@@ -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(({
......
<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}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!