post

wx.request({
    url: 'https://m.***.com/index.php/Home/Xiaoxxf/make_order',
    header: {
        "Content-Type": "application/x-www-form-urlencoded"
    },
    method: "POST",
    data: { is_home: that.data.is_home, openid: wx.getStorageSync('openid'), data_name: e.detail.value.data_name },
    success: function (res) {
    }
})

get

wx.request({
    url: 'https://m.***.com/index.php/Home/Xiaoxxf/getStory',
    data: {
        page: page
    },
    method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT  
    // header: {}, // 设置请求的 header  
    header: {
        'Content-Type': 'application/json'
    },
    success: function (res) {
        console.log(res.data)
        that.setData({
        })
        page++;
    }
})