Feat(订单列表):新增搜索功能
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="my-order v12-mx-2" ref="container">
|
<view class="my-order v12-mx-2" ref="container">
|
||||||
<!-- <view class="m-search-wrap v12-mb-2 v12-mt-3">
|
<view class="m-search-wrap v12-mb-2 v12-mt-3">
|
||||||
<u-search placeholder="请输入商品名/订单号" shape="round" :inputStyle="inputStyle" :showAction="false" bgColor="#FFF"></u-search>
|
<u-search placeholder="请输入商品名/订单号" shape="round" :inputStyle="inputStyle" :showAction="false" bgColor="#FFF" v-model="keyword" @search="changeType"></u-search>
|
||||||
</view> -->
|
</view>
|
||||||
<view class="m-tab-warp">
|
<view class="m-tab-warp">
|
||||||
<u-tabs
|
<u-tabs
|
||||||
lineHeight="0"
|
lineHeight="0"
|
||||||
@@ -226,7 +226,8 @@ export default {
|
|||||||
|
|
||||||
showExtend: false,
|
showExtend: false,
|
||||||
delayId: null,
|
delayId: null,
|
||||||
pageKeyId: Object.freeze('userOrderIndex')
|
pageKeyId: Object.freeze('userOrderIndex'),
|
||||||
|
keyword: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -391,11 +392,13 @@ export default {
|
|||||||
const {
|
const {
|
||||||
page,
|
page,
|
||||||
limit,
|
limit,
|
||||||
|
keyword
|
||||||
} = this;
|
} = this;
|
||||||
getOrderList({
|
getOrderList({
|
||||||
page,
|
page,
|
||||||
limit,
|
limit,
|
||||||
type
|
type,
|
||||||
|
keyword
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.orderList = this.orderList.concat(res.data);
|
this.orderList = this.orderList.concat(res.data);
|
||||||
if (this.orderList.length > 0) {
|
if (this.orderList.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user