Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
Overview
Overview
Details
Activity
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
member
member
Commits
26c32923
Commit
26c32923
authored
Dec 21, 2021
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
cd917d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
86 deletions
+78
-86
wmDetail.vue
src/components/wechatmembers/wmDetail.vue
+78
-86
No files found.
src/components/wechatmembers/wmDetail.vue
View file @
26c32923
<
template
>
<div
class=
"mall-container"
>
<div
class=
""
>
<v-nav
:navpath=
"navpath"
></v-nav>
<div
class=
"record"
>
<header>
<el-select
v-model=
"search"
placeholder=
"全部类型"
clearable
@
change=
"searchChangd"
>
<el-option
label=
"购买"
:value=
"1"
></el-option>
<el-option
label=
"退款"
:value=
"2"
></el-option>
<el-option
label=
"退换货"
:value=
"4"
></el-option>
</el-select>
</header>
<div
class=
"table-content"
v-loading=
"load"
>
<el-table
:class=
"['only-head-table',!memberData.length?'no-data':'']"
>
<el-table-column
v-for=
"colunm in tableColumnList"
:key=
"colunm"
:label=
"colunm.label"
:min-width=
"colunm.width"
/>
</el-table>
<div
class=
"only-content-table-list"
style=
""
v-if=
"memberData.length"
>
<div
class=
"group-item"
v-for=
"group in memberData"
:key=
"group"
>
<div
class=
"group-header"
>
<div
class=
"left"
>
<p
class=
"order-number"
>
订单编号:
{{
group
.
orderNumber
}}
</p>
<p
class=
"order-time"
>
下单时间:
{{
group
.
createTime
}}
</p>
</div>
<v-nav
:navpath=
"navpath"
></v-nav>
<div
class=
"record"
>
<header>
<el-select
v-model=
"search"
placeholder=
"全部类型"
clearable
@
change=
"searchChangd"
>
<el-option
label=
"购买"
:value=
"1"
></el-option>
<el-option
label=
"退款"
:value=
"2"
></el-option>
<el-option
label=
"退换货"
:value=
"4"
></el-option>
</el-select>
</header>
<div
class=
"table-content"
v-loading=
"load"
>
<el-table
:class=
"['only-head-table',!memberData.length?'no-data':'']"
>
<el-table-column
v-for=
"colunm in tableColumnList"
:key=
"colunm"
:label=
"colunm.label"
:min-width=
"colunm.width"
/>
</el-table>
<div
class=
"only-content-table-list"
style=
""
v-if=
"memberData.length"
>
<div
class=
"group-item"
v-for=
"group in memberData"
:key=
"group"
>
<div
class=
"group-header"
>
<div
class=
"left"
>
<p
class=
"order-number"
>
订单编号:
{{
group
.
orderNumber
}}
</p>
<p
class=
"order-time"
>
下单时间:
{{
group
.
createTime
}}
</p>
</div>
<el-table
class=
"only-content-table"
:data=
"group.orderItemList"
show-overflow-tooltip
:span-method=
"(obj)=>spanMethod(
{...obj,length:group.orderItemList.length})">
<template
v-for=
"colunm in tableColumnList"
>
<el-table-column
:key=
"colunm"
:label=
"colunm.label"
:min-width=
"colunm.width"
show-overflow-tooltip
:prop=
"colunm.prop"
>
<template
slot-scope=
"
{row}">
<template
v-if=
"['orderStatus','deliveryInfo','payAmount'].includes(colunm.prop)"
>
<!-- 订单类型 -->
<template
v-if=
"colunm.prop==='orderStatus'"
>
<div
:style=
"
{paddingLeft:'14px',color:orderColor[group.orderStatus]}">
{{
group
.
orderStatus
|
orderTypeFilter
}}
</div>
</
template
>
<!-- 收货信息 -->
<
template
v-else-if=
"colunm.prop==='deliveryInfo'"
>
<div
class=
"delivery-info"
>
<p
class=
"delivery-info-line"
>
收件人:
{{
group
.
buyerName
}}
</p>
<p
class=
"delivery-info-line"
>
手机号:
{{
group
.
buyerPhone
}}
</p>
<p
class=
"delivery-info-line"
style=
"overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"
>
收货地址:
{{
group
.
addressInfo
}}
</p>
</div>
</
template
>
<!-- 小计 -->
<
template
v-else
>
<div
style=
"display:flex;align-items:center;padding-left:14px;"
>
¥
{{
group
[
colunm
.
prop
]
|
fomatFloat
}}
</div>
</
template
>
</div>
<el-table
class=
"only-content-table"
:data=
"group.orderItemList"
show-overflow-tooltip
:span-method=
"(obj)=>spanMethod(
{...obj,length:group.orderItemList.length})">
<template
v-for=
"colunm in tableColumnList"
>
<el-table-column
:key=
"colunm"
:label=
"colunm.label"
:min-width=
"colunm.width"
show-overflow-tooltip
:prop=
"colunm.prop"
>
<template
slot-scope=
"
{row}">
<template
v-if=
"['orderStatus','deliveryInfo','payAmount'].includes(colunm.prop)"
>
<!-- 订单类型 -->
<template
v-if=
"colunm.prop==='orderStatus'"
>
<div
:style=
"
{paddingLeft:'14px',color:orderColor[group.orderStatus]}">
{{
group
.
orderStatus
|
orderTypeFilter
}}
</div>
</
template
>
<!-- 收货信息 -->
<
template
v-else-if=
"colunm.prop==='deliveryInfo'"
>
<div
class=
"delivery-info"
>
<p
class=
"delivery-info-line"
>
收件人:
{{
group
.
buyerName
}}
</p>
<p
class=
"delivery-info-line"
>
手机号:
{{
group
.
buyerPhone
}}
</p>
<p
class=
"delivery-info-line"
style=
"overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"
>
收货地址:
{{
group
.
addressInfo
}}
</p>
</div>
</
template
>
<!-- 小计 -->
<
template
v-else
>
<!-- 商品信息 -->
<div
class=
"good-info"
v-if=
"colunm.prop==='mallProName'"
>
<el-image
fit=
"cover"
:src=
"row.mallProImageUrl ? row.mallProImageUrl : './static/img/default-goods.png'"
>
<div
slot=
"error"
class=
"image-slot"
>
<img
width=
"60"
:src=
"brokeImg"
alt=
""
>
</div>
</el-image>
<div
class=
"info-detail"
>
<div
class=
"good-name"
>
{{
row
.
mallProName
}}
</div>
<div
class=
"good-attr"
>
{{
row
.
mallProSkuAttr
}}
</div>
</div>
<div
style=
"display:flex;align-items:center;padding-left:14px;"
>
¥
{{
group
[
colunm
.
prop
]
|
fomatFloat
}}
</div>
<!-- 单价 -->
<div
class=
"price-info"
v-else-if=
"colunm.prop==='mallProPrice'"
>
¥
{{
row
.
mallProPrice
|
fomatFloat
}}
</div>
<!-- 数量 -->
<div
v-else
style=
"padding-left:14px;"
>
{{
row
.
mallProNumber
}}
</div>
</
template
>
</template>
</el-table-column>
</template>
</el-table>
</div>
</div>
<div
class=
"page mTop20"
v-if=
"page.totalCount > 0"
>
<dm-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"page.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"page.totalCount"
/>
<
template
v-else
>
<!-- 商品信息 -->
<div
class=
"good-info"
v-if=
"colunm.prop==='mallProName'"
>
<el-image
fit=
"cover"
:src=
"row.mallProImageUrl ? row.mallProImageUrl : './static/img/default-goods.png'"
>
<div
slot=
"error"
class=
"image-slot"
>
<img
width=
"60"
:src=
"brokeImg"
alt=
""
>
</div>
</el-image>
<div
class=
"info-detail"
>
<div
class=
"good-name"
>
{{
row
.
mallProName
}}
</div>
<div
class=
"good-attr"
>
{{
row
.
mallProSkuAttr
}}
</div>
</div>
</div>
<!-- 单价 -->
<div
class=
"price-info"
v-else-if=
"colunm.prop==='mallProPrice'"
>
¥
{{
row
.
mallProPrice
|
fomatFloat
}}
</div>
<!-- 数量 -->
<div
v-else
style=
"padding-left:14px;"
>
{{
row
.
mallProNumber
}}
</div>
</
template
>
</template>
</el-table-column>
</template>
</el-table>
</div>
</div>
<div
class=
"page mTop20"
v-if=
"page.totalCount > 0"
>
<dm-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"page.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"page.totalCount"
/>
</div>
</div>
</div>
<!-- <div class="foot-add">
<vue-gic-footer></vue-gic-footer>
</div> -->
</div>
</template>
...
...
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