配置文件修改 增加支持后端购物车批量下单
This commit is contained in:
@@ -60,15 +60,25 @@ export default {
|
|||||||
})
|
})
|
||||||
console.log('handleSuccess', res)
|
console.log('handleSuccess', res)
|
||||||
|
|
||||||
|
const code = res?.data?.code ?? res?.code
|
||||||
|
const msg = res?.data?.msg ?? res?.msg
|
||||||
|
if (code === 200) {
|
||||||
await uni.showToast({
|
await uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: 'The credit card was added successfully.'
|
title: 'The credit card was added successfully.'
|
||||||
})
|
})
|
||||||
// const eventChannel = this.getOpenerEventChannel();
|
|
||||||
// const id = res.data
|
|
||||||
// eventChannel.emit('acceptDataFromOpenedPage', {...params, id});
|
|
||||||
setTimeout(uni.navigateBack, 1000)
|
setTimeout(uni.navigateBack, 1000)
|
||||||
|
} else {
|
||||||
|
await uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: msg || 'Add credit card failed'
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: e?.message || e?.data?.msg || 'Add credit card failed'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
+10
-10
@@ -469,16 +469,16 @@ function getInviteInfo() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取支付相关配置
|
// 获取支付相关配置(已去掉 stripeKey 覆盖,统一用 config/index.ts 里的 pk_live_ 跑通流程)
|
||||||
getDictFineList({
|
// getDictFineList({
|
||||||
dictType: "app_config",
|
// dictType: "app_config",
|
||||||
}).then((res) => {
|
// }).then((res) => {
|
||||||
res.data.map((item) => {
|
// res.data.map((item) => {
|
||||||
if (item.dictValue === "stripeKey") {
|
// if (item.dictValue === "stripeKey") {
|
||||||
Config.stripeKey = item.remark;
|
// Config.stripeKey = item.remark;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user