mm_os 1.3.4 → 1.3.6
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/README.en.md +36 -0
- package/README.md +25 -166
- package/conf.json +3 -0
- package/core/base/index.js +29 -0
- package/core/base/mqtt/index.js +268 -0
- package/core/base/mqtt/lib.js +40 -0
- package/core/base/web/index.js +110 -0
- package/core/com/api/com.json +4 -0
- package/{bin → core}/com/api/config.tpl.json +9 -7
- package/{bin → core}/com/api/drive.js +239 -64
- package/{bin → core}/com/api/index.js +8 -9
- package/{bin → core}/com/api/oauth.js +23 -14
- package/core/com/api/script.js +32 -0
- package/core/com/db/com.json +4 -0
- package/{bin → core}/com/db/drive.js +99 -65
- package/{bin → core}/com/db/index.js +2 -2
- package/core/com/event/com.json +4 -0
- package/{bin → core}/com/event/config.tpl.json +2 -2
- package/core/com/event/drive.js +125 -0
- package/{bin → core}/com/event/index.js +5 -10
- package/core/com/event/script.js +26 -0
- package/core/com/eventer/com.js +450 -0
- package/core/com/eventer/com.json +4 -0
- package/core/com/middleware/com.js +128 -0
- package/core/com/middleware/com.json +4 -0
- package/core/com/middleware/config.tpl.json +8 -0
- package/core/com/middleware/script.js +9 -0
- package/core/com/mqtt/com.json +4 -0
- package/core/com/mqtt/config.tpl.json +12 -0
- package/core/com/mqtt/drive.js +139 -0
- package/core/com/mqtt/index.js +138 -0
- package/core/com/mqtt/script.js +33 -0
- package/core/com/msg/com.js +296 -0
- package/core/com/msg/com.json +4 -0
- package/{bin → core}/com/nav/drive.js +42 -17
- package/{bin → core}/com/nav/index.js +4 -4
- package/core/com/nav/tpl/admin_pc/page_channel.vue +299 -0
- package/core/com/nav/tpl/admin_pc/page_config.vue +279 -0
- package/core/com/nav/tpl/admin_pc/page_config_form.vue +194 -0
- package/core/com/nav/tpl/admin_pc/page_default.vue +287 -0
- package/core/com/nav/tpl/admin_pc/page_form.vue +180 -0
- package/core/com/nav/tpl/admin_pc/page_lang.vue +265 -0
- package/core/com/nav/tpl/admin_pc/page_nav.vue +313 -0
- package/core/com/nav/tpl/admin_pc/page_table.vue +285 -0
- package/core/com/nav/tpl/admin_pc/page_type.vue +313 -0
- package/core/com/nav/tpl/dev_pc/page_channel.vue +253 -0
- package/core/com/nav/tpl/dev_pc/page_config.vue +253 -0
- package/core/com/nav/tpl/dev_pc/page_default.vue +247 -0
- package/core/com/nav/tpl/dev_pc/page_form.vue +162 -0
- package/core/com/nav/tpl/dev_pc/page_nav.vue +253 -0
- package/core/com/nav/tpl/dev_pc/page_table.vue +247 -0
- package/core/com/nav/tpl/dev_pc/page_type.vue +253 -0
- package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_channel.vue +231 -231
- package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_default.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_pc/page_form.vue +9 -9
- package/{bin → core}/com/nav/tpl/home_pc/page_list.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_pc/page_nav.vue +221 -221
- package/{bin/com/nav/tpl/home_phone → core/com/nav/tpl/home_pc}/page_type.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_pc/page_view.vue +8 -8
- package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_channel.vue +231 -231
- package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_default.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_phone/page_form.vue +9 -9
- package/{bin → core}/com/nav/tpl/home_phone/page_list.vue +231 -231
- package/{bin/com/nav/tpl/admin_pc → core/com/nav/tpl/home_phone}/page_nav.vue +236 -220
- package/{bin/com/nav/tpl/home_pc → core/com/nav/tpl/home_phone}/page_type.vue +231 -231
- package/{bin → core}/com/nav/tpl/home_phone/page_view.vue +8 -8
- package/core/com/nav/viewmodel.js +296 -0
- package/{bin → core}/com/param/config.tpl.json +24 -0
- package/{bin → core}/com/param/drive.js +47 -15
- package/core/com/plugin/com.json +4 -0
- package/core/com/plugin/config.tpl.json +20 -0
- package/{bin → core}/com/plugin/drive.js +5 -8
- package/{bin → core}/com/plugin/index.js +11 -56
- package/core/com/socket/README.md +47 -0
- package/core/com/socket/com.json +4 -0
- package/core/com/socket/config.tpl.json +14 -0
- package/{bin → core}/com/socket/drive.js +74 -51
- package/{bin → core}/com/socket/index.js +4 -2
- package/{bin → core}/com/socket/script.js +8 -6
- package/core/com/sql/config.tpl.json +70 -0
- package/{bin → core}/com/sql/drive.js +281 -58
- package/core/com/static/com.json +4 -0
- package/core/com/static/config.tpl.json +20 -0
- package/{bin → core}/com/static/drive.js +6 -4
- package/{bin → core}/com/static/index.js +5 -1
- package/core/com/task/com.json +4 -0
- package/core/com/task/config.tpl.json +24 -0
- package/core/com/task/drive.js +374 -0
- package/{bin → core}/com/task/index.js +14 -20
- package/core/com/task/script.js +37 -0
- package/core/com/timer/com.js +217 -0
- package/core/com/timer/com.json +4 -0
- package/core/com/tpl/com.js +19 -0
- package/core/com/tpl/com.json +4 -0
- package/index.js +161 -740
- package/lib/actions.js +50 -0
- package/lib/app.js +73 -0
- package/lib/base.js +355 -0
- package/lib/com.js +31 -0
- package/lib/game.js +31 -0
- package/lib/ref.js +121 -0
- package/middleware/cors/index.js +57 -0
- package/middleware/cors/middleware.json +7 -0
- package/middleware/mqtt_base/index.js +10 -0
- package/middleware/mqtt_base/middleware.json +8 -0
- package/{waf.js → middleware/waf/index.js} +12 -2
- package/middleware/waf/middleware.json +9 -0
- package/middleware/web_base/index.js +67 -0
- package/middleware/web_base/middleware.json +9 -0
- package/middleware/web_event/index.js +411 -0
- package/middleware/web_event/middleware.json +10 -0
- package/middleware/web_proxy/index.js +24 -0
- package/middleware/web_proxy/middleware.json +9 -0
- package/middleware/web_router/index.js +33 -0
- package/middleware/web_router/middleware.json +10 -0
- package/middleware/web_socket/index.js +21 -0
- package/middleware/web_socket/middleware.json +9 -0
- package/middleware/web_static/index.js +26 -0
- package/middleware/web_static/middleware.json +9 -0
- package/nodemon.json +12 -2
- package/package.json +56 -66
- package/.gitattributes +0 -5
- package/bin/com/README.md +0 -2
- package/bin/com/api/script.js +0 -14
- package/bin/com/cmd/README.md +0 -3
- package/bin/com/cmd/config.tpl.json +0 -41
- package/bin/com/cmd/drive.js +0 -512
- package/bin/com/cmd/index.js +0 -213
- package/bin/com/cmd/old/5w2h.js +0 -54
- package/bin/com/cmd/old/drive.js +0 -423
- package/bin/com/cmd/script.js +0 -11
- package/bin/com/event/drive.js +0 -69
- package/bin/com/event/script.js +0 -12
- package/bin/com/nav/tpl/admin_pc/page_channel.vue +0 -234
- package/bin/com/nav/tpl/admin_pc/page_default.vue +0 -236
- package/bin/com/nav/tpl/admin_pc/page_form.vue +0 -152
- package/bin/com/nav/tpl/admin_pc/page_table.vue +0 -236
- package/bin/com/nav/tpl/admin_pc/page_type.vue +0 -234
- package/bin/com/nav/tpl/home_phone/page_nav.vue +0 -221
- package/bin/com/nav/viewmodel.js +0 -161
- package/bin/com/plugin/config.tpl.json +0 -11
- package/bin/com/socket/config.tpl.json +0 -8
- package/bin/com/sql/config.tpl.json +0 -34
- package/bin/com/static/config.tpl.json +0 -11
- package/bin/com/task/config.tpl.json +0 -13
- package/bin/com/task/drive.js +0 -288
- package/bin/com/task/script.js +0 -38
- package/bin/com.js +0 -74
- package/bin/mm.conf +0 -48
- package/bin/static/404.html +0 -52
- package/bin/static/README.md +0 -1
- package/bin/static/css/font-awesome.min.css +0 -7
- package/bin/static/css/mm_base.css +0 -220
- package/bin/static/css/mm_common.css +0 -518
- package/bin/static/css/mm_component.css +0 -307
- package/bin/static/css/mm_expand.css +0 -634
- package/bin/static/css/mm_theme.css +0 -291
- package/bin/static/css/new_file.css +0 -79
- package/bin/static/css/swiper.min.css +0 -12
- package/bin/static/favicon.ico +0 -0
- package/bin/static/font/FontAwesome.otf +0 -0
- package/bin/static/font/HelveticaNeue.eot +0 -0
- package/bin/static/font/HelveticaNeue.otf +0 -0
- package/bin/static/font/HelveticaNeue.svg +0 -1273
- package/bin/static/font/HelveticaNeue.woff +0 -0
- package/bin/static/font/HelveticaNeue.woff2 +0 -0
- package/bin/static/font/fontawesome-webfont.eot +0 -0
- package/bin/static/font/fontawesome-webfont.svg +0 -2671
- package/bin/static/font/fontawesome-webfont.ttf +0 -0
- package/bin/static/font/fontawesome-webfont.woff +0 -0
- package/bin/static/font/fontawesome-webfont.woff2 +0 -0
- package/bin/static/h5.html +0 -325
- package/bin/static/highlight/highlight.pack.js +0 -2
- package/bin/static/highlight/styles/a11y-dark.css +0 -99
- package/bin/static/highlight/styles/a11y-light.css +0 -99
- package/bin/static/highlight/styles/agate.css +0 -108
- package/bin/static/highlight/styles/an-old-hope.css +0 -89
- package/bin/static/highlight/styles/androidstudio.css +0 -66
- package/bin/static/highlight/styles/arduino-light.css +0 -88
- package/bin/static/highlight/styles/arta.css +0 -73
- package/bin/static/highlight/styles/ascetic.css +0 -45
- package/bin/static/highlight/styles/atelier-cave-dark.css +0 -83
- package/bin/static/highlight/styles/atelier-cave-light.css +0 -85
- package/bin/static/highlight/styles/atelier-dune-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-dune-light.css +0 -69
- package/bin/static/highlight/styles/atelier-estuary-dark.css +0 -84
- package/bin/static/highlight/styles/atelier-estuary-light.css +0 -84
- package/bin/static/highlight/styles/atelier-forest-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-forest-light.css +0 -69
- package/bin/static/highlight/styles/atelier-heath-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-heath-light.css +0 -69
- package/bin/static/highlight/styles/atelier-lakeside-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-lakeside-light.css +0 -69
- package/bin/static/highlight/styles/atelier-plateau-dark.css +0 -84
- package/bin/static/highlight/styles/atelier-plateau-light.css +0 -84
- package/bin/static/highlight/styles/atelier-savanna-dark.css +0 -84
- package/bin/static/highlight/styles/atelier-savanna-light.css +0 -84
- package/bin/static/highlight/styles/atelier-seaside-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-seaside-light.css +0 -69
- package/bin/static/highlight/styles/atelier-sulphurpool-dark.css +0 -69
- package/bin/static/highlight/styles/atelier-sulphurpool-light.css +0 -69
- package/bin/static/highlight/styles/atom-one-dark-reasonable.css +0 -77
- package/bin/static/highlight/styles/atom-one-dark.css +0 -96
- package/bin/static/highlight/styles/atom-one-light.css +0 -96
- package/bin/static/highlight/styles/brown-paper.css +0 -64
- package/bin/static/highlight/styles/brown-papersq.png +0 -0
- package/bin/static/highlight/styles/codepen-embed.css +0 -60
- package/bin/static/highlight/styles/color-brewer.css +0 -71
- package/bin/static/highlight/styles/darcula.css +0 -77
- package/bin/static/highlight/styles/dark.css +0 -63
- package/bin/static/highlight/styles/darkula.css +0 -6
- package/bin/static/highlight/styles/default.css +0 -99
- package/bin/static/highlight/styles/docco.css +0 -97
- package/bin/static/highlight/styles/dracula.css +0 -76
- package/bin/static/highlight/styles/far.css +0 -71
- package/bin/static/highlight/styles/foundation.css +0 -88
- package/bin/static/highlight/styles/github-gist.css +0 -79
- package/bin/static/highlight/styles/github.css +0 -99
- package/bin/static/highlight/styles/gml.css +0 -78
- package/bin/static/highlight/styles/googlecode.css +0 -89
- package/bin/static/highlight/styles/grayscale.css +0 -101
- package/bin/static/highlight/styles/gruvbox-dark.css +0 -108
- package/bin/static/highlight/styles/gruvbox-light.css +0 -108
- package/bin/static/highlight/styles/hopscotch.css +0 -83
- package/bin/static/highlight/styles/hybrid.css +0 -102
- package/bin/static/highlight/styles/idea.css +0 -97
- package/bin/static/highlight/styles/ir-black.css +0 -73
- package/bin/static/highlight/styles/isbl-editor-dark.css +0 -112
- package/bin/static/highlight/styles/isbl-editor-light.css +0 -112
- package/bin/static/highlight/styles/kimbie.dark.css +0 -74
- package/bin/static/highlight/styles/kimbie.light.css +0 -74
- package/bin/static/highlight/styles/lightfair.css +0 -87
- package/bin/static/highlight/styles/magula.css +0 -70
- package/bin/static/highlight/styles/mono-blue.css +0 -59
- package/bin/static/highlight/styles/monokai-sublime.css +0 -83
- package/bin/static/highlight/styles/monokai.css +0 -70
- package/bin/static/highlight/styles/nord.css +0 -309
- package/bin/static/highlight/styles/obsidian.css +0 -88
- package/bin/static/highlight/styles/ocean.css +0 -74
- package/bin/static/highlight/styles/paraiso-dark.css +0 -72
- package/bin/static/highlight/styles/paraiso-light.css +0 -72
- package/bin/static/highlight/styles/pojoaque.css +0 -83
- package/bin/static/highlight/styles/pojoaque.jpg +0 -0
- package/bin/static/highlight/styles/purebasic.css +0 -96
- package/bin/static/highlight/styles/qtcreator_dark.css +0 -83
- package/bin/static/highlight/styles/qtcreator_light.css +0 -83
- package/bin/static/highlight/styles/railscasts.css +0 -106
- package/bin/static/highlight/styles/rainbow.css +0 -85
- package/bin/static/highlight/styles/routeros.css +0 -108
- package/bin/static/highlight/styles/school-book.css +0 -69
- package/bin/static/highlight/styles/school-book.png +0 -0
- package/bin/static/highlight/styles/shades-of-purple.css +0 -97
- package/bin/static/highlight/styles/solarized-dark.css +0 -84
- package/bin/static/highlight/styles/solarized-light.css +0 -84
- package/bin/static/highlight/styles/sunburst.css +0 -102
- package/bin/static/highlight/styles/tomorrow-night-blue.css +0 -75
- package/bin/static/highlight/styles/tomorrow-night-bright.css +0 -74
- package/bin/static/highlight/styles/tomorrow-night-eighties.css +0 -74
- package/bin/static/highlight/styles/tomorrow-night.css +0 -75
- package/bin/static/highlight/styles/tomorrow.css +0 -72
- package/bin/static/highlight/styles/vs.css +0 -68
- package/bin/static/highlight/styles/vs2015.css +0 -115
- package/bin/static/highlight/styles/xcode.css +0 -104
- package/bin/static/highlight/styles/xt256.css +0 -92
- package/bin/static/highlight/styles/zenburn.css +0 -80
- package/bin/static/highlight/vue-highlight.js +0 -29
- package/bin/static/ifame.html +0 -24
- package/bin/static/img/add.png +0 -0
- package/bin/static/img/avatar.png +0 -0
- package/bin/static/img/banner_2.png +0 -0
- package/bin/static/img/default.png +0 -0
- package/bin/static/img/loading.svg +0 -1
- package/bin/static/img/logo.png +0 -0
- package/bin/static/img/logo1.png +0 -0
- package/bin/static/img/logo_gray.png +0 -0
- package/bin/static/img/logo_round.png +0 -0
- package/bin/static/img/mm.ico +0 -0
- package/bin/static/img/mm.jpg +0 -0
- package/bin/static/img/select.png +0 -0
- package/bin/static/img/web.png +0 -0
- package/bin/static/index.html +0 -12
- package/bin/static/js/clipboard.min.js +0 -257
- package/bin/static/js/css.min.js +0 -1
- package/bin/static/js/echarts.js +0 -22
- package/bin/static/js/html5.min.js +0 -1
- package/bin/static/js/jquery.lazyload.min.js +0 -2
- package/bin/static/js/jquery.min.js +0 -4189
- package/bin/static/js/jquery.scrollstop.min.js +0 -2
- package/bin/static/js/mm-requirejs-vue.js +0 -283
- package/bin/static/js/mm_check.js +0 -490
- package/bin/static/js/mm_flexble.js +0 -112
- package/bin/static/js/mm_picker.js +0 -1417
- package/bin/static/js/mm_pinyinlite.js +0 -873
- package/bin/static/js/mm_sdk.js +0 -2841
- package/bin/static/js/mm_ui_expand.js +0 -468
- package/bin/static/js/mm_vue.js +0 -376
- package/bin/static/js/mm_vue_ui.js +0 -2375
- package/bin/static/js/mm_websocket.js +0 -145
- package/bin/static/js/require.js +0 -5
- package/bin/static/js/sortable.min.js +0 -3
- package/bin/static/js/swiper.min.js +0 -13
- package/bin/static/js/text.min.js +0 -1
- package/bin/static/js/vue-router.min.js +0 -6
- package/bin/static/js/vue.js +0 -12338
- package/bin/static/js/vuedraggable.min.js +0 -2
- package/bin/static/js/vuex.min.js +0 -6
- package/bin/static/src/components/bar/mm_action.vue +0 -19
- package/bin/static/src/components/bar/mm_buy.vue +0 -19
- package/bin/static/src/components/bar/mm_chat.vue +0 -18
- package/bin/static/src/components/bar/mm_count.vue +0 -18
- package/bin/static/src/components/bar/mm_filter.vue +0 -18
- package/bin/static/src/components/bar/mm_search.vue +0 -18
- package/bin/static/src/components/bar/mm_sort.vue +0 -18
- package/bin/static/src/components/bar/mm_tag.vue +0 -18
- package/bin/static/src/components/bar/mm_title.vue +0 -19
- package/bin/static/src/components/content/mm_pre.vue +0 -70
- package/bin/static/src/components/expand/mm_drag.vue +0 -39
- package/bin/static/src/components/item/mm_article.vue +0 -115
- package/bin/static/src/components/item/mm_base.vue +0 -26
- package/bin/static/src/components/item/mm_contact.vue +0 -25
- package/bin/static/src/components/item/mm_goods.vue +0 -23
- package/bin/static/src/components/item/mm_img.vue +0 -21
- package/bin/static/src/components/item/mm_media.vue +0 -18
- package/bin/static/src/components/item/mm_message.vue +0 -18
- package/bin/static/src/components/item/mm_music.vue +0 -95
- package/bin/static/src/components/item/mm_news.vue +0 -22
- package/bin/static/src/components/item/mm_number.vue +0 -26
- package/bin/static/src/components/item/mm_question.vue +0 -35
- package/bin/static/src/components/item/mm_user.vue +0 -22
- package/bin/static/src/components/item/mm_video.vue +0 -95
- package/bin/static/src/components/slide/mm_slide_card.vue +0 -64
- package/bin/static/src/components/slide/mm_slide_img.vue +0 -47
- package/bin/static/src/components/slide/mm_slide_page.vue +0 -8
- package/bin/static/src/components/slide/mm_slide_text.vue +0 -54
- package/bin/static/src/main.js +0 -84
- package/bin/static/src/mixins/form.js +0 -223
- package/bin/static/src/mixins/item.js +0 -242
- package/bin/static/src/mixins/list.js +0 -244
- package/bin/static/src/mixins/page.js +0 -1011
- package/bin/static/src/mm_component.js +0 -74
- package/bin/static/src/router.js +0 -72
- package/bin/static/src/store/user.js +0 -75
- package/bin/static/src/store/web.js +0 -50
- package/bin/static/user/1/number_info.xlsx +0 -0
- package/bin/static/w3c.html +0 -94
- package/init.js +0 -55
- package/update.md +0 -1
- /package/{bin → core}/com/api/README.md +0 -0
- /package/{bin → core}/com/api/rpc.js +0 -0
- /package/{bin → core}/com/db/README.md +0 -0
- /package/{bin → core}/com/event/README.md +0 -0
- /package/{bin/com/socket → core/com/mqtt}/README.md +0 -0
- /package/{bin → core}/com/nav/README.md +0 -0
- /package/{bin → core}/com/nav/config.tpl.json +0 -0
- /package/{bin → core}/com/param/README.md +0 -0
- /package/{bin → core}/com/param/index.js +0 -0
- /package/{bin → core}/com/param/script.js +0 -0
- /package/{bin → core}/com/param/test.js +0 -0
- /package/{bin → core}/com/plugin/README.md +0 -0
- /package/{bin → core}/com/plugin/script.js +0 -0
- /package/{bin → core}/com/sql/README.md +0 -0
- /package/{bin → core}/com/sql/index.js +0 -0
- /package/{bin → core}/com/sql/script.js +0 -0
- /package/{bin → core}/com/static/README.md +0 -0
- /package/{bin → core}/com/static/script.js +0 -0
- /package/{bin → core}/com/task/README.md +0 -0
- /package/{bin/rps.bat → rps.bat} +0 -0
- /package/{bin/tps.bat → tps.bat} +0 -0
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 文章 -->
|
|
3
|
-
<div class="mm_video">
|
|
4
|
-
<mm_icon :src="obj[vm.icon]"></mm_icon>
|
|
5
|
-
<div class="title">{{ obj[vm.title] }}</div>
|
|
6
|
-
<div class="desc">
|
|
7
|
-
<div class="collect" v-if="obj.users && obj.users.length > 0"><span class="fa fa-heart" v-bind:class="{ 'font-default': has_collect(obj.users) }"></span><span>{{ obj[vm.collect] }}</span></div>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import mixin from '/src/mixins/item.js'
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
mixins: [mixin],
|
|
17
|
-
props: {
|
|
18
|
-
uid: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 0
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
methods: {
|
|
24
|
-
click_fun(o) {
|
|
25
|
-
var u = obj[this.vm.url];
|
|
26
|
-
if (this.func) {
|
|
27
|
-
if (!this.func(o)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (u) {
|
|
32
|
-
this.$nav(u);
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
has_collect(arr) {
|
|
36
|
-
if (arr) {
|
|
37
|
-
if (this.uid && arr) {
|
|
38
|
-
return arr.has(this.field, this.uid);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<style>
|
|
48
|
-
.mm_video .mm_main {
|
|
49
|
-
padding: 0.625rem 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.mm_video .mm_side {
|
|
53
|
-
width: 100%;
|
|
54
|
-
padding: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mm_video .mm_main {
|
|
58
|
-
width: calc(100% - 0.875rem);
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
border: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.mm_video .div {
|
|
64
|
-
max-height: 3rem;
|
|
65
|
-
line-height: 1.5rem;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
width: calc(100% - 4rem);
|
|
68
|
-
text-overflow: ellipsis;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.mm_video .mm_icon {
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 10rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mm_video .mm_item {
|
|
77
|
-
background: #fff;
|
|
78
|
-
margin-left: 2rem;
|
|
79
|
-
margin-right: 2rem;
|
|
80
|
-
border-radius: 0.25rem;
|
|
81
|
-
margin-bottom: 1rem;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.mm_video .mm_desc {
|
|
86
|
-
line-height: 1.5;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.mm_video .collect {
|
|
90
|
-
position: absolute;
|
|
91
|
-
right: 0.875rem;
|
|
92
|
-
bottom: 0.625rem;
|
|
93
|
-
text-align: right;
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 新闻 -->
|
|
3
|
-
<div class="mm_news" :to="obj[vm.url]" :key="k">
|
|
4
|
-
<mm_icon :src="obj[vm.icon]"></mm_icon>
|
|
5
|
-
<div class="title">{{ obj[vm.title] }}</div>
|
|
6
|
-
<div class="desc"><span class="time">{{ obj.createTime }}</span></div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import mixin from '/src/mixins/item.js'
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
mixins: [mixin]
|
|
15
|
-
}
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<style>
|
|
19
|
-
.mm_news .mm_side~.mm_main {
|
|
20
|
-
min-height: 3.5rem;
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 号码 -->
|
|
3
|
-
<div class="mm_number">
|
|
4
|
-
<div class="title">标题</div>
|
|
5
|
-
<div class="desc">描述</div>
|
|
6
|
-
<!-- 列表项 -->
|
|
7
|
-
<div class="box">
|
|
8
|
-
<mm_group>
|
|
9
|
-
<button class="btn">测试</button>
|
|
10
|
-
<button class="btn">按钮</button>
|
|
11
|
-
</mm_group>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import mixin from '/src/mixins/item.js'
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
mixins: [mixin],
|
|
21
|
-
data() { return {};}
|
|
22
|
-
}
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style>
|
|
26
|
-
</style>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 常见问题 -->
|
|
3
|
-
<div class="mm_question" :url="obj[vm.url]" :key="k">
|
|
4
|
-
<div class="title">{{ obj[vm.title] }}</div>
|
|
5
|
-
<div class="desc">{{ obj[vm.desc] }}</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import mixin from '/src/mixins/item.js'
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
mixins: [mixin]
|
|
14
|
-
}
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<style>
|
|
18
|
-
.mm_question .mm_item {
|
|
19
|
-
border-bottom: none;
|
|
20
|
-
margin-bottom: 2rem;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.mm_question .mm_view~.mm_view {
|
|
24
|
-
margin-top: 0.5rem;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.mm_question .div {
|
|
28
|
-
color: #333;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mm_question .mm_desc {
|
|
32
|
-
float: left;
|
|
33
|
-
margin-top: 1rem;
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 用户 -->
|
|
3
|
-
<div class="small">
|
|
4
|
-
<mm_icon :src="obj[vm.icon]"></mm_icon>
|
|
5
|
-
<div class="title">{{ obj[vm.name] }}</div>
|
|
6
|
-
<div class="collect" :show="show" @click="run('collect', obj)">关注</div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import mixin from '/src/mixins/item.js'
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
mixins: [mixin],
|
|
15
|
-
data() {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style>
|
|
22
|
-
</style>
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 文章 -->
|
|
3
|
-
<div class="mm_video">
|
|
4
|
-
<mm_icon :src="obj[vm.icon]"></mm_icon>
|
|
5
|
-
<div class="title">{{ obj[vm.title] }}</div>
|
|
6
|
-
<div class="desc">
|
|
7
|
-
<div class="collect" v-if="obj.users && obj.users.length > 0"><span class="fa fa-heart" v-bind:class="{ 'font-default': has_collect(obj.users) }"></span><span>{{ obj[vm.collect] }}</span></div>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import mixin from '/src/mixins/item.js'
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
mixins: [mixin],
|
|
17
|
-
props: {
|
|
18
|
-
uid: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 0
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
methods: {
|
|
24
|
-
click_fun(o) {
|
|
25
|
-
var u = obj[this.vm.url];
|
|
26
|
-
if (this.func) {
|
|
27
|
-
if (!this.func(o)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (u) {
|
|
32
|
-
this.$nav(u);
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
has_collect(arr) {
|
|
36
|
-
if (arr) {
|
|
37
|
-
if (this.uid && arr) {
|
|
38
|
-
return arr.has(this.field, this.uid);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<style>
|
|
48
|
-
.mm_video .mm_main {
|
|
49
|
-
padding: 0.625rem 0;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.mm_video .mm_side {
|
|
53
|
-
width: 100%;
|
|
54
|
-
padding: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mm_video .mm_main {
|
|
58
|
-
width: calc(100% - 0.875rem);
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
border: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.mm_video .div {
|
|
64
|
-
max-height: 3rem;
|
|
65
|
-
line-height: 1.5rem;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
width: calc(100% - 4rem);
|
|
68
|
-
text-overflow: ellipsis;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.mm_video .mm_icon {
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 10rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mm_video .mm_item {
|
|
77
|
-
background: #fff;
|
|
78
|
-
margin-left: 2rem;
|
|
79
|
-
margin-right: 2rem;
|
|
80
|
-
border-radius: 0.25rem;
|
|
81
|
-
margin-bottom: 1rem;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.mm_video .mm_desc {
|
|
86
|
-
line-height: 1.5;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.mm_video .collect {
|
|
90
|
-
position: absolute;
|
|
91
|
-
right: 0.875rem;
|
|
92
|
-
bottom: 0.625rem;
|
|
93
|
-
text-align: right;
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 轮播图 -->
|
|
3
|
-
<div class="swiper-container mm_slide_card" indicatorDots autoplay>
|
|
4
|
-
<div class="swiper-wrapper">
|
|
5
|
-
<div class="swiper-slide" v-for="(o, idx) in list" :key="idx">
|
|
6
|
-
<mm_view :to="o[vm.url]">
|
|
7
|
-
<mm_icon :src="o[vm.img]"></mm_icon>
|
|
8
|
-
</mm_view>
|
|
9
|
-
</div>
|
|
10
|
-
<slot></slot>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import mixin from '/src/mixins/item.js';
|
|
17
|
-
import Swiper from "swiper";
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
mixins: [
|
|
21
|
-
mixin
|
|
22
|
-
],
|
|
23
|
-
props: {
|
|
24
|
-
autoplay: {
|
|
25
|
-
type: "",
|
|
26
|
-
default: true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
doing() {
|
|
31
|
-
var swiper = new Swiper('.mm_slide_card', {
|
|
32
|
-
autoplay: this.autoplay,
|
|
33
|
-
centeredSlides: true,
|
|
34
|
-
slidesPerView: 1.2,
|
|
35
|
-
spaceBetween: 30,
|
|
36
|
-
pagination: {
|
|
37
|
-
el: '.swiper-pagination',
|
|
38
|
-
clickable: true
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
mounted() {
|
|
44
|
-
setTimeout(this.doing, 1000)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<style>
|
|
50
|
-
.mm_slide_card {
|
|
51
|
-
height: 11.5rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.mm_slide_card .swiper-slide {
|
|
55
|
-
width: calc(100% - 4rem);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.mm_slide_card .mm_icon {
|
|
59
|
-
width: 100%;
|
|
60
|
-
border-radius: 0.25rem;
|
|
61
|
-
height: 10rem;
|
|
62
|
-
margin: auto;
|
|
63
|
-
}
|
|
64
|
-
</style>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 轮播图 -->
|
|
3
|
-
<div class="swiper-container mm_slide_img" indicator-dots autoplay circular :interval="5000">
|
|
4
|
-
<div class="swiper-slide" v-for="(o, idx) in list" :key="idx">
|
|
5
|
-
<mm_view :to="o[vm.url]">
|
|
6
|
-
<mm_icon :src="o[vm.img]"></mm_icon>
|
|
7
|
-
</mm_view>
|
|
8
|
-
</div>
|
|
9
|
-
<slot></slot>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import mixin from '/src/mixins/item.js';
|
|
15
|
-
import Swiper from "swiper";
|
|
16
|
-
|
|
17
|
-
export default {
|
|
18
|
-
mixins: [
|
|
19
|
-
mixin
|
|
20
|
-
],
|
|
21
|
-
props: {
|
|
22
|
-
autoplay: {
|
|
23
|
-
type: "",
|
|
24
|
-
default: true
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
doing() {
|
|
29
|
-
var swiper = new Swiper('.mm_slide_img', {
|
|
30
|
-
pagination: {
|
|
31
|
-
el: '.swiper-pagination',
|
|
32
|
-
autoplay: this.autoplay
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
mounted() {
|
|
38
|
-
setTimeout(this.doing, 1000)
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style>
|
|
44
|
-
.mm_slide_img {
|
|
45
|
-
height: 8.75rem;
|
|
46
|
-
}
|
|
47
|
-
</style>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 轮播图 -->
|
|
3
|
-
<div class="swiper-container mm_slide_text" autoplay circular vertical>
|
|
4
|
-
<div class="swiper-wrapper">
|
|
5
|
-
<div class="swiper-slide" v-for="(o, idx) in list" :key="idx">
|
|
6
|
-
<nuxt-link class="mm_view" :to="o[vm.url]">
|
|
7
|
-
{{ o[vm.title] }}
|
|
8
|
-
</nuxt-link>
|
|
9
|
-
</div>
|
|
10
|
-
<slot></slot>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import mixin from '/src/mixins/item.js';
|
|
17
|
-
import Swiper from "swiper";
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
mixins: [
|
|
21
|
-
mixin
|
|
22
|
-
],
|
|
23
|
-
props: {
|
|
24
|
-
autoplay: {
|
|
25
|
-
type: "",
|
|
26
|
-
default: true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
doing() {
|
|
31
|
-
var swiper = new Swiper('.mm_slide_text', {
|
|
32
|
-
autoplay: this.autoplay,
|
|
33
|
-
direction: 'vertical'
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
mounted() {
|
|
38
|
-
setTimeout(this.doing, 1000)
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style>
|
|
44
|
-
.mm_slide_text {
|
|
45
|
-
line-height: 2.5rem;
|
|
46
|
-
height: 2.5rem;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.mm_slide_text .mm_view {
|
|
50
|
-
color: #666;
|
|
51
|
-
padding: 0 1rem;
|
|
52
|
-
font-size: 85%;
|
|
53
|
-
}
|
|
54
|
-
</style>
|
package/bin/static/src/main.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require({
|
|
4
|
-
baseUrl: '/dev/src/',
|
|
5
|
-
// 是否保留注释
|
|
6
|
-
preserveLicenseComments: true,
|
|
7
|
-
waitSeconds: 0,
|
|
8
|
-
paths: {
|
|
9
|
-
css: '/js/css.min',
|
|
10
|
-
text: '/js/text.min',
|
|
11
|
-
vue: '/js/mm-requirejs-vue',
|
|
12
|
-
|
|
13
|
-
// 生产版||调试版
|
|
14
|
-
Vue: '/js/vue',
|
|
15
|
-
vuex: '/js/vuex.min',
|
|
16
|
-
VueRouter: '/js/vue-router.min',
|
|
17
|
-
jquery: '/js/jquery.min',
|
|
18
|
-
swiper: "/js/swiper.min",
|
|
19
|
-
clipboard: '/js/clipboard.min',
|
|
20
|
-
mm_sdk: '/js/mm_sdk',
|
|
21
|
-
mm_vue: '/js/mm_vue',
|
|
22
|
-
ui: '/js/mm_vue_ui',
|
|
23
|
-
store: './store',
|
|
24
|
-
router: './router',
|
|
25
|
-
echarts: '/js/echarts',
|
|
26
|
-
page: '/src/mixins/page.js'
|
|
27
|
-
},
|
|
28
|
-
shim: {
|
|
29
|
-
clipboard: {
|
|
30
|
-
deps: ['jquery']
|
|
31
|
-
},
|
|
32
|
-
swiper: {
|
|
33
|
-
deps: ['jquery']
|
|
34
|
-
},
|
|
35
|
-
mm_sdk: {
|
|
36
|
-
deps: ['jquery']
|
|
37
|
-
},
|
|
38
|
-
ui: {
|
|
39
|
-
deps: ['jquery']
|
|
40
|
-
},
|
|
41
|
-
mm_vue: {
|
|
42
|
-
deps: ['mm_sdk']
|
|
43
|
-
},
|
|
44
|
-
vuex: {
|
|
45
|
-
deps: ['Vue']
|
|
46
|
-
},
|
|
47
|
-
VueRouter: {
|
|
48
|
-
deps: ['Vue']
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
config: {
|
|
52
|
-
// vue加载配置
|
|
53
|
-
'vue': {
|
|
54
|
-
'css': 'inject',
|
|
55
|
-
'templateVar': '__template__'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}, ['Vue', 'mm_sdk', 'ui', 'clipboard', 'mm_vue', 'store', 'router', 'vue!./App.vue'], function(Vue, mm_sdk, ui,
|
|
59
|
-
clipboard, mm_vue, store, router,
|
|
60
|
-
app) {
|
|
61
|
-
// 开启调试模式
|
|
62
|
-
Vue.config.debug = true;
|
|
63
|
-
// 使用UI组件
|
|
64
|
-
Vue.config.devtools = true;
|
|
65
|
-
|
|
66
|
-
Vue.use(mm_vue);
|
|
67
|
-
Vue.use(ui);
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @description 初始化整个Vue应用程序
|
|
71
|
-
* 由于组件预先注册的标记名而自动放置的组件头将在应用程序模板中找到
|
|
72
|
-
*/
|
|
73
|
-
var vue = new Vue({
|
|
74
|
-
el: '#app',
|
|
75
|
-
// 引用缓存管理器
|
|
76
|
-
store: store,
|
|
77
|
-
// 引用路由管理器
|
|
78
|
-
router: router,
|
|
79
|
-
// 渲染页面
|
|
80
|
-
render: function render(h) {
|
|
81
|
-
return h(app);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
});
|