|
@@ -286,16 +286,24 @@ Page({
|
|
onShow: function(e) {
|
|
onShow: function(e) {
|
|
clearInterval(chargingStatus);
|
|
clearInterval(chargingStatus);
|
|
this.showChargingPng();
|
|
this.showChargingPng();
|
|
- let {
|
|
|
|
- orderid,
|
|
|
|
- userId,
|
|
|
|
- chargPileId
|
|
|
|
- } = this.data;
|
|
|
|
- if (!orderid || orderid == "null") {
|
|
|
|
- orderid = undefined;
|
|
|
|
- }
|
|
|
|
|
|
+ // var {
|
|
|
|
+ // orderid,
|
|
|
|
+ // userId,
|
|
|
|
+ // chargPileId
|
|
|
|
+ // } = this.data;
|
|
|
|
+ // if (!orderid || orderid == "null") {
|
|
|
|
+ // orderid = '';
|
|
|
|
+ // }
|
|
let that = this;
|
|
let that = this;
|
|
chargingStatus = setInterval(function() {
|
|
chargingStatus = setInterval(function() {
|
|
|
|
+ var {
|
|
|
|
+ orderid,
|
|
|
|
+ userId,
|
|
|
|
+ chargPileId
|
|
|
|
+ } = that.data;
|
|
|
|
+ if (!orderid || orderid == "null") {
|
|
|
|
+ orderid = '';
|
|
|
|
+ }
|
|
wx.request({
|
|
wx.request({
|
|
url: getApp().globalData.postHeadAgreement + '/restapi/pileLog/wechatchargstatus',
|
|
url: getApp().globalData.postHeadAgreement + '/restapi/pileLog/wechatchargstatus',
|
|
data: {
|
|
data: {
|