|
@@ -1,60 +1,26 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-content">
|
|
<div class="app-content">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
- <div
|
|
|
|
|
- class="list-wrap"
|
|
|
|
|
- v-for="(item, index) in list.data"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- @click="pageTo({
|
|
|
|
|
- url: '/pages/order/detail',
|
|
|
|
|
- query: {
|
|
|
|
|
- id: item.id
|
|
|
|
|
- }
|
|
|
|
|
- })"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <div class="list-wrap" v-for="(item, index) in list.data" :key="index" @click="pageTo({ url: '/pages/order/detail', query: { id: item.id } })" >
|
|
|
<div class="list-top flex-center-between">
|
|
<div class="list-top flex-center-between">
|
|
|
<div class="app-color-3">编号:{{ item.sendNum }}</div>
|
|
<div class="app-color-3">编号:{{ item.sendNum }}</div>
|
|
|
<div class="app-price">{{ item.status | constantfilter('ORDER_STATUS') }}</div>
|
|
<div class="app-price">{{ item.status | constantfilter('ORDER_STATUS') }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="list-blo">
|
|
<div class="list-blo">
|
|
|
<block v-if="!$util.isEmpty(item.goodsInfoList)">
|
|
<block v-if="!$util.isEmpty(item.goodsInfoList)">
|
|
|
- <list-module
|
|
|
|
|
- v-for="(items, subIndex) in item.goodsInfoList"
|
|
|
|
|
- :key="subIndex"
|
|
|
|
|
- :info="items"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <list-module v-for="(items, subIndex) in item.goodsInfoList" :key="subIndex" :info="items" />
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="list-bottom flex-center-between">
|
|
<div class="list-bottom flex-center-between">
|
|
|
<div>
|
|
<div>
|
|
|
- <span>应付金额:</span>
|
|
|
|
|
- <span class="app-size-30 app-bold">¥{{ item.actPrice }}</span>
|
|
|
|
|
|
|
+ <span>金额:</span>
|
|
|
|
|
+ <span class="app-size-30 app-bold">¥{{ item.orderPrice ? parseFloat(item.orderPrice) : 0 }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<block v-if="item.status == 0">
|
|
<block v-if="item.status == 0">
|
|
|
- <button
|
|
|
|
|
- class="button-com red"
|
|
|
|
|
- @click.stop="pageTo({
|
|
|
|
|
- url: '/pages/callback/index',
|
|
|
|
|
- query: {
|
|
|
|
|
- pageStatus: 1,
|
|
|
|
|
- orderSn: item.orderSn,
|
|
|
|
|
- totalPrice: item.actPrice,
|
|
|
|
|
- couponId: item.couponId
|
|
|
|
|
- }
|
|
|
|
|
- })"
|
|
|
|
|
- >立即付款</button>
|
|
|
|
|
|
|
+ <button class="button-com red" @click.stop="pageTo({ url: '/pages/callback/index', query: { pageStatus: 1, orderSn: item.orderSn, totalPrice: item.orderPrice, couponId: item.couponId } })" >立即付款</button>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="item.status == 5">
|
|
<block v-if="item.status == 5">
|
|
|
- <button
|
|
|
|
|
- v-if="data.grade == 0"
|
|
|
|
|
- class="button-com red defalut"
|
|
|
|
|
- @click.stop="pageTo({
|
|
|
|
|
- url: '/pages/order/comment',
|
|
|
|
|
- query: {
|
|
|
|
|
- id: item.id
|
|
|
|
|
- }
|
|
|
|
|
- })"
|
|
|
|
|
- >评价</button>
|
|
|
|
|
|
|
+ <button v-if="data.grade == 0" class="button-com red defalut" @click.stop="pageTo({ url: '/pages/order/comment', query: { id: item.id } })" >评价</button>
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -64,7 +30,6 @@
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import ListModule from "@/components/module/app-order-list";
|
|
import ListModule from "@/components/module/app-order-list";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
@@ -109,7 +74,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
-
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
.app-content {
|
|
.app-content {
|
|
|
padding-top: 20upx;
|
|
padding-top: 20upx;
|
|
@@ -129,4 +93,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|