12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- let app = getApp();
- let host = app.globalData.servsers;
- Page({
-
- data: {
- state:null,
- },
-
- onLoad: function (options) {
- this.setData({
- state:options.state
- })
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- },
- getOrderList(that,state,page){
- wx.showLoading({
- title: '加载中...',
- })
- wx.request({
- url: host + '/queryOrderCustomerByUserId',
- method:'get',
- header: {
- 'content-type': 'application/x-www-form-urlencoded'
- },
- data:{
- userId:app.globalData.user_id,
- orderStatus: state,
- limit:10,
- offset:page,
- },
- success(res){
- console.log(res,"orderList")
- },
- complete(){
- wx.hideLoading()
- }
- })
- }
- })
|