mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 07:55:53 +08:00
优化小程序登录跳转部分代码.新增全局条件编译跳转方法
This commit is contained in:
@@ -79,7 +79,11 @@ export default {
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$api.msg("暂无发票可预览");
|
||||
uni.showToast({
|
||||
title: "暂无发票可预览",
|
||||
duration: 2000,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
},
|
||||
download() {
|
||||
@@ -95,7 +99,11 @@ export default {
|
||||
uni.saveFile({
|
||||
tempFilePath: tempFilePath,
|
||||
success: function (res) {
|
||||
_this.$api.msg("发票已下载到" + res.savedFilePath);
|
||||
uni.showToast({
|
||||
title: "发票已下载到" + res.savedFilePath,
|
||||
duration: 2000,
|
||||
icon: "none",
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -103,7 +111,11 @@ export default {
|
||||
});
|
||||
});
|
||||
} else {
|
||||
this.$api.msg("暂无发票可下载");
|
||||
uni.showToast({
|
||||
title: "暂无发票可下载",
|
||||
duration: 2000,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user