|
|
@@ -96,6 +96,7 @@ export default {
|
|
|
require("../assets/svgs/icon_gouxuan_huise.svg"),
|
|
|
require("../assets/svgs/icon_gouxuan_pre.svg"),
|
|
|
],
|
|
|
+ bottom: null,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -119,11 +120,12 @@ export default {
|
|
|
this.bs.value.refresh();
|
|
|
}, 500);
|
|
|
});
|
|
|
+ this.bottom = this.$refs.bottom;
|
|
|
document.body.appendChild(this.$refs.bottom);
|
|
|
},
|
|
|
unmounted() {
|
|
|
- if (this.$refs.bottom) {
|
|
|
- document.body.removeChild(this.$refs.bottom);
|
|
|
+ if (this.bottom) {
|
|
|
+ document.body.removeChild(this.bottom);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -131,8 +133,7 @@ export default {
|
|
|
this.$http
|
|
|
.post("/order/create?collectionId=" + this.$route.query.id + "&qty=1")
|
|
|
.then((res) => {
|
|
|
- window.location.href =
|
|
|
- this.$baseUrl + "/payOrder/alipay?id=" + res.id;
|
|
|
+ this.$router.replace(this.$baseUrl + "/payOrder/alipay?id=" + res.id);
|
|
|
});
|
|
|
},
|
|
|
},
|