Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 22e3858e
authored
Nov 02, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查看门店
1 parent
318f623d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
173 additions
and
1 deletions
src/components/index.js
src/views/goods/commodity.vue
src/views/goods/storeDetail.vue
src/components/index.js
View file @
22e3858
...
@@ -10,4 +10,5 @@ Vue.component('d2-el-icon', () => import('./d2-el-icon'))
...
@@ -10,4 +10,5 @@ Vue.component('d2-el-icon', () => import('./d2-el-icon'))
Vue
.
component
(
'd2-icon-svg'
,
()
=>
import
(
'./d2-icon-svg/index.vue'
))
Vue
.
component
(
'd2-icon-svg'
,
()
=>
import
(
'./d2-icon-svg/index.vue'
))
Vue
.
component
(
'd2-table-header'
,
()
=>
import
(
'./d2-table-header/index.vue'
))
Vue
.
component
(
'd2-table-header'
,
()
=>
import
(
'./d2-table-header/index.vue'
))
Vue
.
component
(
'd2-table'
,
()
=>
import
(
'./d2-table/index.vue'
))
Vue
.
component
(
'd2-table'
,
()
=>
import
(
'./d2-table/index.vue'
))
Vue
.
component
(
'd2-dialog'
,
()
=>
import
(
'./d2-dialog/index.vue'
))
Vue
.
component
([
authButton
.
name
],
authButton
)
Vue
.
component
([
authButton
.
name
],
authButton
)
src/views/goods/commodity.vue
View file @
22e3858
...
@@ -83,11 +83,22 @@
...
@@ -83,11 +83,22 @@
@
click=
"handleUpOrDown"
@
click=
"handleUpOrDown"
>
{{
scope
.
scope
.
state
?
'上架'
:
'下架'
}}
</el-button>
>
{{
scope
.
scope
.
state
?
'上架'
:
'下架'
}}
</el-button>
</d2-table>
</d2-table>
<d2-dialog
title=
"关联门店信息"
:className=
"storeDetail"
:isVisible
.
sync=
"detailVisible"
@
closeDialog=
"handleDetailClose"
>
<store-detail
:detail=
"detailData"
></store-detail>
</d2-dialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getList
}
from
'@api/commodity'
import
{
getList
}
from
'@api/commodity'
import
storeDetail
from
'./storeDetail'
export
default
{
export
default
{
name
:
'commodity'
,
name
:
'commodity'
,
data
()
{
data
()
{
...
@@ -146,6 +157,8 @@ export default {
...
@@ -146,6 +157,8 @@ export default {
prop
:
'createTime'
prop
:
'createTime'
}]
}]
},
},
// 查看门店
detailVisible
:
false
,
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
product
:
[{
product
:
[{
...
@@ -157,7 +170,12 @@ export default {
...
@@ -157,7 +170,12 @@ export default {
}
}
},
},
components
:
{
storeDetail
},
mounted
()
{
mounted
()
{
console
.
log
(
storeDetail
)
var
allOpt
=
{
confId
:
''
,
confKey
:
'全部'
}
var
allOpt
=
{
confId
:
''
,
confKey
:
'全部'
}
this
.
baseData
.
product
.
unshift
(
allOpt
)
this
.
baseData
.
product
.
unshift
(
allOpt
)
this
.
baseData
.
brandList
.
unshift
(
allOpt
)
this
.
baseData
.
brandList
.
unshift
(
allOpt
)
...
@@ -182,7 +200,11 @@ export default {
...
@@ -182,7 +200,11 @@ export default {
console
.
log
(
row
)
console
.
log
(
row
)
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
console
.
log
(
row
)
this
.
detailData
=
row
this
.
detailVisible
=
true
},
handleDetailClose
()
{
this
.
detailVisible
=
false
}
}
}
}
}
}
...
...
src/views/goods/storeDetail.vue
0 → 100644
View file @
22e3858
<!-- 查看门店弹窗 -->
<
template
>
<div
class=
"storeDetail flex"
>
<div>
门店列表
</div>
<div
class=
"detail-rows"
>
<el-scrollbar>
<div
v-for=
"(item, index) in detailArr"
:key=
"index"
class=
"flex"
>
<img
class=
"img"
:src=
"item.img"
/>
<block>
<p>
{{
index
+
1
}}{{
item
.
name
}}
</p>
<p>
<span
class=
"txt-num"
>
编号
{{
item
.
num
}}
</span>
<span>
{{
item
.
phone
}}
</span>
</p>
<p>
{{
item
.
addr
}}
</p>
</block>
</div>
</el-scrollbar>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'storeDetail'
,
data
()
{
return
{
detailArr
:
[{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
},
{
name
:
'滴滴虎智慧门店'
,
img
:
'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3101694723,748884042&fm=26&gp=0.jpg'
,
num
:
'GLS001'
,
phone
:
'0775-12345678'
,
addr
:
'广东省深圳市南山区广东省深圳'
}]
}
},
props
:
{
detailData
:
{
type
:
Object
,
default
:
()
=>
{
}
}
},
mounted
()
{
},
methods
:
{}
}
</
script
>
<
style
>
.flex
{
display
:
flex
;
align-items
:
center
;
}
.storeDetail
.detail-rows
{
width
:
86%
;
height
:
540px
;
}
.el-scrollbar
{
height
:
100%
;
}
.el-scrollbar__wrap
{
overflow-y
:
scroll
;
overflow-x
:
hidden
;
}
.storeDetail
.img
{
width
:
100px
;
height
:
100px
;
margin
:
0
20px
;
}
.storeDetail
.txt-num
{
padding-right
:
20px
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment