1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // pages/signIn/hand/hand.js
- const app=getApp()
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- keyword:""
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
-
- },
- bindinput(e){
- console.log(e)
- this.setData({
- keyword:e.detail.value
- })
- },
- sign: function () {
- var that=this;
- app.api.useApi(app.globalData.baseAppUrl + "api/admin/sorting/sign", {
- seal_no:this.data.keyword
- }, "post").then(function (res) {
- console.log(res);
- if (res.code != 200) {
- wx.showLoading({
- title:res.message.msg,
- })
- setTimeout(function () {
- wx.hideLoading();
- }, 1000);
-
- } else {
- wx.hideLoading();
- var data=res.message.data
- wx.showLoading({
- title: res.message.msg,
- })
- setTimeout(function () {
- wx.hideLoading();
- let pages = getCurrentPages();
-
-
- wx.navigateBack({
- delta: 1 //想要返回的层级
- })
- }, 1000);
-
- }
- }).catch(function (err) {
-
- console.log(222);
- })
- },
- })
|