Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
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 112c52c8
authored
Jan 13, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
41070876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
35 deletions
src/views/coupon/goodsVerification.vue
src/views/merchant/index.vue
src/views/coupon/goodsVerification.vue
View file @
112c52c
...
...
@@ -74,7 +74,7 @@
import
{
shopmallApi
}
from
'@/api'
export
default
{
name
:
''
,
data
()
{
data
()
{
return
{
flag
:
false
,
detail
:
{},
...
...
@@ -87,7 +87,7 @@ export default {
},
{
label
:
'下单日期'
,
format
(
item
)
{
format
(
item
)
{
return
new
Date
(
item
.
createdDate
).
format
(
'yyyy.MM.dd hh:mm'
)
}
},
...
...
@@ -101,30 +101,25 @@ export default {
},
{
label
:
'订单状态'
,
format
(
item
)
{
format
(
item
)
{
return
{
1
:
'待付款'
,
2
:
'已支付'
,
3
:
'已关闭'
,
4
:
'已发货'
,
5
:
'已收货'
,
6
:
'待审核'
,
7
:
'审核通过'
,
8
:
'审核不通过'
,
9
:
'待确认收到退货'
,
10
:
'退款中'
,
11
:
'已退款'
,
12
:
'退款失败'
,
13
:
'待发货'
,
14
:
'待安装'
,
15
:
'已安装'
6
:
'待发货'
,
7
:
'待安装'
,
8
:
'已安装'
,
9
:
'售后中'
,
10
:
'售后完成'
}[
item
.
orderStatus
]
}
}
]
}
},
mounted
()
{
mounted
()
{
let
{
verficationCode
}
=
this
.
getParams
()
this
.
showLoading
()
shopmallApi
...
...
@@ -139,9 +134,9 @@ export default {
})
},
methods
:
{
submit
()
{
submit
()
{
let
{
verficationCode
}
=
this
.
getParams
()
this
.
showLoading
()
this
.
showLoading
()
shopmallApi
.
verficationGoods
(
verficationCode
)
.
then
(
res
=>
{
...
...
src/views/merchant/index.vue
View file @
112c52c
...
...
@@ -16,7 +16,10 @@
<div
class=
"item item-3"
></div>
<div
class=
"item item-4"
></div>
</div>
<div
class=
"btn x-center text-center"
@
click=
"showShareModel()"
>
一键分享
</div>
<div
class=
"btn x-center text-center"
@
click=
"showShareModel()"
>
一键分享
</div>
</div>
</
template
>
<
template
v-else
>
...
...
@@ -28,7 +31,7 @@
ref=
"scrollView"
>
<div
:class=
"[`type-$
{tabIndex - 1}`]">
<template
v-for=
"(i,index) in list"
>
<template
v-for=
"(i,
index) in list"
>
<div
:key=
"index"
class=
"item"
...
...
@@ -37,15 +40,13 @@
<div
class=
"sprite-icon icon-vip"
></div>
<div
class=
"info"
>
<div>
<div
class=
"title text-hide"
>
{{
i
.
packageName
}}
</div>
<div
class=
"decoration"
>
价值
{{
i
.
totalMerchantPrice
}}
元的
{{
i
.
list
.
length
||
0
}}
项权益
</div>
<div
class=
"title text-hide"
>
{{
i
.
packageName
}}
</div>
<div
class=
"decoration"
>
价值
{{
i
.
totalMerchantPrice
}}
元的
{{
i
.
list
.
length
||
0
}}
项权益
</div>
</div>
<div
class=
"btn text-center"
@
click=
"showVipDialog(i)"
>
查看套餐
</div>
>
查看套餐
</div>
</div>
<div
class=
"btn text-center y-center"
...
...
@@ -58,13 +59,13 @@
class=
"goods"
>
<div
class=
"icon"
>
<img
:src=
"i.goodsImage || ''"
>
<img
:src=
"i.goodsImage || ''"
/
>
</div>
<div
class=
"info"
>
<div
class=
"name text-two-line"
>
{{
i
.
goodsName
}}
</div>
<div
class=
"stock"
>
库存:
{{
i
.
goodsStock
}}
</div>
<div
class=
"name text-two-line"
>
{{
i
.
goodsName
}}
</div>
<div
class=
"stock"
>
库存:
{{
i
.
goodsStock
}}
</div>
<template
v-if=
"i.price"
>
<div
class=
"price"
>
¥
{{
i
.
price
.
toFixed
(
2
)
}}
</div>
<div
class=
"price"
>
¥
{{
i
.
price
.
toFixed
(
2
)
}}
</div>
</
template
>
<div
class=
"btn text-center"
>
分享给客户
</div>
</div>
...
...
@@ -92,14 +93,14 @@
</div>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
import
{
shareMixin
,
pageMixin
}
from
'@/mixins'
import
{
shopmallApi
,
equityApi
}
from
'@/api'
const
tabList
=
[
'我的店铺'
,
'会员套餐'
,
'门店商品'
]
export
default
{
name
:
'merchant'
,
mixins
:
[
shareMixin
,
pageMixin
],
data
()
{
data
()
{
return
{
showVip
:
false
,
equity_id
:
null
,
...
...
@@ -107,11 +108,11 @@ export default {
}
},
methods
:
{
getList_0
()
{
getList_0
()
{
this
.
flag
=
true
this
.
hideLoading
()
},
getList_1
(
pageNum
)
{
getList_1
(
pageNum
)
{
let
{
list
}
=
this
equityApi
.
getEquityList
({
pageNum
}).
then
(
res
=>
{
this
.
flag
=
true
...
...
@@ -120,7 +121,7 @@ export default {
this
.
hideLoading
()
})
},
getList_2
(
pageNum
)
{
getList_2
(
pageNum
)
{
let
{
list
}
=
this
shopmallApi
.
getGoodsList
({
currentPage
:
pageNum
}).
then
(
res
=>
{
this
.
flag
=
true
...
...
@@ -129,7 +130,7 @@ export default {
this
.
hideLoading
()
})
},
showVipDialog
(
i
)
{
showVipDialog
(
i
)
{
this
.
showVip
=
true
this
.
equity_id
=
i
.
id
}
...
...
@@ -137,7 +138,7 @@ export default {
}
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.list-box
{
height
:
calc
(
100vh
-
100px
);
.item
{
...
...
@@ -289,4 +290,4 @@ export default {
font-size
:
16px
;
}
}
</
style
>
\ No newline at end of file
</
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