|
@@ -23,6 +23,7 @@ Page({
|
|
|
|
|
|
onLoad: function () {
|
|
onLoad: function () {
|
|
this.req_tabs(); // old
|
|
this.req_tabs(); // old
|
|
|
|
+ // this.getDatas(1383)
|
|
},
|
|
},
|
|
getDatas(special_id) {
|
|
getDatas(special_id) {
|
|
let fromSource = recordSource(app, 'act=special&op=index&special_id=0&page=10&curpage=1&client_type=mini')
|
|
let fromSource = recordSource(app, 'act=special&op=index&special_id=0&page=10&curpage=1&client_type=mini')
|
|
@@ -39,6 +40,7 @@ Page({
|
|
from: fromSource
|
|
from: fromSource
|
|
}, function (res) {
|
|
}, function (res) {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
+ console.log('indexres:', res);
|
|
let prop_special = res.datas.special_list;
|
|
let prop_special = res.datas.special_list;
|
|
let sent_down_special = prop_special.splice(0, 8);
|
|
let sent_down_special = prop_special.splice(0, 8);
|
|
self.setData({
|
|
self.setData({
|
|
@@ -110,8 +112,12 @@ Page({
|
|
if (this.data.isSendProp) {
|
|
if (this.data.isSendProp) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
let surplus_special_num = this.data.surplus_special.length;
|
|
let surplus_special_num = this.data.surplus_special.length;
|
|
if (surplus_special_num > 0) {
|
|
if (surplus_special_num > 0) {
|
|
|
|
+ wx.showLoading({
|
|
|
|
+ title: '加载中'
|
|
|
|
+ });
|
|
this.setData({
|
|
this.setData({
|
|
isSendProp: true
|
|
isSendProp: true
|
|
});
|
|
});
|
|
@@ -125,6 +131,13 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
isSendProp: false
|
|
isSendProp: false
|
|
});
|
|
});
|
|
|
|
+ setTimeout(function () {
|
|
|
|
+ wx.hideLoading()
|
|
|
|
+ }, 1500)
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|