|
@@ -32,7 +32,7 @@ Page({
|
|
var netwrok_id = options.network_id;
|
|
var netwrok_id = options.network_id;
|
|
var order_num = options.order_num;
|
|
var order_num = options.order_num;
|
|
var is_deposit = options.is_deposit;
|
|
var is_deposit = options.is_deposit;
|
|
- var device_id = options.device_id;
|
|
|
|
|
|
+ var device_id = options.device_id?options.device_id:0;
|
|
|
|
|
|
console.log(options);
|
|
console.log(options);
|
|
this.setData({
|
|
this.setData({
|
|
@@ -129,7 +129,7 @@ Page({
|
|
|
|
|
|
app.api.useApi(app.globalData.baseAppUrl + "api/order/index", data, "get").then(function (res) {
|
|
app.api.useApi(app.globalData.baseAppUrl + "api/order/index", data, "get").then(function (res) {
|
|
if (res.code != 200) {
|
|
if (res.code != 200) {
|
|
- console.log(res.message.msg)
|
|
|
|
|
|
+ console.log(res)
|
|
wx.showLoading({
|
|
wx.showLoading({
|
|
title: '订单加载失败',
|
|
title: '订单加载失败',
|
|
})
|
|
})
|
|
@@ -144,7 +144,7 @@ Page({
|
|
wx.hideLoading();
|
|
wx.hideLoading();
|
|
|
|
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
- console.log(222);
|
|
|
|
|
|
+ console.log(err);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
opentask(no = "", type = "") {
|
|
opentask(no = "", type = "") {
|