{"id":16423033,"url":"https://github.com/lilishop/lilishop-uniapp","last_synced_at":"2025-04-09T06:10:20.974Z","repository":{"id":39340742,"uuid":"367217828","full_name":"lilishop/lilishop-uniapp","owner":"lilishop","description":"商城系统-移动端","archived":false,"fork":false,"pushed_at":"2024-09-14T07:53:09.000Z","size":3669,"stargazers_count":219,"open_issues_count":2,"forks_count":126,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-12T07:38:40.768Z","etag":null,"topics":["uniapp","vue"],"latest_commit_sha":null,"homepage":"https://pickmall.cn","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lilishop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-14T01:30:52.000Z","updated_at":"2024-10-11T08:17:43.000Z","dependencies_parsed_at":"2023-02-09T00:46:35.905Z","dependency_job_id":"ab6bd075-d959-4fa2-aec9-c06bad78dc5c","html_url":"https://github.com/lilishop/lilishop-uniapp","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilishop%2Flilishop-uniapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilishop%2Flilishop-uniapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilishop%2Flilishop-uniapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lilishop%2Flilishop-uniapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lilishop","download_url":"https://codeload.github.com/lilishop/lilishop-uniapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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":["uniapp","vue"],"created_at":"2024-10-11T07:38:40.295Z","updated_at":"2025-04-09T06:10:20.950Z","avatar_url":"https://github.com/lilishop.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Lilishop B2B2C 商城系统\n\n### 商城介绍\n\n**官网**：https://pickmall.cn\n\n**更多 README**：https://gitee.com/beijing_hongye_huicheng/lilishop/blob/master/README.md\n\n**演示站点**：https://m-b2b2c.pickmall.cn/ 账号：13011111111 验证码：111111\n\n**商城 小程序/公众号/APP**：扫描二维码\n\n![image-20210511171611793](https://static.pickmall.cn/images/h5-qrcode.png)\n\n## lilishop-uniapp如何在本地h5和微信小程序中运行\nhttps://www.bilibili.com/video/BV17K8EemEh2/\n\n## lilishop-uniapp如何打包h5到服务器\nhttps://www.bilibili.com/video/BV1CX87exE64/\n\n### 快速开始\n\n#### 阅读文档\n\n`uni-app` https://uniapp.dcloud.net.cn/api/\n\n`vue2` https://v2.cn.vuejs.org/\n\n`uView v1` https://v1.uviewui.com/\n\n#### 环境\n\n在开发之前保证本地安装了以下软件\n`hbulider` https://www.dcloud.io/hbuilderx.html\n\n### 技术栈\n\n本项目技术栈为 `uni-app` + `scss` + `ES2015` + `uView` 提前学习和了解这些知识将帮助你更好地上手我们的项目。\n\n### 安装\n\n1. 克隆项目到本地\n\n```shell\ngit clone https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git\n```\n\n2. 从`hbulider`中打开项目\n\n```shell\n直接将项目拖进hbulider中点击运行即可\n```\n\n### 目录结构\n\n```\n├── api  // 接口\n├── components  // 组件\n├── config  // 配置文件\n├── CustomStartPage  // 打包配置的开屏页\n├── CustomStoryboard  // ios自定义storyboard启动页\n├── hybrid  // 广告配置页\n├── js_sdk  // 封装的js_sdk\n├── lib  // 封装的部分方法\n├── pages  // 页面\n├── plugins  // 插件\n├── static  // 静态资源\n├── store  // vuex\n├── utils  // 工具类\n├── uview-ui  // uview\n├── App.vue  // 入口页面\n├── main.js  // 入口文件\n├── manifest.json  // hbulider配置文件\n├── pages.json  // 路由配置文件\n├── uni.scss  // 全局样式\n└── vue.config.js  // vue配置文件\n```\n\n### 运行\n\n#### 运行在 h5\n\n在`hbulider`中点击`运行`-\u003e`运行到浏览器`-\u003e`选择自己的浏览器九号`\n\n#### 运行在微信小程序\n\n1.需要保证本地要有`微信开发者工具` https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html\n\n2.在`hbulider`中点击`运行`-\u003e`运行到小程序模拟器`-\u003e`微信开发者工具` 运行的时候需要配置小程序的`appid`，配置完成后即可运行\n\n#### 运行 APP\n\n##### 运行在安卓\n\n在`hbulider`中点击`运行`-\u003e`运行到手机或模拟器`-\u003e`选择运行到安卓APP基座`\n\n##### 运行在 IOS\n\n在`hbulider`中点击`运行`-\u003e`运行到手机或模拟器`-\u003e`选择运行到IOS基座`\n\n\n\n\n### 项目配置/开发\n\n#### config配置\n在根目录`config`下的`config`设置中配置了一些默认的配置，可以根据自己的需求进行修改\n\n```\nconst name = \"lilishop\"; //全局商城name\nconst schemeName = \"lilishop\"; //唤醒app需要的schemeName\nexport default {\n  name: name,\n  schemeLink: `${schemeName}://`, //唤起app地址\n  downloadLink: \"https://pickmall.cn/download-page/index.html\", //下载地址，下载app的地址\n  shareLink: \"https://m-b2b2c.pickmall.cn\", //分享地址，也就是在h5中默认的复制地址\n  appid: \"\", //小程序唯一凭证，即 AppID，可在「微信公众平台 - 设置 - 开发设置」页中获得。（需要已经成为开发者，且帐号没有异常状态）\n  aMapKey: \"\", //在高德中申请Web服务key\n  scanAuthNavigation: [\"https://m-b2b2c.pickmall.cn/\"], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转\n  iosAppId: \"id1564638363\", //AppStore的应用地址id 具体在分享-\u003e拷贝链接中查看\n  logo: \"https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png\", //logo地址\n  customerServiceMobile: \"13161366885\", //客服电话\n  customerServiceEmail: \"lili@lili.com\", //客服邮箱\n  imWebSrc: \"https://im.pickmall.cn\", //IM地址\n  baseWsUrl: \"wss://im-api.pickmall.cn/lili/webSocket\", // IM WS 地址\n  enableGetClipboard: false, //是否启用粘贴板获取 scanAuthNavigation 中的链接，如果匹配则会跳转到对应页面\n  enableMiniBarStartUpApp: true, //是否在h5中右侧浮空按钮点击启动app\n  /**\n   * 如需更换主题请修改此处以及uni.scss中的全局颜色\n   */\n  mainColor: \"#ff3c2a\", // 主题色\n  lightColor: \"#ff6b35\", // 高亮主题色\n  aiderLightColor: \"#ff9f28\", // 辅助高亮颜色\n  defaultUserPhoto: \"/static/missing-face.png\", // 默认用户头像\n  enableFetchMobileLogin: false // 是否启用获取手机号登录 如果微信小程序提示封禁手机号获取权限 可将此选项设置成false作为备用登录方案\n};\n\n```\n#### 组件\n在根目录`components`下的`components`设置中配置了一些默认的组件，可以根据自己的需求进行修改或阅读组件详情代码以及README.md文档\n\n#### 页面\n在`pages`文件夹写入或修改页面代码，在`pages.json`中去配置页面路由，具体配置可以参考`pages.json` 或参考uni-app的文档\n\n在微信小程序中默认启用分包操作，如果需要在微信小程序中使用分包，需要在`pages.json`中配置分包路径，具体配置可以参考`pages.json` 或参考uni-app的文档\n\n#### 主题\n1.现在`config`中设置主题色\n\n2.在`uni.scss`中设置全局颜色\n\n3.替换项目中一些icon以及图片的颜色\n\n\n\n\n### 常见问题\n\n#### 微信小程序移动端启动报错\n\n小程序直播插件报错，在`manifest`中删除代码。\n![启动报错](https://docs.pickmall.cn/configure/images/live.png)\n\n#### 微信小程序上传文件过大超出 2MB\n\n1.关闭微信小程序，停止微信小程序运行\n\n2.重新点击运行小程序模拟器，在最下方有一个 `运行时是否压缩代码` 勾选并重新运行\n\n3.如果还是提示超出2MB，重新执行1步骤，然后点击`发行`-\u003e`小程序`即可\n\n4.以上1-3步骤都不行，可以尝试删除一些自己开发的代码或本地的静态资源图片\n\n#### 微信小程序在开发者工具中可以使用接口在测试版却不行\n1.首先保证是否填写`request`合法域名 在微信小程序后台配置\n\n2.需保证接口为https请求\n\nrequest合法域名基础配置如下\n```\nhttps://buyer-api.pickmall.cn\nhttps://common-api.pickmall.cn\nhttps://im-api.pickmall.cn\nhttps://restapi.amap.com\n```\n\nsocket合法域名\n```\nwss://im-api.pickmall.cn\n```\nuploadFile合法域名\n```\nhttps://common-api.pickmall.cn\n```\ndownloadFile合法域名\n```\nhttps://buyer-api.pickmall.cn\nhttps://common-api.pickmall.cn\nhttps://im-api.pickmall.cn\nhttps://lilishop-oss.oss-cn-beijing.aliyuncs.com\n```\n\n#### 如何配置API\n在根目录 `config` -\u003e `api` 中配置开发环境以及生产环境 api 接口地址\n\n#### 运行报错\n初次运行时候可能因为本地环境缺少编译插件，这个时候一定要注意看报错信息，根据报错信息安装相应的插件即可\n\n#### 如何配置微信小程序appid\n在根目录 `manifest.json` 中配置微信小程序appid\n\n\n#### 微信登录报错\n需检查appId是否配置正确，在后台管理中信任登录的`appId`以及`appSecret`是否配置正确\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilishop%2Flilishop-uniapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flilishop%2Flilishop-uniapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilishop%2Flilishop-uniapp/lists"}