├── miniprogram ├── cmpts │ ├── public │ │ ├── poster │ │ │ ├── wxa-plugin-canvas │ │ │ │ ├── poster │ │ │ │ │ ├── index.wxss │ │ │ │ │ ├── index.json │ │ │ │ │ ├── index.wxml │ │ │ │ │ └── poster.js │ │ │ │ └── index │ │ │ │ │ ├── index.json │ │ │ │ │ ├── index.wxml │ │ │ │ │ └── index.wxss │ │ │ ├── poster_cmpt.json │ │ │ ├── images │ │ │ │ ├── friend.png │ │ │ │ └── wechat.png │ │ │ ├── poster_cmpt.wxml │ │ │ ├── poster_cmpt_helper.js │ │ │ └── poster_cmpt.wxss │ │ ├── editor │ │ │ ├── editor_cmpt.json │ │ │ └── editor_cmpt.wxml │ │ ├── img │ │ │ ├── img_upload_cmpt.json │ │ │ ├── img_upload_cmpt.wxss │ │ │ └── img_upload_cmpt.wxml │ │ ├── list │ │ │ └── comm_list_cmpt.json │ │ ├── modal │ │ │ ├── modal_cmpt.json │ │ │ ├── modal_cmpt.wxss │ │ │ └── modal_cmpt.js │ │ ├── picker │ │ │ ├── picker_cmpt.json │ │ │ ├── picker_cmpt.wxss │ │ │ └── picker_cmpt.wxml │ │ ├── radio │ │ │ ├── radio_cmpt.json │ │ │ ├── radio_cmpt.wxml │ │ │ ├── radio_cmpt.wxss │ │ │ └── radio_cmpt.js │ │ ├── swiper │ │ │ ├── swiper_cmpt.json │ │ │ ├── swiper_cmpt.wxss │ │ │ ├── swiper_cmpt.wxml │ │ │ └── swiper_cmpt.js │ │ ├── table │ │ │ ├── table_cmpt.json │ │ │ ├── table_cmpt.wxml │ │ │ ├── table_cmpt.js │ │ │ └── table_cmpt.wxss │ │ ├── checkbox │ │ │ ├── checkbox_cmpt.json │ │ │ ├── checkbox_cmpt.wxml │ │ │ ├── checkbox_cmpt.wxss │ │ │ └── checkbox_cmpt.js │ │ ├── picker_time │ │ │ ├── picker_time_cmpt.wxss │ │ │ ├── picker_time_cmpt.json │ │ │ └── picker_time_cmpt.wxml │ │ ├── custom_nav │ │ │ ├── custom_nav_cmpt.json │ │ │ ├── custom_nav_cmpt.wxml │ │ │ ├── custom_nav_cmpt.wxss │ │ │ └── custom_nav_cmpt.js │ │ ├── form │ │ │ ├── form_set │ │ │ │ ├── form_set_cmpt.json │ │ │ │ ├── field │ │ │ │ │ ├── form_set_field.json │ │ │ │ │ └── form_set_field.wxss │ │ │ │ ├── form_set_cmpt.wxss │ │ │ │ ├── form_set_cmpt.wxml │ │ │ │ └── form_set_cmpt.js │ │ │ └── form_show │ │ │ │ ├── content │ │ │ │ ├── form_show_content.json │ │ │ │ ├── form_show_content.wxml │ │ │ │ ├── form_show_content.wxss │ │ │ │ └── form_show_content.js │ │ │ │ ├── form_show_cmpt.json │ │ │ │ └── form_show_cmpt.wxss │ │ ├── picker_multi │ │ │ ├── picker_multi_cmpt.json │ │ │ ├── picker_multi_cmpt.wxss │ │ │ └── picker_multi_cmpt.wxml │ │ └── calendar │ │ │ ├── date_select │ │ │ ├── date_select_cmpt.json │ │ │ ├── date_select_cmpt.wxml │ │ │ └── date_select_cmpt.wxss │ │ │ ├── time_select │ │ │ ├── time_select_cmpt.json │ │ │ └── time_select_cmpt.wxml │ │ │ ├── calendar_comm │ │ │ └── calendar_comm_cmpt.json │ │ │ └── calendar_meet │ │ │ └── calendar_meet_cmpt.json │ └── biz │ │ ├── foot │ │ ├── foot_cmpt.json │ │ ├── foot_cmpt.wxml │ │ ├── foot_cmpt.wxss │ │ └── foot_cmpt.js │ │ └── detail │ │ └── detail_cmpt.json ├── app.wxss ├── pages │ └── test1 │ │ ├── test1.wxml │ │ └── test1.js ├── projects │ └── renthouse │ │ ├── pages │ │ ├── search │ │ │ ├── search.wxml │ │ │ ├── search.json │ │ │ ├── search.wxss │ │ │ └── search.js │ │ ├── my │ │ │ ├── fav │ │ │ │ ├── my_fav.wxml │ │ │ │ ├── my_fav.json │ │ │ │ ├── my_fav.wxss │ │ │ │ └── my_fav.js │ │ │ ├── foot │ │ │ │ ├── my_foot.wxml │ │ │ │ ├── my_foot.json │ │ │ │ ├── my_foot.wxss │ │ │ │ └── my_foot.js │ │ │ ├── index │ │ │ │ └── my_index.json │ │ │ ├── reg │ │ │ │ ├── my_reg.json │ │ │ │ ├── my_reg.wxss │ │ │ │ └── my_reg.wxml │ │ │ └── edit │ │ │ │ ├── my_edit.json │ │ │ │ ├── my_edit.wxss │ │ │ │ ├── my_edit.wxml │ │ │ │ └── user_form.wxml │ │ ├── admin │ │ │ ├── mgr │ │ │ │ ├── add │ │ │ │ │ ├── admin_mgr_add.wxss │ │ │ │ │ ├── admin_mgr_add.json │ │ │ │ │ ├── admin_mgr_add.wxml │ │ │ │ │ └── admin_mgr_add.js │ │ │ │ ├── edit │ │ │ │ │ ├── admin_mgr_edit.wxss │ │ │ │ │ ├── admin_mgr_edit.json │ │ │ │ │ └── admin_mgr_edit.wxml │ │ │ │ ├── pwd │ │ │ │ │ ├── admin_mgr_pwd.wxss │ │ │ │ │ ├── admin_mgr_pwd.json │ │ │ │ │ ├── admin_mgr_pwd.wxml │ │ │ │ │ └── admin_mgr_pwd.js │ │ │ │ ├── list │ │ │ │ │ ├── admin_mgr_list.wxss │ │ │ │ │ └── admin_mgr_list.json │ │ │ │ └── log │ │ │ │ │ ├── admin_log_list.wxss │ │ │ │ │ ├── admin_log_list.json │ │ │ │ │ ├── admin_log_list.js │ │ │ │ │ └── admin_log_list.wxml │ │ │ ├── product │ │ │ │ ├── edit │ │ │ │ │ ├── admin_product_edit.wxss │ │ │ │ │ ├── admin_product_edit.json │ │ │ │ │ └── admin_product_edit.wxml │ │ │ │ ├── add │ │ │ │ │ ├── admin_product_add.wxss │ │ │ │ │ ├── admin_product_add.wxml │ │ │ │ │ └── admin_product_add.json │ │ │ │ ├── list │ │ │ │ │ ├── admin_product_list.json │ │ │ │ │ └── admin_product_list.wxss │ │ │ │ └── admin_product_form_tpl.wxml │ │ │ ├── user │ │ │ │ ├── detail │ │ │ │ │ ├── admin_user_detail.wxss │ │ │ │ │ ├── admin_user_detail.json │ │ │ │ │ ├── admin_user_detail.wxml │ │ │ │ │ └── admin_user_detail.js │ │ │ │ ├── list │ │ │ │ │ ├── admin_user_list.wxss │ │ │ │ │ └── admin_user_list.json │ │ │ │ └── export │ │ │ │ │ ├── admin_user_export.json │ │ │ │ │ ├── admin_user_export.wxss │ │ │ │ │ └── admin_user_export.wxml │ │ │ ├── index │ │ │ │ ├── login │ │ │ │ │ ├── admin_login.json │ │ │ │ │ ├── admin_login.wxml │ │ │ │ │ ├── admin_login.js │ │ │ │ │ └── admin_login.wxss │ │ │ │ └── home │ │ │ │ │ ├── admin_home.json │ │ │ │ │ └── admin_home.wxss │ │ │ ├── setup │ │ │ │ ├── qr │ │ │ │ │ ├── admin_setup_qr.json │ │ │ │ │ ├── admin_setup_qr.wxml │ │ │ │ │ ├── admin_setup_qr.wxss │ │ │ │ │ └── admin_setup_qr.js │ │ │ │ ├── about_list │ │ │ │ │ ├── admin_setup_about_list.json │ │ │ │ │ ├── admin_setup_about_list.wxss │ │ │ │ │ ├── admin_setup_about_list.wxml │ │ │ │ │ └── admin_setup_about_list.js │ │ │ │ └── about │ │ │ │ │ ├── admin_setup_about.json │ │ │ │ │ ├── admin_setup_about.wxss │ │ │ │ │ └── admin_setup_about.wxml │ │ │ └── content │ │ │ │ ├── admin_content.json │ │ │ │ ├── admin_content.wxml │ │ │ │ ├── admin_content.wxss │ │ │ │ └── admin_content.js │ │ ├── about │ │ │ └── index │ │ │ │ ├── about_index.wxml │ │ │ │ ├── about_index.json │ │ │ │ ├── about_index.wxss │ │ │ │ └── about_index.js │ │ ├── product │ │ │ ├── index │ │ │ │ ├── product_index.json │ │ │ │ └── product_index.wxml │ │ │ └── detail │ │ │ │ └── product_detail.json │ │ └── tpls │ │ │ └── menu_tpl.wxml │ │ ├── images │ │ ├── type │ │ │ ├── 床.png │ │ │ ├── 冰箱.png │ │ │ ├── 宽带.png │ │ │ ├── 微波炉.png │ │ │ ├── 桌椅.png │ │ │ ├── 沙发.png │ │ │ ├── 洗衣机.png │ │ │ ├── 热水器.png │ │ │ ├── 电脑.png │ │ │ ├── 电视机.png │ │ │ ├── 空调.png │ │ │ └── 衣柜.png │ │ ├── location.png │ │ └── tabbar │ │ │ ├── my.png │ │ │ ├── my_cur.png │ │ │ ├── product.png │ │ │ └── product_cur.png │ │ └── biz │ │ ├── project_biz.js │ │ └── product_biz.js ├── images │ └── cover.gif ├── style │ ├── project │ │ ├── my_fav_style.wxss │ │ ├── my_foot_style.wxss │ │ ├── admin_list_style.wxss │ │ └── search_style.wxss │ └── base │ │ ├── nav.wxss │ │ ├── comm.wxss │ │ ├── image.wxss │ │ └── avatar.wxss ├── sitemap.json ├── tpls │ ├── public │ │ ├── top_tpl.wxml │ │ ├── list_load_tpl.wxml │ │ └── admin_forms_detail_tpl.wxml │ ├── wxs │ │ └── tools.wxs │ └── project │ │ ├── my_foot_tpl.wxml │ │ ├── news_index_tpl.wxml │ │ ├── search_tpl.wxml │ │ ├── about_tpl.wxml │ │ └── my_fav_tpl.wxml ├── comm │ ├── constants.js │ ├── biz │ │ ├── search_biz.js │ │ ├── base_biz.js │ │ ├── fav_biz.js │ │ ├── foot_biz.js │ │ └── public_biz.js │ └── behavior │ │ ├── my_foot_bh.js │ │ ├── news_index_bh.js │ │ ├── my_fav_bh.js │ │ └── about_bh.js ├── setting │ └── setting.js ├── helper │ ├── form_helper.js │ ├── file_helper.js │ ├── helper.js │ ├── cache_helper.js │ └── pic_helper.js └── app.js ├── demo ├── 5我的.jpg ├── 二维码.png ├── 1房源列表.png ├── 2房源详情1.png ├── 2房源详情2.png ├── 3房源详情3.png ├── 4房源位置.png ├── 6后台-首页.png ├── 10后台-用户管理.png ├── 7后台-房源管理.png ├── 8后台-房源添加.png ├── 9后台房源添加-2.jpg ├── 11后台-管理员管理.png ├── author-base.png └── 租房小程序 (2).jpeg ├── 租房小程序安装使用手册.docx ├── cloudfunctions └── mcloud │ ├── project │ └── renthouse │ │ ├── public │ │ ├── constants.js │ │ └── project_config.js │ │ ├── controller │ │ ├── my_controller.js │ │ ├── base_project_controller.js │ │ ├── admin │ │ │ ├── base_project_admin_controller.js │ │ │ ├── admin_home_controller.js │ │ │ └── admin_setup_controller.js │ │ ├── check_controller.js │ │ ├── home_controller.js │ │ ├── product_controller.js │ │ └── passport_controller.js │ │ ├── model │ │ ├── base_project_model.js │ │ ├── fav_model.js │ │ ├── user_model.js │ │ └── product_model.js │ │ └── service │ │ ├── home_service.js │ │ └── admin │ │ ├── base_project_admin_service.js │ │ └── admin_setup_service.js │ ├── config.json │ ├── index.js │ ├── framework │ ├── utils │ │ ├── constant.js │ │ ├── math_util.js │ │ ├── util.js │ │ └── setup │ │ │ ├── setup_model.js │ │ │ └── setup_util.js │ ├── platform │ │ ├── model │ │ │ ├── base_model.js │ │ │ ├── log_model.js │ │ │ └── admin_model.js │ │ ├── service │ │ │ ├── base_service.js │ │ │ └── base_admin_service.js │ │ └── controller │ │ │ ├── base_controller.js │ │ │ └── base_admin_controller.js │ ├── core │ │ ├── app_code.js │ │ ├── app_error.js │ │ ├── app_other.js │ │ └── app_util.js │ ├── cloud │ │ └── cloud_base.js │ └── lib │ │ └── mini_lib.js │ ├── package.json │ └── config │ └── config.js ├── .gitignore ├── project.private.config.json └── project.config.json /miniprogram/cmpts/public/poster/wxa-plugin-canvas/poster/index.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/5我的.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/5我的.jpg -------------------------------------------------------------------------------- /demo/二维码.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/二维码.png -------------------------------------------------------------------------------- /demo/1房源列表.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/1房源列表.png -------------------------------------------------------------------------------- /demo/2房源详情1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/2房源详情1.png -------------------------------------------------------------------------------- /demo/2房源详情2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/2房源详情2.png -------------------------------------------------------------------------------- /demo/3房源详情3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/3房源详情3.png -------------------------------------------------------------------------------- /demo/4房源位置.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/4房源位置.png -------------------------------------------------------------------------------- /demo/6后台-首页.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/6后台-首页.png -------------------------------------------------------------------------------- /demo/10后台-用户管理.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/10后台-用户管理.png -------------------------------------------------------------------------------- /demo/7后台-房源管理.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/7后台-房源管理.png -------------------------------------------------------------------------------- /demo/8后台-房源添加.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/8后台-房源添加.png -------------------------------------------------------------------------------- /demo/9后台房源添加-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/9后台房源添加-2.jpg -------------------------------------------------------------------------------- /miniprogram/app.wxss: -------------------------------------------------------------------------------- 1 | @import "style/base/comm.wxss"; 2 | @import "style/public/project.wxss"; 3 | -------------------------------------------------------------------------------- /租房小程序安装使用手册.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/租房小程序安装使用手册.docx -------------------------------------------------------------------------------- /demo/11后台-管理员管理.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/11后台-管理员管理.png -------------------------------------------------------------------------------- /demo/author-base.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/author-base.png -------------------------------------------------------------------------------- /demo/租房小程序 (2).jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/demo/租房小程序 (2).jpeg -------------------------------------------------------------------------------- /miniprogram/cmpts/biz/foot/foot_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/wxa-plugin-canvas/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/editor/editor_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/img/img_upload_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/list/comm_list_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/modal/modal_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker/picker_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/radio/radio_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/swiper/swiper_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/table/table_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/pages/test1/test1.wxml: -------------------------------------------------------------------------------- 1 | 2 | pages/test1/test1.wxml 3 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/checkbox/checkbox_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker_time/picker_time_cmpt.wxss: -------------------------------------------------------------------------------- 1 | /* cmpts/public/picker_time/picker_time_cmpt.wxss */ -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/search/search.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/custom_nav/custom_nav_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_set/form_set_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker_multi/picker_multi_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker_time/picker_time_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/images/cover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/images/cover.gif -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/fav/my_fav.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/add/admin_mgr_add.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/edit/admin_mgr_edit.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/pwd/admin_mgr_pwd.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/foot/my_foot.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/style/project/my_fav_style.wxss: -------------------------------------------------------------------------------- 1 | .text-pic-list-box .item .simple .simple-title { 2 | width: 100%; 3 | } -------------------------------------------------------------------------------- /miniprogram/style/project/my_foot_style.wxss: -------------------------------------------------------------------------------- 1 | .text-pic-list-box .item .simple .simple-title { 2 | width: 100%; 3 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/calendar/date_select/date_select_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/calendar/time_select/time_select_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/about/index/about_index.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/calendar/calendar_comm/calendar_comm_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/calendar/calendar_meet/calendar_meet_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/list/admin_mgr_list.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/edit/admin_product_edit.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; -------------------------------------------------------------------------------- /miniprogram/cmpts/public/swiper/swiper_cmpt.wxss: -------------------------------------------------------------------------------- 1 | .swiper { 2 | width: 100%; 3 | } 4 | .swiper-item-images { 5 | width: 100%; 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/add/admin_product_add.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/search/search.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "navigationBarTitleText": "搜索" 5 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/about/index/about_index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "enablePullDownRefresh": true 5 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/search/search.wxss: -------------------------------------------------------------------------------- 1 | @import "../../style/skin.wxss"; 2 | @import "../../../../style/project/search_style.wxss"; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/public/constants.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // 首页推荐 3 | SETUP_HOME_VOUCH_KEY : 'SETUP_HOME_VOUCH_KEY', 4 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/poster_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "poster": "./wxa-plugin-canvas/poster" 5 | } 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/床.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/床.png -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/public/project_config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // ## 缓存相关 3 | CACHE_CALENDAR_TIME: 60 * 30, //日历缓存 4 | 5 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/images/friend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/cmpts/public/poster/images/friend.png -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/images/wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/cmpts/public/poster/images/wechat.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/location.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/冰箱.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/冰箱.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/宽带.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/宽带.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/微波炉.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/微波炉.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/桌椅.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/桌椅.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/沙发.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/沙发.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/洗衣机.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/洗衣机.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/热水器.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/热水器.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/电脑.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/电脑.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/电视机.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/电视机.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/空调.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/空调.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/type/衣柜.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/type/衣柜.png -------------------------------------------------------------------------------- /miniprogram/cmpts/biz/detail/detail_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "cmpt-poster": "/cmpts/public/poster/poster_cmpt" 5 | } 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/tabbar/my.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/tabbar/my.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/about/index/about_index.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../../../style/public/detail.wxss"; 2 | @import "../../../style/skin.wxss"; 3 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/fav/my_fav.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "enablePullDownRefresh": true, 4 | "navigationBarTitleText": "我的收藏" 5 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/foot/my_foot.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "enablePullDownRefresh": true, 4 | "navigationBarTitleText": "历史浏览" 5 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/tabbar/my_cur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/tabbar/my_cur.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/tabbar/product.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/tabbar/product.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/index/my_index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | 4 | }, 5 | "enablePullDownRefresh": true, 6 | "navigationBarTitleText": "我的" 7 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/product/index/product_index.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "disableScroll": true, 5 | "navigationBarTitleText": "租房" 6 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/wxa-plugin-canvas/poster/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "we-canvas": "../index/index" 5 | } 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/images/tabbar/product_cur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangbingbing2022/SmartRent/HEAD/miniprogram/projects/renthouse/images/tabbar/product_cur.png -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/user/detail/admin_user_detail.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | .main-admin { 4 | padding: 30rpx 0rpx; 5 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "permissions": { 3 | "openapi": ["wxacode.getUnlimited", "security.imgSecCheck", "security.msgSecCheck","serviceMarket.invokeService"] 4 | } 5 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_show/content/form_show_content.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-editor": "/cmpts/public/editor/editor_cmpt" 4 | }, 5 | "navigationBarTitleText": "详细内容" 6 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/wxa-plugin-canvas/poster/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /cloudfunctions/mcloud/index.js: -------------------------------------------------------------------------------- 1 | const application = require('./framework/core/application.js'); 2 | 3 | // 云函数入口函数 4 | exports.main = async (event, context) => { 5 | return await application.app(event, context); 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/fav/my_fav.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../../../style/public/article_list.wxss"; 2 | @import "../../../style/skin.wxss"; 3 | @import "../../../../../style/project/my_fav_style.wxss"; -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/foot/my_foot.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../../../style/public/article_list.wxss"; 2 | @import "../../../style/skin.wxss"; 3 | @import "../../../../../style/project/my_foot_style.wxss"; -------------------------------------------------------------------------------- /miniprogram/sitemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", 3 | "rules": [{ 4 | "action": "disallow", 5 | "page": "*" 6 | }] 7 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows 2 | [Dd]esktop.ini 3 | Thumbs.db 4 | $RECYCLE.BIN/ 5 | 6 | # macOS 7 | .DS_Store 8 | .fseventsd 9 | .Spotlight-V100 10 | .TemporaryItems 11 | .Trashes 12 | 13 | # Node.js 14 | node_modules/ 15 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/add/admin_mgr_add.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "navigationBarBackgroundColor": "#2499f2", 4 | "navigationBarTextStyle": "white", 5 | "navigationBarTitleText": "添加管理员" 6 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/utils/constant.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 通用常量定义 3 | * Ver : CCMiniCloud Framework 2.32.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2020-09-05 04:00:00 5 | */ 6 | module.exports = { 7 | 8 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/list/admin_mgr_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "navigationBarBackgroundColor": "#2499f2", 4 | "navigationBarTextStyle": "white", 5 | "navigationBarTitleText": "管理员管理" 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/pwd/admin_mgr_pwd.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "navigationBarBackgroundColor": "#2499f2", 4 | "navigationBarTextStyle": "white", 5 | "navigationBarTitleText": "管理员密码修改" 6 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/list/admin_product_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "navigationBarBackgroundColor": "#2499f2", 5 | "navigationBarTextStyle": "white", 6 | "disableScroll": true 7 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/reg/my_reg.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-form-show": "/cmpts/public/form/form_show/form_show_cmpt" 4 | }, 5 | "enablePullDownRefresh": true, 6 | "navigationBarTitleText": "注册" 7 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/edit/my_edit.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-form-show": "/cmpts/public/form/form_show/form_show_cmpt" 4 | }, 5 | "enablePullDownRefresh": true, 6 | "navigationBarTitleText": "个人资料" 7 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker_multi/picker_multi_cmpt.wxss: -------------------------------------------------------------------------------- 1 | .picker-cmpt { 2 | line-height: 100rpx; 3 | font-size: 28rpx; 4 | text-overflow: ellipsis; 5 | white-space: nowrap; 6 | overflow: hidden; 7 | width: 100%; 8 | text-align: right; 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/log/admin_log_list.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | page { 4 | background-color: #f8f8f8; 5 | } 6 | 7 | .admin-comm-list .item .info { 8 | padding: 15rpx 20rpx 0rpx; 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/user/list/admin_user_list.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | page { 4 | background-color: #f8f8f8; 5 | } 6 | 7 | .admin-comm-list .item .info .oprt { 8 | padding: 0rpx 0rpx; 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/list/admin_product_list.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | @import '../../../../../../style/project/admin_list_style.wxss'; 3 | 4 | page { 5 | background-color: #f8f8f8; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/wxa-plugin-canvas/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/edit/admin_mgr_edit.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": {}, 3 | "navigationBarBackgroundColor": "#2499f2", 4 | "navigationBarTextStyle": "white", 5 | "enablePullDownRefresh": true, 6 | "navigationBarTitleText": "修改管理员" 7 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/mgr/log/admin_log_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | }, 4 | "navigationBarBackgroundColor": "#2499f2", 5 | "navigationBarTextStyle": "white", 6 | "disableScroll": true, 7 | "navigationBarTitleText": "后台-操作日志" 8 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/index/login/admin_login.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-foot": "/cmpts/biz/foot/foot_cmpt" 4 | }, 5 | "disableScroll": true, 6 | "navigationBarBackgroundColor": "#ffffff", 7 | "navigationBarTextStyle": "black" 8 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/user/list/admin_user_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "disableScroll": true, 8 | "navigationBarTitleText": "用户管理" 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/add/admin_product_add.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/qr/admin_setup_qr.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "enablePullDownRefresh": true, 8 | "navigationBarTitleText": "小程序码" 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/user/detail/admin_user_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "enablePullDownRefresh": true, 8 | "navigationBarTitleText": "用户详情" 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/user/export/admin_user_export.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "enablePullDownRefresh": true, 8 | "navigationBarTitleText": "用户资料导出" 9 | } -------------------------------------------------------------------------------- /miniprogram/tpls/public/top_tpl.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/cmpts/biz/foot/foot_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | © {{company}} 3 | {{ver}} 4 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_show/form_show_cmpt.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "cmpt-checkbox": "/cmpts/public/checkbox/checkbox_cmpt", 5 | "cmpt-radio": "/cmpts/public/radio/radio_cmpt", 6 | "cmpt-img-upload": "/cmpts/public/img/img_upload_cmpt" 7 | } 8 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/content/admin_content.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-editor": "/cmpts/public/editor/editor_cmpt" 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "navigationBarTitleText": "后台-详细内容编辑" 8 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/about_list/admin_setup_about_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "enablePullDownRefresh": true, 8 | "navigationBarTitleText": "单页文章" 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/index/home/admin_home.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-foot": "/cmpts/biz/foot/foot_cmpt" 4 | }, 5 | "enablePullDownRefresh": true, 6 | "navigationBarBackgroundColor": "#2499f2", 7 | "navigationBarTextStyle": "white", 8 | "navigationBarTitleText": "后台管理" 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/user/export/admin_user_export.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | .form-box .title-desc { 4 | padding-bottom: 10rpx; 5 | border: 0; 6 | font-size: 29rpx; 7 | color: #888; 8 | } 9 | 10 | .btn-admin{ 11 | margin-bottom: 20rpx; 12 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/fav/my_fav.js: -------------------------------------------------------------------------------- 1 | const behavior = require('../../../../../comm/behavior/my_fav_bh.js'); 2 | const ProjectBiz = require('../../../biz/project_biz.js'); 3 | 4 | Page({ 5 | 6 | behaviors: [behavior], 7 | 8 | onReady: function () { 9 | ProjectBiz.initPage(this); 10 | }, 11 | }) -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/foot/my_foot.js: -------------------------------------------------------------------------------- 1 | const behavior = require('../../../../../comm/behavior/my_foot_bh.js'); 2 | const ProjectBiz = require('../../../biz/project_biz.js'); 3 | 4 | Page({ 5 | 6 | behaviors: [behavior], 7 | 8 | onReady: function () { 9 | ProjectBiz.initPage(this); 10 | }, 11 | }) -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/about/admin_setup_about.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-editor": "/cmpts/public/editor/editor_cmpt" 4 | }, 5 | "navigationBarBackgroundColor": "#2499f2", 6 | "navigationBarTextStyle": "white", 7 | "enablePullDownRefresh": true, 8 | "navigationBarTitleText": "编辑" 9 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/biz/foot/foot_cmpt.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../style/public/project.wxss"; 2 | 3 | .site-footer { 4 | width: 100%; 5 | display: flex; 6 | flex-direction: column; 7 | justify-content: center; 8 | align-items: center; 9 | font-size: 24rpx; 10 | color: #aaa; 11 | margin-top: 20rpx; 12 | margin-bottom: 20rpx; 13 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/edit/my_edit.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../style/skin.wxss"; 2 | .submit-line { 3 | width: 100%; 4 | } 5 | 6 | .form-group .mobile { 7 | flex: 1; 8 | text-align: left; 9 | } 10 | 11 | .submit-line { 12 | width: 100%; 13 | } 14 | 15 | .form-group .mobile { 16 | flex: 1; 17 | text-align: left; 18 | } -------------------------------------------------------------------------------- /miniprogram/style/project/admin_list_style.wxss: -------------------------------------------------------------------------------- 1 | 2 | .admin-comm-list .item .info .oprt { 3 | padding: 0rpx 0rpx; 4 | display: flex; 5 | justify-content: space-between; 6 | } 7 | 8 | .admin-comm-list .item .info .oprt .btn { 9 | width: 155rpx; 10 | margin-right: 0rpx !important; 11 | height: 60rpx !important; 12 | padding: 0 0rpx; 13 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker_time/picker_time_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 10 | 11 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/reg/my_reg.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../style/skin.wxss"; 2 | .submit-line { 3 | width: 100%; 4 | } 5 | 6 | .form-group .mobile { 7 | flex: 1; 8 | text-align: left; 9 | } 10 | 11 | .submit-line { 12 | width: 100%; 13 | } 14 | 15 | .form-group .mobile { 16 | flex: 1; 17 | text-align: left; 18 | font-size:28rpx; 19 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/add/admin_product_add.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-img-upload": "/cmpts/public/img/img_upload_cmpt", 4 | "cmpt-form-show": "/cmpts/public/form/form_show/form_show_cmpt" 5 | }, 6 | "navigationBarBackgroundColor": "#2499f2", 7 | "navigationBarTextStyle": "white", 8 | "enablePullDownRefresh": true 9 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/edit/admin_product_edit.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-img-upload": "/cmpts/public/img/img_upload_cmpt", 4 | "cmpt-form-show": "/cmpts/public/form/form_show/form_show_cmpt" 5 | }, 6 | "navigationBarBackgroundColor": "#2499f2", 7 | "navigationBarTextStyle": "white", 8 | "enablePullDownRefresh": true 9 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/img/img_upload_cmpt.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../style/base/comm.wxss"; 2 | @import "../../../style/public/project.wxss"; 3 | 4 | .form-group .upload-img .img-no { 5 | position: absolute; 6 | right: 0; 7 | bottom: 0; 8 | border-top-left-radius: 6rpx; 9 | padding: 6rpx 12rpx; 10 | height: 35rpx; 11 | opacity: .9; 12 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_set/field/form_set_field.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-picker-multi": "/cmpts/public/picker_multi/picker_multi_cmpt" 4 | }, 5 | "navigationBarBackgroundColor": "#ffffff", 6 | "navigationBarTextStyle": "black", 7 | "enablePullDownRefresh": true, 8 | "backgroundTextStyle": "dark", 9 | "navigationBarTitleText": "后台-字段添加" 10 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/product/edit/admin_product_edit.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/wxa-plugin-canvas/index/index.wxss: -------------------------------------------------------------------------------- 1 | .canvas { 2 | width: 750rpx; 3 | height: 750rpx; 4 | } 5 | .canvas.pro { 6 | position: absolute; 7 | bottom: 0; 8 | left: 0; 9 | transform: translate3d(-9999rpx, 0, 0); 10 | } 11 | .canvas.debug { 12 | position: absolute; 13 | bottom: 0; 14 | left: 0; 15 | border: 1rpx solid #ccc; 16 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/platform/model/base_model.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 实体基类 3 | * Date: 2021-03-15 19:20:00 4 | * Ver : CCMiniCloud Framework 2.0.6 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | 8 | const MultiModel = require('../../../framework/database/multi_model.js'); 9 | 10 | class BaseModel extends MultiModel { 11 | 12 | } 13 | 14 | module.exports = BaseModel; -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/product/detail/product_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "cmpt-custom-nav": "/cmpts/public/custom_nav/custom_nav_cmpt", 4 | "cmpt-swiper": "/cmpts/public/swiper/swiper_cmpt", 5 | "cmpt-detail": "/cmpts/biz/detail/detail_cmpt" 6 | }, 7 | "enablePullDownRefresh": true, 8 | "navigationStyle": "custom", 9 | "navigationBarTitleText": "详情" 10 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/about_list/admin_setup_about_list.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | page { 4 | background-color: #f8f8f8; 5 | } 6 | 7 | .main-admin { 8 | padding: 40rpx 0; 9 | } 10 | 11 | .admin-comm-list .item { 12 | margin-bottom: 40rpx; 13 | } 14 | 15 | .admin-comm-list .item .header .left { 16 | font-size: 32rpx !important; 17 | } -------------------------------------------------------------------------------- /project.private.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "setting": { 3 | "compileHotReLoad": true, 4 | "urlCheck": false 5 | }, 6 | "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", 7 | "projectname": "%E7%A7%9F%E6%88%BF%E5%B0%8F%E7%A8%8B%E5%BA%8Fgitee", 8 | "condition": {}, 9 | "libVersion": "2.17.0" 10 | } -------------------------------------------------------------------------------- /miniprogram/comm/constants.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 通用常量 3 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2020-11-14 07:48:00 5 | */ 6 | 7 | module.exports = { 8 | CACHE_TOKEN: 'CACHE_TOKEN', // 登录 9 | CACHE_TOKEN_EXPIRE: 86400, //登录有效时间 秒 10 | 11 | CACHE_ADMIN: 'ADMIN_TOKEN', // 管理员登录 12 | ADMIN_TOKEN_EXPIRE: 3600 * 2, //管理员过期时间2小时有效 秒 13 | 14 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/about/admin_setup_about.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | .main-admin { 4 | width: 100%; 5 | box-sizing: border-box; 6 | padding: 30rpx 20rpx; 7 | padding-bottom: 200rpx; 8 | } 9 | 10 | .form-group { 11 | padding: 1rpx 1rpx; 12 | overflow: hidden; 13 | } 14 | 15 | .btn-bottom-admin>view { 16 | width: 100%; 17 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/controller/my_controller.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 用户中心模块控制器 3 | * Date: 2021-03-15 19:20:00 4 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | const BaseProjectController = require('./base_project_controller.js'); 8 | 9 | class MyController extends BaseProjectController { 10 | 11 | } 12 | 13 | module.exports = MyController; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/model/base_project_model.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 实体ORM基类 3 | * Date: 2022-03-15 19:20:00 4 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | 8 | const BaseModel = require('../../../framework/platform/model/base_model.js'); 9 | 10 | class BaseProjectModel extends BaseModel { 11 | 12 | 13 | } 14 | 15 | module.exports = BaseProjectModel; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/core/app_code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 错误代码定义 3 | * Ver : CCMiniCloud Framework 2.4.1 ALL RIGHTS RESERVED BY Cclinux0730 (wechat) 4 | * Date: 2020-09-05 04:00:00 5 | */ 6 | module.exports = { 7 | SUCC: 200, 8 | SVR: 500, // 服务器错误 9 | LOGIC: 1600, //逻辑错误 10 | DATA: 1301, // 数据校验错误 11 | HEADER: 1302, // header 校验错误 12 | 13 | 14 | //2000开始为业务错误代码, 15 | 16 | ADMIN_ERROR: 2401 //管理员错误 17 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/edit/my_edit.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/my/reg/my_reg.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /miniprogram/style/base/nav.wxss: -------------------------------------------------------------------------------- 1 | 2 | /* ================== 3 | 导航栏 4 | ==================== */ 5 | 6 | .tab { 7 | white-space: nowrap; 8 | } 9 | 10 | ::-webkit-scrollbar { 11 | display: none; 12 | } 13 | 14 | .tab .item { 15 | height: 90rpx; 16 | display: inline-block; 17 | line-height: 90rpx; 18 | margin: 0 10rpx; 19 | padding: 0 20rpx; 20 | } 21 | 22 | .tab .item.cur { 23 | border-bottom: 4rpx solid; 24 | } 25 | 26 | -------------------------------------------------------------------------------- /cloudfunctions/mcloud/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cloud", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "dependencies": { 12 | "date-utils": "^1.2.21", 13 | "mysql": "^2.18.1", 14 | "node-xlsx": "^0.16.1", 15 | "wx-server-sdk": "~2.1.2" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /miniprogram/tpls/wxs/tools.wxs: -------------------------------------------------------------------------------- 1 | function indexOf(data, key) { 2 | return data.indexOf(key); 3 | } 4 | 5 | function includes(data, key) { 6 | return data.indexOf(key) > -1 ? true : false; 7 | } 8 | 9 | function split(str, chr) { 10 | var arr = str.split(chr); 11 | if (arr.length == 0) return []; 12 | 13 | return arr; 14 | } 15 | 16 | module.exports = { 17 | split: split, 18 | indexOf: indexOf, 19 | includes: includes 20 | }; 21 | module.exports.msg = "hello tools"; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/core/app_error.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 应用异常处理类 3 | * Ver : CCMiniCloud Framework 2.5.1 ALL RIGHTS RESERVED BY cClinux0730 (wechat) 4 | * Date: 2020-09-05 04:00:00 5 | */ 6 | 7 | 8 | const appCode = require('./app_code.js'); 9 | 10 | class AppError extends Error { 11 | constructor(message, code = appCode.LOGIC) { 12 | super(message); 13 | this.name = 'AppError'; 14 | this.code = code; 15 | } 16 | } 17 | 18 | module.exports = AppError; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/cloud/cloud_base.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 云初始化实例 3 | * Ver : CCMiniCloud Framework 2.2.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2020-09-05 04:00:00 5 | */ 6 | 7 | const config = require('../../config/config.js'); 8 | 9 | /** 10 | * 获得云实例 11 | */ 12 | function getCloud() { 13 | const cloud = require('wx-server-sdk'); 14 | cloud.init({ 15 | env: config.CLOUD_ID 16 | }); 17 | return cloud; 18 | } 19 | 20 | module.exports = { 21 | getCloud 22 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_show/content/form_show_content.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 不保存,返回 11 | 保存 12 | -------------------------------------------------------------------------------- /miniprogram/style/base/comm.wxss: -------------------------------------------------------------------------------- 1 | @import "base.wxss"; 2 | 3 | @import "avatar.wxss"; 4 | @import "background.wxss"; 5 | @import "bar.wxss"; 6 | @import "border.wxss"; 7 | @import "button.wxss"; 8 | @import "image.wxss"; 9 | @import "modal.wxss"; 10 | @import "nav.wxss"; 11 | @import "shadow.wxss"; 12 | @import "tag.wxss"; 13 | @import "icon.wxss"; 14 | @import "form.wxss"; 15 | @import "text.wxss"; 16 | @import "list.wxss"; 17 | @import "load.wxss"; 18 | @import "layout.wxss"; 19 | @import "animation.wxss"; -------------------------------------------------------------------------------- /miniprogram/cmpts/public/radio/radio_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /miniprogram/setting/setting.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | //### 环境相关 3 | CLOUD_ID: 'init-5go8b8pdc98ea814', //云服务id ,本地测试环境 4 | 5 | // #### 版本信息 6 | VER: 'build 2022.09.18', 7 | COMPANY: '联系作者', 8 | 9 | // #### 系统参数 10 | IS_SUB: false, //分包模式 11 | IS_DEMO: false, //是否演示版 12 | 13 | MOBILE_CHECK: false, //手机号码是否真实性校验 14 | 15 | 16 | //################# 17 | IMG_UPLOAD_SIZE: 20, //图片上传大小M兆 18 | 19 | // #### 缓存相关 20 | CACHE_IS_LIST: true, //列表是否缓存 21 | CACHE_LIST_TIME: 60 * 30, //列表缓存时间秒 22 | 23 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/calendar/date_select/date_select_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | {{month||'2022年'}} 3 | 4 | 5 | {{item.week}} 6 | {{item.show}} 7 | 8 | 9 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/about/index/about_index.js: -------------------------------------------------------------------------------- 1 | const behavior = require('../../../../../comm/behavior/about_bh.js'); 2 | const ProjectBiz = require('../../../biz/project_biz.js'); 3 | const projectSetting = require('../../../public/project_setting.js'); 4 | 5 | Page({ 6 | 7 | behaviors: [behavior], 8 | 9 | /** 10 | * 生命周期函数--监听页面加载 11 | */ 12 | onLoad: async function (options) { 13 | ProjectBiz.initPage(this); 14 | 15 | if (options && options.key) 16 | this._loadDetail(options.key, projectSetting.SETUP_CONTENT_ITEMS); 17 | }, 18 | 19 | }) -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/content/admin_content.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 不保存,返回 12 | 保存 13 | 14 | 15 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/custom_nav/custom_nav_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/checkbox/checkbox_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/about/admin_setup_about.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 保存修改 13 | 14 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_set/field/form_set_field.wxss: -------------------------------------------------------------------------------- 1 | .main { 2 | margin-bottom: 150rpx; 3 | } 4 | 5 | .oprt { 6 | display: flex; 7 | width: 100%; 8 | justify-content: space-around; 9 | } 10 | 11 | .oprt button { 12 | width: 45%; 13 | } 14 | 15 | .select-close { 16 | width: 60rpx; 17 | font-size: 40rpx !important; 18 | font-weight: bold; 19 | text-align: right; 20 | } 21 | 22 | .title-desc { 23 | padding-left: 24rpx; 24 | color: #aaa; 25 | padding-bottom: 30rpx; 26 | border-bottom: 1rpx solid #eee; 27 | } 28 | 29 | .title-info { 30 | margin-left: 4rpx; 31 | color: #aaa; 32 | font-weight: normal; 33 | font-size: 24rpx; 34 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/controller/base_project_controller.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 本业务基本控制器 3 | * Date: 2021-03-15 19:20:00 4 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | const BaseController = require('../../../framework/platform/controller/base_controller.js'); 8 | const BaseProjectService = require('../service/base_project_service.js'); 9 | 10 | class BaseProjectController extends BaseController { 11 | 12 | // TODO 13 | async initSetup() { 14 | let service = new BaseProjectService(); 15 | await service.initSetup(); 16 | } 17 | } 18 | 19 | module.exports = BaseProjectController; -------------------------------------------------------------------------------- /miniprogram/cmpts/public/custom_nav/custom_nav_cmpt.wxss: -------------------------------------------------------------------------------- 1 | .bar { 2 | display: flex; 3 | position: relative; 4 | align-items: center; 5 | min-height: 100rpx; 6 | justify-content: space-between; 7 | } 8 | 9 | .custom { 10 | display: block; 11 | position: fixed; 12 | width:100%; 13 | z-index: 99999; 14 | } 15 | .custom .title{ 16 | color:#fff; 17 | } 18 | .custom .bar { 19 | width:100%; 20 | min-height: 0px; 21 | padding-right: 220rpx; 22 | box-shadow: 0rpx 0rpx 0rpx; 23 | z-index: 9999; 24 | } 25 | 26 | .custom .bar .content { 27 | width: 100%; 28 | } 29 | 30 | 31 | .custom .bar .content image { 32 | height: 60rpx; 33 | width: 240rpx; 34 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/search/search.js: -------------------------------------------------------------------------------- 1 | const behavior = require('../../../../comm/behavior/search_bh.js'); 2 | const ProjectBiz = require('../../biz/project_biz.js'); 3 | const pageHelper = require('../../../../helper/page_helper.js'); 4 | 5 | Page({ 6 | 7 | behaviors: [behavior], 8 | 9 | onReady: function () { 10 | ProjectBiz.initPage(this); 11 | 12 | 13 | let curPage = pageHelper.getPrevPage(1); 14 | if (!curPage) return; 15 | if (curPage.options && curPage.options.source == 'admin') { 16 | wx.setNavigationBarColor({ //管理端顶部 17 | backgroundColor: '#2499f2', 18 | frontColor: '#ffffff', 19 | }); 20 | } 21 | 22 | }, 23 | 24 | }) -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/service/home_service.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 全局/首页模块业务逻辑 3 | * Date: 2021-03-15 04:00:00 4 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | const BaseProjectService = require('./base_project_service.js'); 8 | const setupUtil = require('../../../framework/utils/setup/setup_util.js'); 9 | const constants = require('../public/constants.js'); 10 | 11 | class HomeService extends BaseProjectService { 12 | 13 | async getSetup(key) { 14 | return await setupUtil.get(key); 15 | } 16 | 17 | /**首页列表 */ 18 | async getHomeList() { 19 | 20 | } 21 | } 22 | 23 | module.exports = HomeService; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/controller/admin/base_project_admin_controller.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 后台管理控制模块 3 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2021-03-15 19:20:00 5 | */ 6 | 7 | const BaseAdminController = require('../../../../framework/platform/controller/base_admin_controller.js'); 8 | const BaseProjectService = require('../../service/base_project_service.js'); 9 | 10 | class BaseProjectAdminController extends BaseAdminController { 11 | // TODO 12 | async initSetup() { 13 | let service = new BaseProjectService(); 14 | await service.initSetup(); 15 | } 16 | 17 | } 18 | 19 | module.exports = BaseProjectAdminController; -------------------------------------------------------------------------------- /miniprogram/cmpts/public/swiper/swiper_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /cloudfunctions/mcloud/config/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | //### 环境相关 4 | CLOUD_ID: 'init-5go8b8pdc98ea814', //你的云环境id 5 | 6 | // ################################################################## 7 | COLLECTION_PRFIX: 'bx_', 8 | 9 | IS_DEMO: false, //是否演示版 (后台不可操作提交动作) 10 | // ################################################################## 11 | // #### 调试相关 12 | TEST_MODE: false, // 测试模式 涉及小程序码生成路径, 用以下 TEST_TOKEN_ID openid.. 13 | TEST_TOKEN_ID: 'oD58U5Ej-gK0BjqSspqjQEPgXuQQ', 14 | 15 | 16 | // #### 内容安全 17 | CLIENT_CHECK_CONTENT: false, //前台图片文字是否校验 18 | ADMIN_CHECK_CONTENT: false, //后台图片文字是否校验 19 | 20 | // ### 后台业务相关 21 | ADMIN_LOGIN_EXPIRE: 86400, //管理员token过期时间 (秒) 22 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/core/app_other.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 云函数非标业务处理 3 | * Ver : CCMiniCloud Framework 2.6.1 ALL RIGHTS RESERVED BY ccLinux@qq.com 4 | * Date: 2021-10-21 04:00:00 5 | */ 6 | 7 | function handlerOther(event) { 8 | let isOther = false; 9 | 10 | if (!event) return { 11 | isOther, 12 | eventX 13 | }; 14 | 15 | // 公众号事件处理 16 | if (event['FromUserName'] && event['MsgType']) { 17 | console.log('公众号事件处理'); 18 | let ret = { 19 | route: 'oa/serve', 20 | params: event 21 | } 22 | return { 23 | isOther: true, 24 | eventX: ret 25 | }; 26 | } 27 | 28 | return { 29 | isOther, 30 | eventX: event 31 | }; 32 | } 33 | 34 | 35 | module.exports = { 36 | handlerOther, 37 | } -------------------------------------------------------------------------------- /miniprogram/tpls/project/my_foot_tpl.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 暂无记录哦~ 4 | 5 | 6 | 7 | {{item.title}} 8 | 9 | {{item.type}} 10 | {{item.time}} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/form/form_show/content/form_show_content.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../style/public/admin.wxss'; 2 | 3 | .main-admin { 4 | width: 100%; 5 | box-sizing: border-box; 6 | padding: 30rpx 20rpx; 7 | padding-bottom: 200rpx; 8 | } 9 | 10 | .form-group { 11 | padding: 1rpx 1rpx; 12 | overflow: hidden; 13 | } 14 | 15 | .oprt { 16 | display: flex; 17 | width: 100%; 18 | justify-content: space-around; 19 | } 20 | 21 | .oprt button { 22 | width: 45%; 23 | } 24 | 25 | .bottom-oprt { 26 | position: fixed; 27 | bottom: 0; 28 | height: 130rpx; 29 | background-color: #f8f8f8; 30 | display: flex; 31 | justify-content: space-around; 32 | align-items: center; 33 | border-top: 1rpx solid #ccc; 34 | z-index: 99999; 35 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/content/admin_content.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../style/public/admin.wxss'; 2 | 3 | .main-admin { 4 | width: 100%; 5 | box-sizing: border-box; 6 | padding: 30rpx 20rpx; 7 | padding-bottom: 200rpx; 8 | } 9 | 10 | .form-group { 11 | padding: 1rpx 1rpx; 12 | overflow: hidden; 13 | } 14 | 15 | .oprt { 16 | display: flex; 17 | width: 100%; 18 | justify-content: space-around; 19 | } 20 | 21 | .oprt button { 22 | width: 45%; 23 | } 24 | 25 | .bottom-oprt { 26 | position: fixed; 27 | bottom: 0; 28 | height: 130rpx; 29 | background-color: #f8f8f8; 30 | display: flex; 31 | justify-content: space-around; 32 | align-items: center; 33 | border-top: 1rpx solid #ccc; 34 | z-index: 99999; 35 | } -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/qr/admin_setup_qr.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 放在推广的地方展示 10 | 11 | 12 | 长按图片保存小程序码 13 | 14 | 《{{title}}》小程序码 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /miniprogram/tpls/public/list_load_tpl.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker/picker_cmpt.wxss: -------------------------------------------------------------------------------- 1 | .picker-cmpt { 2 | line-height: 100rpx; 3 | font-size: 28rpx; 4 | text-overflow: ellipsis; 5 | white-space: nowrap; 6 | overflow: hidden; 7 | width: 100%; 8 | text-align: right; 9 | padding-right: 40rpx; 10 | } 11 | 12 | .disabled { 13 | background-color: #eee; 14 | color:#999; 15 | } 16 | 17 | .picker-cmpt::before { 18 | position: absolute; 19 | top: 0; 20 | right: 30rpx; 21 | bottom: 0; 22 | display: block; 23 | margin: auto; 24 | width: 30rpx; 25 | height: 30rpx; 26 | color: var(--grey); 27 | content: "\e6a3"; 28 | text-align: center; 29 | font-size: 34rpx; 30 | font-family: "icon"; 31 | line-height: 30rpx; 32 | margin-top: auto; 33 | margin-right: auto; 34 | margin-bottom: auto; 35 | margin-left: auto; 36 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/poster/wxa-plugin-canvas/poster/poster.js: -------------------------------------------------------------------------------- 1 | const defaultOptions = { 2 | selector: '#poster' 3 | }; 4 | 5 | function Poster(options = {}, that) { 6 | options = { 7 | ...defaultOptions, 8 | ...options, 9 | }; 10 | 11 | const pages = getCurrentPages(); 12 | let ctx = pages[pages.length - 1]; 13 | if (that) ctx = that 14 | const poster = ctx.selectComponent(options.selector); 15 | delete options.selector; 16 | 17 | return poster; 18 | }; 19 | 20 | Poster.create = (reset = false, that) => { 21 | const poster = Poster({}, that); 22 | if (!poster) { 23 | console.error('请设置组件的id="poster"!!!'); 24 | } else { 25 | return Poster({}, that).onCreate(reset); 26 | } 27 | } 28 | 29 | export default Poster; 30 | -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/controller/check_controller.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 内容检测控制器 3 | * Date: 2021-03-15 19:20:00 4 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | const BaseProjectController = require('./base_project_controller.js'); 8 | const contentCheck = require('../../framework/validate/content_check.js'); 9 | 10 | class CheckController extends BaseProjectController { 11 | 12 | /** 13 | * 图片校验 14 | */ 15 | async checkImg() { 16 | 17 | // 数据校验 18 | let rules = { 19 | img: 'name=img', 20 | mine: 'must|default=jpg', 21 | }; 22 | 23 | // 取得数据 24 | let input = this.validateData(rules); 25 | 26 | return await contentCheck.checkImg(input.img, 'jpg'); 27 | 28 | } 29 | 30 | } 31 | 32 | module.exports = CheckController; -------------------------------------------------------------------------------- /miniprogram/pages/test1/test1.js: -------------------------------------------------------------------------------- 1 | // pages/test1/test1.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | 9 | }, 10 | 11 | /** 12 | * 生命周期函数--监听页面加载 13 | */ 14 | onLoad(options) { 15 | 16 | }, 17 | 18 | /** 19 | * 生命周期函数--监听页面初次渲染完成 20 | */ 21 | onReady() { 22 | 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面显示 27 | */ 28 | onShow() { 29 | 30 | }, 31 | 32 | /** 33 | * 生命周期函数--监听页面隐藏 34 | */ 35 | onHide() { 36 | 37 | }, 38 | 39 | /** 40 | * 生命周期函数--监听页面卸载 41 | */ 42 | onUnload() { 43 | 44 | }, 45 | 46 | /** 47 | * 页面相关事件处理函数--监听用户下拉动作 48 | */ 49 | onPullDownRefresh() { 50 | 51 | }, 52 | 53 | /** 54 | * 页面上拉触底事件的处理函数 55 | */ 56 | onReachBottom() { 57 | 58 | }, 59 | 60 | /** 61 | * 用户点击右上角分享 62 | */ 63 | onShareAppMessage() { 64 | 65 | } 66 | }) -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/about_list/admin_setup_about_list.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 《{{item.title}}》 7 | 8 | 编辑 9 | 10 | 预览 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/setup/qr/admin_setup_qr.wxss: -------------------------------------------------------------------------------- 1 | @import '../../../../../../style/public/admin.wxss'; 2 | 3 | .load.loading::after { 4 | content: "小程序码生成中..."; 5 | } 6 | 7 | .form-box .checkin { 8 | width: 100%; 9 | padding: 40rpx 40rpx 80rpx; 10 | padding-bottom: 150rpx; 11 | display: flex; 12 | flex-direction: column; 13 | justify-content: flex-start; 14 | align-items: center; 15 | } 16 | 17 | .form-box .checkin .notice { 18 | width: 100%; 19 | font-size: 36rpx; 20 | text-align: center; 21 | color: #000; 22 | margin-bottom: 30rpx; 23 | } 24 | 25 | .form-box .checkin image { 26 | width: 500rpx; 27 | height: 500rpx; 28 | margin: 30rpx 0rpx; 29 | } 30 | 31 | .form-box .checkin .oprt { 32 | margin-top: 0rpx; 33 | text-align: center; 34 | font-size: 30rpx; 35 | color: var(--adminColor); 36 | padding: 20rpx 10rpx; 37 | } -------------------------------------------------------------------------------- /miniprogram/style/base/image.wxss: -------------------------------------------------------------------------------- 1 | 2 | /* ================== 3 | 图片 4 | ==================== */ 5 | 6 | image { 7 | max-width: 100%; 8 | display: inline-block; 9 | position: relative; 10 | z-index: 0; 11 | } 12 | 13 | image.loading::before { 14 | content: ""; 15 | background-color: #f5f5f5; 16 | display: block; 17 | position: absolute; 18 | width: 100%; 19 | height: 100%; 20 | z-index: -2; 21 | } 22 | 23 | image.loading::after { 24 | content: "\e7f1"; 25 | font-family: "icon"; 26 | position: absolute; 27 | top: 0; 28 | left: 0; 29 | width: 32rpx; 30 | height: 32rpx; 31 | line-height: 32rpx; 32 | right: 0; 33 | bottom: 0; 34 | z-index: -1; 35 | font-size: 32rpx; 36 | margin: auto; 37 | color: #ccc; 38 | -webkit-animation: icon-spin 2s infinite linear; 39 | animation: icon-spin 2s infinite linear; 40 | display: block; 41 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/calendar/time_select/time_select_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{item.title}} 6 | {{item.usedText}} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 确认预约 ({{selectedStart}}~{{selectedEndPoint}}) 14 | -------------------------------------------------------------------------------- /miniprogram/tpls/public/admin_forms_detail_tpl.wxml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /miniprogram/cmpts/public/picker/picker_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{options[idx].label || noDataHint}} 4 | {{options[idx] || noDataHint}} 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{multiDesc || noDataHint}} 12 | 13 | 14 | -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/utils/math_util.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 数学计算相关操作函数 3 | * Ver : CCMiniCloud Framework 2.35.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2021-10-04 04:00:00 5 | */ 6 | 7 | 8 | /** 获取百分比, 保留2位小数 */ 9 | function percent(num1, num2) { 10 | return Math.round(num1 / num2 * 10000) / 100.00; 11 | } 12 | 13 | /** 数组对象排序 */ 14 | function arrayObjecSortAsc(property) { 15 | return function (a, b) { 16 | var value1 = a[property]; 17 | var value2 = b[property]; 18 | return value1 - value2; 19 | } 20 | } 21 | 22 | /** 数组对象排序 */ 23 | function arrayObjecSortDesc(property) { 24 | return function (a, b) { 25 | var value1 = a[property]; 26 | var value2 = b[property]; 27 | return value2 - value1; 28 | } 29 | } 30 | 31 | module.exports = { 32 | percent, // 百分比,保留2位小数 33 | arrayObjecSortAsc, // 数组对象排序 34 | arrayObjecSortDesc, // 数组对象排序 35 | } -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/controller/home_controller.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 全局或者主页模块控制器 3 | * Date: 2020-11-05 10:20:00 4 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 5 | */ 6 | 7 | const BaseProjectController = require('./base_project_controller.js'); 8 | const HomeService = require('../service/home_service.js'); 9 | 10 | class HomeController extends BaseProjectController { 11 | 12 | async getSetup() { 13 | // 数据校验 14 | let rules = { 15 | key: 'must|string|name=KEY', 16 | }; 17 | 18 | // 取得数据 19 | let input = this.validateData(rules); 20 | 21 | let service = new HomeService(); 22 | return await service.getSetup(input.key); 23 | 24 | } 25 | 26 | 27 | /** 首页推荐列表 */ 28 | async getHomeList() { 29 | let service = new HomeService(); 30 | return await service.getHomeList(); 31 | } 32 | 33 | } 34 | 35 | module.exports = HomeController; -------------------------------------------------------------------------------- /cloudfunctions/mcloud/project/renthouse/model/fav_model.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 收藏实体 3 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2022-05-24 19:20:00 5 | */ 6 | 7 | 8 | const BaseProjectModel = require('./base_project_model.js'); 9 | 10 | class FavModel extends BaseProjectModel { 11 | 12 | } 13 | 14 | // 集合名 15 | FavModel.CL = BaseProjectModel.C('fav'); 16 | 17 | FavModel.DB_STRUCTURE = { 18 | _pid: 'string|true', 19 | FAV_ID: 'string|true', 20 | 21 | FAV_USER_ID: 'string|true', 22 | 23 | FAV_TITLE: 'string|true|comment=标题', 24 | FAV_TYPE: 'string|true|comment=类型', 25 | FAV_OID: 'string|true|comment=相关表主键', 26 | FAV_PATH: 'string|true|comment=路径', 27 | 28 | FAV_ADD_TIME: 'int|true', 29 | FAV_EDIT_TIME: 'int|true', 30 | FAV_ADD_IP: 'string|false', 31 | FAV_EDIT_IP: 'string|false', 32 | }; 33 | 34 | // 字段前缀 35 | FavModel.FIELD_PREFIX = "FAV_"; 36 | 37 | module.exports = FavModel; -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/biz/project_biz.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 项目通用业务逻辑 3 | * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2022-05-22 07:48:00 5 | */ 6 | 7 | const BaseBiz = require('../../../comm/biz/base_biz.js'); 8 | const projectSetting = require('../public/project_setting.js'); 9 | const PubilcBiz = require('../../../comm/biz/public_biz.js'); 10 | const PassportBiz = require('../../../comm/biz/passport_biz.js'); 11 | 12 | class ProjectBiz extends BaseBiz { 13 | 14 | /** 15 | * 页面初始化 16 | * @param {*} that 17 | */ 18 | static initPage(that, { isSetNavColor = true } = {}) { 19 | 20 | let skin = {}; 21 | skin.NAV_BG = projectSetting.NAV_BG; 22 | skin.NAV_COLOR = projectSetting.NAV_COLOR; 23 | skin.PROJECT_COLOR = projectSetting.PROJECT_COLOR; 24 | 25 | PubilcBiz.initPageBase(that, { skin, isSetNavColor }); 26 | } 27 | 28 | } 29 | 30 | module.exports = ProjectBiz; -------------------------------------------------------------------------------- /miniprogram/helper/form_helper.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 表单通用类库 3 | * Ver : CCMiniCloud Framework 2.8.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2021-02-28 07:48:00 5 | */ 6 | 7 | 8 | /** 9 | * model变表单 10 | * @param {*} model 11 | */ 12 | function model2Form(model) { 13 | let newModel = {}; 14 | for (let key in model) { 15 | let arr = key.split('_'); 16 | let result = ''; 17 | for (let i = 1; i < arr.length; i++) { 18 | let name = arr[i].toLowerCase(); 19 | name = name.charAt(0).toUpperCase() + name.slice(1); 20 | result = result + name; 21 | } 22 | 23 | newModel['form' + result] = model[key]; 24 | } 25 | return newModel; 26 | } 27 | 28 | // picker表单赋值到页面data 29 | function setOptions(that, options, name, val) { 30 | let idx = options.indexOf(val); 31 | idx = (idx < 0) ? 0 : idx; 32 | that.setData({ 33 | [name]: idx 34 | }) 35 | } 36 | 37 | module.exports = { 38 | model2Form, 39 | setOptions 40 | } -------------------------------------------------------------------------------- /miniprogram/cmpts/public/table/table_cmpt.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ item.label }} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {{it[head["prop"]]}} 16 | 17 | 18 | 19 | 20 | 21 | {{ msg }} 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /cloudfunctions/mcloud/framework/utils/util.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Notes: 通用工具函数 3 | * Ver : CCMiniCloud Framework 2.38.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat) 4 | * Date: 2020-09-05 04:00:00 5 | */ 6 | 7 | function getProjectId() { 8 | if (global.PID) 9 | return global.PID; 10 | else 11 | return 'ONE'; 12 | } 13 | 14 | /** 15 | * 判断变量,参数,对象属性是否定义 16 | * @param {*} val 17 | */ 18 | function isDefined(val) { 19 | // == 不能判断是否为null 20 | if (val === undefined) 21 | return false; 22 | else 23 | return true; 24 | } 25 | 26 | /** 27 | * 判断对象是否为空 28 | * @param {*} obj 29 | */ 30 | function isObjectNull(obj) { 31 | return (Object.keys(obj).length == 0); 32 | } 33 | 34 | 35 | 36 | /** 37 | * 休眠时间,配合await使用 38 | * @param {*} time 毫秒 39 | */ 40 | function sleep(time) { 41 | return new Promise((resolve) => setTimeout(resolve, time)); 42 | }; 43 | 44 | 45 | 46 | 47 | module.exports = { 48 | getProjectId, 49 | isDefined, //判断变量,参数,对象属性是否定义 50 | sleep, 51 | isObjectNull, 52 | 53 | } -------------------------------------------------------------------------------- /miniprogram/app.js: -------------------------------------------------------------------------------- 1 | const setting = require('./setting/setting.js'); 2 | 3 | App({ 4 | onLaunch: function (options) { 5 | 6 | if (!wx.cloud) { 7 | console.error('请使用 2.2.3 或以上的基础库以使用云能力') 8 | } else { 9 | wx.cloud.init({ 10 | // env 参数说明: 11 | // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源 12 | // 此处请填入环境 ID, 环境 ID 可打开云控制台查看 13 | // 如不填则使用默认环境(第一个创建的环境) 14 | // env: 'my-env-id', 15 | env: setting.CLOUD_ID, 16 | traceUser: true, 17 | }) 18 | } 19 | 20 | this.globalData = {}; 21 | 22 | // 用于自定义导航栏 23 | wx.getSystemInfo({ 24 | success: e => { 25 | this.globalData.statusBarHeight = e.statusBarHeight; 26 | let capsule = wx.getMenuButtonBoundingClientRect(); 27 | if (capsule) { 28 | this.globalData.customBarHeight = capsule.bottom + capsule.top - e.statusBarHeight; 29 | this.globalData.capsule = capsule; 30 | } else { 31 | this.globalData.customBarHeight = e.statusBarHeight + 50; 32 | 33 | } 34 | } 35 | }); 36 | }, 37 | 38 | }) -------------------------------------------------------------------------------- /miniprogram/projects/renthouse/pages/admin/index/login/admin_login.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /miniprogram/tpls/project/news_index_tpl.wxml: -------------------------------------------------------------------------------- 1 |