Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
65ea8fe7
Commit
65ea8fe7
authored
Aug 29, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:钱币设置添加状态展示
parent
0e73ddb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
src/views/goods/infoSet.vue
src/views/goods/infoSet.vue
+29
-2
src/views/goods/list.vue
src/views/goods/list.vue
+1
-0
No files found.
src/views/goods/infoSet.vue
View file @
65ea8fe7
...
@@ -31,11 +31,17 @@
...
@@ -31,11 +31,17 @@
<div
v-for=
"(item, index) in imageList"
:key=
"item + index"
class=
"select_item"
>
<div
v-for=
"(item, index) in imageList"
:key=
"item + index"
class=
"select_item"
>
<img
:src=
"item"
class=
"gallery"
@
click=
"handleShowLargeDialog(item)"
>
<img
:src=
"item"
class=
"gallery"
@
click=
"handleShowLargeDialog(item)"
>
<div
class=
"edit"
@
click=
"handlerChangeImage(item)"
>
编辑
</div>
<div
class=
"edit"
@
click=
"handlerChangeImage(item)"
>
编辑
</div>
<div
v-if=
"imageList.length > 0"
class=
"set"
@
click=
"handlerSetMainImage(item, index)"
>
{{
imageMainPosition
===
index
?
'
主图
'
:
'
设为主图
'
}}
</div>
<div
v-if=
"imageList.length > 0"
class=
"set"
@
click=
"handlerSetMainImage(item, index)"
>
{{
imageMainPosition
===
index
?
'
主图
'
:
'
设为主图
'
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"goodsParams.stateName"
class=
"detail_status"
>
{{
goodsParams
.
stateName
}}
</div>
</div>
</el-card>
</el-card>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"info_left"
>
<div
class=
"info_left"
>
...
@@ -186,7 +192,15 @@ import { VuePictureCut, VuePictureCutMask, VuePictureCutMenu } from 'vue-picture
...
@@ -186,7 +192,15 @@ import { VuePictureCut, VuePictureCutMask, VuePictureCutMenu } from 'vue-picture
import
{
getToken
}
from
'
@/utils/auth
'
import
{
getToken
}
from
'
@/utils/auth
'
import
SelectImageDialog
from
'
./components/selectImageDialog
'
import
SelectImageDialog
from
'
./components/selectImageDialog
'
import
{
listCategories
}
from
'
@/api/business/goods
'
import
{
listCategories
}
from
'
@/api/business/goods
'
import
{
detailGoods
,
editGoods
,
saveImageBase64
,
saveCroppingRecord
,
deleteGood
,
holdOver
,
setTopImage
}
from
'
@/api/business/goodsNew
'
import
{
detailGoods
,
editGoods
,
saveImageBase64
,
saveCroppingRecord
,
deleteGood
,
holdOver
,
setTopImage
}
from
'
@/api/business/goodsNew
'
import
CheckLargeImageDialog
from
'
./components/CheckLargeImageDialog
'
import
CheckLargeImageDialog
from
'
./components/CheckLargeImageDialog
'
import
CutImageDialog
from
'
./components/CutImageDialog
'
import
CutImageDialog
from
'
./components/CutImageDialog
'
import
CutEditImageDialog
from
'
./components/CutEditImageDialog
'
import
CutEditImageDialog
from
'
./components/CutEditImageDialog
'
...
@@ -647,6 +661,8 @@ export default {
...
@@ -647,6 +661,8 @@ export default {
}
}
.detail
{
.detail
{
position
:
relative
;
.desc
{
.desc
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
...
@@ -713,6 +729,7 @@ export default {
...
@@ -713,6 +729,7 @@ export default {
background
:
#000000
;
background
:
#000000
;
opacity
:
0
.6
;
opacity
:
0
.6
;
}
}
.set
{
.set
{
width
:
100px
;
width
:
100px
;
position
:
absolute
;
position
:
absolute
;
...
@@ -728,6 +745,16 @@ export default {
...
@@ -728,6 +745,16 @@ export default {
}
}
}
}
}
}
.detail_status
{
position
:
absolute
;
right
:
12px
;
top
:
0
;
font-weight
:
normal
;
font-size
:
22px
;
border-radius
:
8px
;
color
:
#409EFF
;
}
}
}
.info
{
.info
{
...
...
src/views/goods/list.vue
View file @
65ea8fe7
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
<el-tag
:type=
"scope.row.isOnSale ? 'success' : 'error' "
>
{{
scope
.
row
.
isOnSale
?
'
在售
'
:
'
下架
'
}}
</el-tag>
<el-tag
:type=
"scope.row.isOnSale ? 'success' : 'error' "
>
{{
scope
.
row
.
isOnSale
?
'
在售
'
:
'
下架
'
}}
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
min-width=
"110"
label=
"状态"
prop=
"stateName"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"250"
class-name=
"small-padding fixed-width"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"250"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
...
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