Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4fda867
authored
Sep 03, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能修复】商城:店铺装修的价格展示,没有 / 100 在管理后台的预览时
parent
8362665f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/components/DiyEditor/components/mobile/ProductCard/index.vue
+4
-3
src/components/DiyEditor/components/mobile/ProductList/index.vue
+2
-1
No files found.
src/components/DiyEditor/components/mobile/ProductCard/index.vue
View file @
c4fda867
...
@@ -67,15 +67,15 @@
...
@@ -67,15 +67,15 @@
class=
"text-16px"
class=
"text-16px"
:style=
"
{ color: property.fields.price.color }"
:style=
"
{ color: property.fields.price.color }"
>
>
¥
{{
spu
.
price
}}
¥
{{
fenToYuan
(
spu
.
price
)
}}
</span>
</span>
<!-- 市场价 -->
<!-- 市场价 -->
<span
<span
v-if=
"property.fields.marketPrice.show && spu.marketPrice"
v-if=
"property.fields.marketPrice.show && spu.marketPrice"
class=
"ml-4px text-10px line-through"
class=
"ml-4px text-10px line-through"
:style=
"
{ color: property.fields.marketPrice.color }"
:style=
"
{ color: property.fields.marketPrice.color }"
>¥
{{
spu
.
marketPrice
}}
</span
>¥
{{
fenToYuan
(
spu
.
marketPrice
)
}}
>
</span
>
</div>
</div>
<div
class=
"text-12px"
>
<div
class=
"text-12px"
>
<!-- 销量 -->
<!-- 销量 -->
...
@@ -117,6 +117,7 @@
...
@@ -117,6 +117,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ProductCardProperty
}
from
'./config'
import
{
ProductCardProperty
}
from
'./config'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
{
fenToYuan
}
from
'../../../../../utils'
/** 商品卡片 */
/** 商品卡片 */
defineOptions
({
name
:
'ProductCard'
})
defineOptions
({
name
:
'ProductCard'
})
...
...
src/components/DiyEditor/components/mobile/ProductList/index.vue
View file @
c4fda867
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
class=
"text-12px"
class=
"text-12px"
:style=
"
{ color: property.fields.price.color }"
:style=
"
{ color: property.fields.price.color }"
>
>
¥
{{
spu
.
price
}}
¥
{{
fenToYuan
(
spu
.
price
)
}}
</span>
</span>
</div>
</div>
</div>
</div>
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ProductListProperty
}
from
'./config'
import
{
ProductListProperty
}
from
'./config'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
{
fenToYuan
}
from
'./index'
/** 商品栏 */
/** 商品栏 */
defineOptions
({
name
:
'ProductList'
})
defineOptions
({
name
:
'ProductList'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment