diff --git a/pages/future/components/goToCertification.vue b/pages/future/components/goToCertification.vue new file mode 100644 index 0000000..0eceac0 --- /dev/null +++ b/pages/future/components/goToCertification.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/pages/future/future.vue b/pages/future/future.vue index 8e91fd4..22cfb97 100644 --- a/pages/future/future.vue +++ b/pages/future/future.vue @@ -139,6 +139,12 @@ + + @@ -150,8 +156,10 @@ import { } from "../../api/institutionalStructure/institutionalStructureDetail"; import { createPagination } from "../../composables/winB_Pagination"; import { postInstitutionalStructure } from "../../api/institutionalStructure/institutionalStructure"; +import GoToCertification from "./components/goToCertification.vue"; export default { + components: { GoToCertification }, mixins: [ createPagination({ fetchData: getProjectSchedule, @@ -162,6 +170,7 @@ export default { ], data() { return { + visible: false, show: false, CommonEnum, buddhaIcon: "https://api.ccttiot.com/image-1756353071821.png", @@ -244,6 +253,14 @@ export default { this.loadPageData(); }, methods: { + handleClose() { + this.visible = false; + }, + goToCertification() { + uni.navigateTo({ + url: "/pages/realName/realName", + }); + }, // 加载页面数据 async loadPageData() { try { @@ -348,16 +365,18 @@ export default { if (res.code === 200) { this.openPaymentUrl(res.data.payParams.payUrl); } else if (res.code === 10001) { - uni.showModal({ - title: "去实名", - content: "需要实名", - showCancel: true, - confirmText: "yes", - cancelText: "no", - success: function () { - uni.navigateTo({ url: "/pages/realName/realName" }); - }, - }); + this.show = false; + this.visible = true; //打开实名弹窗 + // uni.showModal({ + // title: "去实名", + // content: "需要实名", + // showCancel: true, + // confirmText: "yes", + // cancelText: "no", + // success: function () { + // uni.navigateTo({ url: "/pages/realName/realName" }); + // }, + // }); console.log("10001", res.msg); } }, diff --git a/pages/realName/realName.vue b/pages/realName/realName.vue index 436d648..b9d214b 100644 --- a/pages/realName/realName.vue +++ b/pages/realName/realName.vue @@ -48,10 +48,7 @@