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 b56adea9
authored
Apr 18, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 清空操作缓存
1 parent
1acc5f01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
51 deletions
pages/detail/components/Media_2.vue
pages/detail/components/Media_4.vue
pages/detail/components/Media_6.vue
pages/detail/detail.vue
pages/detail/components/Media_2.vue
View file @
b56adea
...
...
@@ -22,7 +22,6 @@
<wnCanvas
saveImageType=
"3"
:drawImage=
"i.detailUrl"
:drawStatus=
"penSwitch"
:canvasId=
"`c-2-$
{index}`"
>
</wnCanvas>
...
...
@@ -40,7 +39,7 @@ export default {
props
:
{
views
:
Array
,
penSwitch
:
Boolean
,
title
:
String
title
:
String
},
name
:
'Media_2'
,
data
()
{
...
...
@@ -48,6 +47,19 @@ export default {
viewIndex
:
0
}
},
watch
:
{
watchStatus
:
{
immediate
:
true
,
handler
(
newval
)
{
this
.
$refs
.
tabs
.
tabClick
(
0
)
}
},
},
computed
:
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
mounted
()
{
},
methods
:
{
...
...
@@ -68,14 +80,14 @@ export default {
top
:
0
;
width
:
100%
;
height
:
240
rpx
;
image{
image
{
width
:
100%
;
height
:
100%
;
}
}
.content
{
border-radius
:
40
rpx
40
rpx
0
0
;
background
:
#
FCFBF
9
;
background
:
#
fcfbf
9
;
overflow
:
hidden
;
position
:
relative
;
z-index
:
1
;
...
...
@@ -92,7 +104,7 @@ export default {
.left
{
animation
:
show-view-left
0.3s
;
}
.right
{
.right
{
animation
:
show-view-right
0.3s
;
}
}
...
...
pages/detail/components/Media_4.vue
View file @
b56adea
...
...
@@ -49,6 +49,19 @@ export default {
viewIndex
:
0
}
},
watch
:
{
watchStatus
:
{
immediate
:
true
,
handler
(
newval
)
{
this
.
$refs
.
tabs
.
tabClick
(
0
)
}
},
},
computed
:
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
mounted
()
{
},
methods
:
{
...
...
pages/detail/components/Media_6.vue
View file @
b56adea
...
...
@@ -6,39 +6,47 @@
<view
class=
"content"
>
<view
class=
"title"
>
{{
title
||
'历史成交记录'
}}
</view>
<template
v-if=
"list.length && shopMerchantId"
>
<Tabs
:list=
"list"
@
tabclick=
"tabclick"
/>
<Tabs
:list=
"list"
@
tabclick=
"tabclick"
ref=
"tabs"
/>
</
template
>
<view
class=
"card-list"
>
<
template
v-if=
"historyList.length > 0"
>
<view
class=
"card-item"
v-for=
"item in historyList"
:key=
"item.id"
>
<view
class=
"name"
>
{{
nameHide
(
item
.
customerName
)
}}
<view
class=
"card-item"
v-for=
"item in historyList"
:key=
"item.id"
>
<view
class=
"name"
>
{{
nameHide
(
item
.
customerName
)
}}
<view
:class=
"['sex-avatar sprite-icon',`icon-$
{sexType[item.ownerGender]}`]">
</view>
</view>
</view>
<view
class=
"goods-name"
>
{{
item
.
goodsName
}}
</view>
<view
class=
"card-info"
><view>
车架号
</view
><view>
{{
item
.
carVin
||
'-'
}}
</view></view
>
<view
class=
"card-info"
><view>
工单号
</view><view>
{{
item
.
payId
}}
</view></view
>
<view
class=
"card-info"
><view>
订单时间
</view>
<view
class=
"card-info"
>
<view>
车架号
</view>
<view>
{{
item
.
carVin
||
'-'
}}
</view>
</view>
<view
class=
"card-info"
>
<view>
工单号
</view>
<view>
{{
item
.
payId
}}
</view>
</view>
<view
class=
"card-info"
>
<view>
订单时间
</view>
<view>
{{
format
(
item
.
createdTime
)
}}
</view>
</view>
<view
class=
"card-info"
><view>
交易流水号
</view
><view>
{{
item
.
transactionNo
}}
</view></view
>
<view
class=
"card-info"
><view>
支付方式
</view
>
<view
:class=
"['pay-type sprite-icon',`icon-$
{payType[item.payType]}`]">
</view>
</view>
<view
class=
"card-info"
><view>
实收金额
</view
><view
class=
"price"
>
¥
{{
accDiv
(
item
.
equityPrice
)
}}
</view></view
>
<view
class=
"card-info"
>
<view>
交易流水号
</view>
<view>
{{
item
.
transactionNo
}}
</view>
</view>
<view
class=
"card-info"
>
<view>
支付方式
</view>
<view
:class=
"['pay-type sprite-icon',`icon-$
{payType[item.payType]}`]">
</view>
</view>
<view
class=
"card-info"
>
<view>
实收金额
</view>
<view
class=
"price"
>
¥
{{
accDiv
(
item
.
equityPrice
)
}}
</view>
</view>
</view>
</
template
>
<
template
v-else
>
...
...
@@ -57,9 +65,10 @@
<!-- </uni-grid-item>
</uni-grid> -->
</view>
<view
class=
"end-text"
v-if=
"historyList.length > 0 && isEnd"
>
我是一个有底线的人
</view
>
<view
class=
"end-text"
v-if=
"historyList.length > 0 && isEnd"
>
我是一个有底线的人
</view>
</view>
</view>
</template>
...
...
@@ -70,10 +79,10 @@ import Tabs from './Tabs.vue';
export
default
{
name
:
'Media_6'
,
props
:
{
show
:
Boolean
,
title
:
String
show
:
Boolean
,
title
:
String
},
components
:
{
Tabs
},
components
:
{
Tabs
},
data
()
{
return
{
list
:
[
...
...
@@ -105,13 +114,24 @@ export default {
isEnd
:
false
}
},
watch
:{
show
(
n
){
if
(
n
)
this
.
init
()
}
watch
:
{
show
(
n
)
{
if
(
n
)
this
.
init
()
},
watchStatus
:
{
immediate
:
true
,
handler
(
newval
)
{
this
.
$refs
.
tabs
.
tabClick
(
0
)
}
},
},
computed
:
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
mounted
()
{
if
(
this
.
show
)
this
.
init
()
if
(
this
.
show
)
this
.
init
()
// const { shopMerchantId } = uni.$storage.get("userInfo");
// this.shopMerchantId = shopMerchantId
// this.getQuotationList();
...
...
@@ -119,20 +139,20 @@ export default {
methods
:
{
format
(
dateTimeStr
)
{
format
(
dateTimeStr
)
{
return
utils
.
convertDateTimeFormat
(
dateTimeStr
,
'/'
)
},
accDiv
(
val
)
{
accDiv
(
val
)
{
return
utils
.
accDiv
(
val
,
100
)
},
init
()
{
init
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
);
this
.
shopMerchantId
=
shopMerchantId
this
.
getQuotationList
();
},
async
getQuotationList
(
isSwitch
=
false
)
{
async
getQuotationList
(
isSwitch
=
false
,
next
=
false
)
{
const
{
goodsName
,
shopMerchantId
,
currentPage
}
=
this
this
.
currentPage
++
if
(
next
)
this
.
currentPage
++
const
data
=
await
uni
.
$api
.
commonApi
.
getQuotationList
({
currentPage
,
pageSize
:
18
,
...
...
@@ -142,7 +162,7 @@ export default {
})
if
(
isSwitch
)
{
this
.
historyList
=
data
.
list
this
.
isEnd
=
false
this
.
isEnd
=
false
}
else
{
if
(
data
.
list
.
length
>
0
)
{
this
.
historyList
=
this
.
historyList
.
concat
(
data
.
list
)
...
...
@@ -153,13 +173,13 @@ export default {
}
},
tabclick
(
index
)
{
tabclick
(
index
)
{
this
.
goodsName
=
this
.
list
[
index
].
value
this
.
currentPage
=
1
this
.
getQuotationList
(
true
)
},
// 脱敏
nameHide
(
name
)
{
nameHide
(
name
)
{
return
name
.
substring
(
0
,
1
)
+
'**'
;
// if (name.length == 2) {
// name = name.substring(0, 1) + '*'; // 截取name 字符串截取第一个字符,
...
...
pages/detail/detail.vue
View file @
b56adea
...
...
@@ -165,7 +165,7 @@ export default {
this
.
$emit
(
'done'
,
e
)
},
pageonReachBottom
()
{
if
(
this
.
id
==
6
)
this
.
$refs
.
media6
[
0
].
getQuotationList
();
if
(
this
.
id
==
6
)
this
.
$refs
.
media6
[
0
].
getQuotationList
(
false
,
true
);
},
toPay
()
{
this
.
$refs
.
pay
.
show
()
...
...
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