{"id":13901320,"url":"https://github.com/NervJS/taro-plugin-platform-weapp-qy","last_synced_at":"2025-07-17T21:32:55.709Z","repository":{"id":42688291,"uuid":"302627812","full_name":"NervJS/taro-plugin-platform-weapp-qy","owner":"NervJS","description":"企业微信插件","archived":false,"fork":false,"pushed_at":"2022-03-30T06:19:53.000Z","size":145,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-06-30T13:44:59.906Z","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-09T11:57:51.000Z","updated_at":"2024-04-29T13:28:05.000Z","dependencies_parsed_at":"2022-09-04T14:01:01.222Z","dependency_job_id":null,"html_url":"https://github.com/NervJS/taro-plugin-platform-weapp-qy","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/NervJS/taro-plugin-platform-weapp-qy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-weapp-qy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-weapp-qy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-weapp-qy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-weapp-qy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-plugin-platform-weapp-qy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-weapp-qy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265663011,"owners_count":23807465,"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":"2024-08-06T21:01:11.608Z","updated_at":"2025-07-17T21:32:55.289Z","avatar_url":"https://github.com/NervJS.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# `@tarojs/plugin-platform-weapp-qy`\n\nTaro 插件。用于支持编译为企业微信小程序。\n\n## 使用\n\n#### 1. 配置插件\n\n```js\n// Taro 项目配置\nmodule.exports = {\n  // ...\n  plugins: [\n    '@tarojs/plugin-platform-weapp-qy'\n  ]\n}\n```\n\n#### 2. 编译为企业微信小程序\n\n```shell\ntaro build --type qywx\ntaro build --type qywx --watch\n```\n\n#### 其它\n\n##### 平台判断\n\n```js\nif (process.TARO_ENV === 'qywx') {\n  // ...\n}\n```\n\n##### API\n\n企业微信小程序拓展了一些独有 API，可以通过 `Taro.qy.xxx` 来调用，如：\n\n```js\nTaro.qy.openUserProfile()\n  .then(res =\u003e console.log(res))\n```\n\n## Typings\n\n开发者在 `global.d.ts` 中加入 `/// \u003creference path=\"node_modules/@tarojs/plugin-platform-weapp-qy/types/shims-qy.d.ts\" /\u003e` 即可获得类型提示。\n\n例子：\n\n```\n/// \u003creference path=\"node_modules/@tarojs/plugin-platform-weapp-qy/types/shims-qy.d.ts\" /\u003e\n/// \u003creference path=\"node_modules/@tarojs/taro/types/index.d.ts\" /\u003e\n\ndeclare module '*.png';\ndeclare module '*.gif';\ndeclare module '*.jpg';\ndeclare module '*.jpeg';\ndeclare module '*.svg';\ndeclare module '*.css';\ndeclare module '*.less';\ndeclare module '*.scss';\ndeclare module '*.sass';\ndeclare module '*.styl';\n\ndeclare namespace NodeJS {\n  interface ProcessEnv {\n    TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd'\n  }\n}\n```\n\n## License\n\nMIT License\n\nCopyright (c) O2Team\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNervJS%2Ftaro-plugin-platform-weapp-qy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNervJS%2Ftaro-plugin-platform-weapp-qy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNervJS%2Ftaro-plugin-platform-weapp-qy/lists"}