Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 95b439c9
authored
Jun 01, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
历史记录
1 parent
caade696
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
47 deletions
assets/css/sprite.scss
mixin/record.js
pages/boutique/history.vue
pages/boutique/invitation.vue
assets/css/sprite.scss
View file @
95b439c
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
.icon-arrow-right
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-742rpx
-794rpx
;}
.icon-arrow-right
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-742rpx
-794rpx
;}
.icon-back
{
width
:
128rpx
;
height
:
50rpx
;
background-position
:
-742rpx
-734rpx
;}
.icon-back
{
width
:
128rpx
;
height
:
50rpx
;
background-position
:
-742rpx
-734rpx
;}
.icon-change-account
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-784rpx
-794rpx
;}
.icon-change-account
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-784rpx
-794rpx
;}
.icon-customer-1
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
0rpx
0rpx
;}
.icon-customer-2
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
-410rpx
0rpx
;}
.icon-face-error-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-820rpx
-610rpx
;}
.icon-face-error-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-820rpx
-610rpx
;}
.icon-face-error
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-734rpx
;}
.icon-face-error
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-734rpx
;}
.icon-face-success-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-106rpx
-734rpx
;}
.icon-face-success-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-106rpx
-734rpx
;}
...
@@ -45,5 +47,3 @@
...
@@ -45,5 +47,3 @@
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-750rpx
-596rpx
;}
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-750rpx
-596rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-590rpx
-840rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-590rpx
-840rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-660rpx
-840rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-660rpx
-840rpx
;}
\ No newline at end of file
\ No newline at end of file
.icon-customer-1
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
0rpx
0rpx
;}
.icon-customer-2
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
-410rpx
0rpx
;}
\ No newline at end of file
\ No newline at end of file
mixin/record.js
0 → 100644
View file @
95b439c
export
default
{
data
()
{
return
{
list
:
[],
dateIndex
:
0
,
pageNum
:
1
,
total
:
0
,
flag
:
true
,
nothing
:
false
,
pageSize
:
18
,
total
:
0
,
};
},
mounted
()
{},
methods
:
{
async
getList
(
api
,
params
)
{
try
{
uni
.
showLoading
();
const
{
list
,
total
}
=
await
uni
.
$api
.
commonApi
[
api
](
params
);
uni
.
hideLoading
();
this
.
list
=
[...(
params
.
pageNum
==
1
?
[]
:
this
.
list
),
...
list
];
this
.
flag
=
true
;
this
.
total
=
total
;
}
catch
(
error
)
{
this
.
flag
=
true
;
}
},
},
};
pages/boutique/history.vue
View file @
95b439c
...
@@ -74,39 +74,28 @@
...
@@ -74,39 +74,28 @@
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
script
type
=
"text/ecmascript-6"
>
<
script
type
=
"text/ecmascript-6"
>
import
Record
from
"@/mixin/record"
;
export
default
{
export
default
{
name
:
''
,
name
:
''
,
mixins
:[
Record
],
data
()
{
data
()
{
return
{
return
{
name
:
''
,
name
:
''
,
dateIndex
:
0
,
pageNum
:
1
,
total
:
0
,
list
:
[{
id
:
1
,
carModel
:
1
,
customerName
:
'合适的甲方'
,
receptionStatus
:
1
}
],
dateList
:
[
dateList
:
[
{
text
:
'车窗膜'
}
,
{
text
:
'车窗膜'
}
,
{
text
:
'其他精品'
}
{
text
:
'其他精品'
}
],
],
itemObject
:
[
itemObject
:
[
{
label
:
'客户电话'
,
key
:
'phoneNumber'
}
,
{
label
:
'车架号'
,
key
:
'phoneNumber'
}
,
{
label
:
'客户车型'
,
key
:
'salesName'
}
,
{
label
:
'工单号'
,
key
:
'salesName'
}
,
{
label
:
'礼券名称'
,
key
:
'duration'
}
,
{
label
:
'交易流水号'
,
key
:
'duration'
}
,
{
label
:
'领券时间'
,
key
:
'startTime'
}
,
{
label
:
'实收金额'
,
key
:
'startTime'
}
{
label
:
'销售顾问'
,
key
:
'endTime'
}
,
],
],
flag
:
true
,
nothing
:
false
,
pageSize
:
18
,
total
:
0
,
sticky
:
false
}
}
}
,
}
,
mounted
()
{
this
.
getRecordList
()
}
,
methods
:
{
methods
:
{
//下拉分页
//下拉分页
pageonReachBottom
()
{
pageonReachBottom
()
{
...
@@ -114,7 +103,7 @@ export default {
...
@@ -114,7 +103,7 @@ export default {
if
(
!
nothing
)
nothing
=
'nothing'
if
(
!
nothing
)
nothing
=
'nothing'
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
this
.
pageNum
+=
1
this
.
pageNum
+=
1
this
.
getList
()
this
.
get
Record
List
()
}
else
this
.
nothing
=
true
}
else
this
.
nothing
=
true
}
,
}
,
changeIndex
(
index
)
{
changeIndex
(
index
)
{
...
@@ -125,12 +114,23 @@ export default {
...
@@ -125,12 +114,23 @@ export default {
this
.
list
=
[]
this
.
list
=
[]
this
.
pageNum
=
1
this
.
pageNum
=
1
this
.
dateIndex
=
index
this
.
dateIndex
=
index
this
.
getList
()
this
.
get
Record
List
()
}
,
}
,
input
(
e
)
{
input
(
e
)
{
console
.
log
(
e
.
detail
.
value
)
console
.
log
(
e
.
detail
.
value
)
}
,
}
,
getList
()
{
getRecordList
()
{
const
{
pageNum
,
pageSize
}
=
this
,
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
this
.
getList
(
'getReceptionList'
,{
merchantId
:
shopMerchantId
,
pageNum
,
pageSize
,
startTime
:
'2024-05-27 00:00:00'
,
endTime
:
'2024-06-02 23:59:59'
}
)
}
}
}
,
}
,
...
@@ -237,15 +237,22 @@ export default {
...
@@ -237,15 +237,22 @@ export default {
}
}
}
}
}
}
.
record
-
box
{
.
list
{
height
:
calc
(
100
vh
-
300
rpx
);
display
:
flex
;
flex
-
wrap
:
wrap
;
gap
:
48
rpx
60
rpx
;
padding
-
top
:
48
rpx
;
padding
-
top
:
48
rpx
;
}
.
end
-
text
{
color
:
#
999
;
text
-
align
:
center
;
margin
:
50
rpx
0
;
font
-
size
:
24
rpx
;
}
.
list
{
display
:
grid
;
grid
-
template
-
columns
:
repeat
(
3
,
1
fr
);
gap
:
48
rpx
;
.
item
{
.
item
{
width
:
640
rpx
;
background
:
#
ffffff
;
background
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
box
;
...
...
pages/boutique/invitation.vue
View file @
95b439c
...
@@ -72,14 +72,12 @@
...
@@ -72,14 +72,12 @@
<
/view
>
<
/view
>
<
/template
>
<
/template
>
<
script
type
=
"text/ecmascript-6"
>
<
script
type
=
"text/ecmascript-6"
>
import
Record
from
"@/mixin/record"
;
export
default
{
export
default
{
name
:
''
,
mixins
:[
Record
]
,
data
()
{
data
()
{
return
{
return
{
name
:
''
,
name
:
''
,
dateIndex
:
0
,
pageNum
:
1
,
total
:
0
,
list
:
[{
list
:
[{
id
:
1
,
id
:
1
,
carModel
:
1
,
carModel
:
1
,
...
@@ -94,13 +92,11 @@ export default {
...
@@ -94,13 +92,11 @@ export default {
{
label
:
'领券时间'
,
key
:
'startTime'
}
,
{
label
:
'领券时间'
,
key
:
'startTime'
}
,
{
label
:
'销售顾问'
,
key
:
'endTime'
}
,
{
label
:
'销售顾问'
,
key
:
'endTime'
}
,
],
],
flag
:
true
,
nothing
:
false
,
pageSize
:
18
,
total
:
0
,
sticky
:
false
}
}
}
,
}
,
mounted
()
{
this
.
getRecordList
()
}
,
methods
:
{
methods
:
{
//下拉分页
//下拉分页
pageonReachBottom
()
{
pageonReachBottom
()
{
...
@@ -108,15 +104,26 @@ export default {
...
@@ -108,15 +104,26 @@ export default {
if
(
!
nothing
)
nothing
=
'nothing'
if
(
!
nothing
)
nothing
=
'nothing'
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
this
.
pageNum
+=
1
this
.
pageNum
+=
1
this
.
getList
()
this
.
get
Record
List
()
}
else
this
.
nothing
=
true
}
else
this
.
nothing
=
true
}
,
}
,
input
(
e
)
{
input
(
e
)
{
console
.
log
(
e
.
detail
.
value
)
console
.
log
(
e
.
detail
.
value
)
}
,
}
,
getList
()
{
getRecordList
()
{
const
{
pageNum
,
pageSize
}
=
this
,
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
this
.
getList
(
'getReceptionList'
,{
merchantId
:
shopMerchantId
,
pageNum
,
pageSize
,
startTime
:
'2024-05-27 00:00:00'
,
endTime
:
'2024-06-02 23:59:59'
}
)
}
}
}
,
}
,
}
}
<
/script
>
<
/script
>
...
@@ -169,13 +176,21 @@ export default {
...
@@ -169,13 +176,21 @@ export default {
line
-
height
:
80
rpx
;
line
-
height
:
80
rpx
;
}
}
}
}
.
list
{
.
record
-
box
{
display
:
flex
;
height
:
calc
(
100
vh
-
300
rpx
);
flex
-
wrap
:
wrap
;
gap
:
48
rpx
60
rpx
;
padding
-
top
:
48
rpx
;
padding
-
top
:
48
rpx
;
}
.
end
-
text
{
color
:
#
999
;
text
-
align
:
center
;
margin
:
50
rpx
0
;
font
-
size
:
24
rpx
;
}
.
list
{
display
:
grid
;
grid
-
template
-
columns
:
repeat
(
3
,
1
fr
);
gap
:
48
rpx
;
.
item
{
.
item
{
width
:
640
rpx
;
background
:
#
ffffff
;
background
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
box
-
sizing
:
border
-
box
;
box
-
sizing
:
border
-
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