1 回复
zhufang
zhufang1 楼5 年前

body???

get请求,参数请放在 data中。。。

   wx.request({
     url"某接口地址",
     method"get",
     data: {
       "msg":{
         "idCard"this.data.idCard,
       }
     },
     header: {
       "Content-Type":"application/json;charset=UTF-8"
     },
     successfunction (res) {
       console.log(res.data);
       },
   })