|
@@ -4,15 +4,17 @@
|
|
|
<van-dropdown-menu
|
|
|
:active-color="'#4D69A4'">
|
|
|
<van-dropdown-item
|
|
|
- :title="'全部'"
|
|
|
- v-model="value1"
|
|
|
- :options="option1"/>
|
|
|
+ :title="'类型'"
|
|
|
+ v-model="orderPlatformSonType"
|
|
|
+ :options="ordertype"/>
|
|
|
<van-dropdown-item
|
|
|
- :title="'收入'"
|
|
|
- v-model="value2"
|
|
|
- :options="option2"/>
|
|
|
+ :title="'状态'"
|
|
|
+ v-model="orderStatus"
|
|
|
+ :options="arrOrderStatus"/>
|
|
|
</van-dropdown-menu>
|
|
|
- <Main/>
|
|
|
+ <Main
|
|
|
+ :orderPlatformSonType="orderPlatformSonType"
|
|
|
+ :orderStatus="orderStatus"/>
|
|
|
<van-popup
|
|
|
class="fbt-van-popup"
|
|
|
v-model="showDetail"
|
|
@@ -62,21 +64,27 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- value1: 0,
|
|
|
- value2: 0,
|
|
|
- option1: [
|
|
|
- { text: '全部商品', value: 0 },
|
|
|
- { text: '新款商品', value: 1 },
|
|
|
- { text: '活动商品', value: 2 }
|
|
|
- ],
|
|
|
- option2: [
|
|
|
- { text: '默认排序', value: 0 },
|
|
|
- { text: '好评排序', value: 1 },
|
|
|
- { text: '销量排序', value: 2 }
|
|
|
+ orderPlatformSonType: 0,
|
|
|
+ orderStatus: 0,
|
|
|
+ arrOrderStatus: [
|
|
|
+ { text: '全部', value: 0 },
|
|
|
+ { text: '未结算', value: 1 },
|
|
|
+ { text: '已结算', value: 2 }
|
|
|
],
|
|
|
showDetail: false
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ordertype () {
|
|
|
+ const result = this.$store.getters['common/orderType'].map(item => ({
|
|
|
+ ...item,
|
|
|
+ text: item.type_name,
|
|
|
+ value: item.order_platform_son_type
|
|
|
+ }))
|
|
|
+
|
|
|
+ return [{ text: '全部', value: 0 }, ...result]
|
|
|
+ }
|
|
|
+ },
|
|
|
async mounted () {
|
|
|
await this.$nextTick()
|
|
|
}
|