{"id":13654367,"url":"https://github.com/hss01248/wxapp-devFrame","last_synced_at":"2025-04-23T09:33:26.497Z","repository":{"id":119093832,"uuid":"73145872","full_name":"hss01248/wxapp-devFrame","owner":"hss01248","description":"小程序基本的开发框架抽取","archived":false,"fork":false,"pushed_at":"2016-11-09T08:58:46.000Z","size":521,"stargazers_count":158,"open_issues_count":1,"forks_count":38,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-10T06:32:09.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hss01248.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}},"created_at":"2016-11-08T03:36:09.000Z","updated_at":"2024-02-19T08:30:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e00ef24-c0ba-493e-bf78-3d8353ac616f","html_url":"https://github.com/hss01248/wxapp-devFrame","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hss01248%2Fwxapp-devFrame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hss01248%2Fwxapp-devFrame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hss01248%2Fwxapp-devFrame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hss01248%2Fwxapp-devFrame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hss01248","download_url":"https://codeload.github.com/hss01248/wxapp-devFrame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250407703,"owners_count":21425548,"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-02T03:00:30.721Z","updated_at":"2025-04-23T09:33:26.054Z","avatar_url":"https://github.com/hss01248.png","language":"JavaScript","funding_links":[],"categories":["开发框架","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# wxapp-devFrame\n小程序基本的开发框架\n\n\n\n# 提供的封装\n\n## 网络访问的二次封装\n\n 内部部分字段需要根据自己具体项目进行修改\n\n    netUtil.buildRequest(page,urlTail,params,callback)//必须的参数和回调\n    .setXxx(xxx)//额外的设置,链式调用\n    ...\n    .send();//最终发出请求的动作\n## 页面状态管理\n\nloading页面,空白页面,错误页面\n\n```\n\t\t//wxml里引用模板:直接拷贝这段代码\n\t\t\u003c!--状态管理模板--\u003e\n        \u003cimport src=\"../../template/pagestate.wxml\"/\u003e\n        \u003cview \u003e\n            \u003ctemplate is=\"pagestate\" data=\"{{...netStateBean}}\"/\u003e\n        \u003c/view\u003e\n\t\t\n\t\t\n\t\t//js里,page的data中加字段:\n\t\t netStateBean: new netUtil.netStateBean()\n\t\t\n\t\t\n\t\t//网络回调处控制显示:netUtil\n\t\tshowLoadingDialog(that)\n\t\tshowContent(that)\n        showErrorPage(that,msg)\n        showEmptyPage(that)\n```\n\n\n\n# 下拉刷新和上拉加载更多的ui和api\n\n\n\n# 纯listview和gridview页面的高度封装\n\n\u003e只需要配置页面url,请求参数,返回的数据每个item字段的处理,wxml里写item的布局即可.无需关心页面状态,刷新和加载更多的ui和数据拼接.\n\n\n\n\n\n\n\n\n\n![index](index.jpg)\n\n\n\n ![gridview](gridview.jpg) \n\n\n\n![lv](lv.jpg)\n\n\n\n# blog\n\n[程序基本开发框架的搭建](http://www.jianshu.com/p/d7e574e78bea )","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhss01248%2Fwxapp-devFrame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhss01248%2Fwxapp-devFrame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhss01248%2Fwxapp-devFrame/lists"}