diff --git a/manifest.json b/manifest.json index 0c2d3bd..948e2f0 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "干巷仓库APP", "appid" : "__UNI__A67E78B", "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", + "versionName" : "2.1.3", + "versionCode" : 213, "transformPx" : false, "app-plus" : { "usingComponents" : true, diff --git a/pages/consolidation/consolidation.vue b/pages/consolidation/consolidation.vue index 5d2b671..7976e9c 100644 --- a/pages/consolidation/consolidation.vue +++ b/pages/consolidation/consolidation.vue @@ -28,8 +28,8 @@ - 清空 - 拼箱 + 清空 + 拼箱 @@ -216,6 +216,10 @@ export default { } }, modalConfirm() { + this.loading = true; + setTimeout(()=>{ + this.loading = false; + },30000) let data = { packageList: this.newMaterialList, createBy: 'admin', @@ -230,6 +234,7 @@ export default { confirmText: '确认' }); this.modalShow = false; + this.loading = false; this.clear(); } else { uni.showToast({ @@ -237,6 +242,7 @@ export default { title: '拼箱失败!' }); this.modalShow = false; + this.loading = false; } }); }, diff --git a/pages/unpacking/unpacking.vue b/pages/unpacking/unpacking.vue index fe53f87..af9089f 100644 --- a/pages/unpacking/unpacking.vue +++ b/pages/unpacking/unpacking.vue @@ -31,8 +31,8 @@ - 清空 - 拆箱 + 清空 + 拆箱 @@ -191,6 +191,10 @@ } }, modalConfirm() { + this.loading = true; + setTimeout(()=>{ + this.loading = false; + },30000) let data = { package: this.newMaterialList[0], createBy: "admin", @@ -205,12 +209,15 @@ confirmText: '确认' }); this.modalShow = false; + this.loading = false; this.clear(); } else { uni.showToast({ icon: 'error', title: '拆箱失败!' }); + this.modalShow = false; + this.loading = false; } }); }, diff --git a/pages/user/user.vue b/pages/user/user.vue index 9817c98..c233e8c 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -55,15 +55,14 @@ ]) }, onLoad() { - - console.log(this.name, this.avatar); + this.version = uni.$u.sys().appWgtVersion; }, onShow() { this.GetInfo(); }, data() { return { - version:'V2.1.0', + version:'V2.1.2', outLoginShow: false, gridList: [{ name: 'photo', diff --git a/utils/common.js b/utils/common.js index 00d4137..37ea099 100644 --- a/utils/common.js +++ b/utils/common.js @@ -5,7 +5,8 @@ export function toast(content) { uni.showToast({ icon: 'none', - title: content + title: content, + duration:5000 }) } diff --git a/utils/request.js b/utils/request.js index b9f827e..345278c 100644 --- a/utils/request.js +++ b/utils/request.js @@ -53,8 +53,8 @@ const request = config => { // console.log('token:','Bearer ' + getToAccess-Control-Allow-Originken()); // console.log('request:',storageBaseUrl + config.url,response); if (error) { - console.log(error) - toast('后端接口连接异常') + showConfirm(error) + // toast('后端接口连接异常') reject('后端接口连接异常') return } @@ -72,10 +72,12 @@ const request = config => { }) reject('无效的会话,或者会话已过期,请重新登录。') } else if (code === 500) { - toast(msg) + // toast(msg) + showConfirm(message) reject('500') } else if (code !== 200) { - toast(msg) + // toast(msg) + showConfirm(message) reject(code) } resolve(res.data) @@ -91,7 +93,8 @@ const request = config => { } else if (message.includes('Request failed with status code')) { message = '系统接口' + message.substr(message.length - 3) + '异常' } - toast(message) + // toast(message) + showConfirm(message) reject(error) }) })