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