mm_os 2.8.9 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cache/sys/main/config.json +1 -0
- package/cache/user/main/config.json +1 -0
- package/core/com/sql/drive.js +6 -6
- package/core/com/static/drive.js +22 -18
- package/core/com/static/index.js +1 -1
- package/demo/app/dev/LICENSE +201 -0
- package/demo/app/dev/README.md +1 -0
- package/demo/app/dev/app.js +147 -0
- package/demo/app/dev/app.json +12 -0
- package/demo/app/dev/event_api/client/event.json +10 -0
- package/demo/app/dev/event_api/client/main.js +17 -0
- package/demo/app/dev/plugin/main/api_dev_client/api/api.json +10 -0
- package/demo/app/dev/plugin/main/api_dev_client/api/index.js +54 -0
- package/demo/app/dev/plugin/main/api_dev_client/api/param.json +31 -0
- package/demo/app/dev/plugin/main/api_dev_client/com.js +348 -0
- package/demo/app/dev/plugin/main/api_dev_client/event/api.json +10 -0
- package/demo/app/dev/plugin/main/api_dev_client/event/index.js +31 -0
- package/demo/app/dev/plugin/main/api_dev_client/event/param.json +31 -0
- package/demo/app/sys/.gitmodules +3 -0
- package/demo/app/sys/LICENSE +201 -0
- package/demo/app/sys/README.md +1 -0
- package/demo/app/sys/app.js +148 -0
- package/demo/app/sys/app.json +10 -0
- package/demo/app/sys/event_api/api/after.js +12 -0
- package/demo/app/sys/event_api/api/before.js +78 -0
- package/demo/app/sys/event_api/api/check.js +56 -0
- package/demo/app/sys/event_api/api/event.json +41 -0
- package/demo/app/sys/event_api/api/main.js +17 -0
- package/demo/app/sys/event_api/apis/before.js +76 -0
- package/demo/app/sys/event_api/apis/event.json +21 -0
- package/demo/app/sys/event_api/apis/main.js +17 -0
- package/demo/app/sys/event_api/client/event.json +10 -0
- package/demo/app/sys/event_api/client/main.js +15 -0
- package/demo/app/sys/event_api/manage/event.json +10 -0
- package/demo/app/sys/event_api/manage/main.js +15 -0
- package/demo/app/sys/event_api/upload/event.json +10 -0
- package/demo/app/sys/event_api/upload/main.js +15 -0
- package/demo/app/sys/event_api/web/check.js +34 -0
- package/demo/app/sys/event_api/web/event.json +39 -0
- package/demo/app/sys/event_api/web/main.js +36 -0
- package/demo/app/sys/event_api/ws/event.json +10 -0
- package/demo/app/sys/event_api/ws/main.js +15 -0
- package/demo/app/sys/plugin/main/api_client/activation/api.json +29 -0
- package/demo/app/sys/plugin/main/api_client/activation/index.js +185 -0
- package/demo/app/sys/plugin/main/api_client/activation/param.json +56 -0
- package/demo/app/sys/plugin/main/api_client/app_balance/api.json +18 -0
- package/demo/app/sys/plugin/main/api_client/app_balance/index.js +61 -0
- package/demo/app/sys/plugin/main/api_client/app_balance/param.json +36 -0
- package/demo/app/sys/plugin/main/api_client/app_pay/api.json +23 -0
- package/demo/app/sys/plugin/main/api_client/app_pay/index.js +65 -0
- package/demo/app/sys/plugin/main/api_client/app_pay/param.json +61 -0
- package/demo/app/sys/plugin/main/api_client/app_state/api.json +27 -0
- package/demo/app/sys/plugin/main/api_client/app_state/index.js +46 -0
- package/demo/app/sys/plugin/main/api_client/app_state/param.json +36 -0
- package/demo/app/sys/plugin/main/api_client/component/api.json +27 -0
- package/demo/app/sys/plugin/main/api_client/component/index.js +331 -0
- package/demo/app/sys/plugin/main/api_client/config/api.json +37 -0
- package/demo/app/sys/plugin/main/api_client/config/index.js +36 -0
- package/demo/app/sys/plugin/main/api_client/config/param.json +27 -0
- package/demo/app/sys/plugin/main/api_client/download/api.json +37 -0
- package/demo/app/sys/plugin/main/api_client/download/index.js +60 -0
- package/demo/app/sys/plugin/main/api_client/download/param.json +34 -0
- package/demo/app/sys/plugin/main/api_client/install/api.json +24 -0
- package/demo/app/sys/plugin/main/api_client/install/index.js +216 -0
- package/demo/app/sys/plugin/main/api_client/install/param.json +64 -0
- package/demo/app/sys/plugin/main/api_client/nav/api.json +15 -0
- package/demo/app/sys/plugin/main/api_client/nav/index.js +37 -0
- package/demo/app/sys/plugin/main/api_client/nav/param.json +87 -0
- package/demo/app/sys/plugin/main/api_client/overview/api.json +24 -0
- package/demo/app/sys/plugin/main/api_client/overview/index.js +29 -0
- package/demo/app/sys/plugin/main/api_client/overview/param.json +130 -0
- package/demo/app/sys/plugin/main/api_client/overview/sql.json +70 -0
- package/demo/app/sys/plugin/main/api_client/query/api.json +35 -0
- package/demo/app/sys/plugin/main/api_client/query/index.js +48 -0
- package/demo/app/sys/plugin/main/api_client/theme/api.json +37 -0
- package/demo/app/sys/plugin/main/api_client/theme/index.js +30 -0
- package/demo/app/sys/plugin/main/api_client/theme/param.json +31 -0
- package/demo/app/sys/plugin/main/api_client/version/api.json +29 -0
- package/demo/app/sys/plugin/main/api_client/version/index.js +132 -0
- package/demo/app/sys/plugin/main/api_client/version/param.json +130 -0
- package/demo/app/sys/plugin/main/api_client/zip/api.json +31 -0
- package/demo/app/sys/plugin/main/api_client/zip/index.js +29 -0
- package/demo/app/sys/plugin/main/api_client/zip/param.json +48 -0
- package/demo/app/sys/plugin/main/api_sys_client/count/api.json +27 -0
- package/demo/app/sys/plugin/main/api_sys_client/count/index.js +73 -0
- package/demo/app/sys/plugin/main/api_sys_client/lang/api.json +37 -0
- package/demo/app/sys/plugin/main/api_sys_client/lang/index.js +28 -0
- package/demo/app/sys/plugin/main/api_sys_client/lang/param.json +22 -0
- package/demo/app/sys/plugin/main/api_sys_client/log/api.json +29 -0
- package/demo/app/sys/plugin/main/api_sys_client/log/index.js +42 -0
- package/demo/app/sys/plugin/main/api_sys_client/log/param.json +130 -0
- package/demo/app/sys/plugin/main/api_sys_client/options/api.json +30 -0
- package/demo/app/sys/plugin/main/api_sys_client/options/index.js +28 -0
- package/demo/app/sys/plugin/main/api_sys_client/options/param.json +130 -0
- package/demo/app/sys/plugin/main/api_sys_client/query/api.json +35 -0
- package/demo/app/sys/plugin/main/api_sys_client/query/index.js +48 -0
- package/demo/app/sys/plugin/main/api_sys_client/theme/api.json +37 -0
- package/demo/app/sys/plugin/main/api_sys_client/theme/index.js +30 -0
- package/demo/app/sys/plugin/main/api_sys_client/theme/param.json +31 -0
- package/demo/app/sys/plugin/main/api_sys_web/index/api.json +37 -0
- package/demo/app/sys/plugin/main/api_sys_web/index/index.js +26 -0
- package/demo/app/sys/plugin/main/api_upload/chunk/api.json +29 -0
- package/demo/app/sys/plugin/main/api_upload/chunk/index.js +38 -0
- package/demo/app/sys/plugin/main/api_upload/chunk/param.json +27 -0
- package/demo/app/sys/plugin/main/api_upload/delete/api.json +29 -0
- package/demo/app/sys/plugin/main/api_upload/delete/index.js +38 -0
- package/demo/app/sys/plugin/main/api_upload/delete/param.json +27 -0
- package/demo/app/sys/plugin/main/api_upload/file/api.json +15 -0
- package/demo/app/sys/plugin/main/api_upload/file/index.js +114 -0
- package/demo/app/sys/plugin/main/api_upload/file/param.json +9 -0
- package/demo/app/sys/plugin/main/api_upload/image/api.json +16 -0
- package/demo/app/sys/plugin/main/api_upload/image/index.js +45 -0
- package/demo/app/sys/plugin/main/api_upload/image/param.json +9 -0
- package/demo/app/sys/plugin/main/api_upload/merge/api.json +29 -0
- package/demo/app/sys/plugin/main/api_upload/merge/index.js +38 -0
- package/demo/app/sys/plugin/main/api_upload/merge/param.json +27 -0
- package/demo/app/sys/plugin/main/api_upload/video/api.json +29 -0
- package/demo/app/sys/plugin/main/api_upload/video/index.js +48 -0
- package/demo/app/sys/plugin/main/api_upload/video/param.json +25 -0
- package/demo/app/sys/plugin/main/index.js +127 -0
- package/demo/app/sys/plugin/main/plugin.json +19 -0
- package/demo/app/sys/plugin/main/static/article_list.vue +488 -0
- package/demo/app/sys/plugin/main/static/img/logo.png +0 -0
- package/demo/app/sys/plugin/main/static/static.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_client/ad/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/ad/param.json +685 -0
- package/demo/app/sys/plugin/server/api_sys_client/ad/sql.json +114 -0
- package/demo/app/sys/plugin/server/api_sys_client/address_province/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/address_province/param.json +156 -0
- package/demo/app/sys/plugin/server/api_sys_client/address_province/sql.json +25 -0
- package/demo/app/sys/plugin/server/api_sys_client/app/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/app/param.json +437 -0
- package/demo/app/sys/plugin/server/api_sys_client/app/sql.json +71 -0
- package/demo/app/sys/plugin/server/api_sys_client/app_refresh/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/app_refresh/param.json +158 -0
- package/demo/app/sys/plugin/server/api_sys_client/app_refresh/sql.json +28 -0
- package/demo/app/sys/plugin/server/api_sys_client/block/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/block/param.json +318 -0
- package/demo/app/sys/plugin/server/api_sys_client/block/sql.json +48 -0
- package/demo/app/sys/plugin/server/api_sys_client/config/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/config/param.json +259 -0
- package/demo/app/sys/plugin/server/api_sys_client/config/sql.json +93 -0
- package/demo/app/sys/plugin/server/api_sys_client/file/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/file/param.json +268 -0
- package/demo/app/sys/plugin/server/api_sys_client/file/sql.json +30 -0
- package/demo/app/sys/plugin/server/api_sys_client/lang/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/lang/param.json +175 -0
- package/demo/app/sys/plugin/server/api_sys_client/lang/sql.json +40 -0
- package/demo/app/sys/plugin/server/api_sys_client/message/api.json +13 -0
- package/demo/app/sys/plugin/server/api_sys_client/message/index.js +31 -0
- package/demo/app/sys/plugin/server/api_sys_client/message/param.json +147 -0
- package/demo/app/sys/plugin/server/api_sys_client/message/sql.json +24 -0
- package/demo/app/sys/plugin/server/api_sys_client/nav/api.json +13 -0
- package/demo/app/sys/plugin/server/api_sys_client/nav/index.js +52 -0
- package/demo/app/sys/plugin/server/api_sys_client/nav/param.json +295 -0
- package/demo/app/sys/plugin/server/api_sys_client/nav/sql.json +63 -0
- package/demo/app/sys/plugin/server/api_sys_client/pay/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/pay/param.json +391 -0
- package/demo/app/sys/plugin/server/api_sys_client/pay/sql.json +76 -0
- package/demo/app/sys/plugin/server/api_sys_client/pay_type/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/pay_type/param.json +242 -0
- package/demo/app/sys/plugin/server/api_sys_client/pay_type/sql.json +74 -0
- package/demo/app/sys/plugin/server/api_sys_client/project/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/project/param.json +796 -0
- package/demo/app/sys/plugin/server/api_sys_client/project/sql.json +163 -0
- package/demo/app/sys/plugin/server/api_sys_client/recharge/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/recharge/param.json +311 -0
- package/demo/app/sys/plugin/server/api_sys_client/recharge/sql.json +102 -0
- package/demo/app/sys/plugin/server/api_sys_client/scene/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/scene/param.json +226 -0
- package/demo/app/sys/plugin/server/api_sys_client/scene/sql.json +49 -0
- package/demo/app/sys/plugin/server/api_sys_client/seo/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/seo/param.json +145 -0
- package/demo/app/sys/plugin/server/api_sys_client/seo/sql.json +49 -0
- package/demo/app/sys/plugin/server/api_sys_client/withdrawal/api.json +12 -0
- package/demo/app/sys/plugin/server/api_sys_client/withdrawal/param.json +378 -0
- package/demo/app/sys/plugin/server/api_sys_client/withdrawal/sql.json +92 -0
- package/demo/app/sys/plugin/server/api_sys_manage/ad/api.json +19 -0
- package/demo/app/sys/plugin/server/api_sys_manage/ad/index.js +27 -0
- package/demo/app/sys/plugin/server/api_sys_manage/ad/param.json +685 -0
- package/demo/app/sys/plugin/server/api_sys_manage/ad/sql.json +111 -0
- package/demo/app/sys/plugin/server/api_sys_manage/address_province/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/address_province/param.json +156 -0
- package/demo/app/sys/plugin/server/api_sys_manage/address_province/sql.json +23 -0
- package/demo/app/sys/plugin/server/api_sys_manage/app/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/app/param.json +437 -0
- package/demo/app/sys/plugin/server/api_sys_manage/app/sql.json +69 -0
- package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/param.json +158 -0
- package/demo/app/sys/plugin/server/api_sys_manage/app_refresh/sql.json +27 -0
- package/demo/app/sys/plugin/server/api_sys_manage/block/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/block/param.json +318 -0
- package/demo/app/sys/plugin/server/api_sys_manage/block/sql.json +47 -0
- package/demo/app/sys/plugin/server/api_sys_manage/config/api.json +19 -0
- package/demo/app/sys/plugin/server/api_sys_manage/config/index.js +35 -0
- package/demo/app/sys/plugin/server/api_sys_manage/config/param.json +261 -0
- package/demo/app/sys/plugin/server/api_sys_manage/config/sql.json +92 -0
- package/demo/app/sys/plugin/server/api_sys_manage/file/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/file/param.json +268 -0
- package/demo/app/sys/plugin/server/api_sys_manage/file/sql.json +29 -0
- package/demo/app/sys/plugin/server/api_sys_manage/lang/api.json +19 -0
- package/demo/app/sys/plugin/server/api_sys_manage/lang/index.js +27 -0
- package/demo/app/sys/plugin/server/api_sys_manage/lang/param.json +175 -0
- package/demo/app/sys/plugin/server/api_sys_manage/lang/sql.json +40 -0
- package/demo/app/sys/plugin/server/api_sys_manage/message/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/message/param.json +152 -0
- package/demo/app/sys/plugin/server/api_sys_manage/message/sql.json +21 -0
- package/demo/app/sys/plugin/server/api_sys_manage/nav/api.json +19 -0
- package/demo/app/sys/plugin/server/api_sys_manage/nav/index.js +27 -0
- package/demo/app/sys/plugin/server/api_sys_manage/nav/param.json +295 -0
- package/demo/app/sys/plugin/server/api_sys_manage/nav/sql.json +61 -0
- package/demo/app/sys/plugin/server/api_sys_manage/pay/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/pay/param.json +391 -0
- package/demo/app/sys/plugin/server/api_sys_manage/pay/sql.json +75 -0
- package/demo/app/sys/plugin/server/api_sys_manage/pay_type/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/pay_type/param.json +242 -0
- package/demo/app/sys/plugin/server/api_sys_manage/pay_type/sql.json +73 -0
- package/demo/app/sys/plugin/server/api_sys_manage/project/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/project/param.json +796 -0
- package/demo/app/sys/plugin/server/api_sys_manage/project/sql.json +162 -0
- package/demo/app/sys/plugin/server/api_sys_manage/recharge/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/recharge/param.json +311 -0
- package/demo/app/sys/plugin/server/api_sys_manage/recharge/sql.json +101 -0
- package/demo/app/sys/plugin/server/api_sys_manage/scene/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/scene/param.json +226 -0
- package/demo/app/sys/plugin/server/api_sys_manage/scene/sql.json +48 -0
- package/demo/app/sys/plugin/server/api_sys_manage/seo/api.json +19 -0
- package/demo/app/sys/plugin/server/api_sys_manage/seo/index.js +26 -0
- package/demo/app/sys/plugin/server/api_sys_manage/seo/param.json +145 -0
- package/demo/app/sys/plugin/server/api_sys_manage/seo/sql.json +48 -0
- package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/api.json +18 -0
- package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/param.json +378 -0
- package/demo/app/sys/plugin/server/api_sys_manage/withdrawal/sql.json +91 -0
- package/demo/app/sys/plugin/server/db/ad.db.json +622 -0
- package/demo/app/sys/plugin/server/db/address_province.db.json +82 -0
- package/demo/app/sys/plugin/server/db/app.db.json +369 -0
- package/demo/app/sys/plugin/server/db/app_refresh.db.json +117 -0
- package/demo/app/sys/plugin/server/db/block.db.json +352 -0
- package/demo/app/sys/plugin/server/db/config.db.json +226 -0
- package/demo/app/sys/plugin/server/db/file.db.json +172 -0
- package/demo/app/sys/plugin/server/db/lang.db.json +208 -0
- package/demo/app/sys/plugin/server/db/message.db.json +99 -0
- package/demo/app/sys/plugin/server/db/nav.db.json +298 -0
- package/demo/app/sys/plugin/server/db/pay.db.json +316 -0
- package/demo/app/sys/plugin/server/db/pay_type.db.json +226 -0
- package/demo/app/sys/plugin/server/db/project.db.json +622 -0
- package/demo/app/sys/plugin/server/db/recharge.db.json +226 -0
- package/demo/app/sys/plugin/server/db/scene.db.json +208 -0
- package/demo/app/sys/plugin/server/db/seo.db.json +136 -0
- package/demo/app/sys/plugin/server/db/withdrawal.db.json +298 -0
- package/demo/app/user/LICENSE +201 -0
- package/demo/app/user/app.js +144 -0
- package/demo/app/user/app.json +10 -0
- package/demo/app/user/event_api/client/event.json +10 -0
- package/demo/app/user/event_api/client/main.js +17 -0
- package/demo/app/user/event_api/manage/event.json +10 -0
- package/demo/app/user/event_api/manage/main.js +17 -0
- package/demo/app/user/event_api/web/event.json +20 -0
- package/demo/app/user/event_api/web/main.js +39 -0
- package/demo/app/user/plugin/main/api_user_client/account/api.json +41 -0
- package/demo/app/user/plugin/main/api_user_client/account/index.js +54 -0
- package/demo/app/user/plugin/main/api_user_client/account/param.json +130 -0
- package/demo/app/user/plugin/main/api_user_client/account/sql.json +70 -0
- package/demo/app/user/plugin/main/api_user_client/address_login/api.json +27 -0
- package/demo/app/user/plugin/main/api_user_client/address_login/index.js +35 -0
- package/demo/app/user/plugin/main/api_user_client/address_login/param.json +130 -0
- package/demo/app/user/plugin/main/api_user_client/base/api.json +27 -0
- package/demo/app/user/plugin/main/api_user_client/base/index.js +92 -0
- package/demo/app/user/plugin/main/api_user_client/base/param.json +130 -0
- package/demo/app/user/plugin/main/api_user_client/count/api.json +27 -0
- package/demo/app/user/plugin/main/api_user_client/count/chongzhi.js +103 -0
- package/demo/app/user/plugin/main/api_user_client/count/index.js +24 -0
- package/demo/app/user/plugin/main/api_user_client/count/param.json +40 -0
- package/demo/app/user/plugin/main/api_user_client/count/sql.json +70 -0
- package/demo/app/user/plugin/main/api_user_client/data_count/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_client/data_count/index.js +61 -0
- package/demo/app/user/plugin/main/api_user_client/email_code/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_client/email_code/email_code.js +300 -0
- package/demo/app/user/plugin/main/api_user_client/email_code/index.js +18 -0
- package/demo/app/user/plugin/main/api_user_client/email_code/param.json +56 -0
- package/demo/app/user/plugin/main/api_user_client/forgot/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_client/forgot/index.js +36 -0
- package/demo/app/user/plugin/main/api_user_client/forgot/param.json +57 -0
- package/demo/app/user/plugin/main/api_user_client/ip/api.json +39 -0
- package/demo/app/user/plugin/main/api_user_client/ip/index.js +43 -0
- package/demo/app/user/plugin/main/api_user_client/ip/param.json +130 -0
- package/demo/app/user/plugin/main/api_user_client/ip/sql.json +70 -0
- package/demo/app/user/plugin/main/api_user_client/message/api.json +29 -0
- package/demo/app/user/plugin/main/api_user_client/message/index.js +19 -0
- package/demo/app/user/plugin/main/api_user_client/message/param.json +36 -0
- package/demo/app/user/plugin/main/api_user_client/message/sql.json +21 -0
- package/demo/app/user/plugin/main/api_user_client/oauth/WXBizDataCrypt.js +33 -0
- package/demo/app/user/plugin/main/api_user_client/oauth/api.json +31 -0
- package/demo/app/user/plugin/main/api_user_client/oauth/index.js +16 -0
- package/demo/app/user/plugin/main/api_user_client/oauth/oauth.js +315 -0
- package/demo/app/user/plugin/main/api_user_client/oauth/oauth.json +88 -0
- package/demo/app/user/plugin/main/api_user_client/oauth/param.json +111 -0
- package/demo/app/user/plugin/main/api_user_client/password/api.json +21 -0
- package/demo/app/user/plugin/main/api_user_client/password/index.js +64 -0
- package/demo/app/user/plugin/main/api_user_client/password/param.json +45 -0
- package/demo/app/user/plugin/main/api_user_client/phone_code/aliyun.js +230 -0
- package/demo/app/user/plugin/main/api_user_client/phone_code/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_client/phone_code/index.js +18 -0
- package/demo/app/user/plugin/main/api_user_client/phone_code/param.json +58 -0
- package/demo/app/user/plugin/main/api_user_client/phone_code/phone_code.js +297 -0
- package/demo/app/user/plugin/main/api_user_client/realname/api.json +21 -0
- package/demo/app/user/plugin/main/api_user_client/realname/index.js +45 -0
- package/demo/app/user/plugin/main/api_user_client/realname/param.json +74 -0
- package/demo/app/user/plugin/main/api_user_client/servicer/api.json +29 -0
- package/demo/app/user/plugin/main/api_user_client/servicer/index.js +19 -0
- package/demo/app/user/plugin/main/api_user_client/servicer/param.json +41 -0
- package/demo/app/user/plugin/main/api_user_client/servicer/sql.json +113 -0
- package/demo/app/user/plugin/main/api_user_client/set_address/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_client/set_address/index.js +98 -0
- package/demo/app/user/plugin/main/api_user_client/set_address/param.json +165 -0
- package/demo/app/user/plugin/main/api_user_client/set_avatar/api.json +35 -0
- package/demo/app/user/plugin/main/api_user_client/set_avatar/index.js +77 -0
- package/demo/app/user/plugin/main/api_user_client/set_info/api.json +35 -0
- package/demo/app/user/plugin/main/api_user_client/set_info/index.js +44 -0
- package/demo/app/user/plugin/main/api_user_client/set_nickname/api.json +35 -0
- package/demo/app/user/plugin/main/api_user_client/set_nickname/index.js +46 -0
- package/demo/app/user/plugin/main/api_user_client/set_pay_password/api.json +21 -0
- package/demo/app/user/plugin/main/api_user_client/set_pay_password/index.js +64 -0
- package/demo/app/user/plugin/main/api_user_client/sign_address/api.json +39 -0
- package/demo/app/user/plugin/main/api_user_client/sign_address/index.js +114 -0
- package/demo/app/user/plugin/main/api_user_client/sign_address/param.json +130 -0
- package/demo/app/user/plugin/main/api_user_client/sign_address/sql.json +70 -0
- package/demo/app/user/plugin/main/api_user_client/sign_auto/api.json +29 -0
- package/demo/app/user/plugin/main/api_user_client/sign_auto/index.js +141 -0
- package/demo/app/user/plugin/main/api_user_client/sign_auto/param.json +42 -0
- package/demo/app/user/plugin/main/api_user_client/sign_in/api.json +11 -0
- package/demo/app/user/plugin/main/api_user_client/sign_in/index.js +274 -0
- package/demo/app/user/plugin/main/api_user_client/sign_in/param.json +125 -0
- package/demo/app/user/plugin/main/api_user_client/sign_in/state.js +37 -0
- package/demo/app/user/plugin/main/api_user_client/sign_out/api.json +9 -0
- package/demo/app/user/plugin/main/api_user_client/sign_out/index.js +28 -0
- package/demo/app/user/plugin/main/api_user_client/sign_up/api.json +12 -0
- package/demo/app/user/plugin/main/api_user_client/sign_up/index.js +189 -0
- package/demo/app/user/plugin/main/api_user_client/sign_up/param.json +83 -0
- package/demo/app/user/plugin/main/api_user_client/sign_up_in/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_client/sign_up_in/index.js +137 -0
- package/demo/app/user/plugin/main/api_user_client/sign_up_in/param.json +33 -0
- package/demo/app/user/plugin/main/api_user_client/state/api.json +9 -0
- package/demo/app/user/plugin/main/api_user_client/state/index.js +19 -0
- package/demo/app/user/plugin/main/api_user_client/token/api.json +25 -0
- package/demo/app/user/plugin/main/api_user_client/token/index.js +20 -0
- package/demo/app/user/plugin/main/api_user_client/token/param.json +16 -0
- package/demo/app/user/plugin/main/api_user_client/unsubscribe/api.json +29 -0
- package/demo/app/user/plugin/main/api_user_client/unsubscribe/index.js +91 -0
- package/demo/app/user/plugin/main/api_user_client/unsubscribe/param.json +71 -0
- package/demo/app/user/plugin/main/api_user_client/yun_avatar/api.json +31 -0
- package/demo/app/user/plugin/main/api_user_client/yun_avatar/index.js +56 -0
- package/demo/app/user/plugin/main/api_user_client/yun_avatar/param.json +50 -0
- package/demo/app/user/plugin/main/api_user_web/avatar/api.json +28 -0
- package/demo/app/user/plugin/main/api_user_web/avatar/index.js +51 -0
- package/demo/app/user/plugin/main/api_user_web/login/api.json +37 -0
- package/demo/app/user/plugin/main/api_user_web/login/index.js +12 -0
- package/demo/app/user/plugin/main/api_user_web/root/api.json +38 -0
- package/demo/app/user/plugin/main/api_user_web/root/index.js +67 -0
- package/demo/app/user/plugin/main/index.js +144 -0
- package/demo/app/user/plugin/main/plugin.json +20 -0
- package/demo/app/user/plugin/server/api_user_client/address/api.json +16 -0
- package/demo/app/user/plugin/server/api_user_client/address/index.js +79 -0
- package/demo/app/user/plugin/server/api_user_client/address/param.json +288 -0
- package/demo/app/user/plugin/server/api_user_client/address/sql.json +56 -0
- package/demo/app/user/plugin/server/api_user_client/count/api.json +12 -0
- package/demo/app/user/plugin/server/api_user_client/count/param.json +646 -0
- package/demo/app/user/plugin/server/api_user_client/count/sql.json +82 -0
- package/demo/app/user/plugin/server/api_user_client/info/api.json +16 -0
- package/demo/app/user/plugin/server/api_user_client/info/index.js +42 -0
- package/demo/app/user/plugin/server/api_user_client/info/param.json +531 -0
- package/demo/app/user/plugin/server/api_user_client/info/sql.json +84 -0
- package/demo/app/user/plugin/server/api_user_client/message/api.json +12 -0
- package/demo/app/user/plugin/server/api_user_client/message/param.json +366 -0
- package/demo/app/user/plugin/server/api_user_client/message/sql.json +88 -0
- package/demo/app/user/plugin/server/api_user_client/nation/api.json +12 -0
- package/demo/app/user/plugin/server/api_user_client/nation/param.json +74 -0
- package/demo/app/user/plugin/server/api_user_client/nation/sql.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/account/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/account/param.json +620 -0
- package/demo/app/user/plugin/server/api_user_manage/account/sql.json +105 -0
- package/demo/app/user/plugin/server/api_user_manage/address/api.json +19 -0
- package/demo/app/user/plugin/server/api_user_manage/address/index.js +57 -0
- package/demo/app/user/plugin/server/api_user_manage/address/param.json +288 -0
- package/demo/app/user/plugin/server/api_user_manage/address/sql.json +44 -0
- package/demo/app/user/plugin/server/api_user_manage/admin/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/admin/param.json +147 -0
- package/demo/app/user/plugin/server/api_user_manage/admin/sql.json +24 -0
- package/demo/app/user/plugin/server/api_user_manage/admin_log/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/admin_log/param.json +226 -0
- package/demo/app/user/plugin/server/api_user_manage/admin_log/sql.json +32 -0
- package/demo/app/user/plugin/server/api_user_manage/count/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/count/param.json +646 -0
- package/demo/app/user/plugin/server/api_user_manage/count/sql.json +72 -0
- package/demo/app/user/plugin/server/api_user_manage/group/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/group/param.json +187 -0
- package/demo/app/user/plugin/server/api_user_manage/group/sql.json +39 -0
- package/demo/app/user/plugin/server/api_user_manage/group_log/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/group_log/param.json +235 -0
- package/demo/app/user/plugin/server/api_user_manage/group_log/sql.json +32 -0
- package/demo/app/user/plugin/server/api_user_manage/info/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/info/param.json +531 -0
- package/demo/app/user/plugin/server/api_user_manage/info/sql.json +71 -0
- package/demo/app/user/plugin/server/api_user_manage/message/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/message/param.json +366 -0
- package/demo/app/user/plugin/server/api_user_manage/message/sql.json +75 -0
- package/demo/app/user/plugin/server/api_user_manage/nation/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/nation/param.json +74 -0
- package/demo/app/user/plugin/server/api_user_manage/nation/sql.json +16 -0
- package/demo/app/user/plugin/server/api_user_manage/state/api.json +18 -0
- package/demo/app/user/plugin/server/api_user_manage/state/param.json +98 -0
- package/demo/app/user/plugin/server/api_user_manage/state/sql.json +29 -0
- package/demo/app/user/plugin/server/db/account.db.json +460 -0
- package/demo/app/user/plugin/server/db/address.db.json +262 -0
- package/demo/app/user/plugin/server/db/admin.db.json +117 -0
- package/demo/app/user/plugin/server/db/admin_log.db.json +189 -0
- package/demo/app/user/plugin/server/db/count.db.json +298 -0
- package/demo/app/user/plugin/server/db/group.db.json +117 -0
- package/demo/app/user/plugin/server/db/group_log.db.json +190 -0
- package/demo/app/user/plugin/server/db/info.db.json +496 -0
- package/demo/app/user/plugin/server/db/message.db.json +262 -0
- package/demo/app/user/plugin/server/db/nation.db.json +46 -0
- package/demo/app/user/plugin/server/db/state.db.json +64 -0
- package/demo/config/development.json +109 -0
- package/demo/config/local.json +111 -0
- package/demo/config/lock.cache +5 -0
- package/demo/config/test.json +109 -0
- package/demo/config/tpl.json +107 -0
- package/demo/index.js +5 -3
- package/demo/static/file/image/1.png +0 -0
- package/index.js +7 -6
- package/middleware/cors/index.js +1 -1
- package/middleware/cors/middleware.json +3 -1
- package/middleware/log/index.js +1 -1
- package/middleware/log/middleware.json +1 -1
- package/middleware/mqtt_base/index.js +1 -1
- package/middleware/mqtt_base/middleware.json +3 -1
- package/middleware/waf/index.js +1 -1
- package/middleware/waf/middleware.json +1 -1
- package/middleware/waf_ip/index.js +1 -1
- package/middleware/waf_ip/middleware.json +1 -1
- package/middleware/web_after/index.js +20 -0
- package/middleware/web_after/middleware.json +9 -0
- package/middleware/web_base/index.js +1 -1
- package/middleware/web_base/middleware.json +1 -1
- package/middleware/web_before/index.js +27 -0
- package/middleware/web_before/middleware.json +9 -0
- package/middleware/web_check/index.js +22 -0
- package/middleware/web_check/middleware.json +9 -0
- package/middleware/web_main/index.js +22 -0
- package/middleware/web_main/middleware.json +9 -0
- package/middleware/web_proxy/index.js +1 -1
- package/middleware/web_proxy/middleware.json +1 -1
- package/middleware/web_render/index.js +81 -0
- package/middleware/web_render/middleware.json +9 -0
- package/middleware/web_socket/index.js +1 -1
- package/middleware/web_socket/middleware.json +1 -1
- package/middleware/web_static/index.js +1 -1
- package/middleware/web_static/middleware.json +1 -1
- package/package.json +2 -2
- package/middleware/web_event/index.js +0 -413
- package/middleware/web_event/middleware.json +0 -10
- package/middleware/web_router/index.js +0 -33
- package/middleware/web_router/middleware.json +0 -10
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileOverview app_admin
|
|
3
|
+
* @author <a href="作者主页地址">插件作者</a>
|
|
4
|
+
* @version 1.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 插件对象
|
|
9
|
+
*/
|
|
10
|
+
module.exports = {
|
|
11
|
+
/**
|
|
12
|
+
* 初始化
|
|
13
|
+
* @param {Object} option 配置参数
|
|
14
|
+
* @return {String} 成功返回null, 否则返回错误提示
|
|
15
|
+
*/
|
|
16
|
+
init(option) {
|
|
17
|
+
var msg = null;
|
|
18
|
+
return msg;
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 销毁
|
|
23
|
+
* @param {Object} opiton 配置参数
|
|
24
|
+
* @return {String} 成功返回null,否则返回错误提示
|
|
25
|
+
*/
|
|
26
|
+
destroy(option) {
|
|
27
|
+
var msg = null;
|
|
28
|
+
return msg;
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 安装
|
|
33
|
+
* @param {Object} option 配置参数
|
|
34
|
+
* @return {String} 成功返回null,否则返回错误提示
|
|
35
|
+
*/
|
|
36
|
+
install(option) {
|
|
37
|
+
var msg = null;
|
|
38
|
+
return msg;
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 卸载
|
|
43
|
+
* @param {Object} option 配置参数
|
|
44
|
+
* @return {String} 成功返回null,否则返回错误提示
|
|
45
|
+
*/
|
|
46
|
+
uninstall(option) {
|
|
47
|
+
var msg = null;
|
|
48
|
+
return msg;
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 更新
|
|
53
|
+
* @param {Object} option 配置参数
|
|
54
|
+
* @return {String} 成功返回null, 否则返回错误提示
|
|
55
|
+
*/
|
|
56
|
+
update(option) {
|
|
57
|
+
var msg = null;
|
|
58
|
+
return msg;
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 启动
|
|
63
|
+
* @param {Object} opiton 配置参数
|
|
64
|
+
* @return {String} 成功返回null,否则返回错误提示
|
|
65
|
+
*/
|
|
66
|
+
start(option) {
|
|
67
|
+
var msg = null;
|
|
68
|
+
return msg;
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 暂停
|
|
73
|
+
* @param {Object} opiton 配置参数
|
|
74
|
+
* @return {String} 成功返回null,否则返回错误提示
|
|
75
|
+
*/
|
|
76
|
+
stop(option) {
|
|
77
|
+
var msg = null;
|
|
78
|
+
return msg;
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 结束
|
|
83
|
+
* @param {Object} opiton 配置参数
|
|
84
|
+
* @return {String} 成功返回null,否则返回错误提示
|
|
85
|
+
*/
|
|
86
|
+
end(option) {
|
|
87
|
+
var msg = null;
|
|
88
|
+
return msg;
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 插件
|
|
93
|
+
* @param {String} item 插件项
|
|
94
|
+
* @return {Object} 旗下插件和信息
|
|
95
|
+
*/
|
|
96
|
+
help(item) {
|
|
97
|
+
var tip = "";
|
|
98
|
+
switch (item) {
|
|
99
|
+
case "run":
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
return tip;
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 主程序
|
|
109
|
+
* @param {Object} param1 参数1
|
|
110
|
+
* @param {Object} param2 参数2
|
|
111
|
+
* @return {Object} 返回执行结果
|
|
112
|
+
*/
|
|
113
|
+
main(param1, param2) {
|
|
114
|
+
var ret = null;
|
|
115
|
+
return ret;
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 指令(类似命令提示符)
|
|
120
|
+
* @param {String} content 指令内容
|
|
121
|
+
* @return {String} 执行结果
|
|
122
|
+
*/
|
|
123
|
+
cmd(content) {
|
|
124
|
+
var ret = "";
|
|
125
|
+
return ret;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": "sys",
|
|
3
|
+
"name": "main",
|
|
4
|
+
"title": "系统核心插件",
|
|
5
|
+
"description": "用于管理应用、插件、任务等",
|
|
6
|
+
"version": "1.0",
|
|
7
|
+
"author": "系统",
|
|
8
|
+
"web": "https://www.fman.top",
|
|
9
|
+
"state": 1,
|
|
10
|
+
"show": 0,
|
|
11
|
+
"func_file": "./index.js",
|
|
12
|
+
"func_name": "",
|
|
13
|
+
"lang_path": "/sys/main/lang/",
|
|
14
|
+
"icon": "/img/logo_web.png",
|
|
15
|
+
"cmd": "sys.main",
|
|
16
|
+
"end": true,
|
|
17
|
+
"sort": 10,
|
|
18
|
+
"options": []
|
|
19
|
+
}
|
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="page_root root_article_list">
|
|
3
|
+
<page_head>
|
|
4
|
+
<text>资讯教程</text>
|
|
5
|
+
</page_head>
|
|
6
|
+
|
|
7
|
+
<!-- 搜索栏(开始) -->
|
|
8
|
+
<view id="bar_search">
|
|
9
|
+
<view class="mm_container">
|
|
10
|
+
<view class="mm_row">
|
|
11
|
+
<view class="mm_col col-12 col-sm-6 col-md-4">
|
|
12
|
+
<view class="search">
|
|
13
|
+
<view class="group" @click="show = true">
|
|
14
|
+
<text
|
|
15
|
+
class="group_name">{{ $to_name(list_type, query.types, "type_id") || '全部' }}</text>
|
|
16
|
+
<image class="group_icon" src="/static/img/select_down.svg" mode="widthFix">
|
|
17
|
+
</image>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="input_box">
|
|
20
|
+
<view class="inputs">
|
|
21
|
+
<image mode="widthFix" class="search_img" src="/static/img/search.svg" />
|
|
22
|
+
<input v-model="query.keyword" placeholder="想找..." @keyup.enter="search()" />
|
|
23
|
+
<image mode="widthFix" class="search_del" src="/static/img/del.svg"
|
|
24
|
+
@click="query.keyword = '';search()" v-if="query.keyword" />
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
<view>
|
|
28
|
+
<view class="btn btn_link" @click="search()">搜索</view>
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
</view>
|
|
33
|
+
</view>
|
|
34
|
+
</view>
|
|
35
|
+
<!-- 搜索栏(结束) -->
|
|
36
|
+
|
|
37
|
+
<!-- 排序栏(开始) -->
|
|
38
|
+
<view class="mm_warp" id="bar_sort">
|
|
39
|
+
<view class="mm_container">
|
|
40
|
+
<view class="mm_row">
|
|
41
|
+
<view class="col-3">
|
|
42
|
+
<control_reverse title="时间" :value="query.orderby" field="time_create" :func="event_sort">
|
|
43
|
+
</control_reverse>
|
|
44
|
+
</view>
|
|
45
|
+
<view class="col-3">
|
|
46
|
+
<control_reverse title="热度" :value="query.orderby" field="hot" :func="event_sort">
|
|
47
|
+
</control_reverse>
|
|
48
|
+
</view>
|
|
49
|
+
<view class="col-3">
|
|
50
|
+
<control_reverse title="点赞" :value="query.orderby" field="praise" :func="event_sort">
|
|
51
|
+
</control_reverse>
|
|
52
|
+
</view>
|
|
53
|
+
<view class="col-3">
|
|
54
|
+
<view class="mode" @click="switch_mode()">
|
|
55
|
+
<view v-for="(o, i) in list_mode" :key="o.value" v-show="mode == o.value">
|
|
56
|
+
<image class="img" mode="widthFix" :src="'/static/img/mode/' + o.value + '.svg'">
|
|
57
|
+
</image>
|
|
58
|
+
<text>{{ o.name }}</text>
|
|
59
|
+
</view>
|
|
60
|
+
</view>
|
|
61
|
+
</view>
|
|
62
|
+
</view>
|
|
63
|
+
</view>
|
|
64
|
+
</view>
|
|
65
|
+
<!-- 排序栏(结束) -->
|
|
66
|
+
|
|
67
|
+
<ad_banner css="article_top" position="资源列表上方"></ad_banner>
|
|
68
|
+
|
|
69
|
+
<!-- 列表(开始) -->
|
|
70
|
+
<view class="mm_warp" id="main_list">
|
|
71
|
+
<view class="mm_container">
|
|
72
|
+
<view class="mm_row">
|
|
73
|
+
<view class="mm_col col-12" v-if="list.length">
|
|
74
|
+
<list_title path="/pages/cms/article_view" v-if="mode == 1" :type_id="query.type_id"
|
|
75
|
+
:list="list" field="article_id" />
|
|
76
|
+
<list_content path="/pages/cms/article_view" v-else-if="mode == 2" :type_id="query.type_id"
|
|
77
|
+
:list="list" field="article_id" />
|
|
78
|
+
<list_text_img path="/pages/cms/article_view" v-else-if="mode == 3" :type_id="query.type_id"
|
|
79
|
+
:list="list" field="article_id" />
|
|
80
|
+
<list_message path="/pages/cms/article_view" v-else-if="mode == 4" :type_id="query.type_id"
|
|
81
|
+
:list="list" field="article_id" />
|
|
82
|
+
<list_image path="/pages/cms/article_view" v-else-if="mode == 5" :type_id="query.type_id"
|
|
83
|
+
:list="list" field="article_id" />
|
|
84
|
+
<list_video path="/pages/cms/article_view" v-else-if="mode == 6" :type_id="query.type_id"
|
|
85
|
+
:list="list" field="article_id" />
|
|
86
|
+
</view>
|
|
87
|
+
<view class="mm_col col-12 center mt" v-else>
|
|
88
|
+
<text>没有相关内容</text>
|
|
89
|
+
</view>
|
|
90
|
+
</view>
|
|
91
|
+
</view>
|
|
92
|
+
</view>
|
|
93
|
+
<!-- 列表(结束) -->
|
|
94
|
+
|
|
95
|
+
<ad_banner css="article_bottom" position="资源列表下方"></ad_banner>
|
|
96
|
+
|
|
97
|
+
<!-- 选择分类 -->
|
|
98
|
+
<view class="mm_modal from_default modal_select" v-show="show">
|
|
99
|
+
<view class="mask" @click="close_show()"></view>
|
|
100
|
+
<view class="modal_main">
|
|
101
|
+
<view class="mm_card">
|
|
102
|
+
<view class="card_head">
|
|
103
|
+
<text>选择分类</text>
|
|
104
|
+
</view>
|
|
105
|
+
<view class="card_body">
|
|
106
|
+
<bar_filter :value="keyword" @input="event_filter"></bar_filter>
|
|
107
|
+
<view v-if="keyword">
|
|
108
|
+
<view class="mm_row row-3">
|
|
109
|
+
<view class="mm_col" v-for="(o, i) in types" :key="i">
|
|
110
|
+
<view class="item center" @click="select_type(o)">{{ o.name }}</view>
|
|
111
|
+
</view>
|
|
112
|
+
</view>
|
|
113
|
+
</view>
|
|
114
|
+
<view v-else>
|
|
115
|
+
<view class="mm_row row-3" v-for="(o, i) in types" :key="i">
|
|
116
|
+
<view class="mm_col col-12">
|
|
117
|
+
<view class="item_title" :class="{ active: query.types === o.type_id }"
|
|
118
|
+
@click="select_type(o)">{{ o.name }}</view>
|
|
119
|
+
</view>
|
|
120
|
+
<view class="mm_col" v-for="(t, n) in o.sub" :key="n">
|
|
121
|
+
<view class="item center" :class="{ active: t.type_id === query.types }"
|
|
122
|
+
@click="select_type(t)">
|
|
123
|
+
{{ t.name }}
|
|
124
|
+
</view>
|
|
125
|
+
</view>
|
|
126
|
+
</view>
|
|
127
|
+
<view class="mm_row row-3 row-all">
|
|
128
|
+
<view class="mm_col">
|
|
129
|
+
<view class="item center" :class="{ active: query.types === '' }"
|
|
130
|
+
@click="select_type({ type_id: '' })">全部</view>
|
|
131
|
+
</view>
|
|
132
|
+
</view>
|
|
133
|
+
</view>
|
|
134
|
+
</view>
|
|
135
|
+
<view class="card_foot pa">
|
|
136
|
+
<view class="btn btn_close" @click="close_show()">确定</view>
|
|
137
|
+
</view>
|
|
138
|
+
</view>
|
|
139
|
+
</view>
|
|
140
|
+
</view>
|
|
141
|
+
<!-- /选择分类 -->
|
|
142
|
+
|
|
143
|
+
<!-- 分页器 -->
|
|
144
|
+
<view class="mm_warp" id="pager">
|
|
145
|
+
<view class="mm_container">
|
|
146
|
+
<view class="mm_row">
|
|
147
|
+
<view class="mm_col col-12">
|
|
148
|
+
<control_pager :page="query.page" :size="query.size" :count="page_count" :func="event_page">
|
|
149
|
+
</control_pager>
|
|
150
|
+
</view>
|
|
151
|
+
</view>
|
|
152
|
+
</view>
|
|
153
|
+
</view>
|
|
154
|
+
<!-- /分页器 -->
|
|
155
|
+
</view>
|
|
156
|
+
</template>
|
|
157
|
+
|
|
158
|
+
<script>
|
|
159
|
+
import mixin_page from "@/mixins/page.js";
|
|
160
|
+
import bar_filter from "@/components/mm_uni_ui/bar/bar_filter.vue";
|
|
161
|
+
import control_pager from "@/components/mm_uni_ui/control/control_pager.vue";
|
|
162
|
+
|
|
163
|
+
import list_title from "@/components/mm_uni_ui/list/list_title.vue";
|
|
164
|
+
import list_text_img from "@/components/mm_uni_ui/list/list_text_img.vue";
|
|
165
|
+
import list_message from "@/components/mm_uni_ui/list/list_message.vue";
|
|
166
|
+
import list_content from "@/components/mm_uni_ui/list/list_content.vue";
|
|
167
|
+
import list_image from "@/components/mm_uni_ui/list/list_image.vue";
|
|
168
|
+
import list_video from "@/components/mm_uni_ui/list/list_video.vue";
|
|
169
|
+
|
|
170
|
+
export default {
|
|
171
|
+
components: {
|
|
172
|
+
bar_filter,
|
|
173
|
+
control_pager,
|
|
174
|
+
list_title,
|
|
175
|
+
list_text_img,
|
|
176
|
+
list_message,
|
|
177
|
+
list_content,
|
|
178
|
+
list_image,
|
|
179
|
+
list_video
|
|
180
|
+
},
|
|
181
|
+
mixins: [
|
|
182
|
+
mixin_page
|
|
183
|
+
],
|
|
184
|
+
data() {
|
|
185
|
+
return {
|
|
186
|
+
url_get_list: "~/api/cms/article?",
|
|
187
|
+
mode: 4,
|
|
188
|
+
config: {
|
|
189
|
+
page: 1,
|
|
190
|
+
size: 10
|
|
191
|
+
},
|
|
192
|
+
query: {
|
|
193
|
+
types: '',
|
|
194
|
+
page: 1,
|
|
195
|
+
size: 10,
|
|
196
|
+
keyword: "",
|
|
197
|
+
orderby: ""
|
|
198
|
+
},
|
|
199
|
+
list_mode: [{
|
|
200
|
+
name: "标题",
|
|
201
|
+
value: 1
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "摘要",
|
|
205
|
+
value: 2
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "图文",
|
|
209
|
+
value: 3
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "消息",
|
|
213
|
+
value: 4
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "图片",
|
|
217
|
+
value: 5
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "轮播",
|
|
221
|
+
value: 6
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
list_type: [],
|
|
225
|
+
list_group: [],
|
|
226
|
+
keyword: ""
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
computed: {
|
|
230
|
+
types() {
|
|
231
|
+
var list = this.list_type;
|
|
232
|
+
var arr = [];
|
|
233
|
+
if (this.keyword) {
|
|
234
|
+
for (var i = 0; i < list.length; i++) {
|
|
235
|
+
var o = list[i];
|
|
236
|
+
if (o.name.indexOf(this.keyword) !== -1) {
|
|
237
|
+
arr.push(o);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
} else {
|
|
241
|
+
arr = list.toTree('type_id', "00000");
|
|
242
|
+
}
|
|
243
|
+
return arr;
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
methods: {
|
|
247
|
+
event_page(page) {
|
|
248
|
+
this.query.page = page;
|
|
249
|
+
this.get_list();
|
|
250
|
+
},
|
|
251
|
+
event_filter(keyword) {
|
|
252
|
+
this.keyword = keyword;
|
|
253
|
+
},
|
|
254
|
+
event_sort(orderby) {
|
|
255
|
+
this.query.orderby = orderby;
|
|
256
|
+
this.search();
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
* 搜索
|
|
260
|
+
* @param {Object} query 查询条件
|
|
261
|
+
* @param {Boolean} bl 是否重置再搜索
|
|
262
|
+
*/
|
|
263
|
+
search(query, func) {
|
|
264
|
+
var query = query ? query : this.query;
|
|
265
|
+
if (query) {
|
|
266
|
+
uni.push(this.query, query);
|
|
267
|
+
}
|
|
268
|
+
var url = this.url_get_list ? this.url_get_list : this.url;
|
|
269
|
+
if (url) {
|
|
270
|
+
this.query.page = 1;
|
|
271
|
+
this.count = 0;
|
|
272
|
+
this.first(query, func);
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
close_show() {
|
|
276
|
+
this.keyword = "";
|
|
277
|
+
this.show = false;
|
|
278
|
+
this.search();
|
|
279
|
+
},
|
|
280
|
+
select_type(o) {
|
|
281
|
+
this.query.types = o.type_id;
|
|
282
|
+
},
|
|
283
|
+
switch_mode() {
|
|
284
|
+
var mode = this.mode;
|
|
285
|
+
if (this.mode < this.list_mode.length) {
|
|
286
|
+
mode++;
|
|
287
|
+
} else {
|
|
288
|
+
mode = 1;
|
|
289
|
+
}
|
|
290
|
+
this.mode = mode;
|
|
291
|
+
uni.db.set("mode", mode);
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
onLoad() {
|
|
295
|
+
this.mode = uni.db.get("mode") || 4;
|
|
296
|
+
},
|
|
297
|
+
onShow() {
|
|
298
|
+
this.$getList("list_type", "~/api/cms/article_type?show=1&available=1", (list) => {
|
|
299
|
+
return list;
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
</script>
|
|
304
|
+
|
|
305
|
+
<style>
|
|
306
|
+
#bar_search {
|
|
307
|
+
background-color: #ffffff;
|
|
308
|
+
border-bottom: 0.0625rem solid rgb(235,235,235);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
#bar_search .img {
|
|
312
|
+
width: 1.5rem;
|
|
313
|
+
float: left;
|
|
314
|
+
padding: .5rem;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
#bar_search .select_box {
|
|
318
|
+
position: relative;
|
|
319
|
+
float: left;
|
|
320
|
+
width: 5.75rem;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
#bar_search .inputs {
|
|
324
|
+
width: 100%;
|
|
325
|
+
position: relative;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
#bar_search .inputs .search_img {
|
|
329
|
+
position: absolute;
|
|
330
|
+
top: 50%;
|
|
331
|
+
left: 1rem;
|
|
332
|
+
transform: translate(0, -50%);
|
|
333
|
+
width: 1rem;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
#bar_search .inputs .search_del {
|
|
337
|
+
position: absolute;
|
|
338
|
+
top: 50%;
|
|
339
|
+
right: 1.25rem;
|
|
340
|
+
transform: translate(0, -50%);
|
|
341
|
+
width: 1.25rem;
|
|
342
|
+
width: 1rem;
|
|
343
|
+
z-index: 2;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
#bar_search .inputs .search_del:active {
|
|
347
|
+
filter: brightness(50%);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
#bar_search .inputs input {
|
|
351
|
+
height: 2rem;
|
|
352
|
+
line-height: 2rem;
|
|
353
|
+
padding: 0 1rem 0 2.25rem;
|
|
354
|
+
width: 100%;
|
|
355
|
+
border: 0.0625rem solid rgb(235,235,235);
|
|
356
|
+
border-radius: 2rem;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
#bar_search .input_box {
|
|
360
|
+
margin: auto;
|
|
361
|
+
overflow: hidden;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.search {
|
|
365
|
+
display: flex;
|
|
366
|
+
justify-content: space-evenly;
|
|
367
|
+
padding: 0.5rem;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.search .group {
|
|
371
|
+
text-align: center;
|
|
372
|
+
color: #999999;
|
|
373
|
+
font-size: 0.875rem;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.search .group_name {
|
|
377
|
+
display: inline-block;
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
white-space: nowrap;
|
|
380
|
+
position: relative;
|
|
381
|
+
text-overflow: ellipsis;
|
|
382
|
+
color: initial;
|
|
383
|
+
font-size: 1rem;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.search .group {
|
|
387
|
+
line-height: 2rem;
|
|
388
|
+
height: 2rem;
|
|
389
|
+
text-align: center;
|
|
390
|
+
color: #999999;
|
|
391
|
+
font-size: 0.875rem;
|
|
392
|
+
display: flex;
|
|
393
|
+
padding: 0 .5rem;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.search .group_icon {
|
|
397
|
+
width: 1rem;
|
|
398
|
+
position: relative;
|
|
399
|
+
top: 0.65rem;
|
|
400
|
+
margin-left: 0.25rem;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.search .btn {
|
|
404
|
+
margin: 0 0.5rem;
|
|
405
|
+
height: 2rem;
|
|
406
|
+
line-height: 2rem;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
#bar_sort {
|
|
410
|
+
background-color: #ffffff;
|
|
411
|
+
padding: .25rem 0;
|
|
412
|
+
border-bottom: 0.0625rem solid rgb(235,235,235);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
#bar_sort .mode {
|
|
416
|
+
text-align: center;
|
|
417
|
+
line-height: 2rem;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
#bar_sort .mode .img {
|
|
421
|
+
width: 1rem;
|
|
422
|
+
position: relative;
|
|
423
|
+
margin-right: 0.25rem;
|
|
424
|
+
top: 0.1rem;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
#bar_sort .group_icon {
|
|
428
|
+
width: 1rem;
|
|
429
|
+
position: relative;
|
|
430
|
+
top: 1rem;
|
|
431
|
+
margin-left: 0.25rem;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.modal_select .mm_row {
|
|
435
|
+
line-height: 1.5rem;
|
|
436
|
+
padding: 0.5rem 0;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.modal_select .item {
|
|
440
|
+
padding: .25rem 0.5rem;
|
|
441
|
+
margin: 0.25rem;
|
|
442
|
+
background: rgb(159 235 214);
|
|
443
|
+
border-radius: 0.25rem;
|
|
444
|
+
font-size: 0.875rem;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.modal_select .item_title {
|
|
448
|
+
padding: .25rem 0.5rem;
|
|
449
|
+
font-size: 0.875rem;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.modal_select .card_body {
|
|
453
|
+
max-height: 15rem;
|
|
454
|
+
overflow: auto;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.modal_select .item_title.active {
|
|
458
|
+
color: #68abfd;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.modal_select .item.active {
|
|
462
|
+
background-image: linear-gradient(90deg, #68abfd, #b0daff);
|
|
463
|
+
color: #ffffff;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.modal_select .fr {
|
|
467
|
+
font-size: 0.875rem;
|
|
468
|
+
font-weight: initial;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
#main_list {
|
|
472
|
+
padding-bottom: 5rem;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
#pager {
|
|
476
|
+
position: fixed;
|
|
477
|
+
bottom: 0;
|
|
478
|
+
left: 0;
|
|
479
|
+
right: 0;
|
|
480
|
+
width: 100%;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.row-all {
|
|
484
|
+
justify-content: center;
|
|
485
|
+
margin-top: 1rem;
|
|
486
|
+
border-top: 0.0625rem solid rgb(235,235,235);
|
|
487
|
+
}
|
|
488
|
+
</style>
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
// 路由路径,注意:这里是泛路径,相当于/*
|
|
3
|
+
"path": "/sys/main",
|
|
4
|
+
// 默认文件,当直接访问这个路径时,如果存在默认文件,这直接访问该文件
|
|
5
|
+
"index": "index.html",
|
|
6
|
+
// 资源缓存寿命,单位:秒
|
|
7
|
+
"maxAge": 0,
|
|
8
|
+
// 是否恒久不变,一般资源文件可能变化,所以这里一般是false
|
|
9
|
+
"immutable": false,
|
|
10
|
+
// 是否使用brotli压缩方式
|
|
11
|
+
"brotli": true,
|
|
12
|
+
// 是否启用gzip压缩方式
|
|
13
|
+
"gzip": true,
|
|
14
|
+
// 是否限制访问指定拓展名的文件,多个
|
|
15
|
+
"extensions": null,
|
|
16
|
+
// 是否转换JS、vue代码为amd标准,true的情况下会把es6和commonJS都转成amd格式
|
|
17
|
+
"convert_amd": true
|
|
18
|
+
}
|