新增宝宝活动周计划、月计划

master
chen 2022-02-16 09:32:13 +08:00
parent feb65a85b3
commit 9e9070e489
16 changed files with 667 additions and 244 deletions

342
package-lock.json generated
View File

@ -10,13 +10,14 @@
"dependencies": { "dependencies": {
"axios": "^0.24.0", "axios": "^0.24.0",
"good-storage": "^1.1.1", "good-storage": "^1.1.1",
"jquery": "^3.5.1", "jquery": "^2.2.3",
"mobile-detect": "^1.4.5", "mobile-detect": "^1.4.5",
"static-extend": "^0.1.2", "static-extend": "^0.1.2",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-awesome-swiper": "^4.1.1", "vue-awesome-swiper": "^4.1.1",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue-seamless-scroll": "^1.1.23" "vue-seamless-scroll": "^1.1.23",
"vue-touch": "^2.0.0-beta.4"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^7.1.2", "autoprefixer": "^7.1.2",
@ -1263,8 +1264,7 @@
"node_modules/balanced-match": { "node_modules/balanced-match": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.nlark.com/balanced-match/download/balanced-match-1.0.2.tgz", "resolved": "https://registry.nlark.com/balanced-match/download/balanced-match-1.0.2.tgz",
"integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4=", "integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4="
"dev": true
}, },
"node_modules/base": { "node_modules/base": {
"version": "0.11.2", "version": "0.11.2",
@ -1415,7 +1415,6 @@
"version": "1.1.11", "version": "1.1.11",
"resolved": "https://registry.nlark.com/brace-expansion/download/brace-expansion-1.1.11.tgz", "resolved": "https://registry.nlark.com/brace-expansion/download/brace-expansion-1.1.11.tgz",
"integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=",
"dev": true,
"dependencies": { "dependencies": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@ -1440,6 +1439,19 @@
"integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=",
"dev": true "dev": true
}, },
"node_modules/browser-resolve": {
"version": "1.11.3",
"resolved": "https://registry.nlark.com/browser-resolve/download/browser-resolve-1.11.3.tgz",
"integrity": "sha1-m3y7PQ9RDky4a9vXlhJNKLWJCvY=",
"dependencies": {
"resolve": "1.1.7"
}
},
"node_modules/browser-resolve/node_modules/resolve": {
"version": "1.1.7",
"resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.1.7.tgz",
"integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs="
},
"node_modules/browserify-aes": { "node_modules/browserify-aes": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npm.taobao.org/browserify-aes/download/browserify-aes-1.2.0.tgz", "resolved": "https://registry.npm.taobao.org/browserify-aes/download/browserify-aes-1.2.0.tgz",
@ -1576,6 +1588,14 @@
"integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=",
"dev": true "dev": true
}, },
"node_modules/builtin-modules": {
"version": "1.1.1",
"resolved": "https://registry.nlark.com/builtin-modules/download/builtin-modules-1.1.1.tgz",
"integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/builtin-status-codes": { "node_modules/builtin-status-codes": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/builtin-status-codes/download/builtin-status-codes-3.0.0.tgz", "resolved": "https://registry.npm.taobao.org/builtin-status-codes/download/builtin-status-codes-3.0.0.tgz",
@ -2213,8 +2233,7 @@
"node_modules/concat-map": { "node_modules/concat-map": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "https://registry.nlark.com/concat-map/download/concat-map-0.0.1.tgz", "resolved": "https://registry.nlark.com/concat-map/download/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
"dev": true
}, },
"node_modules/concat-stream": { "node_modules/concat-stream": {
"version": "1.6.2", "version": "1.6.2",
@ -4157,6 +4176,11 @@
"node": ">=4.0" "node": ">=4.0"
} }
}, },
"node_modules/estree-walker": {
"version": "0.3.1",
"resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-0.3.1.tgz",
"integrity": "sha1-5rGlHPcpJSTnI3wxLl/mZgwc4ao="
},
"node_modules/esutils": { "node_modules/esutils": {
"version": "2.0.3", "version": "2.0.3",
"resolved": "https://registry.nlark.com/esutils/download/esutils-2.0.3.tgz", "resolved": "https://registry.nlark.com/esutils/download/esutils-2.0.3.tgz",
@ -4841,8 +4865,7 @@
"node_modules/function-bind": { "node_modules/function-bind": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz", "resolved": "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz",
"integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=", "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0="
"dev": true
}, },
"node_modules/get-caller-file": { "node_modules/get-caller-file": {
"version": "1.0.3", "version": "1.0.3",
@ -4987,6 +5010,14 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/hammerjs": {
"version": "2.0.8",
"resolved": "https://registry.nlark.com/hammerjs/download/hammerjs-2.0.8.tgz",
"integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE=",
"engines": {
"node": ">=0.8.0"
}
},
"node_modules/handle-thing": { "node_modules/handle-thing": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.nlark.com/handle-thing/download/handle-thing-2.0.1.tgz", "resolved": "https://registry.nlark.com/handle-thing/download/handle-thing-2.0.1.tgz",
@ -4997,7 +5028,6 @@
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.nlark.com/has/download/has-1.0.3.tgz", "resolved": "https://registry.nlark.com/has/download/has-1.0.3.tgz",
"integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=", "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=",
"dev": true,
"dependencies": { "dependencies": {
"function-bind": "^1.1.1" "function-bind": "^1.1.1"
}, },
@ -5710,7 +5740,6 @@
"version": "2.8.0", "version": "2.8.0",
"resolved": "https://registry.npmmirror.com/is-core-module/download/is-core-module-2.8.0.tgz?cache=0&sync_timestamp=1634236731601&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.8.0.tgz", "resolved": "https://registry.npmmirror.com/is-core-module/download/is-core-module-2.8.0.tgz?cache=0&sync_timestamp=1634236731601&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.8.0.tgz",
"integrity": "sha1-AyEzbD0JJeSX/Zf12VyxFKXM1Ug=", "integrity": "sha1-AyEzbD0JJeSX/Zf12VyxFKXM1Ug=",
"dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"has": "^1.0.3" "has": "^1.0.3"
@ -6043,9 +6072,9 @@
} }
}, },
"node_modules/jquery": { "node_modules/jquery": {
"version": "3.6.0", "version": "2.2.4",
"resolved": "https://registry.npmmirror.com/jquery/download/jquery-3.6.0.tgz", "resolved": "https://registry.npmmirror.com/jquery/download/jquery-2.2.4.tgz",
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" "integrity": "sha512-lBHj60ezci2u1v2FqnZIraShGgEXq35qCzMv4lITyHGppTnA13rwR0MgwyNJh9TnDs3aXUvd1xjAotfraMHX/Q=="
}, },
"node_modules/js-base64": { "node_modules/js-base64": {
"version": "2.6.4", "version": "2.6.4",
@ -6353,6 +6382,14 @@
"yallist": "^2.1.2" "yallist": "^2.1.2"
} }
}, },
"node_modules/magic-string": {
"version": "0.16.0",
"resolved": "https://registry.nlark.com/magic-string/download/magic-string-0.16.0.tgz",
"integrity": "sha1-lw67DacZMwEoX7GqZQ85vdgetFo=",
"dependencies": {
"vlq": "^0.2.1"
}
},
"node_modules/make-dir": { "node_modules/make-dir": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.nlark.com/make-dir/download/make-dir-1.3.0.tgz", "resolved": "https://registry.nlark.com/make-dir/download/make-dir-1.3.0.tgz",
@ -6692,7 +6729,6 @@
"version": "3.0.4", "version": "3.0.4",
"resolved": "https://registry.nlark.com/minimatch/download/minimatch-3.0.4.tgz", "resolved": "https://registry.nlark.com/minimatch/download/minimatch-3.0.4.tgz",
"integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
"dev": true,
"dependencies": { "dependencies": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
}, },
@ -7536,8 +7572,7 @@
"node_modules/path-parse": { "node_modules/path-parse": {
"version": "1.0.7", "version": "1.0.7",
"resolved": "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpath-parse%2Fdownload%2Fpath-parse-1.0.7.tgz", "resolved": "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpath-parse%2Fdownload%2Fpath-parse-1.0.7.tgz",
"integrity": "sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU=", "integrity": "sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU="
"dev": true
}, },
"node_modules/path-to-regexp": { "node_modules/path-to-regexp": {
"version": "0.1.7", "version": "0.1.7",
@ -10831,7 +10866,6 @@
"version": "1.20.0", "version": "1.20.0",
"resolved": "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz", "resolved": "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz",
"integrity": "sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU=", "integrity": "sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU=",
"dev": true,
"dependencies": { "dependencies": {
"is-core-module": "^2.2.0", "is-core-module": "^2.2.0",
"path-parse": "^1.0.6" "path-parse": "^1.0.6"
@ -10933,6 +10967,100 @@
"inherits": "^2.0.1" "inherits": "^2.0.1"
} }
}, },
"node_modules/rollup-plugin-cleanup": {
"version": "0.1.4",
"resolved": "https://registry.nlark.com/rollup-plugin-cleanup/download/rollup-plugin-cleanup-0.1.4.tgz",
"integrity": "sha1-n+06tDAJiKiC1j3jMh5BDNr8YzE=",
"dependencies": {
"acorn": "^3.3.0",
"magic-string": "^0.16.0",
"rollup-pluginutils": "^1.5.2"
},
"engines": {
"node": ">=0.12"
}
},
"node_modules/rollup-plugin-cleanup/node_modules/acorn": {
"version": "3.3.0",
"resolved": "https://registry.npmmirror.com/acorn/download/acorn-3.3.0.tgz",
"integrity": "sha512-OLUyIIZ7mF5oaAUT1w0TFqQS81q3saT46x8t7ukpPjMNk+nbs4ZHhs7ToV8EWnLYLepjETXd4XaCE4uxkMeqUw==",
"bin": {
"acorn": "bin/acorn"
},
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/rollup-plugin-commonjs": {
"version": "7.1.0",
"resolved": "https://registry.npmmirror.com/rollup-plugin-commonjs/download/rollup-plugin-commonjs-7.1.0.tgz",
"integrity": "sha1-w6dywuSl+hNQf1xXi2bME7DLink=",
"deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.",
"dependencies": {
"acorn": "^4.0.1",
"estree-walker": "^0.3.0",
"magic-string": "^0.19.0",
"resolve": "^1.1.7",
"rollup-pluginutils": "^2.0.1"
}
},
"node_modules/rollup-plugin-commonjs/node_modules/acorn": {
"version": "4.0.13",
"resolved": "https://registry.npmmirror.com/acorn/download/acorn-4.0.13.tgz",
"integrity": "sha512-fu2ygVGuMmlzG8ZeRJ0bvR41nsAkxxhbyk8bZ1SS521Z7vmgJFTQQlfz/Mp/nJexGBz+v8sC9bM6+lNgskt4Ug==",
"bin": {
"acorn": "bin/acorn"
},
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/rollup-plugin-commonjs/node_modules/magic-string": {
"version": "0.19.1",
"resolved": "https://registry.nlark.com/magic-string/download/magic-string-0.19.1.tgz",
"integrity": "sha1-FNdoATyvLsj96hakmvgvw3fnUgE=",
"dependencies": {
"vlq": "^0.2.1"
}
},
"node_modules/rollup-plugin-commonjs/node_modules/rollup-pluginutils": {
"version": "2.8.2",
"resolved": "https://registry.nlark.com/rollup-pluginutils/download/rollup-pluginutils-2.8.2.tgz",
"integrity": "sha1-cvKvB0i1kjZNvTOJ5gDlqURKNR4=",
"dependencies": {
"estree-walker": "^0.6.1"
}
},
"node_modules/rollup-plugin-commonjs/node_modules/rollup-pluginutils/node_modules/estree-walker": {
"version": "0.6.1",
"resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-0.6.1.tgz",
"integrity": "sha1-UwSRQ/QMbrkYsjZx0f4yGfOhs2I="
},
"node_modules/rollup-plugin-node-resolve": {
"version": "2.1.1",
"resolved": "https://registry.npmmirror.com/rollup-plugin-node-resolve/download/rollup-plugin-node-resolve-2.1.1.tgz",
"integrity": "sha1-y7eDsNFbAnlNWJFTULLw2QK43cg=",
"deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.",
"dependencies": {
"browser-resolve": "^1.11.0",
"builtin-modules": "^1.1.0",
"resolve": "^1.1.6"
}
},
"node_modules/rollup-pluginutils": {
"version": "1.5.2",
"resolved": "https://registry.nlark.com/rollup-pluginutils/download/rollup-pluginutils-1.5.2.tgz",
"integrity": "sha1-HhVud4+UtyVb+hs9AXi+j1xVJAg=",
"dependencies": {
"estree-walker": "^0.2.1",
"minimatch": "^3.0.2"
}
},
"node_modules/rollup-pluginutils/node_modules/estree-walker": {
"version": "0.2.1",
"resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-0.2.1.tgz",
"integrity": "sha1-va/oCVOD2EFNXcLs9MkXO225QS4="
},
"node_modules/run-queue": { "node_modules/run-queue": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.nlark.com/run-queue/download/run-queue-1.0.3.tgz", "resolved": "https://registry.nlark.com/run-queue/download/run-queue-1.0.3.tgz",
@ -12729,6 +12857,11 @@
"integrity": "sha1-4rgApT56Kbk1BsPPQRANFsTErY4=", "integrity": "sha1-4rgApT56Kbk1BsPPQRANFsTErY4=",
"dev": true "dev": true
}, },
"node_modules/vlq": {
"version": "0.2.3",
"resolved": "https://registry.npmmirror.com/vlq/download/vlq-0.2.3.tgz?cache=0&sync_timestamp=1634578054719&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fvlq%2Fdownload%2Fvlq-0.2.3.tgz",
"integrity": "sha1-jz5DKM9jsVQMDWfhsneDhviXWyY="
},
"node_modules/vm-browserify": { "node_modules/vm-browserify": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.nlark.com/vm-browserify/download/vm-browserify-1.1.2.tgz", "resolved": "https://registry.nlark.com/vm-browserify/download/vm-browserify-1.1.2.tgz",
@ -12876,6 +13009,17 @@
"integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=", "integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=",
"dev": true "dev": true
}, },
"node_modules/vue-touch": {
"version": "2.0.0-beta.4",
"resolved": "https://registry.nlark.com/vue-touch/download/vue-touch-2.0.0-beta.4.tgz",
"integrity": "sha1-Alml+/if7RLV5deJ//uZuHSuBQE=",
"dependencies": {
"hammerjs": "^2.0.8",
"rollup-plugin-cleanup": "^0.1.4",
"rollup-plugin-commonjs": "^7.0.0",
"rollup-plugin-node-resolve": "^2.0.0"
}
},
"node_modules/watchpack": { "node_modules/watchpack": {
"version": "1.7.5", "version": "1.7.5",
"resolved": "https://registry.npmmirror.com/watchpack/download/watchpack-1.7.5.tgz", "resolved": "https://registry.npmmirror.com/watchpack/download/watchpack-1.7.5.tgz",
@ -15174,8 +15318,7 @@
"balanced-match": { "balanced-match": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.nlark.com/balanced-match/download/balanced-match-1.0.2.tgz", "resolved": "https://registry.nlark.com/balanced-match/download/balanced-match-1.0.2.tgz",
"integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4=", "integrity": "sha1-6D46fj8wCzTLnYf2FfoMvzV2kO4="
"dev": true
}, },
"base": { "base": {
"version": "0.11.2", "version": "0.11.2",
@ -15311,7 +15454,6 @@
"version": "1.1.11", "version": "1.1.11",
"resolved": "https://registry.nlark.com/brace-expansion/download/brace-expansion-1.1.11.tgz", "resolved": "https://registry.nlark.com/brace-expansion/download/brace-expansion-1.1.11.tgz",
"integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=",
"dev": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@ -15333,6 +15475,21 @@
"integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=",
"dev": true "dev": true
}, },
"browser-resolve": {
"version": "1.11.3",
"resolved": "https://registry.nlark.com/browser-resolve/download/browser-resolve-1.11.3.tgz",
"integrity": "sha1-m3y7PQ9RDky4a9vXlhJNKLWJCvY=",
"requires": {
"resolve": "1.1.7"
},
"dependencies": {
"resolve": {
"version": "1.1.7",
"resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.1.7.tgz",
"integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs="
}
}
},
"browserify-aes": { "browserify-aes": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npm.taobao.org/browserify-aes/download/browserify-aes-1.2.0.tgz", "resolved": "https://registry.npm.taobao.org/browserify-aes/download/browserify-aes-1.2.0.tgz",
@ -15464,6 +15621,11 @@
"integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=",
"dev": true "dev": true
}, },
"builtin-modules": {
"version": "1.1.1",
"resolved": "https://registry.nlark.com/builtin-modules/download/builtin-modules-1.1.1.tgz",
"integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8="
},
"builtin-status-codes": { "builtin-status-codes": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/builtin-status-codes/download/builtin-status-codes-3.0.0.tgz", "resolved": "https://registry.npm.taobao.org/builtin-status-codes/download/builtin-status-codes-3.0.0.tgz",
@ -15998,8 +16160,7 @@
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "https://registry.nlark.com/concat-map/download/concat-map-0.0.1.tgz", "resolved": "https://registry.nlark.com/concat-map/download/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
"dev": true
}, },
"concat-stream": { "concat-stream": {
"version": "1.6.2", "version": "1.6.2",
@ -17650,6 +17811,11 @@
"integrity": "sha1-OYrT88WiSUi+dyXoPRGn3ijNvR0=", "integrity": "sha1-OYrT88WiSUi+dyXoPRGn3ijNvR0=",
"dev": true "dev": true
}, },
"estree-walker": {
"version": "0.3.1",
"resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-0.3.1.tgz",
"integrity": "sha1-5rGlHPcpJSTnI3wxLl/mZgwc4ao="
},
"esutils": { "esutils": {
"version": "2.0.3", "version": "2.0.3",
"resolved": "https://registry.nlark.com/esutils/download/esutils-2.0.3.tgz", "resolved": "https://registry.nlark.com/esutils/download/esutils-2.0.3.tgz",
@ -18205,8 +18371,7 @@
"function-bind": { "function-bind": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz", "resolved": "https://registry.nlark.com/function-bind/download/function-bind-1.1.1.tgz",
"integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=", "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0="
"dev": true
}, },
"get-caller-file": { "get-caller-file": {
"version": "1.0.3", "version": "1.0.3",
@ -18324,6 +18489,11 @@
"pify": "^3.0.0" "pify": "^3.0.0"
} }
}, },
"hammerjs": {
"version": "2.0.8",
"resolved": "https://registry.nlark.com/hammerjs/download/hammerjs-2.0.8.tgz",
"integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE="
},
"handle-thing": { "handle-thing": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.nlark.com/handle-thing/download/handle-thing-2.0.1.tgz", "resolved": "https://registry.nlark.com/handle-thing/download/handle-thing-2.0.1.tgz",
@ -18334,7 +18504,6 @@
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.nlark.com/has/download/has-1.0.3.tgz", "resolved": "https://registry.nlark.com/has/download/has-1.0.3.tgz",
"integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=", "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=",
"dev": true,
"requires": { "requires": {
"function-bind": "^1.1.1" "function-bind": "^1.1.1"
} }
@ -18928,7 +19097,6 @@
"version": "2.8.0", "version": "2.8.0",
"resolved": "https://registry.npmmirror.com/is-core-module/download/is-core-module-2.8.0.tgz?cache=0&sync_timestamp=1634236731601&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.8.0.tgz", "resolved": "https://registry.npmmirror.com/is-core-module/download/is-core-module-2.8.0.tgz?cache=0&sync_timestamp=1634236731601&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fis-core-module%2Fdownload%2Fis-core-module-2.8.0.tgz",
"integrity": "sha1-AyEzbD0JJeSX/Zf12VyxFKXM1Ug=", "integrity": "sha1-AyEzbD0JJeSX/Zf12VyxFKXM1Ug=",
"dev": true,
"requires": { "requires": {
"has": "^1.0.3" "has": "^1.0.3"
} }
@ -19172,9 +19340,9 @@
"dev": true "dev": true
}, },
"jquery": { "jquery": {
"version": "3.6.0", "version": "2.2.4",
"resolved": "https://registry.npmmirror.com/jquery/download/jquery-3.6.0.tgz", "resolved": "https://registry.npmmirror.com/jquery/download/jquery-2.2.4.tgz",
"integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" "integrity": "sha512-lBHj60ezci2u1v2FqnZIraShGgEXq35qCzMv4lITyHGppTnA13rwR0MgwyNJh9TnDs3aXUvd1xjAotfraMHX/Q=="
}, },
"js-base64": { "js-base64": {
"version": "2.6.4", "version": "2.6.4",
@ -19425,6 +19593,14 @@
"yallist": "^2.1.2" "yallist": "^2.1.2"
} }
}, },
"magic-string": {
"version": "0.16.0",
"resolved": "https://registry.nlark.com/magic-string/download/magic-string-0.16.0.tgz",
"integrity": "sha1-lw67DacZMwEoX7GqZQ85vdgetFo=",
"requires": {
"vlq": "^0.2.1"
}
},
"make-dir": { "make-dir": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.nlark.com/make-dir/download/make-dir-1.3.0.tgz", "resolved": "https://registry.nlark.com/make-dir/download/make-dir-1.3.0.tgz",
@ -19705,7 +19881,6 @@
"version": "3.0.4", "version": "3.0.4",
"resolved": "https://registry.nlark.com/minimatch/download/minimatch-3.0.4.tgz", "resolved": "https://registry.nlark.com/minimatch/download/minimatch-3.0.4.tgz",
"integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
"dev": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@ -20390,8 +20565,7 @@
"path-parse": { "path-parse": {
"version": "1.0.7", "version": "1.0.7",
"resolved": "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpath-parse%2Fdownload%2Fpath-parse-1.0.7.tgz", "resolved": "https://registry.nlark.com/path-parse/download/path-parse-1.0.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fpath-parse%2Fdownload%2Fpath-parse-1.0.7.tgz",
"integrity": "sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU=", "integrity": "sha1-+8EUtgykKzDZ2vWFjkvWi77bZzU="
"dev": true
}, },
"path-to-regexp": { "path-to-regexp": {
"version": "0.1.7", "version": "0.1.7",
@ -23131,7 +23305,6 @@
"version": "1.20.0", "version": "1.20.0",
"resolved": "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz", "resolved": "https://registry.nlark.com/resolve/download/resolve-1.20.0.tgz",
"integrity": "sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU=", "integrity": "sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU=",
"dev": true,
"requires": { "requires": {
"is-core-module": "^2.2.0", "is-core-module": "^2.2.0",
"path-parse": "^1.0.6" "path-parse": "^1.0.6"
@ -23214,6 +23387,91 @@
"inherits": "^2.0.1" "inherits": "^2.0.1"
} }
}, },
"rollup-plugin-cleanup": {
"version": "0.1.4",
"resolved": "https://registry.nlark.com/rollup-plugin-cleanup/download/rollup-plugin-cleanup-0.1.4.tgz",
"integrity": "sha1-n+06tDAJiKiC1j3jMh5BDNr8YzE=",
"requires": {
"acorn": "^3.3.0",
"magic-string": "^0.16.0",
"rollup-pluginutils": "^1.5.2"
},
"dependencies": {
"acorn": {
"version": "3.3.0",
"resolved": "https://registry.npmmirror.com/acorn/download/acorn-3.3.0.tgz",
"integrity": "sha512-OLUyIIZ7mF5oaAUT1w0TFqQS81q3saT46x8t7ukpPjMNk+nbs4ZHhs7ToV8EWnLYLepjETXd4XaCE4uxkMeqUw=="
}
}
},
"rollup-plugin-commonjs": {
"version": "7.1.0",
"resolved": "https://registry.npmmirror.com/rollup-plugin-commonjs/download/rollup-plugin-commonjs-7.1.0.tgz",
"integrity": "sha1-w6dywuSl+hNQf1xXi2bME7DLink=",
"requires": {
"acorn": "^4.0.1",
"estree-walker": "^0.3.0",
"magic-string": "^0.19.0",
"resolve": "^1.1.7",
"rollup-pluginutils": "^2.0.1"
},
"dependencies": {
"acorn": {
"version": "4.0.13",
"resolved": "https://registry.npmmirror.com/acorn/download/acorn-4.0.13.tgz",
"integrity": "sha512-fu2ygVGuMmlzG8ZeRJ0bvR41nsAkxxhbyk8bZ1SS521Z7vmgJFTQQlfz/Mp/nJexGBz+v8sC9bM6+lNgskt4Ug=="
},
"magic-string": {
"version": "0.19.1",
"resolved": "https://registry.nlark.com/magic-string/download/magic-string-0.19.1.tgz",
"integrity": "sha1-FNdoATyvLsj96hakmvgvw3fnUgE=",
"requires": {
"vlq": "^0.2.1"
}
},
"rollup-pluginutils": {
"version": "2.8.2",
"resolved": "https://registry.nlark.com/rollup-pluginutils/download/rollup-pluginutils-2.8.2.tgz",
"integrity": "sha1-cvKvB0i1kjZNvTOJ5gDlqURKNR4=",
"requires": {
"estree-walker": "^0.6.1"
},
"dependencies": {
"estree-walker": {
"version": "0.6.1",
"resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-0.6.1.tgz",
"integrity": "sha1-UwSRQ/QMbrkYsjZx0f4yGfOhs2I="
}
}
}
}
},
"rollup-plugin-node-resolve": {
"version": "2.1.1",
"resolved": "https://registry.npmmirror.com/rollup-plugin-node-resolve/download/rollup-plugin-node-resolve-2.1.1.tgz",
"integrity": "sha1-y7eDsNFbAnlNWJFTULLw2QK43cg=",
"requires": {
"browser-resolve": "^1.11.0",
"builtin-modules": "^1.1.0",
"resolve": "^1.1.6"
}
},
"rollup-pluginutils": {
"version": "1.5.2",
"resolved": "https://registry.nlark.com/rollup-pluginutils/download/rollup-pluginutils-1.5.2.tgz",
"integrity": "sha1-HhVud4+UtyVb+hs9AXi+j1xVJAg=",
"requires": {
"estree-walker": "^0.2.1",
"minimatch": "^3.0.2"
},
"dependencies": {
"estree-walker": {
"version": "0.2.1",
"resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-0.2.1.tgz",
"integrity": "sha1-va/oCVOD2EFNXcLs9MkXO225QS4="
}
}
},
"run-queue": { "run-queue": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.nlark.com/run-queue/download/run-queue-1.0.3.tgz", "resolved": "https://registry.nlark.com/run-queue/download/run-queue-1.0.3.tgz",
@ -24731,6 +24989,11 @@
"integrity": "sha1-4rgApT56Kbk1BsPPQRANFsTErY4=", "integrity": "sha1-4rgApT56Kbk1BsPPQRANFsTErY4=",
"dev": true "dev": true
}, },
"vlq": {
"version": "0.2.3",
"resolved": "https://registry.npmmirror.com/vlq/download/vlq-0.2.3.tgz?cache=0&sync_timestamp=1634578054719&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fvlq%2Fdownload%2Fvlq-0.2.3.tgz",
"integrity": "sha1-jz5DKM9jsVQMDWfhsneDhviXWyY="
},
"vm-browserify": { "vm-browserify": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.nlark.com/vm-browserify/download/vm-browserify-1.1.2.tgz", "resolved": "https://registry.nlark.com/vm-browserify/download/vm-browserify-1.1.2.tgz",
@ -24858,6 +25121,17 @@
"integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=", "integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=",
"dev": true "dev": true
}, },
"vue-touch": {
"version": "2.0.0-beta.4",
"resolved": "https://registry.nlark.com/vue-touch/download/vue-touch-2.0.0-beta.4.tgz",
"integrity": "sha1-Alml+/if7RLV5deJ//uZuHSuBQE=",
"requires": {
"hammerjs": "^2.0.8",
"rollup-plugin-cleanup": "^0.1.4",
"rollup-plugin-commonjs": "^7.0.0",
"rollup-plugin-node-resolve": "^2.0.0"
}
},
"watchpack": { "watchpack": {
"version": "1.7.5", "version": "1.7.5",
"resolved": "https://registry.npmmirror.com/watchpack/download/watchpack-1.7.5.tgz", "resolved": "https://registry.npmmirror.com/watchpack/download/watchpack-1.7.5.tgz",

View File

@ -12,13 +12,14 @@
"dependencies": { "dependencies": {
"axios": "^0.24.0", "axios": "^0.24.0",
"good-storage": "^1.1.1", "good-storage": "^1.1.1",
"jquery": "^2.2.3",
"mobile-detect": "^1.4.5", "mobile-detect": "^1.4.5",
"static-extend": "^0.1.2", "static-extend": "^0.1.2",
"vue": "^2.5.2", "vue": "^2.5.2",
"vue-awesome-swiper": "^4.1.1", "vue-awesome-swiper": "^4.1.1",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vue-seamless-scroll": "^1.1.23", "vue-seamless-scroll": "^1.1.23",
"jquery": "^2.2.3" "vue-touch": "^2.0.0-beta.4"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^7.1.2", "autoprefixer": "^7.1.2",

View File

@ -75,14 +75,14 @@ img {
} }
.logo img { .logo img {
/* object-fit: cover; */ /* object-fit: cover; */
min-width: 76px; width: 76px;
height: 76px; height: 76px;
border-radius: 100%; border-radius: 100%;
background-color: #9c7cfa; background-color: #9c7cfa;
margin-right: 10px; margin-right: 10px;
} }
.logo div { .logo div {
color: #b7cc56; color: #7557cc;
/* font-size: 12.5px; */ /* font-size: 12.5px; */
/* margin-top: 6px; */ /* margin-top: 6px; */
flex-shrink: 0; flex-shrink: 0;
@ -230,7 +230,7 @@ img {
font-size: 30px!important;font-weight: bold!important; font-size: 30px!important;font-weight: bold!important;
} }
.meal-box {padding-top: 10px;display: flex;align-items: center;} .meal-box {padding-top: 10px;display: flex;align-items: center;}
.meal-box img {width: 130px;max-height: 106px; border-radius: 10px;object-fit: cover;margin-right: 34px;} .meal-box img {width: 88px;max-height: 88px; border-radius: 10px;object-fit: cover;margin-right: 34px;}
.meal-box div {font-size: 18px;line-height: 30px;} .meal-box div {font-size: 18px;line-height: 30px;}
.main-center { .main-center {
margin: 0 20px; margin: 0 20px;
@ -274,7 +274,7 @@ img {
} }
.right-content {color: #7557CC;text-align: center;position: relative; .right-content {color: #7557CC;text-align: center;position: relative;
height: 90%; height: 90%;
overflow: hidden;overflow-y: scroll;} overflow: hidden;}
#innerbox{position: absolute;width: 100%;} #innerbox{position: absolute;width: 100%;}
.right-content::-webkit-scrollbar { .right-content::-webkit-scrollbar {
display: none; display: none;
@ -441,7 +441,20 @@ overflow: hidden;overflow-y: scroll;}
.time-item div:nth-child(2){ .time-item div:nth-child(2){
border-radius: 10px 0 0 10px;padding-left: 10px; background-color: #FFFFFF;height: 37px;margin-left: -10px;color: #9C7CFA; border-radius: 10px 0 0 10px;padding-left: 10px; background-color: #FFFFFF;height: 37px;margin-left: -10px;color: #9C7CFA;
} }
.plan-box{
padding: 20px;
display: flex;justify-content: space-around;
align-items: center;
}
.plan-box button{
border: 2px solid #9C7CFA;
border-radius: 10px;
/* background-color: #9C7CFA; */
background-color: #FFFFFF;
color: #9C7CFA;
padding: 10px 20px;
font-size: 16px;
}
/* 出勤详情 */ /* 出勤详情 */
.attendance-box { .attendance-box {
width: 1210px; width: 1210px;
@ -736,4 +749,17 @@ overflow: hidden;overflow-y: scroll;}
.chengjian>div{display: flex;align-items: flex-end;width: 50%;line-height: 30px;} .chengjian>div{display: flex;align-items: flex-end;width: 50%;line-height: 30px;}
.wellcome-img{position: fixed;z-index: 100;top: 0;left: 0;right: 0;bottom: 0;} .wellcome-img{position: fixed;z-index: 100;top: 0;left: 0;right: 0;bottom: 0;}
.erro-box{position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 9999999;display: flex;justify-content: center;align-items: center;background-color: #FFFFFF;} .erro-box{position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: 9999999;display: flex;justify-content: center;align-items: center;background-color: #FFFFFF;}
.erro-box img{width: 660px;height: 614px;} .erro-box img{width: 660px;height: 614px;}
.notice-k{position: fixed;top: 0px;left: 0px;right: 0px;bottom: 0px;z-index: 99999;display: flex;justify-content: center;align-items: center;animation: noticed .3s linear forwards;}
@keyframes noticed{
from{transform: scale(0);}
to{transform: scale(1);}
}
.notice-box{border: 5px solid #7557cc;border-radius: 20px;background-color: #FFFFFF; width: 520px;}
.notice-title-box{height: 75px;color: #FFE68F;margin: -5px -5px 0 -5px;width: 102%; border-radius: 15px 15px 0 0;font-weight: bold;font-size: 36px;position: relative; line-height: 75px;display: flex;align-items: center;background-color: #7557cc;}
.notice-title-box div{width: 100%;text-align: center;}
.notice-title-box img{width: 20px;height: 20px;position: absolute;}
.notice-title-box img:first-child{left: 20px;}
.notice-title-box img:last-child{right: 20px;}

View File

@ -25,7 +25,7 @@
<div class="attendance-con"> <div class="attendance-con">
<div class="chengjian" v-if="dataArr.length!=0"> <div class="chengjian" v-if="dataArr.length!=0">
<div v-for="(item,index) in dataArr" :key="index" class="attendance-jian-item"> <div v-for="(item,index) in dataArr" :key="index" class="attendance-jian-item">
<img v-if="item.CheckDate!=null || item.CheckTime!=null" class="baby-img02" :src="dataObj.Head_Img" > <img v-if="item.CheckDate!=null || item.CheckTime!=null" class="baby-img02" style="object-fit: contain;background-color: #FFFFFF;" :src="dataObj.Head_Img" >
<div v-else class="baby-img02" > <div v-else class="baby-img02" >
<img src="../../static/img/attendancedetail/icon-wu.png" style="width: 156px;height: 106px;" > <img src="../../static/img/attendancedetail/icon-wu.png" style="width: 156px;height: 106px;" >
</div> </div>
@ -120,27 +120,27 @@
} }
}, },
methods: { methods: {
async getuserattendanceinfo() { // async getuserattendanceinfo() {
let UserGuid="" // let UserGuid=""
UserGuid="1ec20f7e-85c7-a982-b506-67f71d64d1f6" // UserGuid="1ec20f7e-85c7-a982-b506-67f71d64d1f6"
let data = await this.$axios({ // let data = await this.$axios({
// serviceAPI // // serviceAPI
url: this.$https.getuserattendanceinfo, // url: this.$https.getuserattendanceinfo,
methods: "get", // methods: "get",
params: { // params: {
EquipmentID: this.$storage.get('EquipmentID'), // EquipmentID: this.$storage.get('EquipmentID'),
UserGuid // UserGuid
}, // },
}); // });
}, // },
backNews(){ backNews(){
this.$emit('backNews',false); this.$emit('backNews',false);
}, },
}, },
mounted() { mounted() {
this.getuserattendanceinfo() // this.getuserattendanceinfo()
} }
} }
</script> </script>

View File

@ -12,13 +12,15 @@
<div class="attendance-right"> <div class="attendance-right">
<div v-if="!showDetail" style="display: flex;flex-wrap: wrap;"> <div v-if="!showDetail" style="display: flex;flex-wrap: wrap;">
<div v-if="isNothing" class="attendance-right-item-box" @click="goDetail(index)" v-for="(item,index) in babyArr" :key="index"> <div v-if="isNothing" class="attendance-right-item-box" @click="goDetail(index)" v-for="(item,index) in babyArr" :key="index">
<img :src="item.Head_Img" alt=""> <img v-if="item.Head_Img!='' && item.Head_Img!=null" :src="item.Head_Img" alt="">
<img v-if="(item.Head_Img=='' || item.Head_Img==null) && item.Sex==0" src="../../static/img/babyalbum/baby-boy.png" alt="">
<img v-if="(item.Head_Img=='' || item.Head_Img==null) && item.Sex==1" src="../../static/img/babyalbum/baby-gril.png" alt="">
<span>{{item.StuName}}</span> <span>{{item.StuName}}</span>
<div :style="{background:['','#9C7CFA','#D3D3D3','#FF9393','#F4B52F'][item.CheckResult]}">{{['','正常','离校','未到校','请假'][item.CheckResult]}}</div> <div :style="{background:['','#9C7CFA','#D3D3D3','#FF9393','#F4B52F'][item.CheckResult]}">{{['','正常','离校','未到校','请假'][item.CheckResult]}}</div>
</div> </div>
<div v-if="!isNothing" class="nothing-box"> <div v-if="!isNothing" class="nothing-box">
<img src="../../static/img/attendancedetail/icon-nothing.png"> <img src="../../static/img/attendancedetail/icon-nothing.png">
<div>{{['没有出勤','暂无离校','暂无未到校','没有请假'][navIndex]}}的宝宝</div> <div>{{['没有出勤','暂无到校','暂无离校','暂无未到校','没有请假'][navIndex]}}的宝宝</div>
</div> </div>
</div> </div>
<attendanceBabuDetail v-if="showDetail" :dataObj="dataObj" @backNews="backNews" :dataArr="dataArr" :checkResult="checkResult"></attendanceBabuDetail> <attendanceBabuDetail v-if="showDetail" :dataObj="dataObj" @backNews="backNews" :dataArr="dataArr" :checkResult="checkResult"></attendanceBabuDetail>
@ -38,6 +40,7 @@
return { return {
navArr:[ navArr:[
{icon:require('../../static/img/attendancedetail/icon-attendancedetail.png'),title:'出勤详情',num:0}, {icon:require('../../static/img/attendancedetail/icon-attendancedetail.png'),title:'出勤详情',num:0},
{icon:require('../../static/img/attendancedetail/icon-to.png'),title:'到校情况',num:0},
{icon:require('../../static/img/attendancedetail/icon-lixiao.png'),title:'离校情况',num:0}, {icon:require('../../static/img/attendancedetail/icon-lixiao.png'),title:'离校情况',num:0},
{icon:require('../../static/img/attendancedetail/icon-weidao.png'),title:'未到校宝宝',num:0}, {icon:require('../../static/img/attendancedetail/icon-weidao.png'),title:'未到校宝宝',num:0},
{icon:require('../../static/img/attendancedetail/icon-qingj.png'),title:'请假宝宝',num:0}, {icon:require('../../static/img/attendancedetail/icon-qingj.png'),title:'请假宝宝',num:0},
@ -76,14 +79,10 @@
}, },
chooseNavEv(e){ chooseNavEv(e){
this.navIndex = e; this.navIndex = e;
let newType = 0;
if(e==1) newType = 2;
if(e==2) newType = 3;
if(e==3) newType = 4;
if(e==0){ if(e==0){
this.babyArr = this.cunArr; this.babyArr = this.cunArr;
} else { } else {
this.babyArr = this.cunArr.filter(item=>item.CheckResult===newType); this.babyArr = this.cunArr.filter(item=>item.CheckResult===e);
} }
this.babyArr.length ? this.isNothing = true : this.isNothing = false this.babyArr.length ? this.isNothing = true : this.isNothing = false
this.showDetail = false; this.showDetail = false;
@ -103,13 +102,15 @@
if(data.data.data!=undefined){ if(data.data.data!=undefined){
let leftInfo = data.data.data; let leftInfo = data.data.data;
// //
this.navArr[0].num = leftInfo.outSchoolNum + leftInfo.notSchoolNum + leftInfo.leaveSchoolNum; this.navArr[0].num = leftInfo.allnum;
//
this.navArr[1].num = leftInfo.toSchoolNum;
// //
this.navArr[1].num = leftInfo.outSchoolNum; this.navArr[2].num = leftInfo.outSchoolNum;
// //
this.navArr[2].num = leftInfo.notSchoolNum; this.navArr[3].num = leftInfo.notSchoolNum;
// //
this.navArr[3].num = leftInfo.leaveSchoolNum; this.navArr[4].num = leftInfo.leaveSchoolNum;
this.babyArr = leftInfo.list; this.babyArr = leftInfo.list;
this.cunArr = leftInfo.list; this.cunArr = leftInfo.list;
this.$storage.set('num0',this.navArr[0].num); this.$storage.set('num0',this.navArr[0].num);

View File

@ -18,13 +18,23 @@
<div class="teather-title">班级老师</div> <div class="teather-title">班级老师</div>
<div class="teather-box"> <div class="teather-box">
<div v-for="(item,index) in teatherArr" :key="index"> <div v-for="(item,index) in teatherArr" :key="index">
<img :src="item.AvatarUrl" > <img v-if="item.AvatarUrl!=''" :src="item.AvatarUrl" >
<img v-else src="../../static/img/kindergartenIntroduce/teacher-icon.jpg" >
<span>{{item.TeacherName}}</span> <span>{{item.TeacherName}}</span>
<!-- <label @click="goDetail(index)" style="font-size: 14px;margin-top: 10px;color: #9c7cfa;">查看详情</label> --> <!-- <label @click="goDetail(index)" style="font-size: 14px;margin-top: 10px;color: #9c7cfa;">查看详情</label> -->
</div> </div>
</div> </div>
</div> </div>
<div class="plan-box">
<v-touch v-on:swipeleft="touchDayEv" v-on:swiperight="touchDayEv">
<button type="button">查看周计划</button>
</v-touch>
<v-touch v-on:swipeleft="touchMonthEv" v-on:swiperight="touchMonthEv">
<button type="button">查看月计划</button>
</v-touch>
</div>
<!-- 当前活动 --> <!-- 当前活动 -->
<!-- 一种排版 -->
<!-- <div v-for="(item,index) in dangArr.Content" :key="index" class="class-item-box" style="height: 210px;"> <!-- <div v-for="(item,index) in dangArr.Content" :key="index" class="class-item-box" style="height: 210px;">
<div class="teather-title">当前活动</div> <div class="teather-title">当前活动</div>
<div class="class-active"> <div class="class-active">
@ -32,7 +42,8 @@
<label>{{item.Name}}</label> <label>{{item.Name}}</label>
</div> </div>
</div> --> </div> -->
<div v-for="(item,index) in dangArr" :key="index"> <!-- 二种排版 -->
<!-- <div v-for="(item,index) in dangArr" :key="index">
<div v-if="item.NowTimePart!=null" class="class-item-box" style="height: 210px;"> <div v-if="item.NowTimePart!=null" class="class-item-box" style="height: 210px;">
<div class="teather-title">当前活动</div> <div class="teather-title">当前活动</div>
<div class="class-active"> <div class="class-active">
@ -47,7 +58,39 @@
<label>{{item.NextCourse || '暂无活动'}}</label> <label>{{item.NextCourse || '暂无活动'}}</label>
</div> </div>
</div> </div>
</div> </div> -->
</div>
</div>
</div>
</div>
<!-- 周计划弹框 -->
<div v-if="isDay" class="notice-k" @click="closeNotice">
<div @click.stop="isDay=true" class="notice-box">
<div class="notice-title-box">
<!-- <img src="../../static/img/home/flower.png"> -->
<div>第15周工作计划</div>
<!-- <img src="../../static/img/home/flower.png"> -->
</div>
<div style="padding: 0 20px;">
<div class="second-title">啥地方叫了</div>
<div class="line"></div>
<div class="three-content left-notice" style="height: auto;max-height: 600px;overflow: hidden;overflow-y: scroll;">
<div class="">阿萨德立方空间</div>
</div>
</div>
</div>
</div>
<!-- 月计划弹框 -->
<div v-if="isMonth" class="notice-k" @click="closeNotice">
<div @click.stop="isMonth=true" class="notice-box">
<div class="notice-title-box">
<div>(2022-2)月主题活动及工作要点</div>
</div>
<div style="padding: 0 20px;">
<div class="second-title">啥地方叫了</div>
<div class="line"></div>
<div class="three-content left-notice" style="height: auto;max-height: 600px;overflow: hidden;overflow-y: scroll;">
<div class="">阿萨德立方空间</div>
</div> </div>
</div> </div>
</div> </div>
@ -112,10 +155,25 @@
showLoading_right:true, showLoading_right:true,
showError:false, showError:false,
showDetail:false, showDetail:false,
teacherInfo:{} teacherInfo:{},
isDay:false,
isMonth:false
} }
}, },
methods: { methods: {
//
touchDayEv(){
console.log(151);
this.isDay = true;
},
touchMonthEv(){
this.isMonth = true;
},
//
closeNotice(){
this.isDay = false;
this.isMonth = false;
},
// //
goDetail(e){ goDetail(e){
if(this.$storage.get('network')){ if(this.$storage.get('network')){

View File

@ -5,7 +5,10 @@
<!-- 主体内容 --> <!-- 主体内容 -->
<div v-if="!showDetail" class="babyalbum-box"> <div v-if="!showDetail" class="babyalbum-box">
<div v-if="isNothing" class="babyalbum-item-box" @click="goDetail(index)" v-for="(item,index) in babyArr" :key="index"> <div v-if="isNothing" class="babyalbum-item-box" @click="goDetail(index)" v-for="(item,index) in babyArr" :key="index">
<img :src="item.Head_Img" alt=""> <img v-if="item.Head_Img!='' && item.Head_Img!=null" :src="item.Head_Img" alt="">
<!-- <img v-else :src="item.Sex==0?'../../static/img/babyalbum/baby-boy.png':'../../static/img/babyalbum/baby-gril.png'" alt=""> -->
<img v-if="(item.Head_Img=='' || item.Head_Img==null) && item.Sex==0" src="../../static/img/babyalbum/baby-boy.png" alt="">
<img v-if="(item.Head_Img=='' || item.Head_Img==null) && item.Sex==1" src="../../static/img/babyalbum/baby-gril.png" alt="">
<span>{{item.StuName}}</span> <span>{{item.StuName}}</span>
<div :style="{background:'#9C7CFA'}">{{item.PhotoCount}}张图</div> <div :style="{background:'#9C7CFA'}">{{item.PhotoCount}}张图</div>
</div> </div>

View File

@ -8,18 +8,18 @@
<img v-if="logoImg!=''" :src="logoImg" style="object-fit: cover;"> <img v-if="logoImg!=''" :src="logoImg" style="object-fit: cover;">
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<span style="font-size: 33.8px;">都江堰市机关幼儿园</span> <span style="font-size: 33.8px;">都江堰市机关幼儿园</span>
<span style="font-size: 17.4px;">DOU JANG YAN JI GUAN YOU ER YUAN</span> <span style="font-size: 18.1px;">DU JANG YAN JI GUAN YOU ER YUAN</span>
</div> </div>
</div> </div>
</div> </div>
<!-- 文本导航 --> <!-- 文本导航 -->
<div class="title-box"> <div class="title-box">
<div class="title-item" :class="activeIndex==index?activeTitle:''" v-for="(item,index) in titleArr" <div class="title-item" :class="activeIndex==index?activeTitle:''" v-for="(item,index) in titleArr"
:key="index" @click="chooseTitle(index)">{{item}}</div> :key="index" @click="chooseTitle(index)">{{item}}</div>
</div> </div>
<!-- 天气 --> <!-- 天气 -->
<div class="weather-box"> <div class="weather-box">
<img :src="weather" v-if="weather!=''" style="margin-right: 10px;"> <img :src="weather || '../../static/weather/5.png'" style="margin-right: 10px;">
<div> <div>
<div style="color: #FF9393;">{{date}}</div> <div style="color: #FF9393;">{{date}}</div>
<div class="weather-three"> <div class="weather-three">
@ -33,10 +33,10 @@
<div><img @click="clickFun" src="../../static/img/home/icon-set.png"></div> <div><img @click="clickFun" src="../../static/img/home/icon-set.png"></div>
</div> </div>
<!-- 头部导航 end --> <!-- 头部导航 end -->
<!-- 首页 --> <!-- 首页 -->
<homepage v-if="activeIndex==0"></homepage> <homepage v-if="activeIndex==0"></homepage>
<!-- 幼儿园介绍 --> <!-- 幼儿园介绍 -->
@ -49,19 +49,19 @@
<babyAlbum v-if="activeIndex==4"></babyAlbum> <babyAlbum v-if="activeIndex==4"></babyAlbum>
<!-- 疫情管理 --> <!-- 疫情管理 -->
<yiqingmanagement v-if="activeIndex==5"></yiqingmanagement> <yiqingmanagement v-if="activeIndex==5"></yiqingmanagement>
<!-- 底部 --> <!-- 底部 -->
<div class="footer"> <div class="footer">
<img src="../../static/img/home/foot-icon.png"> <img src="../../static/img/home/foot-icon.png">
<img v-if="activeIndex==1" src="../../static/img/kindergartenIntroduce/chahua-01.png" > <img v-if="activeIndex==1" src="../../static/img/kindergartenIntroduce/chahua-01.png">
<img v-if="activeIndex==2" src="../../static/img/home/baby-foot.png"> <img v-if="activeIndex==2" src="../../static/img/home/baby-foot.png">
<img v-if="activeIndex==3" src="../../static/img/attendancedetail/chah.png"> <img v-if="activeIndex==3" src="../../static/img/attendancedetail/chah.png">
<img v-if="activeIndex==4 || activeIndex==5" src="../../static/img/babyalbum/chah.png"> <img v-if="activeIndex==4 || activeIndex==5" src="../../static/img/babyalbum/chah.png">
</div> </div>
<!-- 网络弹框 --> <!-- 网络弹框 -->
<div v-if="isNetwork" class="popu-box"> <div v-if="isNetwork" class="popu-box">
<div class="item-row">班排设备ID*******</div> <div class="item-row">班排设备ID{{classCardId}}</div>
<div class="item-row">网络链接状态网络监测{{onLine?'已连接':'已断开'}}<img v-if="onLine" <div class="item-row">网络链接状态网络监测{{onLine?'已连接':'已断开'}}<img v-if="onLine"
src="../../static/img/home/icon-link.png" style="width: 20px;"></div> src="../../static/img/home/icon-link.png" style="width: 20px;"></div>
<div class="item-row"> <div class="item-row">
@ -77,11 +77,17 @@
</div> </div>
<div class="item-row"> <div class="item-row">
控制操作 控制操作
<div class="refresh-btn" @click="refreshEv"></div> <div class="refresh-btn" @click="refreshEv"></div>
<div class="back-btn" @click="backHomeEv"></div> <div class="back-btn" @click="backHomeEv"></div>
</div> </div>
</div> </div>
<img v-if="wellcomeFlag" @click="closeWellcome" src="../../static/img/babyalbum/wellcome-baby.png" class="wellcome-img" > <img v-if="wellcomeFlag" @click="closeWellcome" src="../../static/img/babyalbum/wellcome-baby.png"
class="wellcome-img">
<!-- <div style="position: fixed;background-color: rgba(0,0,0,.5);top: 120px;left: 0;right: 0;bottom: 0;z-index: 10000;">
<img style="width: 100px;height: 100px;object-fit: cover;" src="https://qqbaby-creating.oss-cn-beijing.aliyuncs.com/1.jpg" >
<img style="width: 100px;height: 100px;object-fit: cover;" src="https://qqbaby-creating.oss-cn-beijing.aliyuncs.com/2.jpg" >
<img style="width: 100px;height: 100px;object-fit: cover;" src="https://qqbaby-creating.oss-cn-beijing.aliyuncs.com/3.jpg" >
</div> -->
</div> </div>
</template> </template>
<script> <script>
@ -98,7 +104,7 @@
// //
import yiqingmanagement from '@/components/yiqingmanagement.vue'; import yiqingmanagement from '@/components/yiqingmanagement.vue';
export default { export default {
components:{ components: {
homepage, homepage,
kindIntroduction, kindIntroduction,
babyActivity, babyActivity,
@ -111,7 +117,7 @@
return { return {
titleArr: ['首页', '幼儿园介绍', '宝宝活动', '出勤详情', '宝宝相册', '疫情防控'], titleArr: ['首页', '幼儿园介绍', '宝宝活动', '出勤详情', '宝宝相册', '疫情防控'],
activeIndex: 0, activeIndex: 0,
cunIndex:0, cunIndex: 0,
modeArr: [{ modeArr: [{
isActive: false, isActive: false,
title: '欢迎模式' title: '欢迎模式'
@ -125,8 +131,8 @@
title: '大数据模式' title: '大数据模式'
}, },
], ],
modeIndex:'-1', modeIndex: '-1',
wellcomeFlag:false,// wellcomeFlag: false, //
onLine: navigator.onLine, onLine: navigator.onLine,
list: [], list: [],
city: '', city: '',
@ -135,38 +141,75 @@
temperature: '', // temperature: '', //
time: '', // time: '', //
timer: null, timer: null,
currentTemper:1,// currentTemper: 1, //
activeTitle: 'activeTitle', activeTitle: 'activeTitle',
isNetwork:false, isNetwork: false,
weather:'', weather: '',
OrgGuid:'', OrgGuid: '',
logoImg:'', logoImg: '',
classCardId: '',
infoObj: '',
name: '',
ver: 0,
s: ''
} }
}, },
methods: { methods: {
// //
closeWellcome(){ closeWellcome() {
this.wellcomeFlag = false; this.wellcomeFlag = false;
this.modeIndex = 2; this.modeIndex = 2;
this.clearChoose(); this.clearChoose();
}, },
// //
chooseMode(e) { chooseMode(e) {
if(this.onLine){ if (this.onLine) {
this.modeArr.forEach(item => { this.modeArr.forEach(item => {
item.isActive = false item.isActive = false
}) })
this.modeArr[e].isActive = true; this.modeArr[e].isActive = true;
if(e==0) {this.modeIndex = 1;this.wellcomeFlag = true;} if (e == 0) {
if(e==1) {this.modeIndex = 2;this.wellcomeFlag = false;} this.modeIndex = 1;
if(e==2) { this.wellcomeFlag = true;
}
if (e == 1) {
this.modeIndex = 2;
this.wellcomeFlag = false;
}
if (e == 2) {
this.modeIndex = 4; this.modeIndex = 4;
this.wellcomeFlag = false; this.wellcomeFlag = false;
// window.open(`../../static/EverydayData/wisdomMedic.html`); window.open(`http://47.108.248.86:56688/`,'_blank');
window.location.href = `./averydaydata/wisdomMedic.html`;
} }
this.isNetwork = false; this.isNetwork = false;
this.updatemodelapiEv(); this.updatemodelapiEv();
var userAgent = navigator.userAgent; //userAgent
var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //IE<11
var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //IEEdge
var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
if (isIE) {
console.log(isIE);
var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
reIE.test(userAgent);
var fIEVersion = parseFloat(RegExp["$1"]);
if (fIEVersion == 7) {
return 7;
} else if (fIEVersion == 8) {
return 8;
} else if (fIEVersion == 9) {
return 9;
} else if (fIEVersion == 10) {
return 10;
} else {
return 6; //IE<=7
}
} else if (isEdge) {
return 'edge'; //edge
} else if (isIE11) {
return 11; //IE11
} else {
return -1; //ie
}
} }
}, },
// //
@ -189,31 +232,13 @@
} }
}, },
// //
// weatherEv() {
// //
// this.dateEv();
// this.timer = setInterval(() => {
// this.dateEv();
// }, 1000)
// var that = this;
// this.$axios.get('http://wthrcdn.etouch.cn/weather_mini?city=' + '').then((res) => {
// let weatherList = res.data.data.forecast;
// //
// this.week = weatherList[0].date.slice(weatherList[0].date.indexOf('') + 1);
// //
// this.temperature = `${weatherList[0].low.slice(2,-1)} -${weatherList[0].high.slice(2)}`
// }).catch((err) => {
// console.log(err);
// })
// },
//
async weatherEv() { async weatherEv() {
// //
this.dateEv(); this.dateEv();
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.dateEv(); this.dateEv();
}, 1000) }, 1000)
if(this.$storage.get('network')){ if (this.$storage.get('network')) {
let data = await this.$axios({ let data = await this.$axios({
// serviceAPI // serviceAPI
url: this.$https.weather, url: this.$https.weather,
@ -222,14 +247,14 @@
EquipmentID: this.$storage.get('EquipmentID'), EquipmentID: this.$storage.get('EquipmentID'),
}, },
}); });
if(data.data.code==200) { if (data.data.code == 200) {
// //
this.week = data.data.data.week; this.week = data.data.data.week;
this.$storage.set('week',this.week); this.$storage.set('week', this.week);
let newtempera = data.data.data.weather.result.forecasts[0]; let newtempera = data.data.data.weather.result.forecasts[0];
// //
this.temperature = `${newtempera.low}-${newtempera.high}°C`; this.temperature = `${newtempera.low}-${newtempera.high}°C`;
this.$storage.set('temperature',this.temperature); this.$storage.set('temperature', this.temperature);
this.weather = require(`../../static/img/weather/2.png`); this.weather = require(`../../static/img/weather/2.png`);
let weatherObj = '晴|多云|阴|阵雨|' let weatherObj = '晴|多云|阴|阵雨|'
// let text = data.data.data.weather.result.now.text; // let text = data.data.data.weather.result.now.text;
@ -258,17 +283,17 @@
} else if (text == "晴") { } else if (text == "晴") {
this.weather = require(`../../static/img/weather/5.png`); // this.weather = require(`../../static/img/weather/5.png`); //
} else if ( } else if (
text == "雨夹雪" || text == "雨夹雪" ||
text == "小雪" || text == "小雪" ||
text == "中雪" || text == "中雪" ||
text == "大雪" || text == "大雪" ||
text == "暴雪" text == "暴雪"
) { ) {
this.weather = require(`../../static/img/weather/9.png`); // this.weather = require(`../../static/img/weather/9.png`); //
}else{ } else {
this.weather = require(`../../static/img/weather/1.png`) // this.weather = require(`../../static/img/weather/1.png`) //
} }
this.$storage.set('weather',this.weather); this.$storage.set('weather', this.weather);
} }
} else { } else {
this.weather = this.$storage.get('weather'); this.weather = this.$storage.get('weather');
@ -276,7 +301,7 @@
this.temperature = this.$storage.get('temperature'); this.temperature = this.$storage.get('temperature');
this.time = this.$storage.get('time'); this.time = this.$storage.get('time');
} }
}, },
// //
dateEv() { dateEv() {
@ -294,47 +319,47 @@
let minute = date.getMinutes(); let minute = date.getMinutes();
// //
this.time = `${hour < 10 ? '0'+hour : hour}:${minute < 10 ? '0'+minute : minute}`; this.time = `${hour < 10 ? '0'+hour : hour}:${minute < 10 ? '0'+minute : minute}`;
this.$storage.set('time',this.time); this.$storage.set('time', this.time);
}, },
// //
clickFun(){ clickFun() {
this.isNetwork = !this.isNetwork; this.isNetwork = !this.isNetwork;
this.clearChoose(); this.clearChoose();
this.classcardByIdEv(); this.classcardByIdEv();
}, },
// //
clearChoose(){ clearChoose() {
this.modeArr.forEach(item=>{ this.modeArr.forEach(item => {
item.isActive = false; item.isActive = false;
}) })
}, },
// //
refreshEv(){ refreshEv() {
this.activeIndex = '-1'; this.activeIndex = '-1';
if(this.onLine) { if (this.onLine) {
setTimeout(()=>{ setTimeout(() => {
this.isNetwork = false; this.isNetwork = false;
},100) }, 100)
} }
setTimeout(()=>{ setTimeout(() => {
this.activeIndex = this.cunIndex; this.activeIndex = this.cunIndex;
},100) }, 100)
this.clearChoose(); this.clearChoose();
}, },
// //
backHomeEv(){ backHomeEv() {
this.activeIndex = '-1'; this.activeIndex = '-1';
if(this.onLine) { if (this.onLine) {
this.isNetwork = false; this.isNetwork = false;
} }
setTimeout(()=>{ setTimeout(() => {
this.activeIndex = 0; this.activeIndex = 0;
},100) }, 100)
this.clearChoose(); this.clearChoose();
}, },
// //
async classcardByIdEv() { async classcardByIdEv() {
if(this.$storage.get('network')){ if (this.$storage.get('network')) {
let data = await this.$axios({ let data = await this.$axios({
// serviceAPI // serviceAPI
url: this.$https.classcardById, url: this.$https.classcardById,
@ -344,94 +369,94 @@
}, },
}); });
let modeObj = data.data.data; let modeObj = data.data.data;
if(modeObj!=null){ if (modeObj != null) {
this.clearChoose(); this.clearChoose();
if(modeObj.Mode==1){ if (modeObj.Mode == 1) {
this.modeArr[0].isActive = true; this.modeArr[0].isActive = true;
this.wellcomeFlag = true; this.wellcomeFlag = true;
} else if(modeObj.Mode==2 || modeObj.Mode==0){ } else if (modeObj.Mode == 2 || modeObj.Mode == 0) {
this.modeArr[1].isActive = true; this.modeArr[1].isActive = true;
this.wellcomeFlag = false; this.wellcomeFlag = false;
} else if(modeObj.Mode==4){ } else if (modeObj.Mode == 4) {
this.modeArr[2].isActive = true; this.modeArr[2].isActive = true;
this.wellcomeFlag = false; this.wellcomeFlag = false;
window.location.href = `./averydaydata/wisdomMedic.html`; window.location.href = `./averydaydata/wisdomMedic.html`;
} }
this.$storage.set('wellcomeFlag',this.wellcomeFlag); this.$storage.set('wellcomeFlag', this.wellcomeFlag);
this.$storage.set('orgGuid', modeObj.OrgGuid);
} else { } else {
this.modeArr[1].isActive = true; this.modeArr[1].isActive = true;
} }
} else { } else {
this.modeArr[1].isActive = true; this.modeArr[1].isActive = true;
if(this.$storage.get('wellcomeFlag')!=undefined){ if (this.$storage.get('wellcomeFlag') != undefined) {
this.wellcomeFlag = this.$storage.get('wellcomeFlag'); this.wellcomeFlag = this.$storage.get('wellcomeFlag');
} }
} }
}, },
// //
async updatemodelapiEv() { async updatemodelapiEv() {
if(this.$storage.get('network')){ if (this.$storage.get('network')) {
let data = await this.$axios({ let data = await this.$axios({
// serviceAPI // serviceAPI
url: this.$https.updatemodelapi, url: this.$https.updatemodelapi,
methods: "get", methods: "get",
params: { params: {
Mode:this.modeIndex, Mode: this.modeIndex,
OrgGuid:storage.get('orgGuid') OrgGuid: storage.get('orgGuid')
}, },
}); });
} }
// console.log(data.data.data);
}, },
// (id) // (id)
obtainEv(){ obtainEv() {
// let Build = plus.android.importClass("android.os.Build");
// let serial = Build.SERIAL;
// this.$storage.set('EquipmentID',Build.SERIAL);
this.$storage.set('EquipmentID','B520P2RXM0');
this.classCardId = this.$storage.get('EquipmentID');
this.weatherEv(); this.weatherEv();
this.introduce(); this.introduce();
this.classcardByIdEv(); this.classcardByIdEv();
setInterval(()=>{ setInterval(() => {
this.classcardByIdEv(); this.classcardByIdEv();
},1000*60) this.introduce();
}, 1000 * 60)
}, },
plusReady(){ plusReady() {
var that = this; var that = this;
// //
this.$storage.set('EquipmentID',plus.device.imei);
// this.$storage.set('EquipmentID','yaohaotest001');
that.obtainEv(); that.obtainEv();
if(plus.networkinfo.getCurrentType()!=1){ // if(plus.networkinfo.getCurrentType()!=1){
that.$storage.set('network',true); that.$storage.set('network', true);
that.onLine = true; that.onLine = true;
} else { // } else {
that.onLine = false; // that.onLine = false;
} // }
//
// window.addEventListener('online', this.updateOnlineStatus); //
// window.addEventListener('offline', this.updateOnlineStatus); //
// //
document.addEventListener( "netchange", function(res) { document.addEventListener("netchange", function(res) {
var network = plus.networkinfo.getCurrentType(); var network = plus.networkinfo.getCurrentType();
if(network == 1) { if (network == 1) {
// that.isNetwork = true; // that.isNetwork = true;
that.$storage.set('network',false); that.$storage.set('network', false);
that.onLine = false; that.onLine = false;
// plus.nativeUI.toast(''); // plus.nativeUI.toast('');
}else { } else {
that.activeIndex = '-1'; that.activeIndex = '-1';
setTimeout(()=>{ setTimeout(() => {
that.activeIndex = that.cunIndex; that.activeIndex = that.cunIndex;
},100) }, 100)
that.isNetwork = false; that.isNetwork = false;
that.$storage.set('network',true); that.$storage.set('network', true);
that.obtainEv(); that.obtainEv();
that.onLine = true; that.onLine = true;
// plus.nativeUI.toast('');
} }
}) })
}, },
// logo // logo
async introduce() { async introduce() {
if(this.$storage.get('network')){ if (this.$storage.get('network')) {
this.showError = false; this.showError = false;
this.logoImg = this.$storage.get('logoImg'); this.logoImg = this.$storage.get('logoImg');
let data = await this.$axios({ let data = await this.$axios({
@ -442,9 +467,9 @@
EquipmentID: this.$storage.get('EquipmentID'), EquipmentID: this.$storage.get('EquipmentID'),
}, },
}); });
if(data.data.data!=undefined){ if (data.data.data != undefined) {
this.logoImg = data.data.data.Img_Url; this.logoImg = data.data.data.Img_Url;
this.$storage.set('logoImg',this.logoImg); this.$storage.set('logoImg', this.logoImg);
} }
} else { } else {
this.logoImg = this.$storage.get('logoImg'); this.logoImg = this.$storage.get('logoImg');
@ -453,15 +478,9 @@
}, },
mounted() { mounted() {
var that = this; var that = this;
that.obtainEv(); setTimeout(() => {
// if (window.plus) {
// that.plusReady();
// } else {
// document.addEventListener("plusready", that.plusReady, false);
// }
setTimeout(()=>{
that.plusReady(); that.plusReady();
},500) }, 500)
} }
} }
</script> </script>

