no message

This commit is contained in:
2025-08-16 15:07:38 +08:00
parent f74d02bfa1
commit 29fdce5b5a
2 changed files with 48 additions and 28 deletions
+15 -6
View File
@@ -2,7 +2,7 @@
<view class="order_warp">
<view class="order_header">
<up-image src="/static/common/left.png" width="20" height="20" bgColor="#f1f6ff00" @click="jumpLeft"></up-image>
<up-search shape="round" bgColor="#FFFFFFFF" :showAction="false" @search="searchFun"></up-search>
<up-search shape="round" bgColor="#FFFFFFFF" :showAction="false" @blur="onBlur" @search="searchFun" v-model="search"></up-search>
</view>
<view class="order_type_title">
<view :class="form.type === item.id ? 'order_type_title_item order_type_title_item_sel' : 'order_type_title_item'"
@@ -12,7 +12,7 @@
</view>
<scroll-view scroll-y="true" @scrolltolower="loadMore" style="height: calc(100vh - 300rpx);">
<view v-if="orderList && orderList.length !== 0" class="order_list_warp">
<view class="order_item" v-for="item in orderList" :key="item.id">
<view class="order_item" v-for="(item,index) in orderList" :key="item.id">
<!-- 头部 -->
<view class="order_item_header">
<view class="order_item_header_left">
@@ -77,6 +77,9 @@
<view class="operate_comm operate_but_2" v-if="item.status === ORDER_TYPE.NOT_RECEIVE"
@click="confirmReceiptOk(item)">确认收货
</view>
<view class="operate_comm operate_but_2" v-if="!isCheckSigne && index == 0 && item.status === ORDER_TYPE.SUCCEED "
@click="downShow = true">去签署
</view>
<!-- <view class="operate_comm operate_but_3" v-if="item.status === ORDER_TYPE.UNSHIPPED">提醒发货</view> -->
<view class="operate_comm operate_but_1"
v-if="[ORDER_TYPE.NOT_RECEIVE, ORDER_TYPE.UNSHIPPED].includes(item.status)" @click="afterShow = true;">
@@ -244,7 +247,6 @@ export default {
// },
],
form: {
search: null,//搜索
page: 1,
pageSize: 10,
type: MINE_ORDER_TYPE.UNPAID,// 选中的类型
@@ -285,7 +287,8 @@ export default {
signUrl: null,
downShow: false,
selectItem: null,
userInfo: null
userInfo: null,
search:''
}
},
@@ -294,7 +297,7 @@ export default {
this.form.type = type && type < 5 ? parseInt(type, 10) : MINE_ORDER_TYPE.UNPAID;
this.loadData();
// 待收货判断是否签署
if (this.form.type === MINE_ORDER_TYPE.NOT_RECEIVE) {
if (this.form.type === MINE_ORDER_TYPE.NOT_RECEIVE || this.form.type === MINE_ORDER_TYPE.SUCCEED) {
this.checkSigned();
}
this.userinfo();
@@ -333,6 +336,9 @@ export default {
url: '/pages/mine/mine',
})
},
onBlur(){
this.loadData();
},
searchFun(val) {
console.log("searchFun", val);
},
@@ -342,7 +348,7 @@ export default {
this.form.type = item.id;
this.orderList = [];
// 待收货判断是否签署
if (this.form.type === MINE_ORDER_TYPE.NOT_RECEIVE) {
if (this.form.type === MINE_ORDER_TYPE.NOT_RECEIVE || this.form.type === MINE_ORDER_TYPE.SUCCEED) {
this.checkSigned();
}
if (item.id !== MINE_ORDER_TYPE.AFTER_SALE) {
@@ -397,6 +403,9 @@ export default {
page,
pageSize,
}
if(this.search){
params['search'] = this.search;
}
const data = await getOrderList(params);
if (data && data.bizcode === 100) {
return data.data