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 aefdb3e3
authored
Jun 07, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
输入框交互调整
1 parent
df6f3f57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
15 deletions
packageEquity/pages/employeeInspection/employeeInspection.js
packageEquity/pages/employeeInspection/employeeInspection.sass
packageEquity/pages/employeeInspection/employeeInspection.wxml
packageEquity/pages/employeeInspection/employeeInspection.js
View file @
aefdb3e
...
...
@@ -45,7 +45,7 @@ Page({
}
=
e
.
target
.
dataset
this
.
setData
({
bussinessType
:
type
,
nothing
:
false
,
nothing
:
false
,
pageNum
:
1
,
},
()
=>
{
this
.
getList
(
true
)
...
...
@@ -68,7 +68,7 @@ Page({
pageNum
:
isReset
?
1
:
pageNum
,
searchdate
,
keyword
,
BussinessType
:
bussinessType
BussinessType
:
bussinessType
}
if
(
RecMerchantNo
)
params
.
RecMerchantNo
=
RecMerchantNo
if
(
nothing
)
return
...
...
@@ -84,7 +84,7 @@ Page({
if
(
e
.
seconds
)
e
.
_seconds
=
this
.
formatTime
(
e
.
seconds
)
// e.tempServer = e.serviceList.slice(0, 3)
console
.
log
(
e
.
merchantDTOList
)
e
.
tempStore
=
e
.
merchantDTOList
&&
e
.
merchantDTOList
.
length
>
0
?
e
.
merchantDTOList
.
slice
(
0
,
3
):
[]
e
.
tempStore
=
e
.
merchantDTOList
&&
e
.
merchantDTOList
.
length
>
0
?
e
.
merchantDTOList
.
slice
(
0
,
3
)
:
[]
})
this
.
setData
({
inspectList
:
tempList
,
...
...
@@ -213,7 +213,7 @@ Page({
selectedYqMerchantList
,
RecMerchantNo
,
merchantName
,
nothing
:
false
nothing
:
false
})
this
.
getList
(
true
)
},
...
...
@@ -278,10 +278,23 @@ Page({
}
},
showOpen
()
{
showOpen
(
e
)
{
console
.
log
(
e
.
currentTarget
.
dataset
)
let
{
open
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
isopen
:
!
this
.
data
.
isopen
})
if
(
open
)
{
this
.
setData
({
pageNum
:
1
,
nothing
:
false
,
keyword
:
''
},
()
=>
{
this
.
getList
(
true
)
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
...
...
@@ -292,11 +305,11 @@ Page({
this
.
setData
({
pageNum
:
1
,
nothing
:
false
,
searchdate
:
detail
},
()
=>
{
searchdate
:
detail
},
()
=>
{
this
.
getList
(
true
)
})
},
onReady
()
{
...
...
packageEquity/pages/employeeInspection/employeeInspection.sass
View file @
aefdb3e
...
...
@@ -29,7 +29,6 @@ page{
.search-input
{
background
:
#F7F8FA
;
border-radius
:
var
(
--
fontSize38
)
;
width
:
100%
;
height
:
var
(
--
fontSize72
)
;
display
:
flex
;
align-items
:
center
;
...
...
packageEquity/pages/employeeInspection/employeeInspection.wxml
View file @
aefdb3e
...
...
@@ -7,8 +7,8 @@
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
</view>
</block>
<block wx:if="{{isopen}}">
<view class="search-input">
<view class="search-input"
style="width:{{isopen?'100%':''}}" bindtap="showOpen"
>
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="员工姓名/手机号" class="input" confirm-type="search" value="{{keyword}}" placeholder-class="input-placeholder" catchinput="input" catchconfirm="inputConfifm" />
<block wx:if="{{keyword}}">
...
...
@@ -17,12 +17,12 @@
</view>
</block>
</view>
<view class="cancel-text" bindtap="showOpen" wx:if="{{isopen}}">取消</view>
</block>
<view class="cancel-text" bindtap="showOpen"
data-open="true"
wx:if="{{isopen}}">取消</view>
<view class="search-icon-wrap" wx:if="{{!isopen}}" bindtap="showOpen">
<
!-- <
view class="search-icon-wrap" wx:if="{{!isopen}}" bindtap="showOpen">
<image src="/images/search-black.png" class="search-icon" />
</view>
</view>
-->
</view>
<date-box bindchange="changeDate"></date-box>
...
...
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