init
This commit is contained in:
1
pages/contact/index.js
Normal file
1
pages/contact/index.js
Normal file
@@ -0,0 +1 @@
|
||||
var a=require("../../utils/request");Page({data:{addr:"",content:"",gs:"",name:"",phone:""},onShow:function(){},onLoad:function(t){var n=this,e=t.openid;a.request({url:"/index.php?s=/api/api/phone",method:"GET",showLoading:!1,data:{openid:e}}).then((function(a){console.log(a),n.setData({addr:a.data.data.addr,content:a.data.data.content,gs:a.data.data.gs,name:a.data.data.name,phone:a.data.data.phone})})).catch((function(a){console.log("ERROR")}))}});
|
||||
Reference in New Issue
Block a user