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 619f682d
authored
Jun 21, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.7' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.7
2 parents
66d19401
9c98bce9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
40 deletions
components/CarBrands.vue
pages/equity/detail/components/Guarantee.vue
pages/equity/index.vue
utils/cache/constantData.js
components/CarBrands.vue
View file @
619f682
...
...
@@ -128,12 +128,19 @@ export default {
}).
then
(
res
=>
{
uni
.
hideLoading
()
this
.
carlist
=
res
uni
.
setStorageSync
(
`
${
e
.
id
}
_
${
e
.
brandId
}
_carlist`
,
res
)
if
(
auto
&&
res
.
length
)
this
.
handleSelect
(
res
[
0
])
else
this
.
$refs
.
carBoxVisible
.
open
()
this
.
clickFlga
=
false
}).
catch
(
err
=>
{
this
.
clickFlga
=
false
uni
.
hideLoading
()
const
carList
=
uni
.
getStorageSync
(
`
${
e
.
id
}
_
${
e
.
brandId
}
_carlist`
)
if
(
carList
)
{
this
.
carlist
=
carList
if
(
auto
&&
carList
.
length
)
this
.
handleSelect
(
res
[
0
])
else
this
.
$refs
.
carBoxVisible
.
open
()
}
})
},
handleSelect
(
item
)
{
...
...
pages/equity/detail/components/Guarantee.vue
View file @
619f682
...
...
@@ -7,11 +7,18 @@
<view
class=
"container-left"
>
<view
v-for=
"(item, index) in views"
:key=
"item.name"
class=
"item"
@
click
.
stop=
"showSection(index)"
:class=
"item.class"
:style=
"item.style"
>
<view
class=
"image-container"
>
<image
:src=
"item.detailUrl"
mode=
"widthFix"
class=
"item-image"
/>
<image
:src=
"item.detailUrl"
mode=
"widthFix"
class=
"item-image"
/>
<view
class=
"item-text"
>
{{
item
.
name
}}
</view>
</view>
<view
class=
"details-container"
>
<view
class=
"details-section"
:class=
"showIndex == index ? 'show' : 'hide'"
>
<view
class=
"details-section"
:class=
"showIndex == index ? 'show' : 'hide'"
>
<view
class=
"section-title"
>
{{
item
.
name
}}
</view>
<view
class=
"section-description"
>
冷却风扇电机、散热器、冷却液水壶盖、冷却液水壶、冷却液循环泵
</view>
</view>
...
...
@@ -19,12 +26,23 @@
</view>
</view>
<view
class=
"container-right"
>
<image
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-15.webp"
mode=
"widthFix"
class=
"serice-image"
/>
<image
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-15.webp"
mode=
"widthFix"
class=
"serice-image"
/>
<view
class=
"ul"
>
<view
class=
"ul-title"
>
高价值零部件
</view>
<view
class=
"li-item"
v-for=
"i in ulList"
:key=
"i.index"
@
click=
"open(i.flagName)"
>
<view
class=
"li-item"
v-for=
"i in ulList"
:key=
"i.index"
@
click=
"open(i.flagName)"
>
<view
class=
"li-content"
>
<view
class=
"li-item-content"
><view
class=
"li-number"
>
{{
i
.
index
}}
</view>
{{
i
.
name
}}
</view>
<view
class=
"li-item-content"
>
<view
class=
"li-number"
>
{{
i
.
index
}}
</view>
{{
i
.
name
}}
</view>
<image
v-if=
"i.hasArrow"
src=
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/icon-arrow.webp"
...
...
@@ -85,18 +103,18 @@ const list = [
style
:
'width: 284rpx;height: 242rpx;float: right;'
,
class
:
'm-r-b'
},
{
{
name
:
"电气系统"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-7.webp"
,
style
:
'width: 584rpx;height: 498rpx;float: right;'
,
style
:
'width: 584rpx;height: 498rpx;float: right;'
,
class
:
'm-r-b'
},
{
{
name
:
"空调系统"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-6.webp"
,
style
:
'width: 286rpx;height: 498rpx;float: right;'
,
style
:
'width: 286rpx;height: 498rpx;float: right;'
,
class
:
'm-r-b'
},
...
...
@@ -104,7 +122,7 @@ const list = [
name
:
"安全气囊系统"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-5.webp"
,
style
:
'width: 284rpx;height: 330rpx;float: right;'
,
style
:
'width: 284rpx;height: 330rpx;float: right;'
,
class
:
'm-r-b'
},
{
...
...
@@ -112,34 +130,34 @@ const list = [
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-10.webp"
,
style
:
'width: 584rpx;height: 240rpx;position: absolute;top:604rpx;right:0;'
,
class
:
''
class
:
''
},
{
name
:
"增程器"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-11.webp"
,
style
:
'width: 586rpx;height: 332rpx;float: left;'
,
style
:
'width: 586rpx;height: 332rpx;float: left;'
,
class
:
'm-r'
},
{
name
:
"舒适系统"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-12.webp"
,
style
:
'width: 284rpx;height: 332rpx;float: left;'
,
style
:
'width: 284rpx;height: 332rpx;float: left;'
,
class
:
'm-r'
},
{
name
:
"ABS防抱死制动系统"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-13.webp"
,
style
:
'width: 582rpx;height: 332rpx;float: left;'
,
style
:
'width: 582rpx;height: 332rpx;float: left;'
,
class
:
'm-r'
},
{
name
:
"娱乐系统"
,
detailUrl
:
"https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/6-14.webp"
,
style
:
'width: 286rpx;height: 332rpx;float: left;'
style
:
'width: 286rpx;height: 332rpx;float: left;'
},
];
const
ulList
=
[
...
...
@@ -188,7 +206,7 @@ export default {
title
:
String
,
madiaId
:
Number
,
},
data
()
{
data
()
{
return
{
viewIndex
:
6
,
list
,
...
...
@@ -196,14 +214,14 @@ export default {
showIndex
:
-
1
};
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
views
);
},
methods
:
{
open
(
name
)
{
open
(
name
)
{
console
.
log
(
name
)
},
showSection
(
index
)
{
showSection
(
index
)
{
console
.
log
(
index
)
if
(
this
.
showIndex
===
index
)
{
// 如果当前点击的项已经是翻转状态,则关闭它
...
...
@@ -269,7 +287,7 @@ export default {
left
:
24
rpx
;
bottom
:
24
rpx
;
font-size
:
30
rpx
;
color
:
#
FFFFFF
;
color
:
#
ffffff
;
line-height
:
44
rpx
;
}
.details-container
{
...
...
@@ -284,7 +302,7 @@ export default {
.details-section
{
width
:
100%
;
height
:
100%
;
color
:
#
FFFFFF
;
color
:
#
ffffff
;
padding
:
24
rpx
;
border-radius
:
24
rpx
;
background-image
:
linear-gradient
(
180deg
,
#21425c
b3
0%
,
#4A84F9
68%
);
...
...
@@ -315,18 +333,18 @@ export default {
}
.ul
{
width
:
100%
;
border
:
4
rpx
solid
#
FDFDFF
;
border
:
4
rpx
solid
#
fdfdff
;
border-radius
:
24
rpx
;
margin-top
:
36
rpx
;
box-sizing
:
border-box
;
&-title
{
background-color
:
#4
A84F
9
;
box-shadow
:
inset
0
0
16
rpx
0
#
FFFFFF
;
background-color
:
#4
a84f
9
;
box-shadow
:
inset
0
0
16
rpx
0
#
ffffff
;
border-radius
:
24
rpx
24
rpx
0
0
;
height
:
88
rpx
;
font-weight
:
500
;
font-size
:
28
rpx
;
color
:
#
FFFFFF
;
color
:
#
ffffff
;
line-height
:
88
rpx
;
text-align
:
center
;
}
...
...
@@ -339,7 +357,7 @@ export default {
flex-direction
:
column
;
padding-left
:
40
rpx
;
//
margin-bottom
:
4
rpx
;
border
:
2
rpx
solid
#
FDFDFF
;
border
:
2
rpx
solid
#
fdfdff
;
.li-number
{
font-size
:
32
rpx
;
margin-right
:
12
rpx
;
...
...
@@ -360,18 +378,18 @@ export default {
.li-value
{
margin-top
:
8
rpx
;
font-size
:
22
rpx
;
color
:
#1462FF
;
color
:
#1462ff
;
}
&
:nth-child
(
odd
)
{
background-color
:
#e5edff
;
}
&
:nth-child
(
even
)
{
background-color
:
rgba
(
255
,
255
,
255
,
0.35
);
}
&
:last-child
{
border-radius
:
0
0
24
rpx
24
rpx
;
height
:
140
rpx
;
}
&
:nth-child
(
odd
)
{
background-color
:
#E5EDFF
;
}
&
:nth-child
(
even
)
{
background-color
:
rgba
(
255
,
255
,
255
,
0.35
);
}
&
:last-child
{
border-radius
:
0
0
24
rpx
24
rpx
;
height
:
140
rpx
;
}
}
}
}
...
...
@@ -406,5 +424,4 @@ export default {
transform
:
translateY
(
100%
);
}
}
</
style
>
pages/equity/index.vue
View file @
619f682
...
...
@@ -94,7 +94,11 @@ export default {
this
.
getSoure
();
this
.
findPayInfo
();
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
storageCarBrandList
=
uni
.
$storage
.
get
(
'carBrandList'
),
storageEmployeeList
=
uni
.
$storage
.
get
(
'employeeList'
),
{
shopMerchantId
}
=
userInfo
if
(
storageCarBrandList
)
this
.
$store
.
dispatch
(
"setCarBrandsList"
,
storageCarBrandList
);
if
(
storageEmployeeList
)
this
.
$store
.
dispatch
(
"setEmployeeList"
,
storageEmployeeList
);
/**获取品牌车型 */
uni
.
$api
.
commonApi
.
getMerchantCarBrandList
([
shopMerchantId
])
...
...
@@ -108,7 +112,8 @@ export default {
});
});
this
.
$store
.
dispatch
(
"setCarBrandsList"
,
carBrandList
);
});
uni
.
$storage
.
set
(
'carBrandList'
,
carBrandList
)
})
/**获取销售人员 */
uni
.
$api
.
commonApi
.
getEmployeeList
({
...
...
@@ -116,6 +121,7 @@ export default {
})
.
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
"setEmployeeList"
,
res
);
uni
.
$storage
.
set
(
'employeeList'
,
res
)
});
},
// 查询素材
...
...
utils/cache/constantData.js
View file @
619f682
...
...
@@ -16,6 +16,8 @@ export const STORAGE_OBJECTkEY = {
noSignInUuid
:
"noSignInUuid"
,
noviceGuideStatus
:
"noviceGuideStatus"
,
accountLength
:
"accountLength"
,
carBrandList
:
'carBrandList'
,
employeeList
:
'employeeList'
};
// export const IMG_VERSION = async () => {
...
...
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