From 1e7de5b9103999800062f1e6b18d94fd93f3ef06 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期五, 23 九月 2022 14:21:03 +0800 Subject: [PATCH] #可回退版本 --- pages/basics/stockQuery.vue | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index de94887..cb34322 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -5,7 +5,7 @@ <view class="searchBox"> <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> <view class="searchArea"> - <input v-model="locNo" type="text" placeholder=" 搴撲綅鍙�" @input="searchByLoc"></view> + <input v-model="locNo" type="text" placeholder=" 搴撲綅鍙�" @input="searchByLoc" placeholder-style="line-height: 85rpx;"></view> <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo"></uni-icons></view> </view> </view> @@ -14,7 +14,7 @@ <view class="searchBox"> <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> <view class="searchArea"> - <input v-model="matnr" type="text" placeholder=" 鍟嗗搧缂栫爜" @input="searchByMatnr"></view> + <input v-model="matnr" type="text" placeholder=" 鍟嗗搧缂栫爜" @input="searchByMatnr" placeholder-style="line-height: 85rpx;"></view> <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr"></uni-icons></view> </view> </view> @@ -73,6 +73,7 @@ export default { data () { return { + commonUrl:null, matList: [], locNo: null, matnr: null @@ -84,8 +85,15 @@ this.baseIP = UIP; const UPORT = uni.getStorageSync('UPORT'); this.basePORT = UPORT + const PROJ = uni.getStorageSync('UPROJ'); + this.baseUrl = PROJ + this.getUrl() }, methods: { + // 鑾峰彇url + getUrl() { + this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl + }, checkbox: function () { }, @@ -100,7 +108,7 @@ request() { let that = this uni.request({ - url:that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/locDetl/list/auth', + url:that.commonUrl + '/locDetl/list/auth', header:{'token':uni.getStorageSync('token')}, data: { curr: 1, -- Gitblit v1.9.1