fix: 优化美团核销时,未绑定店铺增加弹窗是否去绑定
This commit is contained in:
parent
410dbb5fcf
commit
d310638697
|
|
@ -47,7 +47,7 @@ import * as $Api from "@/api/coup/index.js";
|
|||
import orderApi from "@/api/order/order";
|
||||
import bindShop from "./douyin-quan-bind-shop.vue";
|
||||
import chooseGoods from "./choose-quan-goods.vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
export default {
|
||||
components: { bindShop, chooseGoods },
|
||||
props: {
|
||||
|
|
@ -170,7 +170,17 @@ export default {
|
|||
const res = await $Api.$meituan_searchstorestatus({});
|
||||
if (res.status == 0) {
|
||||
const res2 = await $Api.$meituan_getuisdkurl({});
|
||||
window.open(res2);
|
||||
ElMessageBox.confirm("未绑定美团店铺,是否立即绑定", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then((action) => {
|
||||
if (action == "confirm") {
|
||||
window.open(res2);
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
return;
|
||||
}
|
||||
const res1 = await $Api.$meituan_fulfilmentcertificateprepare({
|
||||
|
|
|
|||
Loading…
Reference in New Issue