|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view class="order-list"> |
|
|
|
<!-- <uni-segmented-control :current="controlCurrent" :values="controlItems" @clickItem="onClickItem" styleType="text" activeColor="#007AFF"></uni-segmented-control> --> |
|
|
|
<uni-segmented-control :current="controlCurrent" :values="controlItems" @clickItem="onClickItem" styleType="text" activeColor="#007AFF"></uni-segmented-control> |
|
|
|
<scroll-list style="touch-action: none" ref="orderRef" :option="orderOption" @load="orderUp" @refresh="orderDown"> |
|
|
|
<view v-for="(items,index) in orderData" :key="index"> |
|
|
|
<view class="list-border list-title-line"> |
|
|
|
@ -53,6 +53,8 @@ export default { |
|
|
|
pageSize: 10 |
|
|
|
}, |
|
|
|
orderData: [], |
|
|
|
controlCurrent: 0, |
|
|
|
controlItems: ['全部', '待确认', '待发货', '已完成'], |
|
|
|
orderOption: { |
|
|
|
size: 10, |
|
|
|
auto: true, |
|
|
|
@ -128,6 +130,10 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
this.$refs.orderRef.refreshFail() |
|
|
|
}) |
|
|
|
}, |
|
|
|
//分段器点击事件 |
|
|
|
onClickItem(value) { |
|
|
|
console.log(value) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|