From 3f2fffcb6e1b4966b36492118409f562d3c7ce28 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 02 十二月 2022 08:31:41 +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