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/startPakin.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/pages/basics/startPakin.vue b/pages/basics/startPakin.vue
index 0850ba6..a5993be 100644
--- a/pages/basics/startPakin.vue
+++ b/pages/basics/startPakin.vue
@@ -153,16 +153,29 @@
return;
}
uni.request({
- url: that.commonUrl + "open/asrs/pakin/start/default/v1",
+ url: that.commonUrl + "/open/asrs/pakin/start/default/v1",
header: {'token':uni.getStorageSync('token'),
- },
+ 'appkey':'ea1f0459efc02a79f046f982767939ae'},
method:'POST',
data: {startInItems:[{
聽聽聽聽聽聽聽聽聽聽聽聽inSite:聽that.siteId,
聽聽聽聽聽聽聽聽聽聽聽聽barcode:聽that.barcode
聽聽聽聽聽聽聽聽}]},
success(result) {
- console.log(result);
+ var res = result.data
+ if(res.code == 200) {
+ uni.showToast({title: "鍚姩鎴愬姛锛�", icon: "none", position: 'top'})
+ that.resst()
+ } else if (res.code == 403) {
+ uni.showToast({title: res.msg, icon: "none", position: 'top'})
+ setTimeout(() => {
+ uni.reLaunch({
+ url: '../login/login'
+ });
+ }, 1000);
+ } else {
+ uni.showToast({title: res.msg, icon: "none",position: 'top'})
+ }
}
})
}
--
Gitblit v1.9.1