|
|
|
@ -16,7 +16,7 @@ |
|
|
|
|
<view class="searchContent"> |
|
|
|
|
<u-input v-model="searchText" style="width:400upx" confirm-type="search" @confirm="getOrderList(1)" |
|
|
|
|
placeholder="收件人名字/订单号/发货公司" /> |
|
|
|
|
<u-icon v-if="classifyShow==1" name="search" class="search" @click="getList(1)"></u-icon> |
|
|
|
|
<u-icon v-if="classifyShow==1" name="search" class="search" @click="getList(1)"></u-icon> |
|
|
|
|
<u-icon v-if="classifyShow==2" name="search" class="search" @click="getOrderList(1)"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -105,6 +105,9 @@ |
|
|
|
|
<view v-if="goodsList.length==0" style="margin-top: 250rpx;"> |
|
|
|
|
<u-empty text="暂无记录~" mode="list"></u-empty> |
|
|
|
|
</view> |
|
|
|
|
<view class="goods-fd" v-if="classifyShow==2"> |
|
|
|
|
<view class="btn" @click="manualEntry">手动录入</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
@ -128,24 +131,20 @@ |
|
|
|
|
}], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(o) { |
|
|
|
|
this.getList(1) |
|
|
|
|
}, |
|
|
|
|
onLoad(o) {}, |
|
|
|
|
//页面卸载 |
|
|
|
|
onUnload() { |
|
|
|
|
//关闭监听选择收货地址事件 |
|
|
|
|
uni.$off('refreshData') |
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
this.classifyShow =1 |
|
|
|
|
uni.$on('refreshData', () => { |
|
|
|
|
// 调用列表接口 |
|
|
|
|
if (this.classifyShow == 2) { |
|
|
|
|
this.getOrderList(1); |
|
|
|
|
} else { |
|
|
|
|
this.getList(1) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.classifyShow = 1 |
|
|
|
|
// 调用列表接口 |
|
|
|
|
if (this.classifyShow == 2) { |
|
|
|
|
this.getOrderList(1); |
|
|
|
|
} else { |
|
|
|
|
this.getList(1) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
this.pageNum = 1; |
|
|
|
|