Feat(订单列表):新增搜索功能

This commit is contained in:
linxi
2024-09-10 15:10:41 +08:00
parent 4434360f8a
commit 11878e7e8b
+8 -5
View File
@@ -1,8 +1,8 @@
<template>
<view class="my-order v12-mx-2" ref="container">
<!-- <view class="m-search-wrap v12-mb-2 v12-mt-3">
<u-search placeholder="请输入商品名/订单号" shape="round" :inputStyle="inputStyle" :showAction="false" bgColor="#FFF"></u-search>
</view> -->
<view class="m-search-wrap v12-mb-2 v12-mt-3">
<u-search placeholder="请输入商品名/订单号" shape="round" :inputStyle="inputStyle" :showAction="false" bgColor="#FFF" v-model="keyword" @search="changeType"></u-search>
</view>
<view class="m-tab-warp">
<u-tabs
lineHeight="0"
@@ -226,7 +226,8 @@ export default {
showExtend: false,
delayId: null,
pageKeyId: Object.freeze('userOrderIndex')
pageKeyId: Object.freeze('userOrderIndex'),
keyword: ''
};
},
components: {
@@ -391,11 +392,13 @@ export default {
const {
page,
limit,
keyword
} = this;
getOrderList({
page,
limit,
type
type,
keyword
}).then(res => {
this.orderList = this.orderList.concat(res.data);
if (this.orderList.length > 0) {