Files
2024-08-22 12:47:21 +08:00

1 line
554 B
JavaScript

var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:""},onLoad:function(){a.that=this,a.style()},fromSubmit:function(e){console.log("fromSubmit");var o=e.detail.value;console.log(e),a.that=this,a.globalData=t.globalData,wx.showLoading({title:"正在加载中.."}),a.Post("/api/companygw.index/consult",{openid:a.getOpenId(),product_name:o.product_name,name:o.name,tel:o.tel,remarks:o.remarks},(function(t){console.log(t),wx.hideLoading(),wx.showToast({title:"提交成功"});var a=getCurrentPages().length;wx.navigateBack({delta:a-1})}))}});