diff --git a/artifacts/ui-redesign/miniapp/preview.html b/artifacts/ui-redesign/miniapp/preview.html new file mode 100644 index 0000000..8a74674 --- /dev/null +++ b/artifacts/ui-redesign/miniapp/preview.html @@ -0,0 +1,6220 @@ + + +
+ + +







${page}.wxml 不存在
`, missing: true } + const pageWxss = readIf(`miniapp/pages/${page}/${page}.wxss`) + const appWxss = readIf('miniapp/app.wxss') + const serviceWxss = readIf('miniapp/styles/service-page.wxss') + const compWxss = collectComponentCss(page) + const css = convertWxss([appWxss, serviceWxss, compWxss, pageWxss].join('\n'), deviceWidth) + const scope = MOCK[page] || {} + let body = '' + try { + body = renderWxml(wxml, scope) + } catch (e) { + body = `渲染失败: ${e.message}`
+ }
+ return { html: `