From 009851b4daec9895cfe6bcb895dce5fed2cf59b0 Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期五, 04 三月 2022 08:09:04 +0800 Subject: [PATCH] # 增加搜素功能 --- pages/basics/stockQuery.vue | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index cb127b7..f2f821d 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -25,9 +25,15 @@ </uni-table> </view> - <view class="reset flex solid-bottom padding justify-around" > - <button class="cu-btn bg-grey lg" @click="reset">閲� 缃�</button> + <view style="height: 200rpx;"> + <!-- 绌虹櫧灞� --> </view> + <view class="cu-bar foot justify-center input"> + <view class="reset flex solid-bottom padding justify-center" > + <button class="cu-btn bg-grey lg margin-xs" style="width: 400rpx;" @click="reset">閲� 缃�</button> + </view> + </view> + </view> </template> @@ -38,11 +44,14 @@ locNo:'', matNo:'', locDetlData:[], + basePORT:'', } }, mounted(){ const UIP = uni.getStorageSync('UIP'); - this.baseIP = UIP + this.baseIP = UIP; + const UPORT = uni.getStorageSync('UPORT'); + this.basePORT = UPORT; }, methods: { reset:function() { @@ -71,7 +80,7 @@ find(){ let that = this uni.request({ - url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/locDetl/stockQuery", + url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/locDetl/stockQuery", header:{ 'content-type':'application/x-www-form-urlencoded', 'token':uni.getStorageSync('token') -- Gitblit v1.9.1