feat: 增加支付宝在线支付、套餐订购弹窗、会员权益、支持模型展示等
This commit is contained in:
20
Yi.Ai.Vue3/src/utils/product-package.ts
Normal file
20
Yi.Ai.Vue3/src/utils/product-package.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { createApp, h } from 'vue';
|
||||
import ProductPackage from '@/components/ProductPackage/index.vue';
|
||||
|
||||
export function showProductPackage() {
|
||||
const div = document.createElement('div');
|
||||
document.body.appendChild(div);
|
||||
|
||||
const app = createApp({
|
||||
render() {
|
||||
return h(ProductPackage, {
|
||||
onClose: () => {
|
||||
app.unmount();
|
||||
div.remove();
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
app.mount(div);
|
||||
}
|
||||
Reference in New Issue
Block a user