Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_electricity
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_electricity
Commits
7b9d0e19
Commit
7b9d0e19
authored
Jan 21, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增参数
parent
446fa1e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
+35
-3
goods.vue
src/components/sallCenter/plugin/goods.vue
+29
-2
templateEdit.vue
src/components/sallCenter/templateEdit.vue
+6
-1
No files found.
src/components/sallCenter/plugin/goods.vue
View file @
7b9d0e19
...
@@ -585,7 +585,7 @@
...
@@ -585,7 +585,7 @@
<el-radio
v-model=
"data.customizeGoodsTag"
:label=
"true"
@
change=
"customizeGoodsTagChange"
>
自定义
</el-radio>
<el-radio
v-model=
"data.customizeGoodsTag"
:label=
"true"
@
change=
"customizeGoodsTagChange"
>
自定义
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
label=
"自定义商品角标"
v-if=
"data.showGoodsTag&&data.customizeGoodsTag"
>
<el-form-item
label=
"自定义商品角标"
v-if=
"data.showGoodsTag&&data.customizeGoodsTag"
>
<div
flex=
"main:center cross:center"
@
click=
"choicImg=true"
class=
"Goodspic-box"
<div
flex=
"main:center cross:center"
@
click=
"cho
oseType=1,cho
icImg=true"
class=
"Goodspic-box"
:style=
"{backgroundImage:'url('+getIconLink(data.goodsTagPicUrl)+')'}"
>
:style=
"{backgroundImage:'url('+getIconLink(data.goodsTagPicUrl)+')'}"
>
<i
v-if=
"data.goodsTagPicUrl==''"
class=
"el-icon-picture-outline"
></i>
<i
v-if=
"data.goodsTagPicUrl==''"
class=
"el-icon-picture-outline"
></i>
<div
class=
"size-tip"
>
64 × 64
</div>
<div
class=
"size-tip"
>
64 × 64
</div>
...
@@ -597,6 +597,28 @@
...
@@ -597,6 +597,28 @@
<el-input
size=
"small"
style=
"width: 80px;margin-right: 25px;"
v-model=
"data.backgroundColor"
></el-input>
<el-input
size=
"small"
style=
"width: 80px;margin-right: 25px;"
v-model=
"data.backgroundColor"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"背景图片"
>
<div
flex=
"main:center cross:center"
@
click=
"chooseType=2,choicImg=true"
class=
"Goodspic-box"
:style=
"{backgroundImage:'url('+getIconLink(data.bgImg)+')'}"
>
<i
v-if=
"data.bgImg==''"
class=
"el-icon-picture-outline"
></i>
</div>
</el-form-item>
<el-form-item
label=
"上边距"
>
<el-input
v-model=
"data.bgPaddingTop"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"下边距"
>
<el-input
v-model=
"data.bgPaddingBottom"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"左边距"
>
<el-input
v-model=
"data.bgPaddingLeft"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"右边距"
>
<el-input
v-model=
"data.bgPaddingRight"
size=
"small"
></el-input>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -654,6 +676,7 @@
...
@@ -654,6 +676,7 @@
position
:
'center center'
,
position
:
'center center'
,
repeat
:
'no-repeat'
,
repeat
:
'no-repeat'
,
choicImg
:
false
,
choicImg
:
false
,
chooseType
:
1
,
isFenlei
:
false
,
isFenlei
:
false
,
isShowGoods
:
false
,
isShowGoods
:
false
,
ScoreStar
:
5
,
//分数
ScoreStar
:
5
,
//分数
...
@@ -765,7 +788,11 @@
...
@@ -765,7 +788,11 @@
},
},
//选择图片
//选择图片
SelectId
(
msg
)
{
SelectId
(
msg
)
{
this
.
data
.
goodsTagPicUrl
=
msg
.
url
;
if
(
this
.
chooseType
==
1
)
{
this
.
data
.
goodsTagPicUrl
=
msg
.
url
;
}
else
{
this
.
data
.
bgImg
=
msg
.
url
;
}
this
.
choicImg
=
false
;
this
.
choicImg
=
false
;
},
},
//选择商品分类
//选择商品分类
...
...
src/components/sallCenter/templateEdit.vue
View file @
7b9d0e19
...
@@ -777,7 +777,12 @@
...
@@ -777,7 +777,12 @@
backgroundHeight
:
100
,
//背景高
backgroundHeight
:
100
,
//背景高
backgroundWidth
:
100
,
//背景宽
backgroundWidth
:
100
,
//背景宽
showScore
:
true
,
//显示打星星
showScore
:
true
,
//显示打星星
scoreColor
:
''
//星星颜色
scoreColor
:
''
,
//星星颜色
bgImg
:
""
,
//背景图片
bgPaddingTop
:
""
,
//
bgPaddingBottom
:
""
,
//
bgPaddingLeft
:
""
,
//
bgPaddingRight
:
""
,
}
}
}
}
this
.
dataList
.
push
(
goodsObj
);
this
.
dataList
.
push
(
goodsObj
);
...
...
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