Skip to content

Commit

Permalink
修改网络链接错误时的业务逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
“yafengTian authored and “yafengTian committed Apr 15, 2019
1 parent 8fb131c commit a124616
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Ticket/pages/home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,24 @@ Page( {
var that = this;
wx.request({
url: 'http://localhost:8080/BiShe/image',
data: '',
method: 'GET',
dataType: 'json',
responseType: 'text',
success: function (res) {
console.log(res.data);
that.setData({
// imgUrls: res.data.ticketImages
goodsList:res.data
})
console.log(that.data.goodsList);
console.log(res.data);
that.setData({
// imgUrls: res.data.ticketImages
goodsList: res.data,
})
console.log(that.data.goodsList);
},
fail:function(res){
wx.showToast({
title: 'internet error',
icon: 'loading',
duration: 2000,
})
}
})

},
Expand Down

0 comments on commit a124616

Please sign in to comment.