Commit 44cb5ca1 authored by 郝聪敏's avatar 郝聪敏

fix: 待支付添加弹窗

parent bb4ff64f
...@@ -20,7 +20,7 @@ const { ...@@ -20,7 +20,7 @@ const {
Notify, Notify,
Picker, Picker,
Area, Area,
// Dialog, Dialog,
Field, Field,
Checkbox, Checkbox,
// CheckboxGroup, // CheckboxGroup,
...@@ -79,3 +79,4 @@ Vue.use(Notify); ...@@ -79,3 +79,4 @@ Vue.use(Notify);
Vue.use(Loading); Vue.use(Loading);
Vue.use(Swipe); Vue.use(Swipe);
Vue.use(SwipeItem); Vue.use(SwipeItem);
Vue.use(Dialog);
...@@ -126,6 +126,23 @@ strong { ...@@ -126,6 +126,23 @@ strong {
font-size: 14px; font-size: 14px;
} }
.cr-dialog {
.cr-button {
background-color: #fff !important;
border: 0 !important;
border-radius: 16px !important;
}
.cr-dialog--message {
color: #666666 !important;
}
.cr-button--default {
color: #888888 !important;
}
.cr-dialog--confirm {
color: #5599FF !important;
}
}
.table { .table {
margin: 0; margin: 0;
width: 100%; width: 100%;
......
...@@ -11,6 +11,8 @@ import Refund from "./Types/Refund"; ...@@ -11,6 +11,8 @@ import Refund from "./Types/Refund";
import policyStatusMixin from "../mixin/policyStatus.mixin"; import policyStatusMixin from "../mixin/policyStatus.mixin";
import { getPolicyDetail } from "@/api/policy"; import { getPolicyDetail } from "@/api/policy";
let timer = null;
export default { export default {
name: "PolicyList", name: "PolicyList",
mixins: [policyStatusMixin], mixins: [policyStatusMixin],
...@@ -32,14 +34,28 @@ export default { ...@@ -32,14 +34,28 @@ export default {
} }
}; };
}, },
created() { async created() {
this.getPolicy(); await this.getPolicy();
if (this.policy?.cardConfig?.key === "4") {
this.$dialog({
message: "请确认是否已经完成了微信免密支付签约",
onCancel: () => {
timer = setInterval(this.getPolicy, 3000);
},
onConfirm: () => {
timer = setInterval(this.getPolicy, 3000);
}
});
}
}, },
methods: { methods: {
async getPolicy() { async getPolicy() {
const detail = await getPolicyDetail(this.$route.params.orderNo); const detail = await getPolicyDetail(this.$route.params.orderNo);
this.policy = this.getData(detail); this.policy = this.getData(detail);
} }
},
beforeDestroy() {
clearTimeout(timer);
} }
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment