- wx.request({
- url: \'http://xx.xxxxx.com/xxx.php\',//上线的话必须是https,没有appId的本地请求貌似不受影响
- data: {},
- method: \'GET\', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
- // header: {}, // 设置请求的 header
- success: function(res){
- console.log(res.data.result)
- that.setData({
- Industry:res.data.result
- })
- },
- fail: function() {
- // fail
- },
- complete: function() {
- // complete
- }
- })