订单售后新增关键字搜索条件

master
gongfuxiang 2025-09-17 09:30:38 +08:00
parent 194f840e3e
commit 971b8c282b
2 changed files with 59 additions and 20 deletions

View File

@ -434,6 +434,13 @@
{
"path": "user-orderaftersale",
"style": {
// #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-KUAISHOU || APP
"navigationStyle": "custom",
// #endif
// #ifdef MP-ALIPAY
"transparentTitle": "auto",
"titlePenetrate": "YES",
// #endif
"enablePullDownRefresh": true,
"navigationBarTitleText": ""
}

View File

@ -1,5 +1,13 @@
<template>
<view :class="theme_view">
<view :class="theme_view">
<!-- 搜索 -->
<component-nav-back :propFixed="false" propClass="bg-white cr-black" propColor="#333" :style="'padding-top:' + status_bar_height + 'px;'">
<template slot="right" :class="is_mp_env ? 'top-search-width' : ''">
<view class="margin-left-main" :class="is_mp_env ? '' : 'flex-1 flex-width'">
<component-search @onsearch="search_button_event" :propDefaultValue="search_keywords" :propIsOnEvent="true" :propIsRequired="false" propIconColor="#ccc" propPlaceholderClass="cr-grey-c" propBgColor="#f6f6f6"></component-search>
</view>
</template>
</component-nav-back>
<!-- 导航 -->
<view class="nav-base bg-white">
<block v-for="(item, index) in nav_status_list" :key="index">
@ -7,9 +15,8 @@
<view v-else class="item fl tc" :data-index="index" @tap="nav_event">{{ item.name }}</view>
</block>
</view>
<!-- 订单列表 -->
<scroll-view :scroll-y="true" class="scroll-box scroll-box-ece-nav" @scrolltolower="scroll_lower" lower-threshold="60">
<scroll-view :scroll-y="true" class="scroll-box" :style="content_style" @scrolltolower="scroll_lower" lower-threshold="60">
<view v-if="data_list.length > 0" class="padding-horizontal-main padding-top-main">
<view v-for="(item, index) in data_list" :key="index" class="list-item padding-horizontal-main padding-top-main border-radius-main bg-white oh spacing-mb">
<view class="item-base oh br-b padding-bottom-main">
@ -66,9 +73,17 @@
</template>
<script>
const app = getApp();
import componentCommon from '@/components/common/common';
import componentCommon from '@/components/common/common';
import componentNavBack from '@/components/nav-back/nav-back';
import componentSearch from '@/components/search/search';
import componentNoData from "@/components/no-data/no-data";
import componentBottomLine from "@/components/bottom-line/bottom-line";
import componentBottomLine from "@/components/bottom-line/bottom-line";
//
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0, true));
// #ifdef MP-TOUTIAO || H5
bar_height = 0;
// #endif
export default {
data() {
return {
@ -77,13 +92,19 @@
data_list_loding_status: 1,
data_list_loding_msg: "",
data_bottom_line_status: false,
data_is_loading: 0,
data_is_loading: 0,
client_type: app.globalData.application_client_type(),
status_bar_height: bar_height,
is_mp_env: false,
// #ifdef MP-WEIXIN || MP-BAIDU || MP-ALIPAY || MP-QQ || MP-KUAISHOU
is_mp_env: true,
// #endif
//
data_list: [],
data_total: 0,
data_page_total: 0,
data_page: 1,
form_keyword_value: "",
search_keywords: '',
//
// 0, 1退, 2, 3, 4, 5
nav_status_list: [
@ -100,14 +121,19 @@
},
components: {
componentCommon,
componentCommon,
componentNavBack,
componentSearch,
componentNoData,
componentBottomLine,
},
onLoad(params) {
//
app.globalData.page_event_onload_handle(params);
app.globalData.page_event_onload_handle(params);
//
params = app.globalData.launch_params_handle(params);
//
var nav_status_index = 0;
@ -121,8 +147,9 @@
}
this.setData({
params: params,
form_keyword_value: params.keywords || "",
nav_status_index: nav_status_index,
nav_status_index: nav_status_index,
search_keywords: params.keywords || '',
content_style: 'height: calc(100vh - 80rpx - '+(this.status_bar_height+(this.client_type == 'h5' ? 55 : 50))+'px);',
});
},
@ -197,7 +224,7 @@
method: "POST",
data: {
page: this.data_page,
keywords: this.form_keyword_value || "",
keywords: this.search_keywords,
status: status,
is_more: 1,
},
@ -288,13 +315,6 @@
this.get_data_list(1);
},
//
input_event(e) {
this.setData({
form_keyword_value: e.detail.value,
});
},
//
cancel_event(e) {
uni.showModal({
@ -363,7 +383,19 @@
// url
url_event(e) {
app.globalData.url_event(e);
}
},
//
search_button_event(e) {
this.setData({
search_keywords: e,
data_page: 1,
data_list: [],
data_list_loding_status: 1,
data_bottom_line_status: false
});
this.get_data_list(1);
},
},
};
</script>