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 ee90ca7e
authored
Aug 23, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 还原历史成交
1 parent
466d2d24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
6 deletions
pages/equity/detail/components/History.vue
pages/equity/detail/components/History.vue
View file @
ee90ca7
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-if=
"list.length > 0"
>
<
template
v-if=
"list.length > 0"
>
<!--
{'has-tabs':views
&&
views.length > 1} -->
<scroll-view
<scroll-view
:class=
"['record-box'
,
{'has-tabs':views
&&
views.length > 1}
]"
:class=
"['record-box']"
scroll-y
scroll-y
:scroll-top=
"scrollTop"
:scroll-top=
"scrollTop"
@
scrolltolower=
"pageonReachBottom"
@
scrolltolower=
"pageonReachBottom"
...
@@ -120,11 +121,30 @@ export default {
...
@@ -120,11 +121,30 @@ export default {
},
100
);
},
100
);
}
}
},
},
watchCarModel
:
{
immediate
:
true
,
handler
(
newval
)
{
if
(
this
.
madiaId
==
4
)
{
// this.list = uni.$storage.get("historyList")
let
index
=
{
'问界M5'
:
'M5'
,
'问界M7'
:
'M7'
,
'问界M9'
:
'M9'
}[
newval
]
this
.
list
=
[]
this
.
pageNum
=
1
return
this
.
goodsName
=
index
||
null
}
}
}
},
},
computed
:
{
computed
:
{
watchStatus
()
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
watchCarModel
()
{
return
this
.
$store
.
state
.
user
.
customerInfo
.
carModel
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
show
)
this
.
init
()
if
(
this
.
show
)
this
.
init
()
...
@@ -149,7 +169,19 @@ export default {
...
@@ -149,7 +169,19 @@ export default {
goodsName
,
goodsName
,
orderStatus
:
3
,
orderStatus
:
3
,
})
})
if
(
!
goodsName
&&
this
.
pageNum
==
1
&&
this
.
list
.
length
)
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'
,
{
merchantId
:
shopMerchantId
,
pageNum
,
pageSize
,
goodsName
:
null
,
orderStatus
:
3
,
})
}
}
// if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
}
catch
(
error
)
{
}
catch
(
error
)
{
if
(
!
goodsName
&&
this
.
pageNum
==
1
)
this
.
list
=
uni
.
getStorageSync
(
`
${
this
.
shopMerchantId
}
-historyList`
)
if
(
!
goodsName
&&
this
.
pageNum
==
1
)
this
.
list
=
uni
.
getStorageSync
(
`
${
this
.
shopMerchantId
}
-historyList`
)
}
}
...
@@ -271,10 +303,10 @@ export default {
...
@@ -271,10 +303,10 @@ export default {
.value
{
.value
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#666666
;
color
:
#666666
;
margin-left
:
auto
;
//
margin-left
:
auto
;
}
}
.price
{
.price
{
margin-left
:
auto
;
//
margin-left
:
auto
;
display
:
flex
;
display
:
flex
;
align-items
:
baseline
;
align-items
:
baseline
;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -286,7 +318,15 @@ export default {
...
@@ -286,7 +318,15 @@ export default {
}
}
}
}
.image-box
{
.image-box
{
display
:
none
;
display
:
block
;
position
:
absolute
;
right
:
0
rpx
;
top
:
0
rpx
;
width
:
252
rpx
;
height
:
364
rpx
;
border-radius
:
0
32
rpx
32
rpx
0
;
z-index
:
-1
;
//
display
:
none
;
}
}
.gradient-overlay
{
.gradient-overlay
{
z-index
:
-1
;
z-index
:
-1
;
...
@@ -338,7 +378,8 @@ export default {
...
@@ -338,7 +378,8 @@ export default {
z-index
:
-1
;
z-index
:
-1
;
}
}
.card-info
{
.card-info
{
.value,.price
{
.value,
.price
{
margin-left
:
0
;
margin-left
:
0
;
}
}
}
}
...
...
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