From 81aba0c9b74f5111724ca7dfae116aecaa5cb8af Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Sat, 18 Nov 2023 10:47:46 +0800 Subject: [PATCH] first commit --- api/config.js | 6 + api/file.js | 50 + api/index.js | 28 + api/oa.js | 12 + api/oaApi.js | 60 + api/oaUser.js | 27 + api/pubic.js | 17 + api/upload.js | 65 + api/user.js | 743 + components/a-map-walking.vue | 86 + components/gb-popup/gb-popup.vue | 169 + components/index/detaila.vue | 818 + components/index/detailb.vue | 720 + components/index/detailc.vue | 471 + components/index/index.vue | 481 + components/index/index1.vue | 509 + components/index/indexg.vue | 448 + components/jyf-parser/jyf-parser.vue | 815 + components/jyf-parser/libs/CssHandler.js | 111 + components/jyf-parser/libs/MpHtmlParser.js | 586 + components/jyf-parser/libs/config.js | 89 + components/jyf-parser/libs/handler.sjs | 44 + components/jyf-parser/libs/handler.wxs | 53 + components/jyf-parser/libs/trees.vue | 485 + components/return/index.vue | 120 + components/uni-popup/uni-popup.vue | 246 + components/w-picker/areadata/areadata.js | 1 + components/w-picker/date-picker.vue | 742 + components/w-picker/half-picker.vue | 345 + components/w-picker/linkage-picker.vue | 274 + components/w-picker/range-picker.vue | 344 + components/w-picker/region-picker.vue | 183 + components/w-picker/selector-picker.vue | 129 + components/w-picker/shortterm-picker.vue | 250 + components/w-picker/time-picker.vue | 218 + components/w-picker/w-picker.css | 26 + components/w-picker/w-picker.vue | 340 + config/app.js | 56 + config/cache.js | 41 + libs/login.js | 104 + libs/routine.js | 186 + libs/uniApi.js | 474 + node_modules/.package-lock.json | 21 + node_modules/crypto-js/CONTRIBUTING.md | 28 + node_modules/crypto-js/LICENSE | 24 + node_modules/crypto-js/README.md | 275 + node_modules/crypto-js/aes.js | 234 + node_modules/crypto-js/blowfish.js | 471 + node_modules/crypto-js/bower.json | 39 + node_modules/crypto-js/cipher-core.js | 895 + node_modules/crypto-js/core.js | 807 + node_modules/crypto-js/crypto-js.js | 6657 ++++++ .../crypto-js/docs/QuickStartGuide.wiki | 470 + node_modules/crypto-js/enc-base64.js | 136 + node_modules/crypto-js/enc-base64url.js | 148 + node_modules/crypto-js/enc-hex.js | 18 + node_modules/crypto-js/enc-latin1.js | 18 + node_modules/crypto-js/enc-utf16.js | 149 + node_modules/crypto-js/enc-utf8.js | 18 + node_modules/crypto-js/evpkdf.js | 134 + node_modules/crypto-js/format-hex.js | 66 + node_modules/crypto-js/format-openssl.js | 18 + node_modules/crypto-js/hmac-md5.js | 18 + node_modules/crypto-js/hmac-ripemd160.js | 18 + node_modules/crypto-js/hmac-sha1.js | 18 + node_modules/crypto-js/hmac-sha224.js | 18 + node_modules/crypto-js/hmac-sha256.js | 18 + node_modules/crypto-js/hmac-sha3.js | 18 + node_modules/crypto-js/hmac-sha384.js | 18 + node_modules/crypto-js/hmac-sha512.js | 18 + node_modules/crypto-js/hmac.js | 143 + node_modules/crypto-js/index.js | 18 + node_modules/crypto-js/lib-typedarrays.js | 76 + node_modules/crypto-js/md5.js | 268 + node_modules/crypto-js/mode-cfb.js | 80 + node_modules/crypto-js/mode-ctr-gladman.js | 116 + node_modules/crypto-js/mode-ctr.js | 58 + node_modules/crypto-js/mode-ecb.js | 40 + node_modules/crypto-js/mode-ofb.js | 54 + node_modules/crypto-js/package.json | 42 + node_modules/crypto-js/pad-ansix923.js | 49 + node_modules/crypto-js/pad-iso10126.js | 44 + node_modules/crypto-js/pad-iso97971.js | 40 + node_modules/crypto-js/pad-nopadding.js | 30 + node_modules/crypto-js/pad-pkcs7.js | 18 + node_modules/crypto-js/pad-zeropadding.js | 47 + node_modules/crypto-js/pbkdf2.js | 145 + node_modules/crypto-js/rabbit-legacy.js | 190 + node_modules/crypto-js/rabbit.js | 192 + node_modules/crypto-js/rc4.js | 139 + node_modules/crypto-js/ripemd160.js | 267 + node_modules/crypto-js/sha1.js | 150 + node_modules/crypto-js/sha224.js | 80 + node_modules/crypto-js/sha256.js | 199 + node_modules/crypto-js/sha3.js | 326 + node_modules/crypto-js/sha384.js | 83 + node_modules/crypto-js/sha512.js | 326 + node_modules/crypto-js/tripledes.js | 779 + node_modules/crypto-js/x64-core.js | 304 + node_modules/moment/CHANGELOG.md | 988 + node_modules/moment/LICENSE | 22 + node_modules/moment/README.md | 55 + node_modules/moment/dist/locale/af.js | 71 + node_modules/moment/dist/locale/ar-dz.js | 156 + node_modules/moment/dist/locale/ar-kw.js | 55 + node_modules/moment/dist/locale/ar-ly.js | 171 + node_modules/moment/dist/locale/ar-ma.js | 56 + node_modules/moment/dist/locale/ar-sa.js | 105 + node_modules/moment/dist/locale/ar-tn.js | 55 + node_modules/moment/dist/locale/ar.js | 189 + node_modules/moment/dist/locale/az.js | 102 + node_modules/moment/dist/locale/be.js | 142 + node_modules/moment/dist/locale/bg.js | 87 + node_modules/moment/dist/locale/bm.js | 52 + node_modules/moment/dist/locale/bn-bd.js | 129 + node_modules/moment/dist/locale/bn.js | 119 + node_modules/moment/dist/locale/bo.js | 124 + node_modules/moment/dist/locale/br.js | 168 + node_modules/moment/dist/locale/bs.js | 150 + node_modules/moment/dist/locale/ca.js | 100 + node_modules/moment/dist/locale/cs.js | 180 + node_modules/moment/dist/locale/cv.js | 63 + node_modules/moment/dist/locale/cy.js | 98 + node_modules/moment/dist/locale/da.js | 53 + node_modules/moment/dist/locale/de-at.js | 79 + node_modules/moment/dist/locale/de-ch.js | 78 + node_modules/moment/dist/locale/de.js | 78 + node_modules/moment/dist/locale/dv.js | 90 + node_modules/moment/dist/locale/el.js | 106 + node_modules/moment/dist/locale/en-au.js | 68 + node_modules/moment/dist/locale/en-ca.js | 64 + node_modules/moment/dist/locale/en-gb.js | 68 + node_modules/moment/dist/locale/en-ie.js | 68 + node_modules/moment/dist/locale/en-il.js | 64 + node_modules/moment/dist/locale/en-in.js | 68 + node_modules/moment/dist/locale/en-nz.js | 68 + node_modules/moment/dist/locale/en-sg.js | 68 + node_modules/moment/dist/locale/eo.js | 68 + node_modules/moment/dist/locale/es-do.js | 108 + node_modules/moment/dist/locale/es-mx.js | 110 + node_modules/moment/dist/locale/es-us.js | 110 + node_modules/moment/dist/locale/es.js | 110 + node_modules/moment/dist/locale/et.js | 78 + node_modules/moment/dist/locale/eu.js | 65 + node_modules/moment/dist/locale/fa.js | 113 + node_modules/moment/dist/locale/fi.js | 124 + node_modules/moment/dist/locale/fil.js | 58 + node_modules/moment/dist/locale/fo.js | 57 + node_modules/moment/dist/locale/fr-ca.js | 70 + node_modules/moment/dist/locale/fr-ch.js | 74 + node_modules/moment/dist/locale/fr.js | 108 + node_modules/moment/dist/locale/fy.js | 75 + node_modules/moment/dist/locale/ga.js | 95 + node_modules/moment/dist/locale/gd.js | 95 + node_modules/moment/dist/locale/gl.js | 75 + node_modules/moment/dist/locale/gom-deva.js | 126 + node_modules/moment/dist/locale/gom-latn.js | 124 + node_modules/moment/dist/locale/gu.js | 122 + node_modules/moment/dist/locale/he.js | 94 + node_modules/moment/dist/locale/hi.js | 168 + node_modules/moment/dist/locale/hr.js | 156 + node_modules/moment/dist/locale/hu.js | 118 + node_modules/moment/dist/locale/hy-am.js | 94 + node_modules/moment/dist/locale/id.js | 76 + node_modules/moment/dist/locale/is.js | 140 + node_modules/moment/dist/locale/it-ch.js | 64 + node_modules/moment/dist/locale/it.js | 106 + node_modules/moment/dist/locale/ja.js | 148 + node_modules/moment/dist/locale/jv.js | 76 + node_modules/moment/dist/locale/ka.js | 92 + node_modules/moment/dist/locale/kk.js | 82 + node_modules/moment/dist/locale/km.js | 103 + node_modules/moment/dist/locale/kn.js | 124 + node_modules/moment/dist/locale/ko.js | 75 + node_modules/moment/dist/locale/ku.js | 118 + node_modules/moment/dist/locale/ky.js | 84 + node_modules/moment/dist/locale/lb.js | 137 + node_modules/moment/dist/locale/lo.js | 66 + node_modules/moment/dist/locale/lt.js | 125 + node_modules/moment/dist/locale/lv.js | 94 + node_modules/moment/dist/locale/me.js | 117 + node_modules/moment/dist/locale/mi.js | 60 + node_modules/moment/dist/locale/mk.js | 85 + node_modules/moment/dist/locale/ml.js | 82 + node_modules/moment/dist/locale/mn.js | 100 + node_modules/moment/dist/locale/mr.js | 203 + node_modules/moment/dist/locale/ms-my.js | 76 + node_modules/moment/dist/locale/ms.js | 75 + node_modules/moment/dist/locale/mt.js | 56 + node_modules/moment/dist/locale/my.js | 91 + node_modules/moment/dist/locale/nb.js | 60 + node_modules/moment/dist/locale/ne.js | 121 + node_modules/moment/dist/locale/nl-be.js | 102 + node_modules/moment/dist/locale/nl.js | 104 + node_modules/moment/dist/locale/nn.js | 59 + node_modules/moment/dist/locale/oc-lnc.js | 85 + node_modules/moment/dist/locale/pa-in.js | 122 + node_modules/moment/dist/locale/pl.js | 140 + node_modules/moment/dist/locale/pt-br.js | 58 + node_modules/moment/dist/locale/pt.js | 63 + node_modules/moment/dist/locale/ro.js | 76 + node_modules/moment/dist/locale/ru.js | 213 + node_modules/moment/dist/locale/sd.js | 81 + node_modules/moment/dist/locale/se.js | 57 + node_modules/moment/dist/locale/si.js | 69 + node_modules/moment/dist/locale/sk.js | 145 + node_modules/moment/dist/locale/sl.js | 171 + node_modules/moment/dist/locale/sq.js | 65 + node_modules/moment/dist/locale/sr-cyrl.js | 127 + node_modules/moment/dist/locale/sr.js | 129 + node_modules/moment/dist/locale/ss.js | 84 + node_modules/moment/dist/locale/sv.js | 68 + node_modules/moment/dist/locale/sw.js | 55 + node_modules/moment/dist/locale/ta.js | 131 + node_modules/moment/dist/locale/te.js | 88 + node_modules/moment/dist/locale/tet.js | 68 + node_modules/moment/dist/locale/tg.js | 117 + node_modules/moment/dist/locale/th.js | 65 + node_modules/moment/dist/locale/tk.js | 91 + node_modules/moment/dist/locale/tl-ph.js | 57 + node_modules/moment/dist/locale/tlh.js | 124 + node_modules/moment/dist/locale/tr.js | 106 + node_modules/moment/dist/locale/tzl.js | 89 + node_modules/moment/dist/locale/tzm-latn.js | 54 + node_modules/moment/dist/locale/tzm.js | 54 + node_modules/moment/dist/locale/ug-cn.js | 111 + node_modules/moment/dist/locale/uk.js | 167 + node_modules/moment/dist/locale/ur.js | 82 + node_modules/moment/dist/locale/uz-latn.js | 54 + node_modules/moment/dist/locale/uz.js | 51 + node_modules/moment/dist/locale/vi.js | 80 + node_modules/moment/dist/locale/x-pseudo.js | 73 + node_modules/moment/dist/locale/yo.js | 53 + node_modules/moment/dist/locale/zh-cn.js | 120 + node_modules/moment/dist/locale/zh-hk.js | 101 + node_modules/moment/dist/locale/zh-mo.js | 100 + node_modules/moment/dist/locale/zh-tw.js | 99 + node_modules/moment/dist/moment.js | 5677 +++++ node_modules/moment/ender.js | 1 + node_modules/moment/locale/af.js | 82 + node_modules/moment/locale/ar-dz.js | 167 + node_modules/moment/locale/ar-kw.js | 66 + node_modules/moment/locale/ar-ly.js | 182 + node_modules/moment/locale/ar-ma.js | 67 + node_modules/moment/locale/ar-sa.js | 116 + node_modules/moment/locale/ar-tn.js | 66 + node_modules/moment/locale/ar.js | 200 + node_modules/moment/locale/az.js | 113 + node_modules/moment/locale/be.js | 153 + node_modules/moment/locale/bg.js | 98 + node_modules/moment/locale/bm.js | 62 + node_modules/moment/locale/bn-bd.js | 140 + node_modules/moment/locale/bn.js | 130 + node_modules/moment/locale/bo.js | 135 + node_modules/moment/locale/br.js | 179 + node_modules/moment/locale/bs.js | 161 + node_modules/moment/locale/ca.js | 111 + node_modules/moment/locale/cs.js | 191 + node_modules/moment/locale/cv.js | 74 + node_modules/moment/locale/cy.js | 109 + node_modules/moment/locale/da.js | 64 + node_modules/moment/locale/de-at.js | 90 + node_modules/moment/locale/de-ch.js | 87 + node_modules/moment/locale/de.js | 89 + node_modules/moment/locale/dv.js | 101 + node_modules/moment/locale/el.js | 117 + node_modules/moment/locale/en-au.js | 79 + node_modules/moment/locale/en-ca.js | 75 + node_modules/moment/locale/en-gb.js | 79 + node_modules/moment/locale/en-ie.js | 79 + node_modules/moment/locale/en-il.js | 75 + node_modules/moment/locale/en-in.js | 79 + node_modules/moment/locale/en-nz.js | 79 + node_modules/moment/locale/en-sg.js | 79 + node_modules/moment/locale/eo.js | 79 + node_modules/moment/locale/es-do.js | 119 + node_modules/moment/locale/es-mx.js | 121 + node_modules/moment/locale/es-us.js | 121 + node_modules/moment/locale/es.js | 121 + node_modules/moment/locale/et.js | 89 + node_modules/moment/locale/eu.js | 76 + node_modules/moment/locale/fa.js | 124 + node_modules/moment/locale/fi.js | 135 + node_modules/moment/locale/fil.js | 69 + node_modules/moment/locale/fo.js | 68 + node_modules/moment/locale/fr-ca.js | 81 + node_modules/moment/locale/fr-ch.js | 85 + node_modules/moment/locale/fr.js | 119 + node_modules/moment/locale/fy.js | 86 + node_modules/moment/locale/ga.js | 106 + node_modules/moment/locale/gd.js | 106 + node_modules/moment/locale/gl.js | 86 + node_modules/moment/locale/gom-deva.js | 137 + node_modules/moment/locale/gom-latn.js | 135 + node_modules/moment/locale/gu.js | 133 + node_modules/moment/locale/he.js | 105 + node_modules/moment/locale/hi.js | 179 + node_modules/moment/locale/hr.js | 167 + node_modules/moment/locale/hu.js | 129 + node_modules/moment/locale/hy-am.js | 105 + node_modules/moment/locale/id.js | 87 + node_modules/moment/locale/is.js | 151 + node_modules/moment/locale/it-ch.js | 75 + node_modules/moment/locale/it.js | 117 + node_modules/moment/locale/ja.js | 159 + node_modules/moment/locale/jv.js | 87 + node_modules/moment/locale/ka.js | 103 + node_modules/moment/locale/kk.js | 93 + node_modules/moment/locale/km.js | 114 + node_modules/moment/locale/kn.js | 135 + node_modules/moment/locale/ko.js | 86 + node_modules/moment/locale/ku.js | 129 + node_modules/moment/locale/ky.js | 95 + node_modules/moment/locale/lb.js | 148 + node_modules/moment/locale/lo.js | 77 + node_modules/moment/locale/lt.js | 136 + node_modules/moment/locale/lv.js | 105 + node_modules/moment/locale/me.js | 128 + node_modules/moment/locale/mi.js | 71 + node_modules/moment/locale/mk.js | 97 + node_modules/moment/locale/ml.js | 93 + node_modules/moment/locale/mn.js | 111 + node_modules/moment/locale/mr.js | 214 + node_modules/moment/locale/ms-my.js | 87 + node_modules/moment/locale/ms.js | 86 + node_modules/moment/locale/mt.js | 67 + node_modules/moment/locale/my.js | 102 + node_modules/moment/locale/nb.js | 71 + node_modules/moment/locale/ne.js | 132 + node_modules/moment/locale/nl-be.js | 113 + node_modules/moment/locale/nl.js | 115 + node_modules/moment/locale/nn.js | 70 + node_modules/moment/locale/oc-lnc.js | 96 + node_modules/moment/locale/pa-in.js | 133 + node_modules/moment/locale/pl.js | 151 + node_modules/moment/locale/pt-br.js | 69 + node_modules/moment/locale/pt.js | 74 + node_modules/moment/locale/ro.js | 87 + node_modules/moment/locale/ru.js | 224 + node_modules/moment/locale/sd.js | 92 + node_modules/moment/locale/se.js | 68 + node_modules/moment/locale/si.js | 80 + node_modules/moment/locale/sk.js | 156 + node_modules/moment/locale/sl.js | 182 + node_modules/moment/locale/sq.js | 76 + node_modules/moment/locale/sr-cyrl.js | 138 + node_modules/moment/locale/sr.js | 140 + node_modules/moment/locale/ss.js | 95 + node_modules/moment/locale/sv.js | 79 + node_modules/moment/locale/sw.js | 66 + node_modules/moment/locale/ta.js | 142 + node_modules/moment/locale/te.js | 99 + node_modules/moment/locale/tet.js | 79 + node_modules/moment/locale/tg.js | 128 + node_modules/moment/locale/th.js | 76 + node_modules/moment/locale/tk.js | 102 + node_modules/moment/locale/tl-ph.js | 68 + node_modules/moment/locale/tlh.js | 135 + node_modules/moment/locale/tr.js | 117 + node_modules/moment/locale/tzl.js | 100 + node_modules/moment/locale/tzm-latn.js | 65 + node_modules/moment/locale/tzm.js | 65 + node_modules/moment/locale/ug-cn.js | 122 + node_modules/moment/locale/uk.js | 178 + node_modules/moment/locale/ur.js | 93 + node_modules/moment/locale/uz-latn.js | 65 + node_modules/moment/locale/uz.js | 62 + node_modules/moment/locale/vi.js | 91 + node_modules/moment/locale/x-pseudo.js | 84 + node_modules/moment/locale/yo.js | 64 + node_modules/moment/locale/zh-cn.js | 131 + node_modules/moment/locale/zh-hk.js | 112 + node_modules/moment/locale/zh-mo.js | 111 + node_modules/moment/locale/zh-tw.js | 110 + node_modules/moment/min/locales.js | 12570 +++++++++++ node_modules/moment/min/locales.min.js | 2 + node_modules/moment/min/locales.min.js.map | 1 + .../moment/min/moment-with-locales.js | 18239 ++++++++++++++++ .../moment/min/moment-with-locales.min.js | 2 + .../moment/min/moment-with-locales.min.js.map | 1 + node_modules/moment/min/moment.min.js | 2 + node_modules/moment/min/moment.min.js.map | 1 + node_modules/moment/moment.d.ts | 796 + node_modules/moment/moment.js | 5685 +++++ node_modules/moment/package.js | 11 + node_modules/moment/package.json | 112 + .../moment/src/lib/create/check-overflow.js | 57 + .../moment/src/lib/create/date-from-array.js | 35 + .../moment/src/lib/create/from-anything.js | 117 + .../moment/src/lib/create/from-array.js | 187 + .../moment/src/lib/create/from-object.js | 20 + .../src/lib/create/from-string-and-array.js | 67 + .../src/lib/create/from-string-and-format.js | 135 + .../moment/src/lib/create/from-string.js | 258 + node_modules/moment/src/lib/create/local.js | 5 + .../moment/src/lib/create/parsing-flags.js | 28 + node_modules/moment/src/lib/create/utc.js | 5 + node_modules/moment/src/lib/create/valid.js | 51 + node_modules/moment/src/lib/duration/abs.js | 18 + .../moment/src/lib/duration/add-subtract.js | 21 + node_modules/moment/src/lib/duration/as.js | 88 + .../moment/src/lib/duration/bubble.js | 68 + node_modules/moment/src/lib/duration/clone.js | 5 + .../moment/src/lib/duration/constructor.js | 42 + .../moment/src/lib/duration/create.js | 133 + .../moment/src/lib/duration/duration.js | 16 + node_modules/moment/src/lib/duration/get.js | 27 + .../moment/src/lib/duration/humanize.js | 114 + .../moment/src/lib/duration/iso-string.js | 68 + .../moment/src/lib/duration/prototype.js | 78 + node_modules/moment/src/lib/duration/valid.js | 55 + node_modules/moment/src/lib/format/format.js | 104 + .../moment/src/lib/locale/base-config.js | 41 + .../moment/src/lib/locale/calendar.js | 15 + .../moment/src/lib/locale/constructor.js | 5 + node_modules/moment/src/lib/locale/en.js | 39 + node_modules/moment/src/lib/locale/formats.js | 36 + node_modules/moment/src/lib/locale/invalid.js | 5 + node_modules/moment/src/lib/locale/lists.js | 93 + node_modules/moment/src/lib/locale/locale.js | 45 + node_modules/moment/src/lib/locale/locales.js | 248 + node_modules/moment/src/lib/locale/ordinal.js | 8 + .../moment/src/lib/locale/pre-post-format.js | 3 + .../moment/src/lib/locale/prototype.js | 88 + .../moment/src/lib/locale/relative.js | 32 + node_modules/moment/src/lib/locale/set.js | 56 + .../moment/src/lib/moment/add-subtract.js | 61 + .../moment/src/lib/moment/calendar.js | 53 + node_modules/moment/src/lib/moment/clone.js | 5 + node_modules/moment/src/lib/moment/compare.js | 72 + .../moment/src/lib/moment/constructor.js | 80 + .../moment/src/lib/moment/creation-data.js | 9 + node_modules/moment/src/lib/moment/diff.js | 79 + node_modules/moment/src/lib/moment/format.js | 78 + node_modules/moment/src/lib/moment/from.js | 20 + node_modules/moment/src/lib/moment/get-set.js | 73 + node_modules/moment/src/lib/moment/locale.js | 34 + node_modules/moment/src/lib/moment/min-max.js | 62 + node_modules/moment/src/lib/moment/moment.js | 28 + node_modules/moment/src/lib/moment/now.js | 3 + .../moment/src/lib/moment/prototype.js | 197 + .../moment/src/lib/moment/start-end-of.js | 164 + node_modules/moment/src/lib/moment/to-type.js | 42 + node_modules/moment/src/lib/moment/to.js | 20 + node_modules/moment/src/lib/moment/valid.js | 15 + node_modules/moment/src/lib/parse/regex.js | 80 + node_modules/moment/src/lib/parse/token.js | 36 + node_modules/moment/src/lib/units/aliases.js | 31 + .../moment/src/lib/units/constants.js | 9 + .../moment/src/lib/units/day-of-month.js | 39 + .../moment/src/lib/units/day-of-week.js | 443 + .../moment/src/lib/units/day-of-year.js | 37 + node_modules/moment/src/lib/units/era.js | 287 + node_modules/moment/src/lib/units/hour.js | 159 + .../moment/src/lib/units/millisecond.js | 76 + node_modules/moment/src/lib/units/minute.js | 29 + node_modules/moment/src/lib/units/month.js | 349 + node_modules/moment/src/lib/units/offset.js | 249 + .../moment/src/lib/units/priorities.js | 21 + node_modules/moment/src/lib/units/quarter.js | 34 + node_modules/moment/src/lib/units/second.js | 29 + .../moment/src/lib/units/timestamp.js | 20 + node_modules/moment/src/lib/units/timezone.js | 16 + node_modules/moment/src/lib/units/units.js | 20 + .../src/lib/units/week-calendar-utils.js | 66 + .../moment/src/lib/units/week-year.js | 138 + node_modules/moment/src/lib/units/week.js | 69 + node_modules/moment/src/lib/units/year.js | 85 + node_modules/moment/src/lib/utils/abs-ceil.js | 7 + .../moment/src/lib/utils/abs-floor.js | 8 + .../moment/src/lib/utils/abs-round.js | 7 + .../moment/src/lib/utils/compare-arrays.js | 18 + node_modules/moment/src/lib/utils/defaults.js | 10 + .../moment/src/lib/utils/deprecate.js | 69 + node_modules/moment/src/lib/utils/extend.js | 19 + .../moment/src/lib/utils/has-own-prop.js | 3 + node_modules/moment/src/lib/utils/hooks.js | 13 + node_modules/moment/src/lib/utils/index-of.js | 18 + node_modules/moment/src/lib/utils/is-array.js | 6 + .../moment/src/lib/utils/is-calendar-spec.js | 25 + node_modules/moment/src/lib/utils/is-date.js | 6 + .../moment/src/lib/utils/is-function.js | 6 + .../moment/src/lib/utils/is-leap-year.js | 3 + .../moment/src/lib/utils/is-moment-input.js | 75 + .../moment/src/lib/utils/is-number.js | 6 + .../moment/src/lib/utils/is-object-empty.js | 15 + .../moment/src/lib/utils/is-object.js | 8 + .../moment/src/lib/utils/is-string.js | 3 + .../moment/src/lib/utils/is-undefined.js | 3 + node_modules/moment/src/lib/utils/keys.js | 20 + node_modules/moment/src/lib/utils/map.js | 9 + node_modules/moment/src/lib/utils/mod.js | 3 + node_modules/moment/src/lib/utils/some.js | 20 + node_modules/moment/src/lib/utils/to-int.js | 12 + .../moment/src/lib/utils/zero-fill.js | 10 + node_modules/moment/src/locale/af.js | 71 + node_modules/moment/src/locale/ar-dz.js | 156 + node_modules/moment/src/locale/ar-kw.js | 55 + node_modules/moment/src/locale/ar-ly.js | 171 + node_modules/moment/src/locale/ar-ma.js | 56 + node_modules/moment/src/locale/ar-sa.js | 105 + node_modules/moment/src/locale/ar-tn.js | 55 + node_modules/moment/src/locale/ar.js | 189 + node_modules/moment/src/locale/az.js | 102 + node_modules/moment/src/locale/be.js | 142 + node_modules/moment/src/locale/bg.js | 87 + node_modules/moment/src/locale/bm.js | 52 + node_modules/moment/src/locale/bn-bd.js | 129 + node_modules/moment/src/locale/bn.js | 119 + node_modules/moment/src/locale/bo.js | 124 + node_modules/moment/src/locale/br.js | 168 + node_modules/moment/src/locale/bs.js | 150 + node_modules/moment/src/locale/ca.js | 100 + node_modules/moment/src/locale/cs.js | 180 + node_modules/moment/src/locale/cv.js | 63 + node_modules/moment/src/locale/cy.js | 98 + node_modules/moment/src/locale/da.js | 53 + node_modules/moment/src/locale/de-at.js | 79 + node_modules/moment/src/locale/de-ch.js | 78 + node_modules/moment/src/locale/de.js | 78 + node_modules/moment/src/locale/dv.js | 90 + node_modules/moment/src/locale/el.js | 106 + node_modules/moment/src/locale/en-au.js | 68 + node_modules/moment/src/locale/en-ca.js | 64 + node_modules/moment/src/locale/en-gb.js | 68 + node_modules/moment/src/locale/en-ie.js | 68 + node_modules/moment/src/locale/en-il.js | 64 + node_modules/moment/src/locale/en-in.js | 68 + node_modules/moment/src/locale/en-nz.js | 68 + node_modules/moment/src/locale/en-sg.js | 68 + node_modules/moment/src/locale/eo.js | 68 + node_modules/moment/src/locale/es-do.js | 108 + node_modules/moment/src/locale/es-mx.js | 110 + node_modules/moment/src/locale/es-us.js | 110 + node_modules/moment/src/locale/es.js | 110 + node_modules/moment/src/locale/et.js | 78 + node_modules/moment/src/locale/eu.js | 65 + node_modules/moment/src/locale/fa.js | 113 + node_modules/moment/src/locale/fi.js | 124 + node_modules/moment/src/locale/fil.js | 58 + node_modules/moment/src/locale/fo.js | 57 + node_modules/moment/src/locale/fr-ca.js | 70 + node_modules/moment/src/locale/fr-ch.js | 74 + node_modules/moment/src/locale/fr.js | 108 + node_modules/moment/src/locale/fy.js | 75 + node_modules/moment/src/locale/ga.js | 95 + node_modules/moment/src/locale/gd.js | 95 + node_modules/moment/src/locale/gl.js | 75 + node_modules/moment/src/locale/gom-deva.js | 126 + node_modules/moment/src/locale/gom-latn.js | 124 + node_modules/moment/src/locale/gu.js | 122 + node_modules/moment/src/locale/he.js | 94 + node_modules/moment/src/locale/hi.js | 168 + node_modules/moment/src/locale/hr.js | 156 + node_modules/moment/src/locale/hu.js | 118 + node_modules/moment/src/locale/hy-am.js | 94 + node_modules/moment/src/locale/id.js | 76 + node_modules/moment/src/locale/is.js | 140 + node_modules/moment/src/locale/it-ch.js | 64 + node_modules/moment/src/locale/it.js | 106 + node_modules/moment/src/locale/ja.js | 148 + node_modules/moment/src/locale/jv.js | 76 + node_modules/moment/src/locale/ka.js | 92 + node_modules/moment/src/locale/kk.js | 82 + node_modules/moment/src/locale/km.js | 103 + node_modules/moment/src/locale/kn.js | 124 + node_modules/moment/src/locale/ko.js | 75 + node_modules/moment/src/locale/ku.js | 118 + node_modules/moment/src/locale/ky.js | 84 + node_modules/moment/src/locale/lb.js | 137 + node_modules/moment/src/locale/lo.js | 66 + node_modules/moment/src/locale/lt.js | 125 + node_modules/moment/src/locale/lv.js | 94 + node_modules/moment/src/locale/me.js | 117 + node_modules/moment/src/locale/mi.js | 60 + node_modules/moment/src/locale/mk.js | 85 + node_modules/moment/src/locale/ml.js | 82 + node_modules/moment/src/locale/mn.js | 100 + node_modules/moment/src/locale/mr.js | 203 + node_modules/moment/src/locale/ms-my.js | 76 + node_modules/moment/src/locale/ms.js | 75 + node_modules/moment/src/locale/mt.js | 56 + node_modules/moment/src/locale/my.js | 91 + node_modules/moment/src/locale/nb.js | 60 + node_modules/moment/src/locale/ne.js | 121 + node_modules/moment/src/locale/nl-be.js | 102 + node_modules/moment/src/locale/nl.js | 104 + node_modules/moment/src/locale/nn.js | 59 + node_modules/moment/src/locale/oc-lnc.js | 85 + node_modules/moment/src/locale/pa-in.js | 122 + node_modules/moment/src/locale/pl.js | 140 + node_modules/moment/src/locale/pt-br.js | 58 + node_modules/moment/src/locale/pt.js | 63 + node_modules/moment/src/locale/ro.js | 76 + node_modules/moment/src/locale/ru.js | 213 + node_modules/moment/src/locale/sd.js | 81 + node_modules/moment/src/locale/se.js | 57 + node_modules/moment/src/locale/si.js | 69 + node_modules/moment/src/locale/sk.js | 145 + node_modules/moment/src/locale/sl.js | 171 + node_modules/moment/src/locale/sq.js | 65 + node_modules/moment/src/locale/sr-cyrl.js | 127 + node_modules/moment/src/locale/sr.js | 129 + node_modules/moment/src/locale/ss.js | 84 + node_modules/moment/src/locale/sv.js | 68 + node_modules/moment/src/locale/sw.js | 55 + node_modules/moment/src/locale/ta.js | 131 + node_modules/moment/src/locale/te.js | 88 + node_modules/moment/src/locale/tet.js | 68 + node_modules/moment/src/locale/tg.js | 117 + node_modules/moment/src/locale/th.js | 65 + node_modules/moment/src/locale/tk.js | 91 + node_modules/moment/src/locale/tl-ph.js | 57 + node_modules/moment/src/locale/tlh.js | 124 + node_modules/moment/src/locale/tr.js | 106 + node_modules/moment/src/locale/tzl.js | 89 + node_modules/moment/src/locale/tzm-latn.js | 54 + node_modules/moment/src/locale/tzm.js | 54 + node_modules/moment/src/locale/ug-cn.js | 111 + node_modules/moment/src/locale/uk.js | 167 + node_modules/moment/src/locale/ur.js | 82 + node_modules/moment/src/locale/uz-latn.js | 54 + node_modules/moment/src/locale/uz.js | 51 + node_modules/moment/src/locale/vi.js | 80 + node_modules/moment/src/locale/x-pseudo.js | 73 + node_modules/moment/src/locale/yo.js | 53 + node_modules/moment/src/locale/zh-cn.js | 120 + node_modules/moment/src/locale/zh-hk.js | 101 + node_modules/moment/src/locale/zh-mo.js | 100 + node_modules/moment/src/locale/zh-tw.js | 99 + node_modules/moment/src/moment.js | 93 + node_modules/moment/ts3.1-typings/moment.d.ts | 785 + pages/index/detail.vue | 459 + pages/index/index.vue | 354 + pages/index/subnvue.nvue | 54 + pages/oaLogin/oaLogin.vue | 355 + pages/psong/detail.vue | 301 + pages/psong/index.vue | 290 + pages/sda/detail.vue | 293 + pages/sda/index.vue | 281 + pages/submap/index.vue | 176 + 641 files changed, 120562 insertions(+) create mode 100644 api/config.js create mode 100644 api/file.js create mode 100644 api/index.js create mode 100644 api/oa.js create mode 100644 api/oaApi.js create mode 100644 api/oaUser.js create mode 100644 api/pubic.js create mode 100644 api/upload.js create mode 100644 api/user.js create mode 100644 components/a-map-walking.vue create mode 100644 components/gb-popup/gb-popup.vue create mode 100644 components/index/detaila.vue create mode 100644 components/index/detailb.vue create mode 100644 components/index/detailc.vue create mode 100644 components/index/index.vue create mode 100644 components/index/index1.vue create mode 100644 components/index/indexg.vue create mode 100644 components/jyf-parser/jyf-parser.vue create mode 100644 components/jyf-parser/libs/CssHandler.js create mode 100644 components/jyf-parser/libs/MpHtmlParser.js create mode 100644 components/jyf-parser/libs/config.js create mode 100644 components/jyf-parser/libs/handler.sjs create mode 100644 components/jyf-parser/libs/handler.wxs create mode 100644 components/jyf-parser/libs/trees.vue create mode 100644 components/return/index.vue create mode 100644 components/uni-popup/uni-popup.vue create mode 100644 components/w-picker/areadata/areadata.js create mode 100644 components/w-picker/date-picker.vue create mode 100644 components/w-picker/half-picker.vue create mode 100644 components/w-picker/linkage-picker.vue create mode 100644 components/w-picker/range-picker.vue create mode 100644 components/w-picker/region-picker.vue create mode 100644 components/w-picker/selector-picker.vue create mode 100644 components/w-picker/shortterm-picker.vue create mode 100644 components/w-picker/time-picker.vue create mode 100644 components/w-picker/w-picker.css create mode 100644 components/w-picker/w-picker.vue create mode 100644 config/app.js create mode 100644 config/cache.js create mode 100644 libs/login.js create mode 100644 libs/routine.js create mode 100644 libs/uniApi.js create mode 100644 node_modules/.package-lock.json create mode 100644 node_modules/crypto-js/CONTRIBUTING.md create mode 100644 node_modules/crypto-js/LICENSE create mode 100644 node_modules/crypto-js/README.md create mode 100644 node_modules/crypto-js/aes.js create mode 100644 node_modules/crypto-js/blowfish.js create mode 100644 node_modules/crypto-js/bower.json create mode 100644 node_modules/crypto-js/cipher-core.js create mode 100644 node_modules/crypto-js/core.js create mode 100644 node_modules/crypto-js/crypto-js.js create mode 100644 node_modules/crypto-js/docs/QuickStartGuide.wiki create mode 100644 node_modules/crypto-js/enc-base64.js create mode 100644 node_modules/crypto-js/enc-base64url.js create mode 100644 node_modules/crypto-js/enc-hex.js create mode 100644 node_modules/crypto-js/enc-latin1.js create mode 100644 node_modules/crypto-js/enc-utf16.js create mode 100644 node_modules/crypto-js/enc-utf8.js create mode 100644 node_modules/crypto-js/evpkdf.js create mode 100644 node_modules/crypto-js/format-hex.js create mode 100644 node_modules/crypto-js/format-openssl.js create mode 100644 node_modules/crypto-js/hmac-md5.js create mode 100644 node_modules/crypto-js/hmac-ripemd160.js create mode 100644 node_modules/crypto-js/hmac-sha1.js create mode 100644 node_modules/crypto-js/hmac-sha224.js create mode 100644 node_modules/crypto-js/hmac-sha256.js create mode 100644 node_modules/crypto-js/hmac-sha3.js create mode 100644 node_modules/crypto-js/hmac-sha384.js create mode 100644 node_modules/crypto-js/hmac-sha512.js create mode 100644 node_modules/crypto-js/hmac.js create mode 100644 node_modules/crypto-js/index.js create mode 100644 node_modules/crypto-js/lib-typedarrays.js create mode 100644 node_modules/crypto-js/md5.js create mode 100644 node_modules/crypto-js/mode-cfb.js create mode 100644 node_modules/crypto-js/mode-ctr-gladman.js create mode 100644 node_modules/crypto-js/mode-ctr.js create mode 100644 node_modules/crypto-js/mode-ecb.js create mode 100644 node_modules/crypto-js/mode-ofb.js create mode 100644 node_modules/crypto-js/package.json create mode 100644 node_modules/crypto-js/pad-ansix923.js create mode 100644 node_modules/crypto-js/pad-iso10126.js create mode 100644 node_modules/crypto-js/pad-iso97971.js create mode 100644 node_modules/crypto-js/pad-nopadding.js create mode 100644 node_modules/crypto-js/pad-pkcs7.js create mode 100644 node_modules/crypto-js/pad-zeropadding.js create mode 100644 node_modules/crypto-js/pbkdf2.js create mode 100644 node_modules/crypto-js/rabbit-legacy.js create mode 100644 node_modules/crypto-js/rabbit.js create mode 100644 node_modules/crypto-js/rc4.js create mode 100644 node_modules/crypto-js/ripemd160.js create mode 100644 node_modules/crypto-js/sha1.js create mode 100644 node_modules/crypto-js/sha224.js create mode 100644 node_modules/crypto-js/sha256.js create mode 100644 node_modules/crypto-js/sha3.js create mode 100644 node_modules/crypto-js/sha384.js create mode 100644 node_modules/crypto-js/sha512.js create mode 100644 node_modules/crypto-js/tripledes.js create mode 100644 node_modules/crypto-js/x64-core.js create mode 100644 node_modules/moment/CHANGELOG.md create mode 100644 node_modules/moment/LICENSE create mode 100644 node_modules/moment/README.md create mode 100644 node_modules/moment/dist/locale/af.js create mode 100644 node_modules/moment/dist/locale/ar-dz.js create mode 100644 node_modules/moment/dist/locale/ar-kw.js create mode 100644 node_modules/moment/dist/locale/ar-ly.js create mode 100644 node_modules/moment/dist/locale/ar-ma.js create mode 100644 node_modules/moment/dist/locale/ar-sa.js create mode 100644 node_modules/moment/dist/locale/ar-tn.js create mode 100644 node_modules/moment/dist/locale/ar.js create mode 100644 node_modules/moment/dist/locale/az.js create mode 100644 node_modules/moment/dist/locale/be.js create mode 100644 node_modules/moment/dist/locale/bg.js create mode 100644 node_modules/moment/dist/locale/bm.js create mode 100644 node_modules/moment/dist/locale/bn-bd.js create mode 100644 node_modules/moment/dist/locale/bn.js create mode 100644 node_modules/moment/dist/locale/bo.js create mode 100644 node_modules/moment/dist/locale/br.js create mode 100644 node_modules/moment/dist/locale/bs.js create mode 100644 node_modules/moment/dist/locale/ca.js create mode 100644 node_modules/moment/dist/locale/cs.js create mode 100644 node_modules/moment/dist/locale/cv.js create mode 100644 node_modules/moment/dist/locale/cy.js create mode 100644 node_modules/moment/dist/locale/da.js create mode 100644 node_modules/moment/dist/locale/de-at.js create mode 100644 node_modules/moment/dist/locale/de-ch.js create mode 100644 node_modules/moment/dist/locale/de.js create mode 100644 node_modules/moment/dist/locale/dv.js create mode 100644 node_modules/moment/dist/locale/el.js create mode 100644 node_modules/moment/dist/locale/en-au.js create mode 100644 node_modules/moment/dist/locale/en-ca.js create mode 100644 node_modules/moment/dist/locale/en-gb.js create mode 100644 node_modules/moment/dist/locale/en-ie.js create mode 100644 node_modules/moment/dist/locale/en-il.js create mode 100644 node_modules/moment/dist/locale/en-in.js create mode 100644 node_modules/moment/dist/locale/en-nz.js create mode 100644 node_modules/moment/dist/locale/en-sg.js create mode 100644 node_modules/moment/dist/locale/eo.js create mode 100644 node_modules/moment/dist/locale/es-do.js create mode 100644 node_modules/moment/dist/locale/es-mx.js create mode 100644 node_modules/moment/dist/locale/es-us.js create mode 100644 node_modules/moment/dist/locale/es.js create mode 100644 node_modules/moment/dist/locale/et.js create mode 100644 node_modules/moment/dist/locale/eu.js create mode 100644 node_modules/moment/dist/locale/fa.js create mode 100644 node_modules/moment/dist/locale/fi.js create mode 100644 node_modules/moment/dist/locale/fil.js create mode 100644 node_modules/moment/dist/locale/fo.js create mode 100644 node_modules/moment/dist/locale/fr-ca.js create mode 100644 node_modules/moment/dist/locale/fr-ch.js create mode 100644 node_modules/moment/dist/locale/fr.js create mode 100644 node_modules/moment/dist/locale/fy.js create mode 100644 node_modules/moment/dist/locale/ga.js create mode 100644 node_modules/moment/dist/locale/gd.js create mode 100644 node_modules/moment/dist/locale/gl.js create mode 100644 node_modules/moment/dist/locale/gom-deva.js create mode 100644 node_modules/moment/dist/locale/gom-latn.js create mode 100644 node_modules/moment/dist/locale/gu.js create mode 100644 node_modules/moment/dist/locale/he.js create mode 100644 node_modules/moment/dist/locale/hi.js create mode 100644 node_modules/moment/dist/locale/hr.js create mode 100644 node_modules/moment/dist/locale/hu.js create mode 100644 node_modules/moment/dist/locale/hy-am.js create mode 100644 node_modules/moment/dist/locale/id.js create mode 100644 node_modules/moment/dist/locale/is.js create mode 100644 node_modules/moment/dist/locale/it-ch.js create mode 100644 node_modules/moment/dist/locale/it.js create mode 100644 node_modules/moment/dist/locale/ja.js create mode 100644 node_modules/moment/dist/locale/jv.js create mode 100644 node_modules/moment/dist/locale/ka.js create mode 100644 node_modules/moment/dist/locale/kk.js create mode 100644 node_modules/moment/dist/locale/km.js create mode 100644 node_modules/moment/dist/locale/kn.js create mode 100644 node_modules/moment/dist/locale/ko.js create mode 100644 node_modules/moment/dist/locale/ku.js create mode 100644 node_modules/moment/dist/locale/ky.js create mode 100644 node_modules/moment/dist/locale/lb.js create mode 100644 node_modules/moment/dist/locale/lo.js create mode 100644 node_modules/moment/dist/locale/lt.js create mode 100644 node_modules/moment/dist/locale/lv.js create mode 100644 node_modules/moment/dist/locale/me.js create mode 100644 node_modules/moment/dist/locale/mi.js create mode 100644 node_modules/moment/dist/locale/mk.js create mode 100644 node_modules/moment/dist/locale/ml.js create mode 100644 node_modules/moment/dist/locale/mn.js create mode 100644 node_modules/moment/dist/locale/mr.js create mode 100644 node_modules/moment/dist/locale/ms-my.js create mode 100644 node_modules/moment/dist/locale/ms.js create mode 100644 node_modules/moment/dist/locale/mt.js create mode 100644 node_modules/moment/dist/locale/my.js create mode 100644 node_modules/moment/dist/locale/nb.js create mode 100644 node_modules/moment/dist/locale/ne.js create mode 100644 node_modules/moment/dist/locale/nl-be.js create mode 100644 node_modules/moment/dist/locale/nl.js create mode 100644 node_modules/moment/dist/locale/nn.js create mode 100644 node_modules/moment/dist/locale/oc-lnc.js create mode 100644 node_modules/moment/dist/locale/pa-in.js create mode 100644 node_modules/moment/dist/locale/pl.js create mode 100644 node_modules/moment/dist/locale/pt-br.js create mode 100644 node_modules/moment/dist/locale/pt.js create mode 100644 node_modules/moment/dist/locale/ro.js create mode 100644 node_modules/moment/dist/locale/ru.js create mode 100644 node_modules/moment/dist/locale/sd.js create mode 100644 node_modules/moment/dist/locale/se.js create mode 100644 node_modules/moment/dist/locale/si.js create mode 100644 node_modules/moment/dist/locale/sk.js create mode 100644 node_modules/moment/dist/locale/sl.js create mode 100644 node_modules/moment/dist/locale/sq.js create mode 100644 node_modules/moment/dist/locale/sr-cyrl.js create mode 100644 node_modules/moment/dist/locale/sr.js create mode 100644 node_modules/moment/dist/locale/ss.js create mode 100644 node_modules/moment/dist/locale/sv.js create mode 100644 node_modules/moment/dist/locale/sw.js create mode 100644 node_modules/moment/dist/locale/ta.js create mode 100644 node_modules/moment/dist/locale/te.js create mode 100644 node_modules/moment/dist/locale/tet.js create mode 100644 node_modules/moment/dist/locale/tg.js create mode 100644 node_modules/moment/dist/locale/th.js create mode 100644 node_modules/moment/dist/locale/tk.js create mode 100644 node_modules/moment/dist/locale/tl-ph.js create mode 100644 node_modules/moment/dist/locale/tlh.js create mode 100644 node_modules/moment/dist/locale/tr.js create mode 100644 node_modules/moment/dist/locale/tzl.js create mode 100644 node_modules/moment/dist/locale/tzm-latn.js create mode 100644 node_modules/moment/dist/locale/tzm.js create mode 100644 node_modules/moment/dist/locale/ug-cn.js create mode 100644 node_modules/moment/dist/locale/uk.js create mode 100644 node_modules/moment/dist/locale/ur.js create mode 100644 node_modules/moment/dist/locale/uz-latn.js create mode 100644 node_modules/moment/dist/locale/uz.js create mode 100644 node_modules/moment/dist/locale/vi.js create mode 100644 node_modules/moment/dist/locale/x-pseudo.js create mode 100644 node_modules/moment/dist/locale/yo.js create mode 100644 node_modules/moment/dist/locale/zh-cn.js create mode 100644 node_modules/moment/dist/locale/zh-hk.js create mode 100644 node_modules/moment/dist/locale/zh-mo.js create mode 100644 node_modules/moment/dist/locale/zh-tw.js create mode 100644 node_modules/moment/dist/moment.js create mode 100644 node_modules/moment/ender.js create mode 100644 node_modules/moment/locale/af.js create mode 100644 node_modules/moment/locale/ar-dz.js create mode 100644 node_modules/moment/locale/ar-kw.js create mode 100644 node_modules/moment/locale/ar-ly.js create mode 100644 node_modules/moment/locale/ar-ma.js create mode 100644 node_modules/moment/locale/ar-sa.js create mode 100644 node_modules/moment/locale/ar-tn.js create mode 100644 node_modules/moment/locale/ar.js create mode 100644 node_modules/moment/locale/az.js create mode 100644 node_modules/moment/locale/be.js create mode 100644 node_modules/moment/locale/bg.js create mode 100644 node_modules/moment/locale/bm.js create mode 100644 node_modules/moment/locale/bn-bd.js create mode 100644 node_modules/moment/locale/bn.js create mode 100644 node_modules/moment/locale/bo.js create mode 100644 node_modules/moment/locale/br.js create mode 100644 node_modules/moment/locale/bs.js create mode 100644 node_modules/moment/locale/ca.js create mode 100644 node_modules/moment/locale/cs.js create mode 100644 node_modules/moment/locale/cv.js create mode 100644 node_modules/moment/locale/cy.js create mode 100644 node_modules/moment/locale/da.js create mode 100644 node_modules/moment/locale/de-at.js create mode 100644 node_modules/moment/locale/de-ch.js create mode 100644 node_modules/moment/locale/de.js create mode 100644 node_modules/moment/locale/dv.js create mode 100644 node_modules/moment/locale/el.js create mode 100644 node_modules/moment/locale/en-au.js create mode 100644 node_modules/moment/locale/en-ca.js create mode 100644 node_modules/moment/locale/en-gb.js create mode 100644 node_modules/moment/locale/en-ie.js create mode 100644 node_modules/moment/locale/en-il.js create mode 100644 node_modules/moment/locale/en-in.js create mode 100644 node_modules/moment/locale/en-nz.js create mode 100644 node_modules/moment/locale/en-sg.js create mode 100644 node_modules/moment/locale/eo.js create mode 100644 node_modules/moment/locale/es-do.js create mode 100644 node_modules/moment/locale/es-mx.js create mode 100644 node_modules/moment/locale/es-us.js create mode 100644 node_modules/moment/locale/es.js create mode 100644 node_modules/moment/locale/et.js create mode 100644 node_modules/moment/locale/eu.js create mode 100644 node_modules/moment/locale/fa.js create mode 100644 node_modules/moment/locale/fi.js create mode 100644 node_modules/moment/locale/fil.js create mode 100644 node_modules/moment/locale/fo.js create mode 100644 node_modules/moment/locale/fr-ca.js create mode 100644 node_modules/moment/locale/fr-ch.js create mode 100644 node_modules/moment/locale/fr.js create mode 100644 node_modules/moment/locale/fy.js create mode 100644 node_modules/moment/locale/ga.js create mode 100644 node_modules/moment/locale/gd.js create mode 100644 node_modules/moment/locale/gl.js create mode 100644 node_modules/moment/locale/gom-deva.js create mode 100644 node_modules/moment/locale/gom-latn.js create mode 100644 node_modules/moment/locale/gu.js create mode 100644 node_modules/moment/locale/he.js create mode 100644 node_modules/moment/locale/hi.js create mode 100644 node_modules/moment/locale/hr.js create mode 100644 node_modules/moment/locale/hu.js create mode 100644 node_modules/moment/locale/hy-am.js create mode 100644 node_modules/moment/locale/id.js create mode 100644 node_modules/moment/locale/is.js create mode 100644 node_modules/moment/locale/it-ch.js create mode 100644 node_modules/moment/locale/it.js create mode 100644 node_modules/moment/locale/ja.js create mode 100644 node_modules/moment/locale/jv.js create mode 100644 node_modules/moment/locale/ka.js create mode 100644 node_modules/moment/locale/kk.js create mode 100644 node_modules/moment/locale/km.js create mode 100644 node_modules/moment/locale/kn.js create mode 100644 node_modules/moment/locale/ko.js create mode 100644 node_modules/moment/locale/ku.js create mode 100644 node_modules/moment/locale/ky.js create mode 100644 node_modules/moment/locale/lb.js create mode 100644 node_modules/moment/locale/lo.js create mode 100644 node_modules/moment/locale/lt.js create mode 100644 node_modules/moment/locale/lv.js create mode 100644 node_modules/moment/locale/me.js create mode 100644 node_modules/moment/locale/mi.js create mode 100644 node_modules/moment/locale/mk.js create mode 100644 node_modules/moment/locale/ml.js create mode 100644 node_modules/moment/locale/mn.js create mode 100644 node_modules/moment/locale/mr.js create mode 100644 node_modules/moment/locale/ms-my.js create mode 100644 node_modules/moment/locale/ms.js create mode 100644 node_modules/moment/locale/mt.js create mode 100644 node_modules/moment/locale/my.js create mode 100644 node_modules/moment/locale/nb.js create mode 100644 node_modules/moment/locale/ne.js create mode 100644 node_modules/moment/locale/nl-be.js create mode 100644 node_modules/moment/locale/nl.js create mode 100644 node_modules/moment/locale/nn.js create mode 100644 node_modules/moment/locale/oc-lnc.js create mode 100644 node_modules/moment/locale/pa-in.js create mode 100644 node_modules/moment/locale/pl.js create mode 100644 node_modules/moment/locale/pt-br.js create mode 100644 node_modules/moment/locale/pt.js create mode 100644 node_modules/moment/locale/ro.js create mode 100644 node_modules/moment/locale/ru.js create mode 100644 node_modules/moment/locale/sd.js create mode 100644 node_modules/moment/locale/se.js create mode 100644 node_modules/moment/locale/si.js create mode 100644 node_modules/moment/locale/sk.js create mode 100644 node_modules/moment/locale/sl.js create mode 100644 node_modules/moment/locale/sq.js create mode 100644 node_modules/moment/locale/sr-cyrl.js create mode 100644 node_modules/moment/locale/sr.js create mode 100644 node_modules/moment/locale/ss.js create mode 100644 node_modules/moment/locale/sv.js create mode 100644 node_modules/moment/locale/sw.js create mode 100644 node_modules/moment/locale/ta.js create mode 100644 node_modules/moment/locale/te.js create mode 100644 node_modules/moment/locale/tet.js create mode 100644 node_modules/moment/locale/tg.js create mode 100644 node_modules/moment/locale/th.js create mode 100644 node_modules/moment/locale/tk.js create mode 100644 node_modules/moment/locale/tl-ph.js create mode 100644 node_modules/moment/locale/tlh.js create mode 100644 node_modules/moment/locale/tr.js create mode 100644 node_modules/moment/locale/tzl.js create mode 100644 node_modules/moment/locale/tzm-latn.js create mode 100644 node_modules/moment/locale/tzm.js create mode 100644 node_modules/moment/locale/ug-cn.js create mode 100644 node_modules/moment/locale/uk.js create mode 100644 node_modules/moment/locale/ur.js create mode 100644 node_modules/moment/locale/uz-latn.js create mode 100644 node_modules/moment/locale/uz.js create mode 100644 node_modules/moment/locale/vi.js create mode 100644 node_modules/moment/locale/x-pseudo.js create mode 100644 node_modules/moment/locale/yo.js create mode 100644 node_modules/moment/locale/zh-cn.js create mode 100644 node_modules/moment/locale/zh-hk.js create mode 100644 node_modules/moment/locale/zh-mo.js create mode 100644 node_modules/moment/locale/zh-tw.js create mode 100644 node_modules/moment/min/locales.js create mode 100644 node_modules/moment/min/locales.min.js create mode 100644 node_modules/moment/min/locales.min.js.map create mode 100644 node_modules/moment/min/moment-with-locales.js create mode 100644 node_modules/moment/min/moment-with-locales.min.js create mode 100644 node_modules/moment/min/moment-with-locales.min.js.map create mode 100644 node_modules/moment/min/moment.min.js create mode 100644 node_modules/moment/min/moment.min.js.map create mode 100644 node_modules/moment/moment.d.ts create mode 100644 node_modules/moment/moment.js create mode 100644 node_modules/moment/package.js create mode 100644 node_modules/moment/package.json create mode 100644 node_modules/moment/src/lib/create/check-overflow.js create mode 100644 node_modules/moment/src/lib/create/date-from-array.js create mode 100644 node_modules/moment/src/lib/create/from-anything.js create mode 100644 node_modules/moment/src/lib/create/from-array.js create mode 100644 node_modules/moment/src/lib/create/from-object.js create mode 100644 node_modules/moment/src/lib/create/from-string-and-array.js create mode 100644 node_modules/moment/src/lib/create/from-string-and-format.js create mode 100644 node_modules/moment/src/lib/create/from-string.js create mode 100644 node_modules/moment/src/lib/create/local.js create mode 100644 node_modules/moment/src/lib/create/parsing-flags.js create mode 100644 node_modules/moment/src/lib/create/utc.js create mode 100644 node_modules/moment/src/lib/create/valid.js create mode 100644 node_modules/moment/src/lib/duration/abs.js create mode 100644 node_modules/moment/src/lib/duration/add-subtract.js create mode 100644 node_modules/moment/src/lib/duration/as.js create mode 100644 node_modules/moment/src/lib/duration/bubble.js create mode 100644 node_modules/moment/src/lib/duration/clone.js create mode 100644 node_modules/moment/src/lib/duration/constructor.js create mode 100644 node_modules/moment/src/lib/duration/create.js create mode 100644 node_modules/moment/src/lib/duration/duration.js create mode 100644 node_modules/moment/src/lib/duration/get.js create mode 100644 node_modules/moment/src/lib/duration/humanize.js create mode 100644 node_modules/moment/src/lib/duration/iso-string.js create mode 100644 node_modules/moment/src/lib/duration/prototype.js create mode 100644 node_modules/moment/src/lib/duration/valid.js create mode 100644 node_modules/moment/src/lib/format/format.js create mode 100644 node_modules/moment/src/lib/locale/base-config.js create mode 100644 node_modules/moment/src/lib/locale/calendar.js create mode 100644 node_modules/moment/src/lib/locale/constructor.js create mode 100644 node_modules/moment/src/lib/locale/en.js create mode 100644 node_modules/moment/src/lib/locale/formats.js create mode 100644 node_modules/moment/src/lib/locale/invalid.js create mode 100644 node_modules/moment/src/lib/locale/lists.js create mode 100644 node_modules/moment/src/lib/locale/locale.js create mode 100644 node_modules/moment/src/lib/locale/locales.js create mode 100644 node_modules/moment/src/lib/locale/ordinal.js create mode 100644 node_modules/moment/src/lib/locale/pre-post-format.js create mode 100644 node_modules/moment/src/lib/locale/prototype.js create mode 100644 node_modules/moment/src/lib/locale/relative.js create mode 100644 node_modules/moment/src/lib/locale/set.js create mode 100644 node_modules/moment/src/lib/moment/add-subtract.js create mode 100644 node_modules/moment/src/lib/moment/calendar.js create mode 100644 node_modules/moment/src/lib/moment/clone.js create mode 100644 node_modules/moment/src/lib/moment/compare.js create mode 100644 node_modules/moment/src/lib/moment/constructor.js create mode 100644 node_modules/moment/src/lib/moment/creation-data.js create mode 100644 node_modules/moment/src/lib/moment/diff.js create mode 100644 node_modules/moment/src/lib/moment/format.js create mode 100644 node_modules/moment/src/lib/moment/from.js create mode 100644 node_modules/moment/src/lib/moment/get-set.js create mode 100644 node_modules/moment/src/lib/moment/locale.js create mode 100644 node_modules/moment/src/lib/moment/min-max.js create mode 100644 node_modules/moment/src/lib/moment/moment.js create mode 100644 node_modules/moment/src/lib/moment/now.js create mode 100644 node_modules/moment/src/lib/moment/prototype.js create mode 100644 node_modules/moment/src/lib/moment/start-end-of.js create mode 100644 node_modules/moment/src/lib/moment/to-type.js create mode 100644 node_modules/moment/src/lib/moment/to.js create mode 100644 node_modules/moment/src/lib/moment/valid.js create mode 100644 node_modules/moment/src/lib/parse/regex.js create mode 100644 node_modules/moment/src/lib/parse/token.js create mode 100644 node_modules/moment/src/lib/units/aliases.js create mode 100644 node_modules/moment/src/lib/units/constants.js create mode 100644 node_modules/moment/src/lib/units/day-of-month.js create mode 100644 node_modules/moment/src/lib/units/day-of-week.js create mode 100644 node_modules/moment/src/lib/units/day-of-year.js create mode 100644 node_modules/moment/src/lib/units/era.js create mode 100644 node_modules/moment/src/lib/units/hour.js create mode 100644 node_modules/moment/src/lib/units/millisecond.js create mode 100644 node_modules/moment/src/lib/units/minute.js create mode 100644 node_modules/moment/src/lib/units/month.js create mode 100644 node_modules/moment/src/lib/units/offset.js create mode 100644 node_modules/moment/src/lib/units/priorities.js create mode 100644 node_modules/moment/src/lib/units/quarter.js create mode 100644 node_modules/moment/src/lib/units/second.js create mode 100644 node_modules/moment/src/lib/units/timestamp.js create mode 100644 node_modules/moment/src/lib/units/timezone.js create mode 100644 node_modules/moment/src/lib/units/units.js create mode 100644 node_modules/moment/src/lib/units/week-calendar-utils.js create mode 100644 node_modules/moment/src/lib/units/week-year.js create mode 100644 node_modules/moment/src/lib/units/week.js create mode 100644 node_modules/moment/src/lib/units/year.js create mode 100644 node_modules/moment/src/lib/utils/abs-ceil.js create mode 100644 node_modules/moment/src/lib/utils/abs-floor.js create mode 100644 node_modules/moment/src/lib/utils/abs-round.js create mode 100644 node_modules/moment/src/lib/utils/compare-arrays.js create mode 100644 node_modules/moment/src/lib/utils/defaults.js create mode 100644 node_modules/moment/src/lib/utils/deprecate.js create mode 100644 node_modules/moment/src/lib/utils/extend.js create mode 100644 node_modules/moment/src/lib/utils/has-own-prop.js create mode 100644 node_modules/moment/src/lib/utils/hooks.js create mode 100644 node_modules/moment/src/lib/utils/index-of.js create mode 100644 node_modules/moment/src/lib/utils/is-array.js create mode 100644 node_modules/moment/src/lib/utils/is-calendar-spec.js create mode 100644 node_modules/moment/src/lib/utils/is-date.js create mode 100644 node_modules/moment/src/lib/utils/is-function.js create mode 100644 node_modules/moment/src/lib/utils/is-leap-year.js create mode 100644 node_modules/moment/src/lib/utils/is-moment-input.js create mode 100644 node_modules/moment/src/lib/utils/is-number.js create mode 100644 node_modules/moment/src/lib/utils/is-object-empty.js create mode 100644 node_modules/moment/src/lib/utils/is-object.js create mode 100644 node_modules/moment/src/lib/utils/is-string.js create mode 100644 node_modules/moment/src/lib/utils/is-undefined.js create mode 100644 node_modules/moment/src/lib/utils/keys.js create mode 100644 node_modules/moment/src/lib/utils/map.js create mode 100644 node_modules/moment/src/lib/utils/mod.js create mode 100644 node_modules/moment/src/lib/utils/some.js create mode 100644 node_modules/moment/src/lib/utils/to-int.js create mode 100644 node_modules/moment/src/lib/utils/zero-fill.js create mode 100644 node_modules/moment/src/locale/af.js create mode 100644 node_modules/moment/src/locale/ar-dz.js create mode 100644 node_modules/moment/src/locale/ar-kw.js create mode 100644 node_modules/moment/src/locale/ar-ly.js create mode 100644 node_modules/moment/src/locale/ar-ma.js create mode 100644 node_modules/moment/src/locale/ar-sa.js create mode 100644 node_modules/moment/src/locale/ar-tn.js create mode 100644 node_modules/moment/src/locale/ar.js create mode 100644 node_modules/moment/src/locale/az.js create mode 100644 node_modules/moment/src/locale/be.js create mode 100644 node_modules/moment/src/locale/bg.js create mode 100644 node_modules/moment/src/locale/bm.js create mode 100644 node_modules/moment/src/locale/bn-bd.js create mode 100644 node_modules/moment/src/locale/bn.js create mode 100644 node_modules/moment/src/locale/bo.js create mode 100644 node_modules/moment/src/locale/br.js create mode 100644 node_modules/moment/src/locale/bs.js create mode 100644 node_modules/moment/src/locale/ca.js create mode 100644 node_modules/moment/src/locale/cs.js create mode 100644 node_modules/moment/src/locale/cv.js create mode 100644 node_modules/moment/src/locale/cy.js create mode 100644 node_modules/moment/src/locale/da.js create mode 100644 node_modules/moment/src/locale/de-at.js create mode 100644 node_modules/moment/src/locale/de-ch.js create mode 100644 node_modules/moment/src/locale/de.js create mode 100644 node_modules/moment/src/locale/dv.js create mode 100644 node_modules/moment/src/locale/el.js create mode 100644 node_modules/moment/src/locale/en-au.js create mode 100644 node_modules/moment/src/locale/en-ca.js create mode 100644 node_modules/moment/src/locale/en-gb.js create mode 100644 node_modules/moment/src/locale/en-ie.js create mode 100644 node_modules/moment/src/locale/en-il.js create mode 100644 node_modules/moment/src/locale/en-in.js create mode 100644 node_modules/moment/src/locale/en-nz.js create mode 100644 node_modules/moment/src/locale/en-sg.js create mode 100644 node_modules/moment/src/locale/eo.js create mode 100644 node_modules/moment/src/locale/es-do.js create mode 100644 node_modules/moment/src/locale/es-mx.js create mode 100644 node_modules/moment/src/locale/es-us.js create mode 100644 node_modules/moment/src/locale/es.js create mode 100644 node_modules/moment/src/locale/et.js create mode 100644 node_modules/moment/src/locale/eu.js create mode 100644 node_modules/moment/src/locale/fa.js create mode 100644 node_modules/moment/src/locale/fi.js create mode 100644 node_modules/moment/src/locale/fil.js create mode 100644 node_modules/moment/src/locale/fo.js create mode 100644 node_modules/moment/src/locale/fr-ca.js create mode 100644 node_modules/moment/src/locale/fr-ch.js create mode 100644 node_modules/moment/src/locale/fr.js create mode 100644 node_modules/moment/src/locale/fy.js create mode 100644 node_modules/moment/src/locale/ga.js create mode 100644 node_modules/moment/src/locale/gd.js create mode 100644 node_modules/moment/src/locale/gl.js create mode 100644 node_modules/moment/src/locale/gom-deva.js create mode 100644 node_modules/moment/src/locale/gom-latn.js create mode 100644 node_modules/moment/src/locale/gu.js create mode 100644 node_modules/moment/src/locale/he.js create mode 100644 node_modules/moment/src/locale/hi.js create mode 100644 node_modules/moment/src/locale/hr.js create mode 100644 node_modules/moment/src/locale/hu.js create mode 100644 node_modules/moment/src/locale/hy-am.js create mode 100644 node_modules/moment/src/locale/id.js create mode 100644 node_modules/moment/src/locale/is.js create mode 100644 node_modules/moment/src/locale/it-ch.js create mode 100644 node_modules/moment/src/locale/it.js create mode 100644 node_modules/moment/src/locale/ja.js create mode 100644 node_modules/moment/src/locale/jv.js create mode 100644 node_modules/moment/src/locale/ka.js create mode 100644 node_modules/moment/src/locale/kk.js create mode 100644 node_modules/moment/src/locale/km.js create mode 100644 node_modules/moment/src/locale/kn.js create mode 100644 node_modules/moment/src/locale/ko.js create mode 100644 node_modules/moment/src/locale/ku.js create mode 100644 node_modules/moment/src/locale/ky.js create mode 100644 node_modules/moment/src/locale/lb.js create mode 100644 node_modules/moment/src/locale/lo.js create mode 100644 node_modules/moment/src/locale/lt.js create mode 100644 node_modules/moment/src/locale/lv.js create mode 100644 node_modules/moment/src/locale/me.js create mode 100644 node_modules/moment/src/locale/mi.js create mode 100644 node_modules/moment/src/locale/mk.js create mode 100644 node_modules/moment/src/locale/ml.js create mode 100644 node_modules/moment/src/locale/mn.js create mode 100644 node_modules/moment/src/locale/mr.js create mode 100644 node_modules/moment/src/locale/ms-my.js create mode 100644 node_modules/moment/src/locale/ms.js create mode 100644 node_modules/moment/src/locale/mt.js create mode 100644 node_modules/moment/src/locale/my.js create mode 100644 node_modules/moment/src/locale/nb.js create mode 100644 node_modules/moment/src/locale/ne.js create mode 100644 node_modules/moment/src/locale/nl-be.js create mode 100644 node_modules/moment/src/locale/nl.js create mode 100644 node_modules/moment/src/locale/nn.js create mode 100644 node_modules/moment/src/locale/oc-lnc.js create mode 100644 node_modules/moment/src/locale/pa-in.js create mode 100644 node_modules/moment/src/locale/pl.js create mode 100644 node_modules/moment/src/locale/pt-br.js create mode 100644 node_modules/moment/src/locale/pt.js create mode 100644 node_modules/moment/src/locale/ro.js create mode 100644 node_modules/moment/src/locale/ru.js create mode 100644 node_modules/moment/src/locale/sd.js create mode 100644 node_modules/moment/src/locale/se.js create mode 100644 node_modules/moment/src/locale/si.js create mode 100644 node_modules/moment/src/locale/sk.js create mode 100644 node_modules/moment/src/locale/sl.js create mode 100644 node_modules/moment/src/locale/sq.js create mode 100644 node_modules/moment/src/locale/sr-cyrl.js create mode 100644 node_modules/moment/src/locale/sr.js create mode 100644 node_modules/moment/src/locale/ss.js create mode 100644 node_modules/moment/src/locale/sv.js create mode 100644 node_modules/moment/src/locale/sw.js create mode 100644 node_modules/moment/src/locale/ta.js create mode 100644 node_modules/moment/src/locale/te.js create mode 100644 node_modules/moment/src/locale/tet.js create mode 100644 node_modules/moment/src/locale/tg.js create mode 100644 node_modules/moment/src/locale/th.js create mode 100644 node_modules/moment/src/locale/tk.js create mode 100644 node_modules/moment/src/locale/tl-ph.js create mode 100644 node_modules/moment/src/locale/tlh.js create mode 100644 node_modules/moment/src/locale/tr.js create mode 100644 node_modules/moment/src/locale/tzl.js create mode 100644 node_modules/moment/src/locale/tzm-latn.js create mode 100644 node_modules/moment/src/locale/tzm.js create mode 100644 node_modules/moment/src/locale/ug-cn.js create mode 100644 node_modules/moment/src/locale/uk.js create mode 100644 node_modules/moment/src/locale/ur.js create mode 100644 node_modules/moment/src/locale/uz-latn.js create mode 100644 node_modules/moment/src/locale/uz.js create mode 100644 node_modules/moment/src/locale/vi.js create mode 100644 node_modules/moment/src/locale/x-pseudo.js create mode 100644 node_modules/moment/src/locale/yo.js create mode 100644 node_modules/moment/src/locale/zh-cn.js create mode 100644 node_modules/moment/src/locale/zh-hk.js create mode 100644 node_modules/moment/src/locale/zh-mo.js create mode 100644 node_modules/moment/src/locale/zh-tw.js create mode 100644 node_modules/moment/src/moment.js create mode 100644 node_modules/moment/ts3.1-typings/moment.d.ts create mode 100644 pages/index/detail.vue create mode 100644 pages/index/index.vue create mode 100644 pages/index/subnvue.nvue create mode 100644 pages/oaLogin/oaLogin.vue create mode 100644 pages/psong/detail.vue create mode 100644 pages/psong/index.vue create mode 100644 pages/sda/detail.vue create mode 100644 pages/sda/index.vue create mode 100644 pages/submap/index.vue diff --git a/api/config.js b/api/config.js new file mode 100644 index 0000000..93fcd12 --- /dev/null +++ b/api/config.js @@ -0,0 +1,6 @@ +import oahttp from "@/utils/oahttp.js"; + +/** + * ȡϢ + */ +export const getConfig = (data) => oahttp.get('/index/config', data, { noAuth:true }, true) diff --git a/api/file.js b/api/file.js new file mode 100644 index 0000000..61c335e --- /dev/null +++ b/api/file.js @@ -0,0 +1,50 @@ +import { + HTTP_REQUEST_URL_THREE, + HEADER, + TOKENNAME, +} from '@/config/app'; +import { + Toast +} from '../libs/uniApi'; +// import { checkLogin } from '../libs/login'; +import store from '../store'; + +function toLogin() { + store.commit("LOGOUT"); + uni.showToast({ + title: '请登录', + icon: 'none', + duration: 1000 + }); +} + +function upLoad(url, data) { + let Url = HTTP_REQUEST_URL_THREE, + header = {} + if (store.state.app.token) header[TOKENNAME] = store.state.app.token; + return new Promise((reslove, reject) => { + uni.uploadFile({ + url: Url + '/api' + url, + filePath: data.filePath, + name: data.name, + success: (uploadFileRes) => { + uploadFileRes.data = JSON.parse(uploadFileRes.data) + if (uploadFileRes.data.code == 1) reslove(uploadFileRes.data) + else Toast('网络错误') + }, + fail: (err) => { + Toast('网络错误') + } + }) + }); +} + +export const upLoadImage = (data) => { + return upLoad('/upload/image', data) +} + +export const VIDEO_URL = HTTP_REQUEST_URL_THREE + '/api/upload/video' +export const FILE_URL = HTTP_REQUEST_URL_THREE + '/api/home_index/upload' +// im文件上传 +// export const VIDEO_URL_IM = HTTP_REQUEST_URL_THREE + '/api/upload/video' +export const FILE_URL_IM = HTTP_REQUEST_URL_THREE + '/common/im/sendFileMsg' \ No newline at end of file diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..6c38943 --- /dev/null +++ b/api/index.js @@ -0,0 +1,28 @@ +// let Token = localStorage.getItem("token") +let Token = uni.getStorageSync("token") +let request = (METHOD, URL, DATA) => { + return new Promise((reslove, reject) => { + uni.request({ + url: 'https://ceshi-im.lihaink.cn/' + URL, + method: METHOD, + data: { + ...DATA + }, + header: { + 'content-type': 'application/json', + "Authorization": Token || "" + + }, + success: function(res) { + reslove(res) + }, + fail: function(err) { + reject(err) + }, + + }); + }) +} + + +export default request; \ No newline at end of file diff --git a/api/oa.js b/api/oa.js new file mode 100644 index 0000000..353886b --- /dev/null +++ b/api/oa.js @@ -0,0 +1,12 @@ +import oahttp from "@/utils/oahttp.js"; + + +export const lists = (data) => oahttp.get('/logistic/lists', data) +//详情 +export const detail = (data) => oahttp.get('/logistic/detail', data) +//提取商品 +export const takeGoods = (data) => oahttp.post('/logistic/takeGoods', data) + +//完成配送 +export const delivery = (data) => oahttp.post('/logistic/delivery', data) + diff --git a/api/oaApi.js b/api/oaApi.js new file mode 100644 index 0000000..ca79bff --- /dev/null +++ b/api/oaApi.js @@ -0,0 +1,60 @@ +import oahttp from "@/utils/oahttp.js"; + +/** + * 获取代办事项 已处理事项 + */ +export const getIndexListAPI = (data) => oahttp.get('/index/list', data) + +/** + * 获取任务列表 + */ +export const getTaskListAPI = (data) => oahttp.get('/task/list', data) + +/** + * 获取我的任务 + */ +export const getMyTaskListAPI = (data) => oahttp.get('/task/datalist', data) + +/** + * 获取任务详情 + */ +export const getTaskDetailsAPI = (data) => oahttp.get('/task/read', data) +/** + * 我发起的审批 + */ +export const getApproveMyListAPI = (data) => oahttp.get('/approve/my_list', data) +/** + * 我审批的 + */ +export const getHandleListAPI = (data) => oahttp.get('/approve/handle_list', data) +/** + * 抄送给我的 + */ +export const getCopyOfMyListAPI = (data) => oahttp.get('/approve/copy', data) +/* + * 待办事项 + */ +export const getApproveListAPI = (data) => oahttp.get('/approve/list', data) +/** + * 获取个人中心数据 + */ +export const getUserIndexAPI = (data) => oahttp.get('/user/index', data) +/** + * 保存个人信息修改 + */ +export const PostUserPerSubmitAPI = (data) => oahttp.post('/home_index/edit_personal', data) +/** + * 获取审核流程 + * index/get_flow?type=1 + */ +export const getFlowAPI = (data) => oahttp.get('/index/get_flow', data) +/** + * 获取审核步骤人员 + */ +export const getFlowUsersAPI = (data) => oahttp.get('/index/get_flow_users', data, { noVerify: true }) +/** 获取部门树形节点列表 */ +export const getDepartmentTreeAPI = () => oahttp.get('/index/get_department_tree') +/** 获取某个部门的员工 */ +export const getEmployeeAPI = (data) => oahttp.get('/index/get_employee', data) +/** 发起审批 */ +export const PostApproveAddAPI = (data) => oahttp.post('/approve/add', data) diff --git a/api/oaUser.js b/api/oaUser.js new file mode 100644 index 0000000..3ac68de --- /dev/null +++ b/api/oaUser.js @@ -0,0 +1,27 @@ +import oahttp from "@/utils/oahttp.js"; + +/** + * 登录 + */ +export const loginAccount = (data, onReLogin = false) => oahttp.post('/login/login', data, { noAuth: true, onReLogin: onReLogin }) + +/** + * cesi + */ +export const test = (data) => oahttp.post('/index/config', data, { noAuth: true }) + +/** + * 个人中心 + */ +export const userCenter = (data) => oahttp.get('/user/center', data) + +/** + * 个人信息 + */ +export const userInfo = (data) => oahttp.get('/home_index/userinfo', data) + +/** + * 修改密码 + */ +export const changePassword = (data) => oahttp.post('/home_index/edit_password', data) + diff --git a/api/pubic.js b/api/pubic.js new file mode 100644 index 0000000..4533f7f --- /dev/null +++ b/api/pubic.js @@ -0,0 +1,17 @@ +import request from '@/utils/request.js' +export function commonAuth(data) { + return request.post( + "auth", data, { + noAuth: true + } + ); +} +/** + * 小程序用户登录 + * @param data object 小程序用户登陆信息 + */ +export function login(data) { + return request.post("auth/mp", data, { + noAuth: true + }); +} diff --git a/api/upload.js b/api/upload.js new file mode 100644 index 0000000..dc41137 --- /dev/null +++ b/api/upload.js @@ -0,0 +1,65 @@ +// import base from "@/config/baseUrl"; +// let baseUrl = 'https://ceshi.excellentkk.cn/api'; +import store from '../store'; +import { HTTP_REQUEST_URL_TWO, HTTP_REQUEST_URL_THREE, HEADER } from '@/config/app'; +let header = HEADER; + if (store.state.app.token){ + header.token = store.state.app.token; + } +function uploads(src, type) { + return new Promise((resolve, reject) => { + // console.log('上传', type === 'img' ? '图片' : '视频', ':', src) + let a = uni.uploadFile({ + // url: base.baseUrl + '/upload?token=', + url: HTTP_REQUEST_URL_TWO + '/api' + '/upload?token=', + filePath: src, + name: 'file', + success: (res) => { + let data = JSON.parse(res.data) + if (data.code != 1) { + uni.$u.toast(data.msg) + return false + } else { + resolve(data.data.url) // 返回线上地址 + } + }, + fail: (err) => { + reject(err) + console.log('upload-上传失败', err) + } + }); + }) +} + +function oaUploads(src, type) { + return new Promise((resolve, reject) => { + // console.log('上传', type === 'img' ? '图片' : '视频', ':', src) + + let a = uni.uploadFile({ + url: HTTP_REQUEST_URL_THREE + '/api/common/upload', + filePath: src, + name: 'file', + header: header, + success: (res) => { + + let data = JSON.parse(res.data) + if (data.code == 0) { + resolve(data.data) // 返回线上地址 + } else { + uni.$u.toast(data.msg) + return false + } + }, + fail: (err) => { + reject(err) + console.log('upload-上传失败', err) + } + }); + }) +} + + +export { + uploads, + oaUploads +} diff --git a/api/user.js b/api/user.js new file mode 100644 index 0000000..fca43c1 --- /dev/null +++ b/api/user.js @@ -0,0 +1,743 @@ +import request from "@/utils/request.js"; +import Cache from '@/utils/cache' +import http from "@/utils/http.js"; +/** + * 获取后台账号密码 + */ +export const getBackstageAPI = (data) => http.get('/User/get_backstage', data) +// 获取已录入公司 +export const getEnterListMsgAPI = (data) => http.get('/enter/list', data) +// 录入公司 +export const postEntercompanyAPI = (data) => request.post('entercompany', data) +// 获取地址 +export const getSiteAPI = (data) => http.get('/User/index', data) +export const getShimingAPI = (data) => http.get('/User/get_shiming', data) +export const postRealnameAPI = (data) => http.post('/User/realname', data) +/** + * 获取用户信息 + * + */ +export function getUserInfo() { + return request.get('user'); +} +/** + * 头像 + * + */ +export function editAvatar(data) { + return request.post('user/change/info', data); +} + +// 修改昵称 +export function updateInfo(data) { + return request.post('user/change/avatar', data); +} +/** + * h5用户登录 + * @param data object 用户账号密码 + */ +export function loginH5(data) { + return request.post("auth/login", data, { + noAuth: true + }); +} +/** + * h5用户手机号登录 + * @param data object 用户手机号 也只能 + */ +export function loginMobile(data) { + return request.post("auth/smslogin", data, { + noAuth: true + }); +} +/** + * h5用户手机号登录 + * @param data object 用户手机号 也只能 + */ +export function loginMpPhone(data) { + return request.post("auth/mp_phone", data, { + noAuth: true + }); +} +/** + * 验证码key + */ +export function getCodeApi() { + return request.get("verify_code", {}, { + noAuth: true + }); +} + +/** + * h5用户发送验证码 + * @param data object 用户手机号 + */ +export function registerVerify(data) { + return request.post("auth/verify", data, { + noAuth: true + }); +} +/** + * h5用户手机号注册 + * @param data object 用户手机号 验证码 密码 + */ +export function register(data) { + return request.post("auth/register", data, { + noAuth: true + }); +} + +/** + * 用户手机号修改密码 + * @param data object 用户手机号 验证码 密码 + */ +export function registerReset(data) { + return request.post("/register/reset", data, { + noAuth: true + }); +} +/** + * 用户手机号忘记密码 + */ +export function registerForget(data) { + return request.post("user/change_pwd", data, { + noAuth: true + }); +} +/** + * 获取用户中心菜单 + * + */ +export function getMenuList() { + return request.get("common/menus", {}, { + noAuth: true + }); +} +/* + * 签到用户信息 + * */ +export function getSignUser() { + return request.get("user/sign/info"); +} + +/** + * 获取签到配置 + * + */ +export function getSignConfig() { + return request.get('sign/config') +} +/** + * 获取签到列表 + * @param object data + */ +export function getSignList(data) { + return request.get('user/sign/lst', data); +} +/** + * 用户签到 + */ +export function setSignIntegral() { + return request.post('user/sign/create') +} + +/** + * 签到列表(年月) + * @param object data + * + */ +export function getSignMonthList(data) { + return request.get('user/sign/month', data) +} +/** + * 活动状态 + * + */ +export function userActivity() { + return request.get('user/activity'); +} +/* + * 资金明细(types|0=全部,1=消费,2=充值,3=返佣) + * */ +export function getCommissionInfo(q, types) { + return request.get("user/bill", q); +} +/* + * 提现列表 + * */ +export function extractLst(data) { + return request.get("user/extract/lst", data); +} +/* + * 积分记录 + * */ +export function getIntegralList(data) { + return request.get("user/integral/lst", data); +} + +/** + * 获取分销海报图片 + * + */ +export function spreadBanner() { + //#ifdef H5 + return request.get('user/spread_image', { + type: 'wechat' + }); + //#endif + //#ifdef MP + return request.get('user/spread_image', { + type: 'routine' + }); + //#endif +} +/** + * + * 获取推广用户一级和二级 + * @param object data + */ +export function spreadPeople(data) { + return request.get('user/spread_list', data); +} +/** + * + * 推广佣金/提现总和 + * @param int type + */ +export function spreadCount(type) { + return request.get('spread/count/' + type); +} +/* + * 推广数据 + * */ +export function getSpreadInfo() { + return request.get("/commission"); +} + +/** + * + * 推广订单 + * @param object data + */ +export function spreadOrder(data) { + return request.get('user/spread_order', data); +} + +/* + * 获取推广人排行 + * */ +export function getRankList(data) { + return request.get("user/spread_top", data); +} + +/* + * 获取佣金排名 + * */ +export function getBrokerageRank(q) { + return request.get("user/brokerage_top", q); +} + +/** + * 提现申请 + * @param object data + */ +export function extractCash(data) { + return request.post('user/extract/create', data) +} + +/** + * 提现银行/提现最低金额 + * + */ +export function extractBank() { + return request.get('user/extract/banklst'); +} + +/** + * 会员等级列表 + * + */ +export function userLevelGrade() { + return request.get('user/level/grade'); +} + +/** + * 获取某个等级任务 + * @param int id 任务id + */ +export function userLevelTask(id) { + return request.get('user/level/task/' + id); +} + +/** + * 检查用户是否可以成为会员 + * + */ +export function userLevelDetection() { + return request.get('user/level/detection'); +} + +/** + * + * 地址列表 + * @param object data + */ +export function getAddressList(data) { + return request.get('user/address/lst', data); +} + +/** + * 设置默认地址 + * @param int id + */ +export function setAddressDefault(id) { + return request.post('user/address/update/' + id) +} + +/** + * 修改 添加地址 + * @param object data + */ +export function editAddress(data) { + return request.post('user/address/create', data); +} + +/** + * 删除地址 + * @param int id + * + */ +export function delAddress(id) { + return request.post('user/address/delete/' + id) +} + +/** + * 获取单个地址 + * @param int id + */ +export function getAddressDetail(id) { + return request.get('user/address/detail/' + id); +} + +/** + * 修改用户信息 + * @param object + */ +export function userEdit(data) { + return request.post('user/edit', data); +} + +/* + * 退出登录 + * */ +export function getLogout() { + return request.post("logout"); +} + +/** + * 佣金转入 + * + */ +export function rechargeBrokerage(data) { + return request.post('user/recharge/brokerage', data) +} + +/** + * 小程序充值 + * + */ +export function rechargeRoutine(data) { + return request.post('recharge/routine', data) +} +/* + * 公众号充值 + * */ +export function rechargeWechat(data) { + return request.post("user/recharge", data); +} +/** + * 获取默认地址 + * + */ +export function getAddressDefault() { + return request.get('address/default'); +} + +/** + * 充值金额选择 + */ +export function getRechargeApi() { + return request.get("common/recharge_quota"); +} + +/** + * 登陆记录 + */ +export function setVisit(data) { + return request.post('user/set_visit', { + ...data + }, { + noAuth: true + }); +} + +/** + * 客服列表 + */ +export function serviceList(data) { + return request.get("service/list", data); +} + +/** + * 客服列表 + */ +export function serviceLogin(key, data) { + return request.post("service/scan_login/" + key, data); +} + +/** + * 客服获取客户列表 + */ +export function serviceUserList(mer_id, data) { + return request.get("service/user_list/" + mer_id, data); +} + +/** + * 用户获取聊天记录详情 + */ +export function getChatRecord(to_uid, data) { + return request.get("service/history/" + to_uid, data); +} + +/** + * 客服获取聊天记录详情 + */ +export function getMerHistory(userid, mer_id, data) { + return request.get("service/mer_history/" + mer_id + '/' + userid, data); +} + +/** + * 静默绑定推广人 + * @param {Object} puid + */ +export function spread(puid) { + Cache.set("spread", puid || 0); + return request.post("user/spread", { + spread_spid: puid + }); +} + +/** + * 反馈类型 + */ +export function feedbackType() { + return request.get("common/feedback_type"); +} + +/** + * 提交反馈 + */ +export function feedback(data) { + return request.post("user/feedback", { + ...data + }); +} + +/** + * 反馈列表 + */ +export function feedbackList(data) { + return request.get("user/feedback/list", data); +} + +/** + * 反馈列表 + */ +export function feedbackDetail(id) { + return request.get("user/feedback/detail/" + id); +} + +/** + * 浏览记录 + */ +export function historyList(data) { + return request.get("user/history", data); +} + +/** + * 删除浏览记录 + */ +export function historyDelete(id) { + return request.post("user/history/delete/" + id); +} +/** + * 批量删除浏览记录 + */ +export function historyBatchDelete(data) { + return request.post("user/history/batch/delete", data); +} +/** + * 批量收藏浏览记录 + */ +export function historyBatchCollect(data) { + return request.post("user/relation/batch/create", data); +} +/** + * 佣金记录 + */ +export function brokerage_list(data) { + return request.get("user/brokerage_list", data); +} + +/** + * 佣金数据 + */ +export function spreadInfo(data) { + return request.get("user/spread_info", data); +} + +// 图片验证码 +export function getCaptcha() { + return request.get('captcha', {}, { + noAuth: true + }); +} + +// 用户账户列表 +export function userAcc() { + return request.get('user/account', {}, { + noAuth: true + }); +} +// 创建发票 +export function invoiceSave(data) { + return request.post('user/receipt/create', data); +} +// 编辑发票 +export function invoiceUpdate(id, data) { + return request.post('user/receipt/update/' + id, data); +} +// 获取默认发票 +export function invoiceDefault(id) { + return request.post('user/receipt/is_default/' + id); +} +// 发票抬头--列表 +export function invoice(data) { + return request.get('user/receipt/lst', data); +} +// 发票抬头--删除 +export function invoiceDelete(id) { + return request.post('user/receipt/delete/' + id); +} +// 发票--详情 +export function invoiceDetail(id) { + return request.get('user/receipt/detail/' + id); +} + +/** + * 新版分享海报信息获取 + * + */ +export function spreadMsg(data) { + return request.get('user/v2/spread_image', data); +} + +/** + * 图片链接转base64 + * + */ +export function imgToBase(data) { + return request.post('common/base64', data); +} +/** + * 获取协议 + * + */ +export function getAgreementApi(key) { + return request.get('agreement/' + key, {}, { + noAuth: true + }); +} +/** + * 获取协议 + * + */ +export function getIntegralInfo() { + return request.get('user/integral/info'); +} +/** + * 获取店铺列表 + * + */ +export function getStoreList(data) { + return request.get('user/services', data); +} + +/* + 获取佣金说明 +*/ + +export function commissionDescription() { + return request.get('agreement/sys_extension_agree') +} +/* + 获取用户分销等级信息 +*/ + +export function getBrokerageInfo() { + return request.get('user/brokerage/info') +} +/* + 获取用户分销等级表格数据 +*/ + +export function getBrokerageGrade() { + return request.get('user/brokerage/all') +} +/* + 分销员升级提醒 +*/ + +export function brokerageNotice(data) { + return request.get(`user/brokerage/notice`, data) +} +/* + 口令解析 +*/ + +export function pwdResolution(data) { + return request.get(`command/copy?key=${data}`) +} +/* + 获取佣金说明 +*/ + +export function getInstructions(key) { + return request.get(`agreement/${key}`) +} +/* + 会员信息 +*/ + +export function memberInfo() { + return request.get('user/member/info') +} +/** + * 成长值记录 + * @param object data + * + */ +export function growthValueRecord(data) { + return request.get('user/member/log', data) +} + +/** + * 协议规则列表 + * @param object data + * + */ +export function cacheLst() { + return request.get('agreement_lst', {}, { + noAuth: true + }) +} + +/** + * 协议规则列表对应的数据 + * @param object data + * + */ +export function cacheInfo(key) { + return request.get(`agreement/${key}`, {}, { + noAuth: true + }) +} +/** + * 注销账户 + * @param object data + * + */ +export function userOut(data) { + return request.post(`user/cancel`, data) +} +/** + * 获取聊天用户信息 + * @param object data + * + */ +export function serviceUser(merId, uid) { + return request.get(`service/user/${merId}/${uid}`) +} +/** + * 保存聊天用户备注 + * @param object data + * + */ +export function serviceSaveMark(merId, uid, mark) { + return request.post(`service/mark/${merId}/${uid}`, { + mark + }) +} +/** + * 获取会员卡类型 + * @param object data + * + */ +export function memberCard() { + return request.get(`svip/pay_lst`) +} +/** + * 开通付费会员--支付 + * @param object data + * + */ +export function memberCardCreate(id, data) { + return request.post(`svip/pay/${id}`, data) +} +/** + * 付费会员权益 + * @param object data + * + */ +export function memberEquity() { + return request.get(`svip/user_info`, {}, { + noAuth: true + }) +} +/** + * 付费会员优惠券 + * @param object data + * + */ +export function memberCouponLst() { + return request.get(`svip/coupon_lst`, {}, { + noAuth: true + }) +} +/** + * 付费会员优惠券--领取 + * @param object data + * + */ +export function receiveMemberCoupon(id) { + return request.post(`svip/coupon_receive/${id}`) +} +/** + * 付费会员--会员商品 + * @param object data + * + */ +export function groomList(data) { + return request.get(`svip/product_lst`, data, { + noAuth: true + }) +} + +/** + * 客服聊天--撤回消息 + * @param object data + * + */ +export function chatReverstApi(id) { + return request.post(`service/recall/${id}`) +} diff --git a/components/a-map-walking.vue b/components/a-map-walking.vue new file mode 100644 index 0000000..25c3052 --- /dev/null +++ b/components/a-map-walking.vue @@ -0,0 +1,86 @@ + + + + + \ No newline at end of file diff --git a/components/gb-popup/gb-popup.vue b/components/gb-popup/gb-popup.vue new file mode 100644 index 0000000..04701d5 --- /dev/null +++ b/components/gb-popup/gb-popup.vue @@ -0,0 +1,169 @@ + + + + + \ No newline at end of file diff --git a/components/index/detaila.vue b/components/index/detaila.vue new file mode 100644 index 0000000..22a5c6c --- /dev/null +++ b/components/index/detaila.vue @@ -0,0 +1,818 @@ + + + + + \ No newline at end of file diff --git a/components/index/detailb.vue b/components/index/detailb.vue new file mode 100644 index 0000000..316861a --- /dev/null +++ b/components/index/detailb.vue @@ -0,0 +1,720 @@ + + + + + \ No newline at end of file diff --git a/components/index/detailc.vue b/components/index/detailc.vue new file mode 100644 index 0000000..054b37a --- /dev/null +++ b/components/index/detailc.vue @@ -0,0 +1,471 @@ + + + + + \ No newline at end of file diff --git a/components/index/index.vue b/components/index/index.vue new file mode 100644 index 0000000..f254efa --- /dev/null +++ b/components/index/index.vue @@ -0,0 +1,481 @@ + + + + + \ No newline at end of file diff --git a/components/index/index1.vue b/components/index/index1.vue new file mode 100644 index 0000000..06b0430 --- /dev/null +++ b/components/index/index1.vue @@ -0,0 +1,509 @@ + + + + + \ No newline at end of file diff --git a/components/index/indexg.vue b/components/index/indexg.vue new file mode 100644 index 0000000..fe3b326 --- /dev/null +++ b/components/index/indexg.vue @@ -0,0 +1,448 @@ + + + + + \ No newline at end of file diff --git a/components/jyf-parser/jyf-parser.vue b/components/jyf-parser/jyf-parser.vue new file mode 100644 index 0000000..6294c26 --- /dev/null +++ b/components/jyf-parser/jyf-parser.vue @@ -0,0 +1,815 @@ + + + + + + diff --git a/components/jyf-parser/libs/CssHandler.js b/components/jyf-parser/libs/CssHandler.js new file mode 100644 index 0000000..f286db3 --- /dev/null +++ b/components/jyf-parser/libs/CssHandler.js @@ -0,0 +1,111 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +/* + 解析和匹配 Css 的选择器 + github:https://github.com/jin-yufeng/Parser + docs:https://jin-yufeng.github.io/Parser + author:JinYufeng + update:2020/03/15 +*/ +var cfg = require('./config.js'); +class CssHandler { + constructor(tagStyle) { + var styles = Object.assign({}, cfg.userAgentStyles); + for (var item in tagStyle) + styles[item] = (styles[item] ? styles[item] + ';' : '') + tagStyle[item]; + this.styles = styles; + } + getStyle = data => this.styles = new CssParser(data, this.styles).parse(); + match(name, attrs) { + var tmp, matched = (tmp = this.styles[name]) ? tmp + ';' : ''; + if (attrs.class) { + var items = attrs.class.split(' '); + for (var i = 0, item; item = items[i]; i++) + if (tmp = this.styles['.' + item]) + matched += tmp + ';'; + } + if (tmp = this.styles['#' + attrs.id]) + matched += tmp + ';'; + return matched; + } +} +module.exports = CssHandler; +class CssParser { + constructor(data, init) { + this.data = data; + this.floor = 0; + this.i = 0; + this.list = []; + this.res = init; + this.state = this.Space; + } + parse() { + for (var c; c = this.data[this.i]; this.i++) + this.state(c); + return this.res; + } + section = () => this.data.substring(this.start, this.i); + isLetter = c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); + // 状态机 + Space(c) { + if (c == '.' || c == '#' || this.isLetter(c)) { + this.start = this.i; + this.state = this.Name; + } else if (c == '/' && this.data[this.i + 1] == '*') + this.Comment(); + else if (!cfg.blankChar[c] && c != ';') + this.state = this.Ignore; + } + Comment() { + this.i = this.data.indexOf('*/', this.i) + 1; + if (!this.i) this.i = this.data.length; + this.state = this.Space; + } + Ignore(c) { + if (c == '{') this.floor++; + else if (c == '}' && !--this.floor) this.state = this.Space; + } + Name(c) { + if (cfg.blankChar[c]) { + this.list.push(this.section()); + this.state = this.NameSpace; + } else if (c == '{') { + this.list.push(this.section()); + this.Content(); + } else if (c == ',') { + this.list.push(this.section()); + this.Comma(); + } else if (!this.isLetter(c) && (c < '0' || c > '9') && c != '-' && c != '_') + this.state = this.Ignore; + } + NameSpace(c) { + if (c == '{') this.Content(); + else if (c == ',') this.Comma(); + else if (!cfg.blankChar[c]) this.state = this.Ignore; + } + Comma() { + while (cfg.blankChar[this.data[++this.i]]); + if (this.data[this.i] == '{') this.Content(); + else { + this.start = this.i--; + this.state = this.Name; + } + } + Content() { + this.start = ++this.i; + if ((this.i = this.data.indexOf('}', this.i)) == -1) this.i = this.data.length; + var content = this.section(); + for (var i = 0, item; item = this.list[i++];) + if (this.res[item]) this.res[item] += ';' + content; + else this.res[item] = content; + this.list = []; + this.state = this.Space; + } +} diff --git a/components/jyf-parser/libs/MpHtmlParser.js b/components/jyf-parser/libs/MpHtmlParser.js new file mode 100644 index 0000000..30c59e9 --- /dev/null +++ b/components/jyf-parser/libs/MpHtmlParser.js @@ -0,0 +1,586 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +/* + 将 html 解析为适用于小程序 rich-text 的 DOM 结构 + github:https://github.com/jin-yufeng/Parser + docs:https://jin-yufeng.github.io/Parser + author:JinYufeng + update:2020/04/13 +*/ +var cfg = require('./config.js'), + blankChar = cfg.blankChar, + CssHandler = require('./CssHandler.js'), + { + screenWidth, + system + } = wx.getSystemInfoSync(); +// #ifdef MP-BAIDU || MP-ALIPAY || MP-TOUTIAO +var entities = { + lt: '<', + gt: '>', + amp: '&', + quot: '"', + apos: "'", + nbsp: '\xA0', + ensp: '\u2002', + emsp: '\u2003', + ndash: '–', + mdash: '—', + middot: '·', + lsquo: '‘', + rsquo: '’', + ldquo: '“', + rdquo: '”', + bull: '•', + hellip: '…', + permil: '‰', + copy: '©', + reg: '®', + trade: '™', + times: '×', + divide: '÷', + cent: '¢', + pound: '£', + yen: '¥', + euro: '€', + sect: '§' +}; +// #endif +var emoji; // emoji 补丁包 https://jin-yufeng.github.io/Parser/#/instructions?id=emoji +class MpHtmlParser { + constructor(data, options = {}) { + this.attrs = {}; + this.compress = options.compress; + this.CssHandler = new CssHandler(options.tagStyle, screenWidth); + this.data = data; + this.domain = options.domain; + this.DOM = []; + this.i = this.start = this.audioNum = this.imgNum = this.videoNum = 0; + this.protocol = this.domain && this.domain.includes('://') ? this.domain.split('://')[0] : ''; + this.state = this.Text; + this.STACK = []; + this.useAnchor = options.useAnchor; + this.xml = options.xml; + } + parse() { + if (emoji) this.data = emoji.parseEmoji(this.data); + for (var c; c = this.data[this.i]; this.i++) + this.state(c); + if (this.state == this.Text) this.setText(); + while (this.STACK.length) this.popNode(this.STACK.pop()); + // #ifdef MP-BAIDU || MP-TOUTIAO + // 将顶层标签的一些样式提取出来给 rich-text + (function f(ns) { + for (var i = ns.length, n; n = ns[--i];) { + if (n.type == 'text') continue; + if (!n.c) { + var style = n.attrs.style; + if (style) { + var j, k, res; + if ((j = style.indexOf('display')) != -1) + res = style.substring(j, (k = style.indexOf(';', j)) == -1 ? style.length : k); + if ((j = style.indexOf('float')) != -1) + res += ';' + style.substring(j, (k = style.indexOf(';', j)) == -1 ? style.length : k); + n.attrs.contain = res; + } + } else f(n.children); + } + })(this.DOM); + // #endif + if (this.DOM.length) { + this.DOM[0].PoweredBy = 'Parser'; + if (this.title) this.DOM[0].title = this.title; + } + return this.DOM; + } + // 设置属性 + setAttr() { + var name = this.getName(this.attrName); + if (cfg.trustAttrs[name]) { + if (!this.attrVal) { + if (cfg.boolAttrs[name]) this.attrs[name] = 'T'; + } else if (name == 'src') this.attrs[name] = this.getUrl(this.attrVal.replace(/&/g, '&')); + else this.attrs[name] = this.attrVal; + } + this.attrVal = ''; + while (blankChar[this.data[this.i]]) this.i++; + if (this.isClose()) this.setNode(); + else { + this.start = this.i; + this.state = this.AttrName; + } + } + // 设置文本节点 + setText() { + var back, text = this.section(); + if (!text) return; + text = (cfg.onText && cfg.onText(text, () => back = true)) || text; + if (back) { + this.data = this.data.substr(0, this.start) + text + this.data.substr(this.i); + let j = this.start + text.length; + for (this.i = this.start; this.i < j; this.i++) this.state(this.data[this.i]); + return; + } + if (!this.pre) { + // 合并空白符 + var tmp = []; + for (let i = text.length, c; c = text[--i];) + if (!blankChar[c] || (!blankChar[tmp[0]] && (c = ' '))) tmp.unshift(c); + text = tmp.join(''); + if (text == ' ') return; + } + // 处理实体 + var siblings = this.siblings(), + i = -1, + j, en; + while (1) { + if ((i = text.indexOf('&', i + 1)) == -1) break; + if ((j = text.indexOf(';', i + 2)) == -1) break; + if (text[i + 1] == '#') { + en = parseInt((text[i + 2] == 'x' ? '0' : '') + text.substring(i + 2, j)); + if (!isNaN(en)) text = text.substr(0, i) + String.fromCharCode(en) + text.substring(j + 1); + } else { + en = text.substring(i + 1, j); + // #ifdef MP-WEIXIN || MP-QQ || APP-PLUS + if (en == 'nbsp') text = text.substr(0, i) + '\xA0' + text.substr(j + 1); // 解决   失效 + else if (en != 'lt' && en != 'gt' && en != 'amp' && en != 'ensp' && en != 'emsp' && en != 'quot' && en != 'apos') { + i && siblings.push({ + type: 'text', + text: text.substr(0, i) + }) + siblings.push({ + type: 'text', + text: `&${en};`, + en: 1 + }) + text = text.substr(j + 1); + i = -1; + } + // #endif + // #ifdef MP-BAIDU || MP-ALIPAY || MP-TOUTIAO + if (entities[en]) text = text.substr(0, i) + entities[en] + text.substr(j + 1); + // #endif + } + } + text && siblings.push({ + type: 'text', + text + }) + } + // 设置元素节点 + setNode() { + var node = { + name: this.tagName.toLowerCase(), + attrs: this.attrs + }, + close = cfg.selfClosingTags[node.name] || (this.xml && this.data[this.i] == '/'); + this.attrs = {}; + if (!cfg.ignoreTags[node.name]) { + this.matchAttr(node); + if (!close) { + node.children = []; + if (node.name == 'pre' && cfg.highlight) { + this.remove(node); + this.pre = node.pre = true; + } + this.siblings().push(node); + this.STACK.push(node); + } else if (!cfg.filter || cfg.filter(node, this) != false) + this.siblings().push(node); + } else { + if (!close) this.remove(node); + else if (node.name == 'source') { + var parent = this.STACK[this.STACK.length - 1], + attrs = node.attrs; + if (parent && attrs.src) + if (parent.name == 'video' || parent.name == 'audio') + parent.attrs.source.push(attrs.src); + else { + var i, media = attrs.media; + if (parent.name == 'picture' && !parent.attrs.src && !(attrs.src.indexOf('.webp') && system.includes('iOS')) && + (!media || (media.includes('px') && + (((i = media.indexOf('min-width')) != -1 && (i = media.indexOf(':', i + 8)) != -1 && screenWidth > parseInt( + media.substr(i + 1))) || + ((i = media.indexOf('max-width')) != -1 && (i = media.indexOf(':', i + 8)) != -1 && screenWidth < parseInt( + media.substr(i + 1))))))) + parent.attrs.src = attrs.src; + } + } else if (node.name == 'base' && !this.domain) this.domain = node.attrs.href; + } + if (this.data[this.i] == '/') this.i++; + this.start = this.i + 1; + this.state = this.Text; + } + // 移除标签 + remove(node) { + var name = node.name, + j = this.i; + while (1) { + if ((this.i = this.data.indexOf('', this.i)) == -1) this.i = this.data.length; + // 处理 svg + if (name == 'svg') { + var src = this.data.substring(j, this.i + 1); + if (!node.attrs.xmlns) src = ' xmlns="http://www.w3.org/2000/svg"' + src; + var i = j; + while (this.data[j] != '<') j--; + src = this.data.substring(j, i) + src; + var parent = this.STACK[this.STACK.length - 1]; + if (node.attrs.width == '100%' && parent && (parent.attrs.style || '').includes('inline')) + parent.attrs.style = 'width:300px;max-width:100%;' + parent.attrs.style; + this.siblings().push({ + name: 'img', + attrs: { + src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'), + ignore: 'T' + } + }) + } + return; + } + } + } + // 处理属性 + matchAttr(node) { + var attrs = node.attrs, + style = this.CssHandler.match(node.name, attrs, node) + (attrs.style || ''), + styleObj = {}; + if (attrs.id) { + if (this.compress & 1) attrs.id = void 0; + else if (this.useAnchor) this.bubble(); + } + if ((this.compress & 2) && attrs.class) attrs.class = void 0; + switch (node.name) { + case 'img': + if (attrs['data-src']) { + attrs.src = attrs.src || attrs['data-src']; + attrs['data-src'] = void 0; + } + if (attrs.src && !attrs.ignore) { + if (this.bubble()) attrs.i = (this.imgNum++).toString(); + else attrs.ignore = 'T'; + } + break; + case 'a': + case 'ad': + // #ifdef APP-PLUS + case 'iframe': + case 'embed': + // #endif + this.bubble(); + break; + case 'font': + if (attrs.color) { + styleObj['color'] = attrs.color; + attrs.color = void 0; + } + if (attrs.face) { + styleObj['font-family'] = attrs.face; + attrs.face = void 0; + } + if (attrs.size) { + var size = parseInt(attrs.size); + if (size < 1) size = 1; + else if (size > 7) size = 7; + var map = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large']; + styleObj['font-size'] = map[size - 1]; + attrs.size = void 0; + } + break; + case 'video': + case 'audio': + if (!attrs.id) attrs.id = node.name + (++this[`${node.name}Num`]); + else this[`${node.name}Num`]++; + if (node.name == 'video') { + if (attrs.width) { + style = `width:${parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px')};${style}`; + attrs.width = void 0; + } + if (attrs.height) { + style = `height:${parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px')};${style}`; + attrs.height = void 0; + } + if (this.videoNum > 3) node.lazyLoad = true; + } + attrs.source = []; + if (attrs.src) attrs.source.push(attrs.src); + if (!attrs.controls && !attrs.autoplay) + console.warn(`存在没有 controls 属性的 ${node.name} 标签,可能导致无法播放`, node); + this.bubble(); + break; + case 'td': + case 'th': + if (attrs.colspan || attrs.rowspan) + for (var k = this.STACK.length, item; item = this.STACK[--k];) + if (item.name == 'table') { + item.c = void 0; + break; + } + } + if (attrs.align) { + styleObj['text-align'] = attrs.align; + attrs.align = void 0; + } + // 压缩 style + var styles = style.replace(/"/g, '"').replace(/&/g, '&').split(';'); + style = ''; + for (var i = 0, len = styles.length; i < len; i++) { + var info = styles[i].split(':'); + if (info.length < 2) continue; + let key = info[0].trim().toLowerCase(), + value = info.slice(1).join(':').trim(); + if (value.includes('-webkit') || value.includes('-moz') || value.includes('-ms') || value.includes('-o') || value + .includes( + 'safe')) + style += `;${key}:${value}`; + else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) + styleObj[key] = value; + } + if (node.name == 'img' && parseInt(styleObj.width || attrs.width) > screenWidth) + styleObj.height = 'auto'; + for (var key in styleObj) { + var value = styleObj[key]; + if (key.includes('flex') || key == 'order' || key == 'self-align') node.c = 1; + // 填充链接 + if (value.includes('url')) { + var j = value.indexOf('('); + if (j++ != -1) { + while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) j++; + value = value.substr(0, j) + this.getUrl(value.substr(j)); + } + } + // 转换 rpx + else if (value.includes('rpx')) + value = value.replace(/[0-9.]+\s*rpx/g, $ => parseFloat($) * screenWidth / 750 + 'px'); + else if (key == 'white-space' && value.includes('pre')) + this.pre = node.pre = true; + style += `;${key}:${value}`; + } + style = style.substr(1); + if (style) attrs.style = style; + } + // 节点出栈处理 + popNode(node) { + // 空白符处理 + if (node.pre) { + node.pre = this.pre = void 0; + for (let i = this.STACK.length; i--;) + if (this.STACK[i].pre) + this.pre = true; + } + if (node.name == 'head' || (cfg.filter && cfg.filter(node, this) == false)) + return this.siblings().pop(); + var attrs = node.attrs; + // 替换一些标签名 + if (node.name == 'picture') { + node.name = 'img'; + if (!attrs.src && (node.children[0] || '').name == 'img') + attrs.src = node.children[0].attrs.src; + if (attrs.src && !attrs.ignore) + attrs.i = (this.imgNum++).toString(); + return node.children = void 0; + } + if (cfg.blockTags[node.name]) node.name = 'div'; + else if (!cfg.trustTags[node.name]) node.name = 'span'; + // 处理列表 + if (node.c) { + if (node.name == 'ul') { + var floor = 1; + for (let i = this.STACK.length; i--;) + if (this.STACK[i].name == 'ul') floor++; + if (floor != 1) + for (let i = node.children.length; i--;) + node.children[i].floor = floor; + } else if (node.name == 'ol') { + for (let i = 0, num = 1, child; child = node.children[i++];) + if (child.name == 'li') { + child.type = 'ol'; + child.num = ((num, type) => { + if (type == 'a') return String.fromCharCode(97 + (num - 1) % 26); + if (type == 'A') return String.fromCharCode(65 + (num - 1) % 26); + if (type == 'i' || type == 'I') { + num = (num - 1) % 99 + 1; + var one = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'], + ten = ['X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'], + res = (ten[Math.floor(num / 10) - 1] || '') + (one[num % 10 - 1] || ''); + if (type == 'i') return res.toLowerCase(); + return res; + } + return num; + })(num++, attrs.type) + '.'; + } + } + } + // 处理表格的边框 + if (node.name == 'table') { + var padding = attrs.cellpadding, + spacing = attrs.cellspacing, + border = attrs.border; + if (node.c) { + this.bubble(); + if (!padding) padding = 2; + if (!spacing) spacing = 2; + } + if (border) attrs.style = `border:${border}px solid gray;${attrs.style || ''}`; + if (spacing) attrs.style = `border-spacing:${spacing}px;${attrs.style || ''}`; + if (border || padding) + (function f(ns) { + for (var i = 0, n; n = ns[i]; i++) { + if (n.name == 'th' || n.name == 'td') { + if (border) n.attrs.style = `border:${border}px solid gray;${n.attrs.style}`; + if (padding) n.attrs.style = `padding:${padding}px;${n.attrs.style}`; + } else f(n.children || []); + } + })(node.children) + } + this.CssHandler.pop && this.CssHandler.pop(node); + // 自动压缩 + if (node.name == 'div' && !Object.keys(attrs).length) { + var siblings = this.siblings(); + if (node.children.length == 1 && node.children[0].name == 'div') + siblings[siblings.length - 1] = node.children[0]; + } + } + // 工具函数 + bubble() { + for (var i = this.STACK.length, item; item = this.STACK[--i];) { + if (cfg.richOnlyTags[item.name]) { + if (item.name == 'table' && !Object.hasOwnProperty.call(item, 'c')) item.c = 1; + return false; + } + item.c = 1; + } + return true; + } + getName = val => this.xml ? val : val.toLowerCase(); + getUrl(url) { + if (url[0] == '/') { + if (url[1] == '/') url = this.protocol + ':' + url; + else if (this.domain) url = this.domain + url; + } else if (this.domain && url.indexOf('data:') != 0 && !url.includes('://')) + url = this.domain + '/' + url; + return url; + } + isClose = () => this.data[this.i] == '>' || (this.data[this.i] == '/' && this.data[this.i + 1] == '>'); + section = () => this.data.substring(this.start, this.i); + siblings = () => this.STACK.length ? this.STACK[this.STACK.length - 1].children : this.DOM; + // 状态机 + Text(c) { + if (c == '<') { + var next = this.data[this.i + 1], + isLetter = c => (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); + if (isLetter(next)) { + this.setText(); + this.start = this.i + 1; + this.state = this.TagName; + } else if (next == '/') { + this.setText(); + if (isLetter(this.data[++this.i + 1])) { + this.start = this.i + 1; + this.state = this.EndTag; + } else + this.Comment(); + } else if (next == '!') { + this.setText(); + this.Comment(); + } + } + } + Comment() { + var key; + if (this.data.substring(this.i + 2, this.i + 4) == '--') key = '-->'; + else if (this.data.substring(this.i + 2, this.i + 9) == '[CDATA[') key = ']]>'; + else key = '>'; + if ((this.i = this.data.indexOf(key, this.i + 2)) == -1) this.i = this.data.length; + else this.i += key.length - 1; + this.start = this.i + 1; + this.state = this.Text; + } + TagName(c) { + if (blankChar[c]) { + this.tagName = this.section(); + while (blankChar[this.data[this.i]]) this.i++; + if (this.isClose()) this.setNode(); + else { + this.start = this.i; + this.state = this.AttrName; + } + } else if (this.isClose()) { + this.tagName = this.section(); + this.setNode(); + } + } + AttrName(c) { + var blank = blankChar[c]; + if (blank) { + this.attrName = this.section(); + c = this.data[this.i]; + } + if (c == '=') { + if (!blank) this.attrName = this.section(); + while (blankChar[this.data[++this.i]]); + this.start = this.i--; + this.state = this.AttrValue; + } else if (blank) this.setAttr(); + else if (this.isClose()) { + this.attrName = this.section(); + this.setAttr(); + } + } + AttrValue(c) { + if (c == '"' || c == "'") { + this.start++; + if ((this.i = this.data.indexOf(c, this.i + 1)) == -1) return this.i = this.data.length; + this.attrVal = this.section(); + this.i++; + } else { + for (; !blankChar[this.data[this.i]] && !this.isClose(); this.i++); + this.attrVal = this.section(); + } + this.setAttr(); + } + EndTag(c) { + if (blankChar[c] || c == '>' || c == '/') { + var name = this.getName(this.section()); + for (var i = this.STACK.length; i--;) + if (this.STACK[i].name == name) break; + if (i != -1) { + var node; + while ((node = this.STACK.pop()).name != name); + this.popNode(node); + } else if (name == 'p' || name == 'br') + this.siblings().push({ + name, + attrs: {} + }); + this.i = this.data.indexOf('>', this.i); + this.start = this.i + 1; + if (this.i == -1) this.i = this.data.length; + else this.state = this.Text; + } + } +} +module.exports = MpHtmlParser; diff --git a/components/jyf-parser/libs/config.js b/components/jyf-parser/libs/config.js new file mode 100644 index 0000000..c7985ad --- /dev/null +++ b/components/jyf-parser/libs/config.js @@ -0,0 +1,89 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +/* 配置文件 */ +// #ifdef MP-WEIXIN +const canIUse = wx.canIUse('editor'); // 高基础库标识,用于兼容 +// #endif +module.exports = { + // 过滤器函数 + filter: null, + // 代码高亮函数 + highlight: null, + // 文本处理函数 + onText: null, + blankChar: makeMap(' ,\xA0,\t,\r,\n,\f'), + // 块级标签,将被转为 div + blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,section' + ( + // #ifdef MP-WEIXIN + canIUse ? '' : + // #endif + ',pre')), + // 将被移除的标签 + ignoreTags: makeMap( + 'area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr' + // #ifdef MP-WEIXIN + + (canIUse ? ',rp' : '') + // #endif + // #ifndef APP-PLUS + + ',embed,iframe' + // #endif + ), + // 只能被 rich-text 显示的标签 + richOnlyTags: makeMap('a,colgroup,fieldset,legend,picture,table' + // #ifdef MP-WEIXIN + + (canIUse ? ',bdi,bdo,caption,rt,ruby' : '') + // #endif + ), + // 自闭合的标签 + selfClosingTags: makeMap( + 'area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr' + ), + // 信任的属性 + trustAttrs: makeMap( + 'align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns' + ), + // bool 型的属性 + boolAttrs: makeMap('autoplay,controls,ignore,loop,muted'), + // 信任的标签 + trustTags: makeMap( + 'a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video' + // #ifdef MP-WEIXIN + + (canIUse ? ',bdi,bdo,caption,pre,rt,ruby' : '') + // #endif + // #ifdef APP-PLUS + + ',embed,iframe' + // #endif + ), + // 默认的标签样式 + userAgentStyles: { + address: 'font-style:italic', + big: 'display:inline;font-size:1.2em', + blockquote: 'background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px', + caption: 'display:table-caption;text-align:center', + center: 'text-align:center', + cite: 'font-style:italic', + dd: 'margin-left:40px', + img: 'max-width:100%', + mark: 'background-color:yellow', + picture: 'max-width:100%', + pre: 'font-family:monospace;white-space:pre;overflow:scroll', + s: 'text-decoration:line-through', + small: 'display:inline;font-size:0.8em', + u: 'text-decoration:underline' + } +} + +function makeMap(str) { + var map = {}, + list = str.split(','); + for (var i = list.length; i--;) + map[list[i]] = true; + return map; +} diff --git a/components/jyf-parser/libs/handler.sjs b/components/jyf-parser/libs/handler.sjs new file mode 100644 index 0000000..e8743fa --- /dev/null +++ b/components/jyf-parser/libs/handler.sjs @@ -0,0 +1,44 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +var inlineTags = { + abbr: 1, + b: 1, + big: 1, + code: 1, + del: 1, + em: 1, + i: 1, + ins: 1, + label: 1, + q: 1, + small: 1, + span: 1, + strong: 1 +} +export default { + // 从顶层标签的样式中取出一些给 rich-text + getStyle: function(style) { + if (style) { + var i, j, res = ''; + if ((i = style.indexOf('display')) != -1) + res = style.substring(i, (j = style.indexOf(';', i)) == -1 ? style.length : j); + if ((i = style.indexOf('float')) != -1) + res += ';' + style.substring(i, (j = style.indexOf(';', i)) == -1 ? style.length : j); + return res; + } + }, + getNode: function(item) { + return [item]; + }, + // 是否通过 rich-text 显示 + useRichText: function(item) { + return !item.c && !inlineTags[item.name] && (item.attrs.style || '').indexOf('display:inline') == -1; + } +} diff --git a/components/jyf-parser/libs/handler.wxs b/components/jyf-parser/libs/handler.wxs new file mode 100644 index 0000000..afaf0bc --- /dev/null +++ b/components/jyf-parser/libs/handler.wxs @@ -0,0 +1,53 @@ +// +---------------------------------------------------------------------- +// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] +// +---------------------------------------------------------------------- +// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. +// +---------------------------------------------------------------------- +// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 +// +---------------------------------------------------------------------- +// | Author: CRMEB Team +// +---------------------------------------------------------------------- +var inlineTags = { + abbr: 1, + b: 1, + big: 1, + code: 1, + del: 1, + em: 1, + i: 1, + ins: 1, + label: 1, + q: 1, + small: 1, + span: 1, + strong: 1 +} +module.exports = { + // 从顶层标签的样式中取出一些给 rich-text + getStyle: function(style) { + if (style) { + var i, j, res = ''; + if ((i = style.indexOf('display')) != -1) + res = style.substring(i, (j = style.indexOf(';', i)) == -1 ? style.length : j); + if ((i = style.indexOf('float')) != -1) + res += ';' + style.substring(i, (j = style.indexOf(';', i)) == -1 ? style.length : j); + return res; + } + }, + // 处理懒加载 + getNode: function(item, imgLoad) { + if (!imgLoad && item.attrs.i != '0') { + var img = { + name: 'img', + attrs: JSON.parse(JSON.stringify(item.attrs)) + } + delete img.attrs.src; + img.attrs.style += ';width:20px;height:20px'; + return [img]; + } else return [item]; + }, + // 是否通过 rich-text 显示 + useRichText: function(item) { + return !item.c && !inlineTags[item.name] && (item.attrs.style || '').indexOf('display:inline') == -1; + } +} diff --git a/components/jyf-parser/libs/trees.vue b/components/jyf-parser/libs/trees.vue new file mode 100644 index 0000000..c2ea476 --- /dev/null +++ b/components/jyf-parser/libs/trees.vue @@ -0,0 +1,485 @@ + +