|
|
@@ -321,17 +321,17 @@ App({ |
|
|
|
},this) |
|
|
|
}, |
|
|
|
getBuyState: function () {//查询是否已下订 |
|
|
|
this.wxRequest(this.globalData.urlRoot + "wxPay/getBuyState", {source:2}, res => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.data) { |
|
|
|
res.data.cdate = res.data.cdate ? res.data.cdate : ""; |
|
|
|
this.globalData.getBuyState = res.data; |
|
|
|
if (this.globalData.buyStateSuccessFuc){ |
|
|
|
this.globalData.buyStateSuccessFuc(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, this); |
|
|
|
// this.wxRequest(this.globalData.urlRoot + "wxPay/getBuyState", {source:2}, res => { |
|
|
|
// if (res.code == 200) { |
|
|
|
// if (res.data) { |
|
|
|
// res.data.cdate = res.data.cdate ? res.data.cdate : ""; |
|
|
|
// this.globalData.getBuyState = res.data; |
|
|
|
// if (this.globalData.buyStateSuccessFuc){ |
|
|
|
// this.globalData.buyStateSuccessFuc(); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }, this); |
|
|
|
}, |
|
|
|
addAppEnter: function () {//小程序整体pv统计 |
|
|
|
this.wxRequest(this.globalData.urlRoot + "statistics/addAppEnter", { scene:this.globalData.sceneSource}, res => { |