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 717f0dcf
authored
Apr 10, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
7a965554
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
28 deletions
pages/detail/components/Media_6.vue
pages/informationEntry/informationEntry.vue
pages/detail/components/Media_6.vue
View file @
717f0dc
...
...
@@ -9,17 +9,33 @@
<view
class=
"card-list"
>
<!--
<uni-grid
:column=
"3"
:show-border=
"false"
:square=
"false"
>
<uni-grid-item
v-for=
"item in historyList"
:key=
"item.id"
>
-->
<view
class=
"card-item"
v-for=
"item in historyList"
:key=
"item.id"
>
<view
class=
"name"
>
{{
item
.
customerName
}}
</view>
<view
class=
"goods-name"
>
{{
item
.
goodsName
}}
</view>
<view
class=
"card-info"
><view>
车架号
</view><view>
{{
item
.
carVin
||
4654651
}}
</view></view>
<view
class=
"card-info"
><view>
工单号
</view><view>
{{
item
.
orderId
}}
</view></view>
<view
class=
"card-info"
><view>
订单时间
</view><view>
{{
item
.
createdTime
}}
</view></view>
<view
class=
"card-info"
><view>
交易流水号
</view><view>
{{
item
.
transactionNo
}}
</view></view>
<view
class=
"card-info"
><view>
支付方式
</view><glsx-image
class=
"pay-type"
:src=
"`media/$
{payType[item.payType]}.png`" />
</view>
<view
class=
"card-info"
><view>
实收金额
</view><view
class=
"price"
>
¥
{{
item
.
equityPrice
}}
</view></view>
</view>
<!--
</uni-grid-item>
<view
class=
"card-item"
v-for=
"item in historyList"
:key=
"item.id"
>
<view
class=
"name"
>
{{
nameHide
(
item
.
customerName
)
}}
</view>
<view
class=
"goods-name"
>
{{
item
.
goodsName
}}
</view>
<view
class=
"card-info"
><view>
车架号
</view><view>
{{
item
.
carVin
||
4654651
}}
</view></view
>
<view
class=
"card-info"
><view>
工单号
</view><view>
{{
item
.
orderId
}}
</view></view
>
<view
class=
"card-info"
><view>
订单时间
</view><view>
{{
item
.
createdTime
}}
</view></view
>
<view
class=
"card-info"
><view>
交易流水号
</view><view>
{{
item
.
transactionNo
}}
</view></view
>
<view
class=
"card-info"
><view>
支付方式
</view
><glsx-image
class=
"pay-type"
:src=
"`media/$
{payType[item.payType]}.png`"
/>
</view>
<view
class=
"card-info"
><view>
实收金额
</view
><view
class=
"price"
>
¥
{{
item
.
equityPrice
}}
</view></view
>
</view>
<!--
</uni-grid-item>
</uni-grid>
-->
</view>
<view
class=
"end-text"
v-if=
"isEnd"
>
我是一个有底线的人
</view>
...
...
@@ -27,7 +43,7 @@
</view>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
import
Tabs
from
'./Tabs.vue'
;
export
default
{
name
:
'Media_6'
,
...
...
@@ -66,8 +82,8 @@ export default {
this
.
shopMerchantId
=
shopMerchantId
this
.
getQuotationList
();
},
methods
:
{
async
getQuotationList
()
{
const
{
goodsName
,
shopMerchantId
,
currentPage
}
=
this
...
...
@@ -89,12 +105,26 @@ export default {
tabclick
(
index
)
{
this
.
goodsName
=
this
.
list
[
index
].
value
this
.
getQuotationList
()
},
// 脱敏
nameHide
(
name
)
{
return
name
.
substring
(
0
,
1
)
+
'**'
;
// if (name.length == 2) {
// name = name.substring(0, 1) + '*'; // 截取name 字符串截取第一个字符,
// return name; // 张三显示为张*
// } else if (name.length == 3) {
// name = name.substring(0, 1) + '*' + name.substring(2, 3); // 截取第一个和第三个字符
// return name; // 李思思显示为李*思
// } else if (name.length > 3) {
// name = name.substring(0, 1) + '*' + '*' + name.substring(3, name.length); // 截取第一个和大于第4个字符
// return name; // 王五哈哈显示为王**哈
// }
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.layout
{
padding-top
:
136
rpx
;
position
:
relative
;
...
...
@@ -122,7 +152,7 @@ export default {
.card-list
{
margin
:
0
72
rpx
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
664
rpx
);
grid-template-columns
:
repeat
(
3
,
664
rpx
);
justify-content
:
center
;
grid-gap
:
32
rpx
;
.card-item
{
...
...
@@ -130,20 +160,20 @@ export default {
padding
:
24
rpx
40
rpx
;
width
:
664
rpx
;
//
height
:
440
rpx
;
background
:
#
FFFFFF
;
border
:
2
rpx
solid
#
DCE0E
6
;
background
:
#
ffffff
;
border
:
2
rpx
solid
#
dce0e
6
;
border-radius
:
16
rpx
;
.name
{
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#1
A1A1A
;
color
:
#1
a1a1a
;
margin-bottom
:
16
rpx
;
}
.goods-name
{
margin-bottom
:
16
rpx
;
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#2
C66F
7
;
color
:
#2
c66f
7
;
}
.card-info
{
display
:
flex
;
...
...
@@ -159,12 +189,11 @@ export default {
.price
{
font-weight
:
600
;
font-size
:
36
rpx
;
color
:
#14
CC
68
;
color
:
#14
cc
68
;
}
}
}
}
}
}
.end-text
{
...
...
@@ -172,4 +201,4 @@ export default {
text-align
:
center
;
margin
:
50
rpx
0
;
}
</
style
>
\ No newline at end of file
</
style
>
pages/informationEntry/informationEntry.vue
View file @
717f0dc
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 10:
02:02
* @LastEditTime: 2024-04-10 10:
15:24
-->
<
template
>
<view
class=
"information-entry"
>
...
...
@@ -503,8 +503,7 @@ export default {
}
}
}
//
.preview-img
{
//
width
:
100%
;
//
height
:
100%
;
//
}
.preview-img
{
height
:
1300
rpx
;
}
</
style
>
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