View File

@ -53,20 +53,22 @@
</div> </div>
<!-- 通知公告 --> <!-- 通知公告 -->
<div class="left-one"> <div class="left-one">
<div class="left-content"> <v-touch v-on:swipeleft="touchEv" v-on:swiperight="touchEv">
<div class="left-title"> <div class="left-content">
<div class="pultitle">通知公告</div> <div class="left-title">
<div class="pultitle">通知公告</div>
</div>
<div class="second-title">{{className}}</div>
<div class="line" v-if="noticeObj.Content!=''"></div>
<div class="three-content left-notice" v-if="noticeObj.Content!=''">
<div class="clips2">{{noticeObj.Content}}</div>
</div>
<div class="notice-time" v-if="noticeObj.Content!=''">
<div>{{noticeObj.PublishTime}}</div>
<!-- <div><img src="../../static/img/home/slices.png" />{{noticeObj.BroweTotal}}</div> -->
</div>
</div> </div>
<div class="second-title">{{className}}</div> </v-touch>
<div class="line" v-if="noticeObj.Content!=''"></div>
<div class="three-content left-notice" v-if="noticeObj.Content!=''">
<div class="clips2">{{noticeObj.Content}}</div>
</div>
<div class="notice-time" v-if="noticeObj.Content!=''">
<div>{{noticeObj.PublishTime}}</div>
<div><img src="../../static/img/home/slices.png" />{{noticeObj.BroweTotal}}</div>
</div>
</div>
<loading :isShow="showLoading_three"></loading> <loading :isShow="showLoading_three"></loading>
</div> </div>
</div> </div>
@ -122,6 +124,27 @@
<loading :isShow="showLoading_five"></loading> <loading :isShow="showLoading_five"></loading>
</div> </div>
</div> </div>
<!-- 公告弹框 -->
<div v-if="isNotice" class="notice-k" @click="closeNotice">
<div @click.stop="isNotice=true" class="notice-box">
<div class="notice-title-box">
<!-- <img src="../../static/img/home/flower.png"> -->
<div>通知公告</div>
<!-- <img src="../../static/img/home/flower.png"> -->
</div>
<div style="padding: 0 20px;">
<div class="second-title">{{className}}</div>
<div class="line" v-if="noticeObj.Content!=''"></div>
<div class="three-content left-notice" style="height: auto;max-height: 600px;overflow: hidden;overflow-y: scroll;" v-if="noticeObj.Content!=''">
<div class="">{{noticeObj.Content}}</div>
</div>
<div class="notice-time" style="margin-top: 15px;" v-if="noticeObj.Content!=''">
<div>{{noticeObj.PublishTime}}</div>
<!-- <div><img src="../../static/img/home/slices.png" />{{noticeObj.BroweTotal}}</div> -->
</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
@ -173,39 +196,51 @@
}, },
showError:false, showError:false,
monitorTimer:null, monitorTimer:null,
chuTime:null,
animate:false, animate:false,
topVal:0, topVal:0,
scrollTime:null classCardId:'',
diffHeight:'',
isNotice:false
}; };
}, },
destroyed() { destroyed() {
clearInterval(this.timer); clearInterval(this.timer);
this.topVal = 0; this.topVal = 0;
clearInterval(this.scrollTime); clearInterval(this.monitorTimer);
clearInterval(this.chuTime);
}, },
methods: { methods: {
//
touchEv(){
this.isNotice = true;
},
//
closeNotice(){
this.isNotice = false;
},
// //
scrollEv(){ scrollEv(){
this.topVal = 0; this.topVal = 0;
clearInterval(this.scrollTime); clearInterval(this.monitorTimer);
this.scrollTime = setInterval(()=>{ let parentHeight = $('.right-content').height();
let containerHeight = $('.right-content').height(); let childrenHeight = $('#innerbox').height();
let contentHeight = $('#innerbox').height(); this.diffHeight = childrenHeight - parentHeight;
if(contentHeight + this.topVal <= containerHeight) { this.monitorTimer = setInterval(()=>{
$('#innerbox').animate({top:`${0}px`}); let topFlag = $('#innerbox').position().top;
clearInterval(this.scrollTime); if(-topFlag*1==0){
this.topVal = 0; this.upEv();
this.scrollEv();
} else {
this.topVal = this.topVal - 50;
$('#innerbox').animate({top:`${this.topVal}px`});
} }
},4000) if(-topFlag*1==this.diffHeight*1){
// $(function(){ this.downEv();
// $('.pultitle').on('click',function(){ }
// $('#innerbox').animate({top:`${30}%`}); },100)
// }) },
// }) downEv(){
$('#innerbox').animate({top:0+'px'},(this.diffHeight/4)*100,'linear');
},
upEv(){
$('#innerbox').animate({top:-this.diffHeight+'px'},(this.diffHeight/4)*100,'linear');
}, },
closeError(){ closeError(){
this.showError = false; this.showError = false;
@ -255,7 +290,6 @@
this.$storage.set('noticeData',this.noticeData) this.$storage.set('noticeData',this.noticeData)
this.$storage.set('noticeObj',this.noticeObj) this.$storage.set('noticeObj',this.noticeObj)
this.$storage.set('PublishTime',this.noticeObj.PublishTime) this.$storage.set('PublishTime',this.noticeObj.PublishTime)
storage.set('orgGuid',this.noticeObj.OrgGuid);
} }
} else { } else {
this.noticeData = this.$storage.get('noticeData'); this.noticeData = this.$storage.get('noticeData');
@ -280,14 +314,14 @@
if(data.data.data!=undefined){ if(data.data.data!=undefined){
this.noonArr = data.data.data[0].WeekData; this.noonArr = data.data.data[0].WeekData;
this.$storage.set('noonArr',this.noonArr) this.$storage.set('noonArr',this.noonArr)
this.scrollEv(); this.animate = true;
} }
} else { } else {
if(this.$storage.get('noonArr')==undefined){ if(this.$storage.get('noonArr')==undefined){
this.noonArr = []; this.noonArr = [];
} else { } else {
this.noonArr = this.$storage.get('noonArr'); this.noonArr = this.$storage.get('noonArr');
this.scrollEv(); this.animate = true;
} }
} }
this.showLoading_five = false; this.showLoading_five = false;
@ -412,24 +446,19 @@
} }
}, },
plusReady(){ plusReady(){
var device_type = navigator.userAgent;//userAgent
var that = this; var that = this;
// // if(plus.networkinfo.getCurrentType()!=1){
this.$storage.set('EquipmentID',plus.device.imei);
// this.$storage.set('EquipmentID','yaohaotest001');
if(plus.networkinfo.getCurrentType()!=1){
that.$storage.set('network',true); that.$storage.set('network',true);
} // }
// that.requestEv();
// window.addEventListener('online', this.updateOnlineStatus); // //
// window.addEventListener('offline', this.updateOnlineStatus); //
//
document.addEventListener( "netchange", function(res) { document.addEventListener( "netchange", function(res) {
var network = plus.networkinfo.getCurrentType(); var network = plus.networkinfo.getCurrentType();
if(network == 1) { if(network == 1) {
that.isNetwork = true; that.isNetwork = true;
that.$storage.set('network',false); that.$storage.set('network',false);
that.onLine = false; that.onLine = false;
// plus.nativeUI.toast('');
}else { }else {
that.activeIndex = '-1'; that.activeIndex = '-1';
setTimeout(()=>{ setTimeout(()=>{
@ -438,7 +467,6 @@
that.isNetwork = false; that.isNetwork = false;
that.$storage.set('network',true); that.$storage.set('network',true);
that.onLine = true; that.onLine = true;
// plus.nativeUI.toast('');
} }
}) })
}, },
@ -453,12 +481,17 @@
}, },
}, },
mounted() { mounted() {
clearInterval(this.monitorTimer);
clearInterval(this.chuTime);
this.chuTime = setInterval(()=>{
if(this.animate){
this.scrollEv()
clearInterval(this.chuTime);
}
},1000)
setTimeout(()=>{ setTimeout(()=>{
this.plusReady(); this.plusReady();
},500) },500)
setTimeout(()=>{
this.requestEv();
},1000)
setTimeout(()=>{ setTimeout(()=>{
this.timer = setInterval(()=>{ this.timer = setInterval(()=>{
// //

View File

@ -5,7 +5,8 @@
<template v-if="!showDetail"> <template v-if="!showDetail">
<div class="teacherstyle-right"> <div class="teacherstyle-right">
<div class="teacherstyle-item-box" @click="goDetail(index)" v-for="(item,index) in teatherArr" :key="index"> <div class="teacherstyle-item-box" @click="goDetail(index)" v-for="(item,index) in teatherArr" :key="index">
<img :src="item.PictureUrls" alt=""> <img v-if="item.PictureUrls!=null && item.PictureUrls!=''" :src="item.PictureUrls" alt="">
<img v-else src="../../static/img/kindergartenIntroduce/teacher-icon.jpg" >
<span class="clips1">{{item.Title}}</span> <span class="clips1">{{item.Title}}</span>
</div> </div>
</div> </div>
@ -44,7 +45,6 @@
} else { } else {
this.showError = true; this.showError = true;
} }
}, },
// //
backstyle(e){ backstyle(e){
@ -59,6 +59,7 @@
methods: "get", methods: "get",
params: { params: {
EquipmentID: this.$storage.get('EquipmentID'), EquipmentID: this.$storage.get('EquipmentID'),
// EquipmentID: "yaohaotest001",
}, },
}); });
if(data.data.data!=undefined){ if(data.data.data!=undefined){
@ -80,6 +81,7 @@
url: this.$https.getteachers_demeanor_detail, url: this.$https.getteachers_demeanor_detail,
methods: "get", methods: "get",
params: { params: {
// EquipmentID: "yaohaotest001",
Guid:guid, Guid:guid,
OrgGuid:this.$storage.get('orgGuid') OrgGuid:this.$storage.get('orgGuid')
}, },

View File

@ -40,7 +40,7 @@
let cuo = yy_mm_dd.getTime() + '000'; let cuo = yy_mm_dd.getTime() + '000';
let cuo1 = cuo.slice(0,7); let cuo1 = cuo.slice(0,7);
let cuo2 = cuo.slice(7); let cuo2 = cuo.slice(7);
console.log(cuo1,cuo2,storage.get('orgGuid')); // console.log(cuo1,cuo2,this.$storage.get('orgGuid'));
let data = await this.$axios.post( let data = await this.$axios.post(
// serviceAPI // serviceAPI
'http://47.109.29.153:50014/api/kindergarten/epidemicmanagementinfo/getdatalistbyorgguid', 'http://47.109.29.153:50014/api/kindergarten/epidemicmanagementinfo/getdatalistbyorgguid',
@ -48,7 +48,7 @@
timestamp:cuo1, timestamp:cuo1,
sign:cuo2, sign:cuo2,
data:{ data:{
orgGuid: storage.get('orgGuid'), orgGuid: this.$storage.get('orgGuid'),
} }
}, },
{ {

View File

@ -8,6 +8,12 @@ import https from './config.js'
Vue.prototype.$https = https; Vue.prototype.$https = https;
import router from './router' import router from './router'
// 引入 vue-touch
// 1npm install vue-touch@next
import VueTouch from 'vue-touch'
Vue.use(VueTouch, {name: 'v-touch'})
import storage from 'good-storage' import storage from 'good-storage'
Vue.prototype.$storage = storage Vue.prototype.$storage = storage
require('swiper/dist/css/swiper.css') require('swiper/dist/css/swiper.css')

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB