async singlePoint(e) {
new Promise(async (resolve) => {
resolve(await getInfo());
})
.then((resUser) => {
new Promise(async (resolve) => {
resolve(await getTenant(resUser.user.userId));
})
.then(async (resTenant) => {
new Promise(async (resolve) => {
resolve(
await getNewAppToken({
transactionUserId: resTenant.data.transactionUserId,
orderId: e.orderId,
})
);
}).then((res) => {
let data = res.data;
if (data && e.url.length) {
const link = e.url[0].url;
console.log("link", e.url[0].url);
console.log("token", data);
window.open(`${link}?token=${data}`, '_blank');
} else {
this.$message({
message: "此应用尚未配置试用地址",
type: "warning",
});
}
});
})
.catch(() => {
this.$message({
message: "获取租户信息失败请稍后重试",
type: "warning",
});
});
})
.catch(() => {
this.$message({
message: "获取用户信息失败请稍后重试",
type: "warning",
});
});
},