Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d1e45fda
authored
Mar 15, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 样式功能修改
1 parent
42d18188
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
108 additions
and
54 deletions
components/navigationBar/navigationBar.js
components/navigationBar/navigationBar.wxml
components/tabPopup/tabPopup.wxml
packageEquity/pages/aiInspection/aiInspection.scss
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.scss
packageEquity/pages/aiInspectionReception/aiInspectionReception.scss
pages/tabMine/pages/index/index.wxml
pages/tabMine/pages/index/index.wxss
pages/tabWorkOrder/pages/index/index.wxml
tabWorkOrder/pages/staffDaily/components/GlCell/GlCell.wxss
tabWorkOrder/pages/staffDaily/staffDaily.wxml
components/navigationBar/navigationBar.js
View file @
d1e45fd
// components/navigationBar/navigationBar.js
// components/navigationBar/navigationBar.js
import
util
from
'../../utils/util'
import
util
from
'../../utils/util'
const
app
=
getApp
()
Component
({
Component
({
options
:
{
options
:
{
styleIsolation
:
'shared'
styleIsolation
:
'shared'
...
@@ -16,7 +17,16 @@ Component({
...
@@ -16,7 +17,16 @@ Component({
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{},
data
:
{
// navigationBarHeight: 70
// // 状态栏高度
// statusBarHeight: app.globalData.statusBarHeight,
// // 导航栏高度
// navigationBarHeight: app.globalData.navigationBarHeight,
// navigationBarStyle: 'font-size: var(--fontSize34)',
// // navigationBarTextWidth: `width:${app.globalData.navigationBarWidth / 2}rpx;padding:0 ${app.globalData.navigationBarPadding / 2}rpx; 0 ${app.globalData.navigationBarPadding / 2}rpx;`
// navigationBarTextWidth: `width:${app.globalData.navigationBarWidth / 2}rpx;padding:${app.globalData.navigationBarPadding / 2}rpx;`
},
/**
/**
* 组件的方法列表
* 组件的方法列表
...
@@ -33,6 +43,12 @@ Component({
...
@@ -33,6 +43,12 @@ Component({
* 获取自定义导航栏信息
* 获取自定义导航栏信息
*/
*/
let
_this
=
this
let
_this
=
this
// 获取屏幕宽度和高度
const
{
windowWidth
,
windowHeight
}
=
wx
.
getSystemInfoSync
();
// 判断屏幕方向
const
isLandscape
=
windowWidth
>
windowHeight
;
// '横屏' : '竖屏'
wx
.
getSystemInfo
({
wx
.
getSystemInfo
({
success
(
res
)
{
success
(
res
)
{
let
{
let
{
...
@@ -47,13 +63,14 @@ Component({
...
@@ -47,13 +63,14 @@ Component({
top
top
}
=
wx
.
getMenuButtonBoundingClientRect
()
}
=
wx
.
getMenuButtonBoundingClientRect
()
let
navigationBarHeight
=
height
+
(
top
-
statusBarHeight
)
*
2
+
5
// let navigationBarHeight = height + (top - statusBarHeight) * 2 + 5
let
navigationBarHeight
=
`var(--fontSize
${(
height
+
(
top
-
statusBarHeight
)
*
2
+
5
)
*
(
isLandscape
?
1
:
2
)}
)`
let
navigationBarPadding
=
screenWidth
-
right
let
navigationBarPadding
=
screenWidth
-
right
let
navigationBarWidth
=
screenWidth
-
(
navigationBarPadding
*
2
+
width
)
-
width
let
navigationBarWidth
=
screenWidth
-
(
navigationBarPadding
*
2
+
width
)
-
width
// if(deviceOrientation == 'landscape') statusBarHeight = 0
// if(deviceOrientation == 'landscape') statusBarHeight = 0
_this
.
setData
({
_this
.
setData
({
statusBarHeight
,
statusBarHeight
:
`var(--fontSize
${
statusBarHeight
*
(
isLandscape
?
1
:
2
)}
)`
,
navigationBarHeight
,
navigationBarHeight
,
// navigationBarStyle: `font-size:${fontSizeSetting}px;`,
// navigationBarStyle: `font-size:${fontSizeSetting}px;`,
navigationBarStyle
:
'font-size: var(--fontSize34)'
,
navigationBarStyle
:
'font-size: var(--fontSize34)'
,
...
@@ -72,15 +89,49 @@ Component({
...
@@ -72,15 +89,49 @@ Component({
},
},
this
this
)
)
},
10
0
)
},
0
)
}
}
},
},
pageLifetimes
:
{
pageLifetimes
:
{
resize
(
res
)
{
resize
(
res
)
{
if
(
res
.
deviceOrientation
==
'landscape'
)
this
.
setData
({
if
(
res
.
deviceOrientation
==
'landscape'
)
{
statusBarHeight
:
0
wx
.
getSystemInfo
({
})
success
(
res
)
{
else
this
.
init
()
let
{
fontSizeSetting
,
statusBarHeight
,
screenWidth
}
=
res
const
{
height
,
right
,
width
,
top
}
=
wx
.
getMenuButtonBoundingClientRect
()
// let navigationBarHeight = height + (top - statusBarHeight) * 2 + 5
let
navigationBarHeight
=
`var(--fontSize
${(
height
+
(
top
-
statusBarHeight
)
*
2
+
5
)}
)`
let
navigationBarPadding
=
screenWidth
-
right
let
navigationBarWidth
=
screenWidth
-
(
navigationBarPadding
*
2
+
width
)
-
width
// if(deviceOrientation == 'landscape') statusBarHeight = 0
_this
.
setData
({
statusBarHeight
:
`var(--fontSize
${
statusBarHeight
}
)`
,
navigationBarHeight
,
// navigationBarStyle: `font-size:${fontSizeSetting}px;`,
navigationBarStyle
:
'font-size: var(--fontSize34)'
,
navigationBarTextWidth
:
`width:
${
navigationBarWidth
}
px;padding:0
${
navigationBarPadding
}
px; 0
${
navigationBarPadding
}
px;`
})
}
})
}
else
{
this
.
init
()
}
// this.setData({
// statusBarHeight: 0
// })
// else
}
}
},
},
ready
()
{
ready
()
{
...
...
components/navigationBar/navigationBar.wxml
View file @
d1e45fd
<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}}
;height:{{navigationBarHeight}}
;{{navStyle}}'>
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<view class="navigation-bar-box" style="{{navigationBarStyle}}">
<view class="navigation-bar-box" style="{{navigationBarStyle}}">
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<slot
/>
<slot
/>
</view>
</view>
<block wx:if="{{showBack}}">
<block wx:if="{{showBack}}">
<view class="back-box" bindtap="back">
<view class="back-box" bindtap="back">
<view class="back">
<view class="back">
<image src="../../images/back.png" />
<image src="../../images/back.png" />
</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{showMenu}}">
<block wx:if="{{showMenu}}">
<view class="menu-box" bindtap="showMenuPopup">
<view class="menu-box" bindtap="showMenuPopup">
<view class="menu-class">
<view class="menu-class">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
</view>
</view>
</view>
</view>
</block>
</block>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
components/tabPopup/tabPopup.wxml
View file @
d1e45fd
<view class="popup" hidden="{{!showPopup}}"
catchtouchmove="noScroll"
>
<view class="popup" hidden="{{!showPopup}}">
<view class="popup-bg" bindtap="hidePopup" /
>
<!-- catchtouchmove="noScroll" --
>
<view class="popup-content" style="height:{{height}}"
>
<view class="popup-bg" bindtap="hidePopup" /
>
<block wx:if="{{title
}}">
<view class="popup-content" style="height:{{height
}}">
<view class="popup-title text-center">{{title}}</view
>
<block wx:if="{{title}}"
>
</block
>
<view class="popup-title text-center">{{title}}</view
>
<!-- {{isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':''}}" --
>
</block
>
<view class="{{tips?'popup-slot-other':'popup-slot'}}"
>
<!-- {{isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':''}}" --
>
<slot/
>
<view class="{{tips?'popup-slot-other':'popup-slot'}}"
>
</view
>
<slot /
>
<block wx:if="{{tips}}"
>
</view
>
<view class="tips text-center">{{tips}}</view
>
<block wx:if="{{tips}}"
>
</block
>
<view class="tips text-center">{{tips}}</view
>
<!-- {{isFullSucreen?'isFullSucreen':''}} --
>
</block
>
<view class="popup-footer "
>
<!-- {{isFullSucreen?'isFullSucreen':''}} --
>
<view class="cancel btn text-center" bindtap="hidePopup">取消</view
>
<view class="popup-footer "
>
<view class="confirm btn text-center" bindtap="confirm">确认
</view>
<view class="cancel btn text-center" bindtap="hidePopup">取消
</view>
</view>
<view class="confirm btn text-center" bindtap="confirm">确认
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/aiInspection/aiInspection.scss
0 → 100644
View file @
d1e45fd
/* packageEquity/pages/aiInspection/aiInspection.wxss */
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.scss
0 → 100644
View file @
d1e45fd
/* packageEquity/pages/aiInspectionDetail/aiInspectionDetail.wxss */
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/aiInspectionReception/aiInspectionReception.scss
0 → 100644
View file @
d1e45fd
/* packageEquity/pages/aiInspectionReception/aiInspectionReception.wxss */
\ No newline at end of file
\ No newline at end of file
pages/tabMine/pages/index/index.wxml
View file @
d1e45fd
...
@@ -158,7 +158,8 @@
...
@@ -158,7 +158,8 @@
</view>
</view>
</block>
</block>
<block wx:if="{{showWorkBox}}">
<block wx:if="{{showWorkBox}}">
<view class="work-box" catchtouchmove="noScroll">
<!-- catchtouchmove="noScroll" -->
<view class="work-box">
<view class="work-bg" bindtap="showWork" />
<view class="work-bg" bindtap="showWork" />
<view class="work-content">
<view class="work-content">
<view class="work-title text-center hasborder">工位设置</view>
<view class="work-title text-center hasborder">工位设置</view>
...
...
pages/tabMine/pages/index/index.wxss
View file @
d1e45fd
...
@@ -316,7 +316,7 @@ page {
...
@@ -316,7 +316,7 @@ page {
overflow: hidden;
overflow: hidden;
left: 0;
left: 0;
width: 100%;
width: 100%;
height:
80
%;
height:
73
%;
overflow: scroll;
overflow: scroll;
padding: 0 var(--fontSize32);
padding: 0 var(--fontSize32);
box-sizing: border-box;
box-sizing: border-box;
...
...
pages/tabWorkOrder/pages/index/index.wxml
View file @
d1e45fd
This diff is collapsed.
Click to expand it.
tabWorkOrder/pages/staffDaily/components/GlCell/GlCell.wxss
View file @
d1e45fd
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
.headerSlot {
.headerSlot {
font-size: var(--fontSize28);
font-size: var(--fontSize28);
color: #347BFF;
color: #347BFF;
max-width: var(--fontSize1
3
5);
max-width: var(--fontSize1
2
5);
/* max-width: 150rpx; */
/* max-width: 150rpx; */
/* margin-left: 3rpx; */
/* margin-left: 3rpx; */
margin-left: var(--fontSize3);
margin-left: var(--fontSize3);
...
...
tabWorkOrder/pages/staffDaily/staffDaily.wxml
View file @
d1e45fd
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<gl-cell-staff headerSlot="{{ orderObj.staffName }}" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的新车客户接待数" label="到店流量(会员权益/延保)" requiredAfter labelWidth="500rpx" required>
<gl-cell-staff headerSlot="{{ orderObj.staffName }}" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的新车客户接待数" label="到店流量(会员权益/延保)" requiredAfter labelWidth="500rpx" required>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.equityToShopCount }}" bindinput="input" data-name="equityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.equityToShopCount }}" bindinput="input" data-name="equityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
</gl-cell-staff>
</gl-cell-staff>
<gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的售后客户接待数" label="售后到店流量(会员权益/延保)" requiredAfter labelWidth="5
3
0rpx" required>
<gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的售后客户接待数" label="售后到店流量(会员权益/延保)" requiredAfter labelWidth="5
1
0rpx" required>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.afterSaleEquityToShopCount }}" bindinput="input" data-name="afterSaleEquityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.afterSaleEquityToShopCount }}" bindinput="input" data-name="afterSaleEquityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
</gl-cell-staff>
</gl-cell-staff>
<view class="user-portrait">
<view class="user-portrait">
...
...
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