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
ab29a157
Commit
ab29a157
authored
May 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8dfdd6f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
26 deletions
+31
-26
goods.vue
src/components/sallCenter/plugin/goods.vue
+31
-26
No files found.
src/components/sallCenter/plugin/goods.vue
View file @
ab29a157
...
...
@@ -178,7 +178,7 @@
.diy-goods
.diy-component-preview
.goods-name-StaticName
{
margin-top
:
40px
;
height
:
32px
;
height
:
32px
;
}
.diy-goods
.diy-component-preview
.goods-price
{
...
...
@@ -319,18 +319,22 @@
.goodsDialog
.el-dialog__body
{
padding
:
10px
20px
;
}
.goods-priceScore
{
.goods-priceScore
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
line-height
:
48px
;
}
.goods-price
.el-rate__icon
{
font-size
:
30px
;
.goods-price
.el-rate__icon
{
font-size
:
30px
;
}
.diy-goods
.gd_Price
{
font-size
:
12px
!important
;
.diy-goods
.gd_Price
{
font-size
:
12px
!important
;
}
</
style
>
<
template
>
<div
:class=
"
{'active':goodData.isCked}">
...
...
@@ -378,8 +382,8 @@
<div
class=
"goods-price"
>
<
template
v-if=
"data.showGoodsPrice&&data.listStyle!=4"
>
¥
{{
goods
.
price
}}
</
template
>
<
template
v-if=
"data.showScore&&data.listStyle==4"
>
<el-rate
v-model=
"ScoreStar"
disabled
show-score
:colors=
"ScoreArr"
:text-color=
"ScoreArr[0]"
score-template=
"
{value}分">
<el-rate
v-model=
"ScoreStar"
disabled
show-score
:colors=
"ScoreArr"
:text-color=
"ScoreArr[0]"
score-template=
"
{value}分">
</el-rate>
</
template
>
</div>
...
...
@@ -599,7 +603,7 @@
</span>
</el-dialog>
<!-- 选择商品 :visible.sync="isShowGoods" -->
<el-dialog
title=
"选择商品"
custom-class=
"goodsDialog"
>
<el-dialog
title=
"选择商品"
custom-class=
"goodsDialog"
>
<choiceGood
ref=
"choiceGood"
></choiceGood>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowGoods=false"
>
取 消
</el-button>
...
...
@@ -642,8 +646,8 @@
choicImg
:
false
,
isFenlei
:
false
,
isShowGoods
:
false
,
ScoreStar
:
5
,
//分数
ScoreArr
:[],
//颜色数组
ScoreStar
:
5
,
//分数
ScoreArr
:
[],
//颜色数组
//添加的下标
comIndex
:
-
1
,
goodsTags
:
[{
...
...
@@ -803,26 +807,27 @@
},
//选择地接服务
getChoicedDijie
(){
getChoicedDijie
()
{
var
ckedArr
=
this
.
$refs
.
choiceDmc
.
getChoicedDijie
();
console
.
log
(
ckedArr
,
'ckedArr'
);
var
myArray
=
[];
if
(
ckedArr
&&
ckedArr
.
length
>
0
)
{
ckedArr
.
forEach
(
x
=>
{
if
(
x
.
goodType
==
1
)
{
if
(
x
.
goodType
==
1
)
{
myArray
.
push
({
id
:
x
.
HotelId
,
name
:
x
.
HotelName
,
picUrl
:
x
.
CoverImg
,
price
:
x
.
SalesPrice
price
:
x
.
SalesPrice
,
goodType
:
x
.
goodType
});
}
if
(
x
.
goodType
==
2
||
x
.
goodType
==
3
)
{
if
(
x
.
goodType
==
2
||
x
.
goodType
==
3
)
{
myArray
.
push
({
id
:
x
.
ID
,
name
:
x
.
Name
,
picUrl
:
x
.
CoverImg
,
price
:
x
.
SalesPrice
price
:
x
.
SalesPrice
,
goodType
:
x
.
goodType
});
}
});
...
...
@@ -834,7 +839,7 @@
}
this
.
isShowGoods
=
false
;
this
.
$refs
.
choiceDmc
.
toggleSelection
();
},
},
//取消选择商品
quxiaoGoods
()
{
...
...
@@ -933,7 +938,7 @@
if
(
this
.
data
.
textStyle
===
2
||
this
.
data
.
listStyle
===
0
)
{
return
false
;
}
if
(
this
.
data
.
listStyle
==
4
)
{
if
(
this
.
data
.
listStyle
==
4
)
{
return
false
;
}
return
true
;
...
...
@@ -969,7 +974,7 @@
},
},
mounted
()
{
if
(
this
.
data
.
scoreColor
)
{
if
(
this
.
data
.
scoreColor
)
{
this
.
ScoreArr
.
push
(
this
.
data
.
scoreColor
);
this
.
ScoreArr
.
push
(
this
.
data
.
scoreColor
);
this
.
ScoreArr
.
push
(
this
.
data
.
scoreColor
);
...
...
@@ -977,17 +982,17 @@
},
watch
:
{
"data.scoreColor"
(
val
)
{
this
.
ScoreArr
=
[];
this
.
ScoreArr
=
[];
this
.
ScoreArr
.
push
(
val
);
this
.
ScoreArr
.
push
(
val
);
this
.
ScoreArr
.
push
(
val
);
this
.
$forceUpdate
();
},
"data.listStyle"
(
val
){
if
(
val
==
4
)
{
this
.
data
.
showBuyBtn
=
false
;
}
else
{
this
.
data
.
showBuyBtn
=
true
;
"data.listStyle"
(
val
)
{
if
(
val
==
4
)
{
this
.
data
.
showBuyBtn
=
false
;
}
else
{
this
.
data
.
showBuyBtn
=
true
;
}
}
},
...
...
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