|
|
@@ -450,32 +450,6 @@ var _default = {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- // get_paymentMsg() {
|
|
|
- // // maspStatus(1:待补缴,2:已补缴)realPredictServiceCost平台;maspAmount第三方
|
|
|
- // this.$api.base("post", "/chargeApi/queryOrderList-arrearage", {}, {}).then(res => {
|
|
|
- // this.payment_msg = res.data
|
|
|
- // })
|
|
|
- // },
|
|
|
- //获取账户信息
|
|
|
- // getAccountInfo() {
|
|
|
- // if (this.personal == 1) {
|
|
|
- // //获取个人账户信息
|
|
|
- // this.$api.base("post", "/chargeApi/getUserAccount", {}, {}).then(res => {
|
|
|
- // this.accountInfo.balance = res.userAccount.balance;
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // //获取集团账户信息
|
|
|
- // this.$api.base("post", "/chargeApi/getEcUserAccount", {}, {
|
|
|
- // error: false
|
|
|
- // }).then(res => {
|
|
|
- // this.ecInfo = res.ecInfo;
|
|
|
- // this.accountInfo.balance = res.ecUserAccount.balance;
|
|
|
- // }).catch(err => {
|
|
|
- // this.accountInfo.balance = 0;
|
|
|
- // this.$app.popup.alert(err.msg, "温馨提示");
|
|
|
- // })
|
|
|
- // }
|
|
|
- // },
|
|
|
//切换账户
|
|
|
changeAccount: function changeAccount(type) {
|
|
|
if (this.personal == type) {
|
|
|
@@ -533,12 +507,6 @@ var _default = {
|
|
|
},
|
|
|
get_subMessage: function get_subMessage() {
|
|
|
var _this = this;
|
|
|
- // uni.requestSubscribeMessage({
|
|
|
- // tmplIds: ['03bv7QSrzH4DSjmNsI9P0lq0Vj3sBwpN5mgfZln7Rc4'],
|
|
|
- // success(res) {
|
|
|
- // _this.startChangeAndOrder();
|
|
|
- // }
|
|
|
- // })
|
|
|
_this.startChangeAndOrder();
|
|
|
},
|
|
|
// 主动发起购券操作
|
|
|
@@ -549,7 +517,7 @@ var _default = {
|
|
|
startChangeAndOrder: function startChangeAndOrder() {
|
|
|
var _this5 = this;
|
|
|
var obj = {
|
|
|
- orderType: this.deviceInfo.isEcUser ? 1 : 0,
|
|
|
+ orderType: this.deviceInfo.isFirmUser ? 1 : 0,
|
|
|
//订单类型 0-平台 1-企业
|
|
|
equipmentId: this.deviceInfo.equipmentId,
|
|
|
stationId: this.deviceInfo.stationId,
|
|
|
@@ -575,20 +543,6 @@ var _default = {
|
|
|
_this5.$app.popup.alert(res.msg, "温馨提示");
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
- // 查询订单
|
|
|
- checkedStartStatus: function checkedStartStatus() {
|
|
|
- var _this6 = this;
|
|
|
- this.$api.base("get", "/applet/v1/station/charging-cost", {}, {}).then(function (res) {
|
|
|
- if (res.data.orderStatus == 2) {
|
|
|
- _this6.$app.popup.confirm("您有一个进行中充电订单,不可再次启动。", null, {
|
|
|
- showCancel: false,
|
|
|
- confirmText: "查看订单"
|
|
|
- }).then(function (cres) {
|
|
|
- _this6.$app.url.goto('/subPackages/charging/charging/charging?chargeOrderNo=' + res.data.chargeOrderNo + "&deviceId=" + _this6.deviceInfo.id, false);
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
}
|
|
|
}
|
|
|
};
|