游湖a阿底阿妈

This commit is contained in:
java110 2021-04-15 14:37:55 +08:00
parent ad77c13d88
commit f4a10d5b46
2 changed files with 22 additions and 11 deletions

8
app.js
View File

@ -36,11 +36,11 @@ let opts = {
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts)); //app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts)); app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts)); app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
app.use('/callComponent',proxy('http://127.0.0.1:8012',opts)); //app.use('/callComponent',proxy('http://127.0.0.1:8012',opts));
app.use('/app',proxy('http://127.0.0.1:8012',opts)); //app.use('/app',proxy('http://127.0.0.1:8012',opts));
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts)); //app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
//app.use('/app',proxy('http://192.168.1.16:8012',opts)); //app.use('/app',proxy('http://192.168.1.16:8012',opts));

View File

@ -220,9 +220,9 @@
vc.component.payFeeOrderInfo.totalFeePrice = 0.00; vc.component.payFeeOrderInfo.totalFeePrice = 0.00;
vc.component.payFeeOrderInfo.receivedAmount = ''; vc.component.payFeeOrderInfo.receivedAmount = '';
return; return;
}else if('-101' == _cycles){ } else if ('-101' == _cycles) {
$that.payFeeOrderInfo.cycles = "101"; $that.payFeeOrderInfo.cycles = "101";
return ; return;
} }
let _newCycles = _cycles; let _newCycles = _cycles;
if (_cycles == '') { if (_cycles == '') {
@ -271,9 +271,9 @@
return $that._mathToFixed1(num); return $that._mathToFixed1(num);
} else if ($that.payFeeOrderInfo.toFixedSign == 3) { } else if ($that.payFeeOrderInfo.toFixedSign == 3) {
return $that._mathCeil(num); return $that._mathCeil(num);
}else if ($that.payFeeOrderInfo.toFixedSign == 4) { } else if ($that.payFeeOrderInfo.toFixedSign == 4) {
return $that._mathFloor(num); return $that._mathFloor(num);
}else if ($that.payFeeOrderInfo.toFixedSign == 5) { } else if ($that.payFeeOrderInfo.toFixedSign == 5) {
return $that._mathRound(num); return $that._mathRound(num);
} else { } else {
return $that._mathToFixed2(num); return $that._mathToFixed2(num);
@ -351,6 +351,17 @@
$that.payFeeOrderInfo.toFixedSign = toFixedSign; $that.payFeeOrderInfo.toFixedSign = toFixedSign;
} }
vc.emit('payFeeOrder', 'initData', listRoomData.data); vc.emit('payFeeOrder', 'initData', listRoomData.data);
//如果 是一次性费用,计算优惠
if ($that.payFeeOrderInfo.feeFlag == '2006012') {
vc.emit('payFeeDiscount', 'computeFeeDiscount', {
feeId: $that.payFeeOrderInfo.feeId,
cycles: '1',
payerObjId: $that.payFeeOrderInfo.payerObjId,
payerObjType: $that.payFeeOrderInfo.payerObjType,
endTime: $that.payFeeOrderInfo.endTime
});
}
}, function (errInfo, error) { }, function (errInfo, error) {
console.log('请求失败处理'); console.log('请求失败处理');
} }