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
3c8ffc8c
authored
Dec 01, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营销:适配商城装修组件【用户卡券】
parent
c058048f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
1 deletions
+56
-1
src/components/DiyEditor/components/mobile/UserCoupon/config.ts
+23
-0
src/components/DiyEditor/components/mobile/UserCoupon/index.vue
+15
-0
src/components/DiyEditor/components/mobile/UserCoupon/property.vue
+17
-0
src/components/DiyEditor/components/mobile/UserWallet/index.vue
+1
-1
No files found.
src/components/DiyEditor/components/mobile/UserCoupon/config.ts
0 → 100644
View file @
3c8ffc8c
import
{
ComponentStyle
,
DiyComponent
}
from
'@/components/DiyEditor/util'
/** 用户卡券属性 */
export
interface
UserCouponProperty
{
// 组件样式
style
:
ComponentStyle
}
// 定义组件
export
const
component
=
{
id
:
'UserCoupon'
,
name
:
'用户卡券'
,
icon
:
'ep:ticket'
,
property
:
{
style
:
{
bgType
:
'color'
,
bgColor
:
''
,
marginLeft
:
8
,
marginRight
:
8
,
marginBottom
:
8
}
as
ComponentStyle
}
}
as
DiyComponent
<
UserCouponProperty
>
src/components/DiyEditor/components/mobile/UserCoupon/index.vue
0 → 100644
View file @
3c8ffc8c
<
template
>
<el-image
src=
"https://shopro.sheepjs.com/admin/static/images/shop/decorate/couponCardStyle.png"
/>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
UserCouponProperty
}
from
'./config'
/** 用户卡券 */
defineOptions
({
name
:
'UserCoupon'
})
// 定义属性
defineProps
<
{
property
:
UserCouponProperty
}
>
()
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
src/components/DiyEditor/components/mobile/UserCoupon/property.vue
0 → 100644
View file @
3c8ffc8c
<
template
>
<ComponentContainerProperty
v-model=
"formData.style"
/>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
UserCouponProperty
}
from
'./config'
import
{
usePropertyForm
}
from
'@/components/DiyEditor/util'
// 用户卡券属性面板
defineOptions
({
name
:
'UserCouponProperty'
})
const
props
=
defineProps
<
{
modelValue
:
UserCouponProperty
}
>
()
const
emit
=
defineEmits
([
'update:modelValue'
])
const
{
formData
}
=
usePropertyForm
(
props
.
modelValue
,
emit
)
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
src/components/DiyEditor/components/mobile/UserWallet/index.vue
View file @
3c8ffc8c
<
template
>
<
template
>
<el-image
<el-image
src=
"https://shopro.sheepjs.com/admin/static/images/shop/decorate/
coupon
CardStyle.png"
src=
"https://shopro.sheepjs.com/admin/static/images/shop/decorate/
wallet
CardStyle.png"
/>
/>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
...
...
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