diff --git a/docs/user-guide/shop/mp.mdx b/docs/user-guide/shop/mp.mdx new file mode 100644 index 00000000..67def2a1 --- /dev/null +++ b/docs/user-guide/shop/mp.mdx @@ -0,0 +1,27 @@ +--- +title: 小程序 +description: Halo 商城小程序的获取、配置与发布说明。 +--- + +自 Halo 2.24 起,Halo 商城支持以微信小程序作为销售终端。相较于 Web 端,小程序在国内拥有更高的用户渗透率,更适合承载移动端购物场景。 + +小程序预览 + +## 获取方式 + +Halo 官方目前以源码形式提供小程序模板,你需要自行编译,并通过微信开发者工具完成发布。 + +- 源码仓库:[lxware-dev/halo-shop-miniprogram](https://github.com/lxware-dev/halo-shop-miniprogram) +- 在线文档:[小程序配置与发布文档](https://github.com/lxware-dev/halo-shop-miniprogram/tree/main/docs) + +## 使用流程 + +:::info +为了便于后续同步官方更新,建议先将仓库 Fork 到自己的 GitHub 账户,再克隆到本地进行配置、编译和发布。 +::: + +```bash +git clone https://github.com/{your-github-username}/halo-shop-miniprogram.git +``` + +克隆完成后,请阅读源码仓库中的 `docs` 目录,其中包含完整的小程序配置、编译与发布说明,可按文档完成后续操作。 diff --git a/sidebars.js b/sidebars.js index d42242a0..e2e614b6 100644 --- a/sidebars.js +++ b/sidebars.js @@ -122,6 +122,7 @@ module.exports = { "user-guide/shop/orders", "user-guide/shop/virtual-delivery", "user-guide/shop/theme-dev", + "user-guide/shop/mp", ], }, "user-guide/faq", diff --git a/static/img/user-guide/shop/mp-preview.png b/static/img/user-guide/shop/mp-preview.png new file mode 100644 index 00000000..fbf78096 Binary files /dev/null and b/static/img/user-guide/shop/mp-preview.png differ diff --git a/versioned_docs/version-2.24/user-guide/shop/mp.mdx b/versioned_docs/version-2.24/user-guide/shop/mp.mdx new file mode 100644 index 00000000..67def2a1 --- /dev/null +++ b/versioned_docs/version-2.24/user-guide/shop/mp.mdx @@ -0,0 +1,27 @@ +--- +title: 小程序 +description: Halo 商城小程序的获取、配置与发布说明。 +--- + +自 Halo 2.24 起,Halo 商城支持以微信小程序作为销售终端。相较于 Web 端,小程序在国内拥有更高的用户渗透率,更适合承载移动端购物场景。 + +小程序预览 + +## 获取方式 + +Halo 官方目前以源码形式提供小程序模板,你需要自行编译,并通过微信开发者工具完成发布。 + +- 源码仓库:[lxware-dev/halo-shop-miniprogram](https://github.com/lxware-dev/halo-shop-miniprogram) +- 在线文档:[小程序配置与发布文档](https://github.com/lxware-dev/halo-shop-miniprogram/tree/main/docs) + +## 使用流程 + +:::info +为了便于后续同步官方更新,建议先将仓库 Fork 到自己的 GitHub 账户,再克隆到本地进行配置、编译和发布。 +::: + +```bash +git clone https://github.com/{your-github-username}/halo-shop-miniprogram.git +``` + +克隆完成后,请阅读源码仓库中的 `docs` 目录,其中包含完整的小程序配置、编译与发布说明,可按文档完成后续操作。 diff --git a/versioned_sidebars/version-2.24-sidebars.json b/versioned_sidebars/version-2.24-sidebars.json index f687c2f3..57c11fd6 100644 --- a/versioned_sidebars/version-2.24-sidebars.json +++ b/versioned_sidebars/version-2.24-sidebars.json @@ -103,7 +103,8 @@ "user-guide/shop/products", "user-guide/shop/orders", "user-guide/shop/virtual-delivery", - "user-guide/shop/theme-dev" + "user-guide/shop/theme-dev", + "user-guide/shop/mp" ] }, "user-guide/faq"