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 b58b4a3b
authored
Jul 03, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
a9f46d15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
10 deletions
mixin/record.js
pages/equity/detail/components/History.vue
mixin/record.js
View file @
b58b4a3
...
@@ -9,6 +9,7 @@ export default {
...
@@ -9,6 +9,7 @@ export default {
nothing
:
false
,
nothing
:
false
,
pageSize
:
18
,
pageSize
:
18
,
total
:
0
,
total
:
0
,
isEnd
:
false
};
};
},
},
mounted
()
{
},
mounted
()
{
},
...
@@ -26,6 +27,7 @@ export default {
...
@@ -26,6 +27,7 @@ export default {
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
flag
=
true
;
this
.
flag
=
true
;
this
.
isEnd
=
true
}
}
},
},
},
},
...
...
pages/equity/detail/components/History.vue
View file @
b58b4a3
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<scroll-view
<scroll-view
class=
"record-box"
class=
"record-box"
scroll-y
scroll-y
:scroll-top=
"scrollTop"
@
scrolltolower=
"pageonReachBottom"
@
scrolltolower=
"pageonReachBottom"
>
>
<view
class=
"card-list"
>
<view
class=
"card-list"
>
...
@@ -27,8 +28,8 @@
...
@@ -27,8 +28,8 @@
<view
class=
"gradient-overlay"
></view>
<view
class=
"gradient-overlay"
></view>
</
template
>
</
template
>
<view>
<view>
<
!-- <view class="name">{{ nameHide(item.customerName) }}</view> --
>
<
view
class=
"name"
>
{{ nameHide(item.customerName) }}
</view
>
<
view
class=
"name"
>
{{ item.id }}
</view
>
<
!-- <view class="name">{{ item.id }}</view> --
>
<view
class=
"goods-name"
>
{{ item.goodsName }}
</view>
<view
class=
"goods-name"
>
{{ item.goodsName }}
</view>
<view
class=
"card-info"
>
<view
class=
"card-info"
>
<view
class=
"label"
>
车架号
</view>
<view
class=
"label"
>
车架号
</view>
...
@@ -86,18 +87,24 @@ export default {
...
@@ -86,18 +87,24 @@ export default {
return
{
return
{
isEnd
:
false
,
isEnd
:
false
,
shopMerchantId
:
''
,
shopMerchantId
:
''
,
goodsName
:
null
goodsName
:
null
,
scrollTop
:
0
}
}
},
},
watch
:
{
watch
:
{
show
(
n
)
{
show
(
n
)
{
if
(
n
)
this
.
init
()
if
(
n
)
this
.
init
()
else
this
.
scrollTop
=
0
},
},
watchStatus
:
{
watchStatus
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newval
)
{
handler
(
newval
)
{
this
.
pageNum
=
1
this
.
pageNum
=
1
this
.
list
=
uni
.
getStorageSync
(
`
${
this
.
shopMerchantId
}
-historyList`
)
this
.
scrollTop
=
1000
setTimeout
(()
=>
{
this
.
scrollTop
=
0
},
100
);
}
}
},
},
watchCarModel
:
{
watchCarModel
:
{
...
@@ -109,8 +116,7 @@ export default {
...
@@ -109,8 +116,7 @@ export default {
let
index
=
{
let
index
=
{
'问界M5'
:
'M5'
,
'问界M5'
:
'M5'
,
'问界M7'
:
'M7'
,
'问界M7'
:
'M7'
,
'问界M9'
:
'M9'
,
'问界M9'
:
'M9'
'奥迪RS 3'
:
'测试'
}[
newval
]
}[
newval
]
return
this
.
goodsName
=
index
||
null
return
this
.
goodsName
=
index
||
null
}
}
...
@@ -133,6 +139,10 @@ export default {
...
@@ -133,6 +139,10 @@ export default {
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
shopMerchantId
=
shopMerchantId
this
.
shopMerchantId
=
shopMerchantId
if
(
this
.
pageNum
==
1
)
this
.
getQuotationList
();
if
(
this
.
pageNum
==
1
)
this
.
getQuotationList
();
if
(
this
.
list
.
length
==
0
)
{
this
.
list
=
uni
.
getStorageSync
(
`
${
this
.
shopMerchantId
}
-historyList`
)
this
.
isEnd
=
true
}
},
},
async
getQuotationList
()
{
async
getQuotationList
()
{
const
{
goodsName
,
shopMerchantId
,
pageNum
,
pageSize
}
=
this
const
{
goodsName
,
shopMerchantId
,
pageNum
,
pageSize
}
=
this
...
@@ -143,9 +153,22 @@ export default {
...
@@ -143,9 +153,22 @@ export default {
goodsName
,
goodsName
,
orderStatus
:
3
,
orderStatus
:
3
,
})
})
if
(
pageNum
==
1
)
uni
.
setStorageSync
(
`
${
shopMerchantId
}
-historyList`
,
this
.
list
)
if
(
pageNum
==
1
)
{
uni
.
setStorageSync
(
`
${
shopMerchantId
}
-historyList`
,
this
.
list
)
if
(
goodsName
&&
this
.
list
.
length
==
0
)
{
await
this
.
getList
(
'getQuotationList'
,
{
merchantIds
:
shopMerchantId
,
pageNum
,
pageSize
,
goodsName
:
null
,
orderStatus
:
3
,
})
}
}
// if (pageNum == 1) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
},
},
pageonReachBottom
()
{
pageonReachBottom
()
{
this
.
isEnd
=
false
let
{
pageNum
,
total
,
isEnd
,
pageSize
}
=
this
let
{
pageNum
,
total
,
isEnd
,
pageSize
}
=
this
if
(
!
isEnd
)
isEnd
=
false
if
(
!
isEnd
)
isEnd
=
false
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
if
(
Math
.
ceil
(
total
/
pageSize
)
>
pageNum
)
{
...
@@ -206,6 +229,7 @@ export default {
...
@@ -206,6 +229,7 @@ export default {
box-shadow
:
inset
0
0
16
rpx
0
#ffffff
;
box-shadow
:
inset
0
0
16
rpx
0
#ffffff
;
z-index
:
11
;
z-index
:
11
;
padding
:
32
rpx
;
padding
:
32
rpx
;
width
:
708
rpx
;
.name
{
.name
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
...
@@ -217,6 +241,10 @@ export default {
...
@@ -217,6 +241,10 @@ export default {
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#2c66f7
;
color
:
#2c66f7
;
width
:
644
rpx
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
}
.card-info
{
.card-info
{
display
:
flex
;
display
:
flex
;
...
...
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