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 70cd0bf7
authored
Aug 18, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'V4.56.0' of
http://192.168.3.233:8090/glsx/gl_tape
into V4.56.0
2 parents
36019b4c
ab827da6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
237 additions
and
6 deletions
components/OrderPopup/components/GoodsList.vue
components/OrderPopup/components/PackageList.vue
components/OrderPopup/config.js
components/OrderPopup/index.vue
pages/boutique/index.vue
components/OrderPopup/components/GoodsList.vue
View file @
70cd0bf
...
@@ -76,7 +76,6 @@ export default {
...
@@ -76,7 +76,6 @@ export default {
arr
.
push
(
c
)
arr
.
push
(
c
)
}
}
})
})
console
.
log
(
arr
)
this
.
searchList
=
arr
this
.
searchList
=
arr
this
.
searchStatus
=
true
this
.
searchStatus
=
true
}
}
...
...
components/OrderPopup/components/PackageList.vue
0 → 100644
View file @
70cd0bf
<
template
>
<view
class=
"goods-list"
>
<!--
<template
v-if=
"list.length"
>
-->
<template
v-for=
"(item, index) in (searchStatus ? searchList : list)"
>
<view
:key=
"index"
@
click=
"choose(item)"
:class=
"['item',
{active: checkActive(item)}]"
>
<view
class=
"title flex"
>
<view
class=
"icon"
>
<uni-icons
type=
"circle"
:size=
"16"
color=
"#8C8C8C"
class=
"uni-icons"
></uni-icons>
<view
class=
"sprite-icon icon-notice-success"
></view>
</view>
{{
item
.
packageGoods
.
packageAlias
||
item
.
packageGoods
.
packageName
}}
<text
class=
"price"
>
¥
{{
item
.
packageGoods
.
upgradePrice
}}
</text>
</view>
<view
class=
"package-list"
>
<template
v-for=
"(i,ind) in item.packageGoods.goodsList"
>
<view
class=
"package-item flex"
:key=
"ind"
>
<view
class=
"name"
>
{{
i
.
goodsAlias
||
i
.
upgradeGoodsAlias
||
i
.
upgradeGoodsName
}}
</view>
<view
class=
"price"
>
¥
{{
i
.
sellPrice
}}
</view>
</view>
</
template
>
</view>
</view>
</template>
<!-- </template> -->
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
import
NP
from
'number-precision'
export
default
{
name
:
'GoodsList'
,
inject
:
[
'userInfo'
,
'baseConfigData'
],
data
()
{
return
{
list
:
[],
currentIds
:
[],
chooseList
:
[],
searchStatus
:
false
,
searchList
:
[],
}
},
props
:
{
params
:
Object
,
data
:
[
Object
,
Array
],
cacheData
:
Array
},
mounted
()
{
},
methods
:
{
async
getList
(
searchValue
)
{
const
{
userInfo
,
params
}
=
this
,
{
cacheData
}
=
params
this
.
currentIds
=
[]
this
.
chooseList
=
[]
if
(
cacheData
&&
cacheData
.
length
)
{
this
.
list
=
this
.
initGoodsList
(
cacheData
)
if
(
searchValue
)
this
.
handleSearch
(
searchValue
)
return
}
const
{
shopMerchantId
,
sceneType
}
=
userInfo
,
response
=
await
uni
.
$api
.
popupApi
.
getGoodsList
({
merchantId
:
shopMerchantId
,
sceneType
})
if
(
response
&&
response
.
length
)
{
this
.
list
=
this
.
initGoodsList
(
response
)
params
.
cacheData
=
response
this
.
$emit
(
'update:params'
,
params
)
}
},
handleSearch
(
searchValue
)
{
if
(
!
searchValue
)
this
.
searchStatus
=
false
else
{
let
{
list
}
=
this
,
goodsList
=
JSON
.
parse
(
JSON
.
stringify
(
list
)),
arr
=
[]
goodsList
.
map
(
c
=>
{
let
name
=
''
if
(
c
.
goodsFlag
==
3
&&
c
.
packageGoods
)
name
=
c
.
packageGoods
.
packageName
||
c
.
packageGoods
.
packageAlias
if
(
name
.
indexOf
(
searchValue
)
!=
-
1
)
{
arr
.
push
(
c
)
}
})
this
.
searchList
=
arr
this
.
searchStatus
=
true
}
},
initGoodsList
(
goodsData
)
{
let
{
data
}
=
this
,
arr
=
[]
goodsData
.
map
(
val
=>
{
if
(
val
.
goodsFlag
==
3
)
{
val
.
packageGoods
.
upgradePrice
=
NP
.
round
(
val
.
packageGoods
.
goodsList
.
reduce
((
prev
,
cur
)
=>
{
prev
=
NP
.
plus
(
prev
+
cur
.
sellPrice
);
return
prev
;
},
0
),
2
)
arr
.
push
(
val
)
}
})
if
(
data
.
length
)
data
.
map
(
e
=>
{
this
.
currentIds
.
push
(
e
.
packageGoods
.
packageCode
)
this
.
chooseList
.
push
(
e
)
})
return
arr
},
choose
(
i
)
{
let
{
packageCode
}
=
i
.
packageGoods
,
{
currentIds
}
=
this
,
index
=
currentIds
.
indexOf
(
packageCode
)
if
(
index
==
-
1
)
{
this
.
currentIds
.
push
(
packageCode
)
this
.
chooseList
.
push
(
i
)
}
else
{
this
.
currentIds
.
splice
(
index
,
1
)
this
.
chooseList
.
splice
(
index
,
1
)
}
this
.
$emit
(
'choose'
,
this
.
chooseList
)
},
replaceItemText
(
item
,
key
)
{
let
reg
=
getRegExp
(
';~;'
,
'g'
),
value
=
item
[
key
]
return
value
?
value
.
replace
(
reg
,
' '
)
:
''
},
checkActive
(
i
)
{
let
{
currentIds
}
=
this
,
active
=
false
if
(
currentIds
.
length
)
active
=
currentIds
.
includes
(
i
.
packageGoods
.
packageCode
)
return
active
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.goods-list
{
display
:
flex
;
flex-direction
:
column
;
gap
:
32
rpx
0
;
margin
:
0
48
rpx
;
.item
{
justify-content
:
center
;
border-radius
:
24
rpx
;
border
:
2
rpx
solid
#dce0e6
;
box-sizing
:
border-box
;
position
:
relative
;
color
:
#333333
;
font-size
:
32
rpx
;
box-sizing
:
border-box
;
padding
:
0
32
rpx
24
rpx
;
.price
{
margin-left
:
auto
;
}
.title
{
line-height
:
44
rpx
;
padding
:
24
rpx
0
20
rpx
;
.icon
{
margin-right
:
16
rpx
;
}
.sprite-icon
{
display
:
none
;
}
}
.package-list
{
border-radius
:
16
rpx
;
background-color
:
#f5f7fa
;
padding-left
:
32
rpx
;
overflow
:
hidden
;
.package-item
{
color
:
#333333
;
font-size
:
28
rpx
;
line-height
:
40
rpx
;
padding
:
24
rpx
0
;
border-bottom
:
2
rpx
solid
#f0f0ef
;
padding-right
:
32
rpx
;
.price
{
margin-left
:
auto
;
}
&
:last-of-type
{
border
:
none
;
}
}
}
}
.active
{
border-color
:
#2c66f7
;
background
:
#ecf1ff
;
color
:
#2c66f7
;
.icon
{
.uni-icons
{
display
:
none
;
}
.sprite-icon
{
display
:
block
;
}
}
.package-list
{
background
:
#fff
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
components/OrderPopup/config.js
View file @
70cd0bf
...
@@ -79,15 +79,21 @@ const componentConfig = {
...
@@ -79,15 +79,21 @@ const componentConfig = {
title
:
'选择商品(可多选)'
,
title
:
'选择商品(可多选)'
,
placeholder
:
'请输入名称'
,
placeholder
:
'请输入名称'
,
idKey
:
'goodsId'
,
idKey
:
'goodsId'
,
goodsType
:
[
5
,
6
,
7
]
// 后档
goodsType
:
[
4
]
// 后档
},
},
10
:
{
10
:
{
name
:
'GoodsList'
,
name
:
'GoodsList'
,
title
:
'选择商品(可多选)'
,
title
:
'选择商品(可多选)'
,
placeholder
:
'请输入名称'
,
placeholder
:
'请输入名称'
,
idKey
:
'goodsId'
,
idKey
:
'goodsId'
,
goodsType
:
'skylight'
// 天窗
goodsType
:
[
5
,
6
,
7
]
// 天窗
},
},
11
:{
name
:
'PackageList'
,
title
:
'选择套餐'
,
placeholder
:
'查找'
,
idKey
:
'packageCode'
}
}
}
import
EmployeeList
from
'./components/EmployeeList.vue'
import
EmployeeList
from
'./components/EmployeeList.vue'
...
@@ -95,6 +101,7 @@ import DiversionMerchant from './components/DiversionMerchant.vue'
...
@@ -95,6 +101,7 @@ import DiversionMerchant from './components/DiversionMerchant.vue'
import
CarModelList
from
'./components/CarModelList.vue'
import
CarModelList
from
'./components/CarModelList.vue'
import
CouponList
from
'./components/CouponList.vue'
import
CouponList
from
'./components/CouponList.vue'
import
GoodsList
from
'./components/GoodsList.vue'
import
GoodsList
from
'./components/GoodsList.vue'
import
PackageList
from
'./components/PackageList.vue'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -106,6 +113,7 @@ export default {
...
@@ -106,6 +113,7 @@ export default {
DiversionMerchant
,
DiversionMerchant
,
CarModelList
,
CarModelList
,
CouponList
,
CouponList
,
GoodsList
GoodsList
,
PackageList
},
},
}
}
\ No newline at end of file
\ No newline at end of file
components/OrderPopup/index.vue
View file @
70cd0bf
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
:is-mask-click=
"maskClick"
:is-mask-click=
"maskClick"
:animation=
"animation"
:animation=
"animation"
>
>
<view
:class=
"['popup-box']"
>
<view
:class=
"['popup-box'
,
{'right-box':position=='right'}
]">
<view
class=
"popup-title flex"
>
<view
class=
"popup-title flex"
>
{{
title
}}
{{
title
}}
<view
<view
...
@@ -110,6 +110,7 @@ export default {
...
@@ -110,6 +110,7 @@ export default {
popupType
:
{
popupType
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
componentObject
=
this
.
componentConfig
[
this
.
popupType
]
this
.
componentObject
=
this
.
componentConfig
[
this
.
popupType
]
if
(
val
==
11
||
val
==
12
)
this
.
position
=
'right'
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
...
@@ -273,4 +274,12 @@ export default {
...
@@ -273,4 +274,12 @@ export default {
}
}
}
}
}
}
.right-box
{
width
:
46vw
;
height
:
100vh
;
border-radius
:
32
rpx
0
0
32
rpx
;
.popup-footer
{
margin
:
0
48
rpx
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
pages/boutique/index.vue
View file @
70cd0bf
...
@@ -224,7 +224,7 @@ export default {
...
@@ -224,7 +224,7 @@ export default {
async
getSoure
()
{
async
getSoure
()
{
let
baseConfigData
=
await
uni
.
$api
.
systemApi
.
getBoutiqueMockData
(
true
),
let
baseConfigData
=
await
uni
.
$api
.
systemApi
.
getBoutiqueMockData
(
true
),
{
moduleList
,
toolList
,
defaultCarId
}
=
baseConfigData
{
moduleList
,
toolList
,
defaultCarId
}
=
baseConfigData
this
.
$store
.
state
.
boutique
.
baseConfigData
=
c
onfigData
this
.
$store
.
state
.
boutique
.
baseConfigData
=
baseC
onfigData
this
.
moduleList
=
moduleList
this
.
moduleList
=
moduleList
this
.
toolList
=
toolList
this
.
toolList
=
toolList
this
.
defaultCarId
=
defaultCarId
this
.
defaultCarId
=
defaultCarId
...
...
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