From bbfe4dd2532bbd41c7f9d26285c7f0aae84ccb54 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 17 七月 2024 14:59:06 +0800 Subject: [PATCH] # --- pages/phyz/order/purchaseOrder.vue | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/pages/phyz/order/purchaseOrder.vue b/pages/phyz/order/purchaseOrder.vue index 2aed4e8..91283d8 100644 --- a/pages/phyz/order/purchaseOrder.vue +++ b/pages/phyz/order/purchaseOrder.vue @@ -1,7 +1,7 @@ <template> <view class="container"> <view class="code"> - <uni-search-bar :focus="searchValueFocus" v-model="searchValue" @input="searchValueInput()" + <uni-search-bar :focus="searchValueFocus" v-model="searchValue" @input="searchValueInput2()" maxlength="500" ancel="cancel" @clear="clear" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�"> </uni-search-bar> <view class="code-title"> @@ -31,6 +31,11 @@ </view> </view> <view style="height: 100rpx;"></view> + + <view style="position: fixed;bottom: 40px;padding: 10rpx;border-radius: 50%; + left: 20px;background-color: #55aaff;box-shadow: 0px 0px 5px 5px #c8c8c8;"> + <uni-icons type="refreshempty" size="30" color="#FFF" @click="reload()"/> + </view> </view> </template> @@ -57,6 +62,28 @@ }, methods: { + reload() { + this.getOrderList() + }, + searchValueInput2() { + let _this = this + uni.request({ + url: `${_this.baseUrl}/order/head/page/auth`, + header: {'token': uni.getStorageSync('token')}, + data: { + curr: 1, + limit: 999999, + order_no: _this.searchValue + }, + method: 'GET', + success(res) { + res = res.data + if (res.code === 200) { + _this.dataList = res.data.records + } + } + }) + }, searchValueInput() { let count = 0 let sign = 0 @@ -104,11 +131,11 @@ getOrderList() { let _this = this uni.request({ - url: `${_this.baseUrl}/order/head/page/auth`, + url: `${_this.baseUrl}/order/detls/in/page/auth`, header: {'token': uni.getStorageSync('token')}, data: { curr: 1, - limit: 1000, + limit: 30, }, method: 'GET', success(res) { -- Gitblit v1.9.1