{"id":28447692,"url":"https://github.com/nervjs/taro-plugin-platform-alipay-iot","last_synced_at":"2025-08-03T14:39:26.828Z","repository":{"id":57164581,"uuid":"302807389","full_name":"NervJS/taro-plugin-platform-alipay-iot","owner":"NervJS","description":"支付宝 IOT 端小程序平台插件","archived":false,"fork":false,"pushed_at":"2021-03-12T12:04:55.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-06-04T12:47:54.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NervJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-10T03:34:23.000Z","updated_at":"2022-05-18T02:48:57.000Z","dependencies_parsed_at":"2022-09-12T01:00:50.958Z","dependency_job_id":null,"html_url":"https://github.com/NervJS/taro-plugin-platform-alipay-iot","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/NervJS/taro-plugin-platform-alipay-iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-plugin-platform-alipay-iot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-iot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262783214,"owners_count":23363493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-06T12:06:27.700Z","updated_at":"2025-06-30T13:31:51.640Z","avatar_url":"https://github.com/NervJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@tarojs/plugin-platform-alipay-iot`\n\nTaro 插件。用于支持编译为支付宝 IOT 端小程序。\n\n## 使用\n\n#### 1. 配置插件\n\n```js\n// Taro 项目配置\nmodule.exports = {\n  // ...\n  plugins: [\n    '@tarojs/plugin-platform-alipay-iot'\n  ]\n}\n```\n\n#### 2. 编译为支付宝 IOT 端小程序\n\n```shell\ntaro build --type iot\ntaro build --type iot --watch\n```\n\n#### 其它\n\n##### 平台判断\n\n```js\nif (process.TARO_ENV === 'iot') {\n  // ...\n}\n```\n\n##### API\n\n支付宝 IOT 端小程序拓展了一些独有 API，可以通过 `Taro.iot.xxx` 来调用，例：\n\n```js\nTaro.ix.getSysProp({\n  key: 'ro.serialno'\n})\n  .then(res =\u003e console.log(res))\n```\n\n##### 组件\n\n支付宝 IOT 端小程序拓展了一些独有组件，可像普通 Taro 内置组件一样使用，例：\n\n```js\nimport { Poster, IxGrid, IxNativeList, IxNativeGrid } from '@tarojs/components'\n\nfunction Index () {\n  return (\n    \u003c\u003e\n      \u003cPoster\u003e\u003c/Poster\u003e\n      \u003cIxGrid\u003e\u003c/IxGrid\u003e\n      \u003cIxNativeList\u003e\u003c/IxNativeList\u003e\n      \u003cIxNativeGrid\u003e\u003c/IxNativeGrid\u003e\n    \u003c/\u003e\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-alipay-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-alipay-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-alipay-iot/lists"}