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 7b5425e5
authored
Aug 17, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值-总页面
1 parent
00324d76
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
44 deletions
components/NavigationBar/NavigationBar.js
components/NavigationBar/NavigationBar.wxml
pages/tab/output/output.js
pages/tab/output/output.json
pages/tab/output/output.scss
pages/tab/output/output.wxml
components/NavigationBar/NavigationBar.js
View file @
7b5425e
// components/navigationBar/navigationBar.js
Component
({
externalClasses
:
[
'custom-class'
],
/**
* 组件的属性列表
*/
...
...
components/NavigationBar/NavigationBar.wxml
View file @
7b5425e
<view class="navigation-bar" id="navigation-bar" style="padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px;{{navStyle}}">
<block wx:if="{{!custom}}">
<view class="navigation-bar-box" wx:if="{{showNavBar}}" style="{{navigationBarStyle}}{{navBarBoxStyle}}">
<view class="navigation-bar-box
custom-class
" wx:if="{{showNavBar}}" style="{{navigationBarStyle}}{{navBarBoxStyle}}">
<block wx:if="{{SHOWBACK}}">
<view class="back " bindtap="back">
<image class="img" src="./images/icon-back.png" />
...
...
pages/tab/output/output.js
View file @
7b5425e
...
...
@@ -14,7 +14,7 @@ Page({
agree
:
true
,
tabIndx
:
0
,
// tabList: ['我的客户', '我的门店', '我的员工'],
tabList
:
[
'我的
客户
'
,
'我的员工'
],
tabList
:
[
'我的
门店
'
,
'我的员工'
],
popupShow
:
false
,
subIndex
:
-
1
,
merchantList
:
[
...
...
@@ -33,12 +33,12 @@ Page({
},
// 切换园区
tapPicker
()
{
let
{
isSuper
}
=
this
.
data
isSuper
&&
this
.
setData
({
moveArrow
:
!
this
.
data
.
moveArrow
,
popupShow
:
!
this
.
data
.
popupShow
})
//
let { isSuper } = this.data
//
isSuper &&
this
.
setData
({
moveArrow
:
!
this
.
data
.
moveArrow
,
popupShow
:
!
this
.
data
.
popupShow
})
},
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
...
...
@@ -48,8 +48,9 @@ Page({
// console.log(e)
},
changeTabIndx
(
e
)
{
const
{
idx
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
tabIndx
:
e
.
detail
tabIndx
:
idx
})
},
init
()
{
...
...
pages/tab/output/output.json
View file @
7b5425e
{
"usingComponents"
:
{
"navigation-bar"
:
"../../../components/NavigationBar/NavigationBar"
,
"tab"
:
"../../../components/Tab/Tab"
,
"client"
:
"./components/client/client"
,
"merchant"
:
"./components/merchant/mrechant"
,
"staff"
:
"./components/staff/staff"
,
...
...
pages/tab/output/output.scss
View file @
7b5425e
...
...
@@ -9,6 +9,31 @@
}
}
.navbarReady
{
justify-content
:
flex-start
!
important
;
.tab-container
{
box-sizing
:
border-box
;
display
:
flex
;
width
:
calc
(
100vw
-
176rpx
);
height
:
88rpx
;
line-height
:
88rpx
;
padding
:
0
32rpx
;
.tab
{
font-size
:
34rpx
;
color
:
#636465
;
margin-right
:
32rpx
;
}
.tabIndx
{
font-weight
:
600
;
font-size
:
34rpx
;
color
:
#323436
;
}
}
}
.layout
{
box-sizing
:
border-box
;
position
:
relative
;
...
...
@@ -35,12 +60,6 @@
z-index
:
-1
;
}
.tabContainer
{
height
:
100rpx
;
padding
:
0
32rpx
;
// background-color: #F2F3F7;
}
.comCom
{
// flex: 1;
height
:
calc
(
100%
-
100rpx
);
...
...
@@ -58,31 +77,51 @@
}
.
navigation-title
{
.
select-box
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
justify-content
:
center
;
}
box-sizing
:
border-box
;
height
:
88rpx
;
line-height
:
88rpx
;
padding
:
0
32rpx
;
font-size
:
26rpx
;
color
:
#333333
;
.navigation-title-text
{
text-align
:
center
;
max-width
:
calc
(
100%
-
24rpx
);
}
.select-item
{
display
:
flex
;
align-items
:
center
;
height
:
56rpx
;
line-height
:
56rpx
;
padding
:
0
24rpx
;
background
:
#F7F7F7
;
border-radius
:
8rpx
;
}
.navigation-title
.arrow
{
width
:
26rpx
;
height
:
26rpx
;
margin-left
:
4rpx
;
transform
:
translateY
(
25%
);
transition
:
all
0
.5s
;
.select-item.active
{
color
:
#3666FE
;
background
:
#3666fe
1a
;
}
image
{
.arrow
{
width
:
26rpx
;
height
:
26rpx
;
margin-left
:
4rpx
;
transition
:
all
0
.5s
;
image
{
width
:
26rpx
;
height
:
26rpx
;
}
}
}
.navigation-title
.move
{
.merchant-select-text
{
text-align
:
center
;
max-width
:
calc
(
100vw
-
340rpx
);
}
.merchant-select
.move
{
transform
:
rotate
(
-180deg
)
translateY
(
0
);
}
...
...
pages/tab/output/output.wxml
View file @
7b5425e
<!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady">
<view class="navigation-title" bindtap="tapPicker">
<view class="navigation-title-text text-hide">
{{merchantRange[subIndex].merchantName||userInfo.merchantName}}
</view>
<view class="arrow {{moveArrow?'move':''}}" wx:if="{{merchantRange.length > 1}}">
<image src="{{IMG_URL}}/output/arrow.png" />
</view>
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" custom-class="navbarReady">
<view class="tab-container">
<view wx:for="{{tabList}}" wx:key="index" class="tab {{index==tabIndx?'tabIndx':''}}" bindtap="changeTabIndx" data-idx="{{index}}">{{item}}</view>
</view>
<!-- </picker> height:calc(100vh - {{tabBarStyle}}px) -->
</navigation-bar>
<view class="layout" style="padding-top:{{tabBarStyle}}px;">
<tab tab="{{tabList}}" itemWidth="{{'27%'}}" index="{{tabIndx}}" bindclick="changeTabIndx" class="tabContainer" />
<!-- <view class="">{{IMG_URL}}</view> -->
<view class="select-box">
<!-- 门店筛选 -->
<view class="select-item {{'active'}}" bindtap="tapPicker">
<view class="merchant-select-text text-hide">
{{merchantRange[subIndex].merchantName||userInfo.merchantName}}
</view>
<view class="arrow {{moveArrow?'move':''}}">
<image src="{{IMG_URL}}/output/arrow.png" />
</view>
</view>
<view class="select-item {{'active'}}">
筛选
<view class="arrow">
<image src="{{IMG_URL}}/output/arrow.png" />
</view>
</view>
</view>
<!-- 我的客户 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<
!-- <
view class="comCom" hidden="{{tabIndx != 0}}">
<client id="client" />
</view>
</view>
-->
<!-- 我的门店 -->
<!-- <view class="comCom" hidden="{{tabIndx != 1}}">
<merchant id="merchant" />
...
...
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