DESKTOP-2IO5MST\huting pirms 1 gada
vecāks
revīzija
772d7b5636
2 mainītis faili ar 20 papildinājumiem un 12 dzēšanām
  1. 2
    2
      pages.json
  2. 18
    10
      pages/recharge/recharge.vue

+ 2
- 2
pages.json Parādīt failu

@@ -1158,7 +1158,7 @@
{
"path": "refund-deposit-card",
"style": {
"navigationBarTitleText": "储值卡圈存-退款",
"navigationBarTitleText": "储值卡圈存-退款"
// "navigationStyle": "custom",
// "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦
// "transparentTitle": "always",
@@ -1169,7 +1169,7 @@
{
"path": "refund-deposit-card-selectCar",
"style": {
"navigationBarTitleText": "储值卡圈存-退款-选择车辆",
"navigationBarTitleText": "储值卡圈存-退款-选择车辆"
// "navigationStyle": "custom",
// "mp-alipay": { //在支付宝小程序中如果不生效 就加上这两行代码 就会生效啦
// "transparentTitle": "always",

+ 18
- 10
pages/recharge/recharge.vue Parādīt failu

@@ -152,7 +152,8 @@
state.orderNum = getItem("orderNum");
// 金额回填,本来是好的,但是他跳转了,跳转过来就得刷新页面,所以就是默认的5000
if(option.fee){
state.fee=option.fee
state.fee=option.fee
state.money=option.fee/100
}else{
state.fee = state.money * 100; //元换成分
}
@@ -317,10 +318,12 @@
cardCzXFCheckAction().then((xfRes) => {
quanApplyAction(dic).then((value) => {
console.log("圈层申请完后的结果");
console.log(value);
console.log(value.commandType,value);
//圈存初始化验证通过 , 进行圈存
if (value.commandType === 2) {
uanConfirmAction(value).then((confirmResult) => {
uanConfirmAction(value).then((confirmResult) => {
console.log("充值成功1111")
msg("充值成功");
navTo(
`/pages/recharge/result`)
});
@@ -374,16 +377,19 @@
console.log("消费成功");
quanApplyAction(applyDic).then((applyValue) => {
uanConfirmAction(applyValue).then((
confirmResult) => {
confirmResult) => {
console.log("充值成功222")
msg("充值成功");
navTo(
`/pages/recharge/result`)
`/pages/recharge/result`)
});
});
}
});
} else if (fixStatus === 2) {
uanConfirmSucessAction(value).then((confirmResult) => {
uanConfirmSucessAction(value).then((confirmResult) => {
console.log("充值成功")
msg("充值成功");
navTo(`/pages/recharge/result`)
});
@@ -518,7 +524,8 @@
return new Promise(async (resolve, reject) => {
const res = await request(quanApply, options);
const data = stringToJson(res.bizContent);
resolve(data);
resolve(data);
console.log("quanApplyAction",data)
}).catch((error) => {
reject(error);
});
@@ -537,7 +544,6 @@
res[arraylenth - 1].length
);
console.log("打印圈层确认指令状态");
console.log(status);
if (status === "9000") {
var form = {
command: data.command,
@@ -555,7 +561,8 @@
return new Promise(async (resolve, reject) => {
const res = await request(quanConfirm, options);
const data = stringToJson(res.bizContent);
resolve(data);
resolve(data);
console.log("data",data);
}).catch((error) => {
reject(error);
});
@@ -580,7 +587,8 @@
return new Promise(async (resolve, reject) => {
const res = await request(quanConfirm, options);
const data = stringToJson(res.bizContent);
resolve(data);
resolve(data);
console.log("uanConfirmSucessAction",data)
}).catch((error) => {
reject(error);
});

Notiek ielāde…
Atcelt
Saglabāt