diff --git a/.env.development b/.env.development index ced17fe2..889821b0 100644 --- a/.env.development +++ b/.env.development @@ -9,14 +9,20 @@ VUE_APP_BASE_API = '/systemapi' # BOE管理系统/开发环境 VUE_APP_BOE_BASE_API = '/uboeApi' +# 资源位的api +VUE_APP_CESOURCE_BASE_API = '/socialApi' + +# 事件的api +VUE_APP_STAT_BASE_API = '/statApi' + # BOE系统网址 -VUE_APP_BOE_WEB_URL = 'https://u.boe.com' +VUE_APP_BOE_WEB_URL = 'http://192.168.0.11' # BOE 移动端url -VUE_APP_BOE_MOBILE_URL = 'http://192.168.0.10:8082/mobile' +VUE_APP_BOE_MOBILE_URL = 'http://192.168.0.11:8082/mobile' # File路径的基础url -VUE_APP_FILE_BASE_URL = 'http://192.168.0.10:9090/cdn/upload' +VUE_APP_FILE_BASE_URL = 'http://192.168.0.11:9090/cdn/upload' # File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 VUE_APP_FILE_RELATIVE_PATH = '/upload' diff --git a/.env.preview b/.env.preview index cd3581a0..a1b96aec 100644 --- a/.env.preview +++ b/.env.preview @@ -1,7 +1,7 @@ # 生产环境配置 ENV = 'preview' NODE_ENV= 'preview' -BASE_URL= '/pc/' +BASE_URL= '/pc-release/' # 管理系统/生产环境 VUE_APP_BASE_API = '/systemapi-release' @@ -9,14 +9,20 @@ VUE_APP_BASE_API = '/systemapi-release' # BOE管理系统/开发环境 VUE_APP_BOE_BASE_API = '/uboeApi-release' +# 资源位的api +VUE_APP_CESOURCE_BASE_API = '/socialApi-release' + +# 事件的api +VUE_APP_STAT_BASE_API = '/statApi-release' + # BOE系统网址,已经不再使用 -VUE_APP_BOE_WEB_URL = 'https://u.boe.com/preview' +VUE_APP_BOE_WEB_URL = 'https://u.boe.com/web-release' # BOE 移动端url -VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' +VUE_APP_BOE_MOBILE_URL = 'https://u.boe.com' # File路径的基础url -VUE_APP_FILE_BASE_URL='http://u.boe.com/upload' +VUE_APP_FILE_BASE_URL='https://u.boe.com/upload' # File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 VUE_APP_FILE_RELATIVE_PATH = '/upload' diff --git a/.env.production b/.env.production index 331b4205..763a725e 100644 --- a/.env.production +++ b/.env.production @@ -9,14 +9,20 @@ VUE_APP_BASE_API = '/systemapi' # BOE管理系统/开发环境 VUE_APP_BOE_BASE_API = '/uboeApi' +# 资源位的api +VUE_APP_CESOURCE_BASE_API = '/socialApi' + +# 事件的api +VUE_APP_STAT_BASE_API = '/statApi' + # BOE系统网址 -VUE_APP_BOE_WEB_URL = 'https://u.boe.com/production' +VUE_APP_BOE_WEB_URL = 'https://u.boe.com' # BOE 移动端url VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' # File路径的基础url -VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' +VUE_APP_FILE_BASE_URL='http://u.boe.com/upload' # File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 VUE_APP_FILE_RELATIVE_PATH = '/upload' @@ -25,4 +31,4 @@ VUE_APP_FILE_RELATIVE_PATH = '/upload' VUE_APP_PUBLIC_PATH='/pc' # 登录地址 -VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' +VUE_APP_LOGIN_URL='https://u.boe.com/web/' diff --git a/.env.testing b/.env.testing index 89063e98..a0aa5726 100644 --- a/.env.testing +++ b/.env.testing @@ -9,14 +9,20 @@ VUE_APP_BASE_API = '/systemapi' # BOE管理系统/开发环境 VUE_APP_BOE_BASE_API = '/uboeApi' +# 资源位的api +VUE_APP_CESOURCE_BASE_API = '/socialApi' + +# 事件的api +VUE_APP_STAT_BASE_API = '/statApi' + # BOE系统网址 -VUE_APP_BOE_WEB_URL = 'https://u-pre.boe.com/testing' +VUE_APP_BOE_WEB_URL = 'https://u-pre.boe.com' # BOE 移动端url -VUE_APP_BOE_MOBILE_URL = 'http://u-pre.boe.com' +VUE_APP_BOE_MOBILE_URL = 'https://u-pre.boe.com' # File路径的基础url -VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' +VUE_APP_FILE_BASE_URL='https://u-pre.boe.com/upload' # File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 VUE_APP_FILE_RELATIVE_PATH = '/upload' diff --git a/package-lock.json b/package-lock.json index 813d2b41..e58bb672 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1249,6 +1249,29 @@ "integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==", "dev": true }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } + } + }, "@jridgewell/sourcemap-codec": { "version": "1.4.13", "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz", @@ -1421,6 +1444,12 @@ "@types/node": "*" } }, + "@types/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==", + "dev": true + }, "@types/http-proxy": { "version": "1.17.9", "resolved": "https://registry.npmmirror.com/@types/http-proxy/-/http-proxy-1.17.9.tgz", @@ -3107,6 +3136,16 @@ "integrity": "sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==", "dev": true }, + "camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dev": true, + "requires": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, "camelcase": { "version": "6.3.0", "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-6.3.0.tgz", @@ -4595,6 +4634,16 @@ "domhandler": "^4.2.0" } }, + "dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -6277,12 +6326,114 @@ } } }, + "html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", + "dev": true, + "requires": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "dependencies": { + "acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "dev": true + }, + "clean-css": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.1.tgz", + "integrity": "sha512-lCr8OHhiWCTw4v8POJovCoh4T7I9U11yVsPjMWWnnMmp9ZowCxyad1Pathle/9HjaDp+fdQKjO9fQydE6RHTZg==", + "dev": true, + "requires": { + "source-map": "~0.6.0" + } + }, + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true + }, + "terser": { + "version": "5.15.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.1.tgz", + "integrity": "sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==", + "dev": true, + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + } + } + } + } + }, "html-tags": { "version": "3.2.0", "resolved": "https://registry.npmmirror.com/html-tags/-/html-tags-3.2.0.tgz", "integrity": "sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg==", "dev": true }, + "html-webpack-plugin": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.0.tgz", + "integrity": "sha512-sy88PC2cRTVxvETRgUHFrL4No3UxvcH8G1NepGhqaTT+GXN2kTamqasot0inS5hXeg1cMbFDt27zzo9p35lZVw==", + "dev": true, + "requires": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + }, + "dependencies": { + "pretty-error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "dev": true, + "requires": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "renderkid": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", + "dev": true, + "requires": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + } + } + }, "htmlparser2": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", @@ -7484,6 +7635,15 @@ "integrity": "sha512-G6A/nJLRgWOuuwdNuA6koovfEV1YpqqAG4pRUlFaz3jj2QNZ8M4vBqnVA+HBTmU/AMNUtlOsMmSpF6NyOjztbA==", "dev": true }, + "lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "requires": { + "tslib": "^2.0.3" + } + }, "lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -7936,6 +8096,16 @@ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, + "no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, "node-forge": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", @@ -8445,6 +8615,16 @@ "readable-stream": "^2.1.5" } }, + "param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dev": true, + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "parchment": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz", @@ -8525,6 +8705,16 @@ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "dev": true }, + "pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dev": true, + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", diff --git a/package.json b/package.json index 09f69ff6..bb05de8e 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,9 @@ "script-ext-html-webpack-plugin": "^2.1.5", "snowflake-id-js": "^1.0.1", "svg-sprite-loader": "^6.0.9", + "swiper": "^4.5.0", "vue": "^2.6.11", + "vue-awesome-swiper": "^3.1.3", "vue-cookies": "^1.7.4", "vue-pdf": "^4.2.0", "vue-quill-editor": "^3.0.6", @@ -54,6 +56,7 @@ "babel-eslint": "^10.1.0", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", + "html-webpack-plugin": "^5.5.0", "less": "^4.1.1", "less-loader": "^6.2.0", "sass": "^1.32.13", diff --git a/public/images/Durbg.png b/public/images/Durbg.png new file mode 100644 index 00000000..3ddad837 Binary files /dev/null and b/public/images/Durbg.png differ diff --git a/public/images/Recent.png b/public/images/Recent.png new file mode 100644 index 00000000..d7d5e332 Binary files /dev/null and b/public/images/Recent.png differ diff --git a/public/images/Uimg.png b/public/images/Uimg.png new file mode 100644 index 00000000..de650611 Binary files /dev/null and b/public/images/Uimg.png differ diff --git a/public/images/artfoot.png b/public/images/artfoot.png new file mode 100644 index 00000000..3874b492 Binary files /dev/null and b/public/images/artfoot.png differ diff --git a/public/images/article-banner.png b/public/images/article-banner.png new file mode 100644 index 00000000..3874b492 Binary files /dev/null and b/public/images/article-banner.png differ diff --git a/public/images/back(1).png b/public/images/back(1).png new file mode 100644 index 00000000..5a6c7510 Binary files /dev/null and b/public/images/back(1).png differ diff --git a/public/images/back.png b/public/images/back.png index 5a6c7510..8c8efe12 100644 Binary files a/public/images/back.png and b/public/images/back.png differ diff --git a/public/images/case-banner.png b/public/images/case-banner.png new file mode 100644 index 00000000..efdeb5d9 Binary files /dev/null and b/public/images/case-banner.png differ diff --git a/public/images/close.png b/public/images/close.png new file mode 100644 index 00000000..9875e3a5 Binary files /dev/null and b/public/images/close.png differ diff --git a/public/images/contact(1).png b/public/images/contact(1).png new file mode 100644 index 00000000..acbc315d Binary files /dev/null and b/public/images/contact(1).png differ diff --git a/public/images/contact.png b/public/images/contact.png index acbc315d..ace95772 100644 Binary files a/public/images/contact.png and b/public/images/contact.png differ diff --git a/public/images/contribute.png b/public/images/contribute.png new file mode 100644 index 00000000..9f7bccd3 Binary files /dev/null and b/public/images/contribute.png differ diff --git a/public/images/cotedetel.png b/public/images/cotedetel.png new file mode 100644 index 00000000..717a69f8 Binary files /dev/null and b/public/images/cotedetel.png differ diff --git a/public/images/coteplay.png b/public/images/coteplay.png new file mode 100644 index 00000000..2a79b299 Binary files /dev/null and b/public/images/coteplay.png differ diff --git a/public/images/couresdetail.png b/public/images/couresdetail.png new file mode 100644 index 00000000..da4e381f Binary files /dev/null and b/public/images/couresdetail.png differ diff --git a/public/images/course-banner.png b/public/images/course-banner.png new file mode 100644 index 00000000..1c68e84e Binary files /dev/null and b/public/images/course-banner.png differ diff --git a/public/images/daochubg.png b/public/images/daochubg.png new file mode 100644 index 00000000..c99d6424 Binary files /dev/null and b/public/images/daochubg.png differ diff --git a/public/images/essay(1).png b/public/images/essay(1).png new file mode 100644 index 00000000..c553a3b6 Binary files /dev/null and b/public/images/essay(1).png differ diff --git a/public/images/essay.png b/public/images/essay.png index c553a3b6..fd558b39 100644 Binary files a/public/images/essay.png and b/public/images/essay.png differ diff --git a/public/images/expbg.png b/public/images/expbg.png new file mode 100644 index 00000000..38d612b8 Binary files /dev/null and b/public/images/expbg.png differ diff --git a/public/images/explo(1).png b/public/images/explo(1).png new file mode 100644 index 00000000..30801297 Binary files /dev/null and b/public/images/explo(1).png differ diff --git a/public/images/explo.png b/public/images/explo.png index 30801297..beeea701 100644 Binary files a/public/images/explo.png and b/public/images/explo.png differ diff --git a/public/images/grade.png b/public/images/grade.png new file mode 100644 index 00000000..bd0f935e Binary files /dev/null and b/public/images/grade.png differ diff --git a/public/images/homeWu/Pending.png b/public/images/homeWu/Pending.png new file mode 100644 index 00000000..27d97faf Binary files /dev/null and b/public/images/homeWu/Pending.png differ diff --git a/public/images/homeWu/agency.png b/public/images/homeWu/agency.png new file mode 100644 index 00000000..6ce31d54 Binary files /dev/null and b/public/images/homeWu/agency.png differ diff --git a/public/images/homeWu/book.png b/public/images/homeWu/book.png new file mode 100644 index 00000000..9b926626 Binary files /dev/null and b/public/images/homeWu/book.png differ diff --git a/public/images/homeWu/gradebgimg.png b/public/images/homeWu/gradebgimg.png new file mode 100644 index 00000000..a5cbd97b Binary files /dev/null and b/public/images/homeWu/gradebgimg.png differ diff --git a/public/images/homeWu/guide-bg.png b/public/images/homeWu/guide-bg.png new file mode 100644 index 00000000..9313dee5 Binary files /dev/null and b/public/images/homeWu/guide-bg.png differ diff --git a/public/images/homeWu/interest.png b/public/images/homeWu/interest.png new file mode 100644 index 00000000..4290670d Binary files /dev/null and b/public/images/homeWu/interest.png differ diff --git a/public/images/homeWu/man.png b/public/images/homeWu/man.png new file mode 100644 index 00000000..6ae401d1 Binary files /dev/null and b/public/images/homeWu/man.png differ diff --git a/public/images/homeWu/medal-bg-dlg.png b/public/images/homeWu/medal-bg-dlg.png new file mode 100644 index 00000000..df0e05f4 Binary files /dev/null and b/public/images/homeWu/medal-bg-dlg.png differ diff --git a/public/images/homeWu/medal-day.png b/public/images/homeWu/medal-day.png new file mode 100644 index 00000000..7e7b3a0f Binary files /dev/null and b/public/images/homeWu/medal-day.png differ diff --git a/public/images/homeWu/medal-del.png b/public/images/homeWu/medal-del.png new file mode 100644 index 00000000..4d7d6b2c Binary files /dev/null and b/public/images/homeWu/medal-del.png differ diff --git a/public/images/homeWu/medal-good.png b/public/images/homeWu/medal-good.png new file mode 100644 index 00000000..184894f4 Binary files /dev/null and b/public/images/homeWu/medal-good.png differ diff --git a/public/images/homeWu/medal-study.png b/public/images/homeWu/medal-study.png new file mode 100644 index 00000000..2c5a3eac Binary files /dev/null and b/public/images/homeWu/medal-study.png differ diff --git a/public/images/homeWu/medal-up.png b/public/images/homeWu/medal-up.png new file mode 100644 index 00000000..4e4316fa Binary files /dev/null and b/public/images/homeWu/medal-up.png differ diff --git a/public/images/homeWu/ni-dynamic.png b/public/images/homeWu/ni-dynamic.png new file mode 100644 index 00000000..c1ac3cb7 Binary files /dev/null and b/public/images/homeWu/ni-dynamic.png differ diff --git a/public/images/homeWu/no-answer.png b/public/images/homeWu/no-answer.png new file mode 100644 index 00000000..e0192101 Binary files /dev/null and b/public/images/homeWu/no-answer.png differ diff --git a/public/images/homeWu/no-article.png b/public/images/homeWu/no-article.png new file mode 100644 index 00000000..c0dbc3a9 Binary files /dev/null and b/public/images/homeWu/no-article.png differ diff --git a/public/images/homeWu/no-book.png b/public/images/homeWu/no-book.png new file mode 100644 index 00000000..bc78bbfc Binary files /dev/null and b/public/images/homeWu/no-book.png differ diff --git a/public/images/homeWu/no-case.png b/public/images/homeWu/no-case.png new file mode 100644 index 00000000..080f5e40 Binary files /dev/null and b/public/images/homeWu/no-case.png differ diff --git a/public/images/homeWu/no-course.png b/public/images/homeWu/no-course.png new file mode 100644 index 00000000..83e73b97 Binary files /dev/null and b/public/images/homeWu/no-course.png differ diff --git a/public/images/homeWu/no-follow.png b/public/images/homeWu/no-follow.png new file mode 100644 index 00000000..7c324cb7 Binary files /dev/null and b/public/images/homeWu/no-follow.png differ diff --git a/public/images/homeWu/no-madel.png b/public/images/homeWu/no-madel.png new file mode 100644 index 00000000..135deb40 Binary files /dev/null and b/public/images/homeWu/no-madel.png differ diff --git a/public/images/homeWu/no-note.png b/public/images/homeWu/no-note.png new file mode 100644 index 00000000..ed2818c0 Binary files /dev/null and b/public/images/homeWu/no-note.png differ diff --git a/public/images/homeWu/no-put.png b/public/images/homeWu/no-put.png new file mode 100644 index 00000000..62b7348b Binary files /dev/null and b/public/images/homeWu/no-put.png differ diff --git a/public/images/homeWu/personal-bgimg.png b/public/images/homeWu/personal-bgimg.png new file mode 100644 index 00000000..ec836495 Binary files /dev/null and b/public/images/homeWu/personal-bgimg.png differ diff --git a/public/images/homeWu/u-bg.png b/public/images/homeWu/u-bg.png new file mode 100644 index 00000000..1b1d27a8 Binary files /dev/null and b/public/images/homeWu/u-bg.png differ diff --git a/public/images/homeWu/u-close.png b/public/images/homeWu/u-close.png new file mode 100644 index 00000000..4ea9b1b4 Binary files /dev/null and b/public/images/homeWu/u-close.png differ diff --git a/public/images/homeWu/u-wu.png b/public/images/homeWu/u-wu.png new file mode 100644 index 00000000..b51585bd Binary files /dev/null and b/public/images/homeWu/u-wu.png differ diff --git a/public/images/homeWu/woman.png b/public/images/homeWu/woman.png new file mode 100644 index 00000000..f7c53d4e Binary files /dev/null and b/public/images/homeWu/woman.png differ diff --git a/public/images/issue(1).png b/public/images/issue(1).png new file mode 100644 index 00000000..c2bcdb7a Binary files /dev/null and b/public/images/issue(1).png differ diff --git a/public/images/issue.png b/public/images/issue.png index c2bcdb7a..d1ba0709 100644 Binary files a/public/images/issue.png and b/public/images/issue.png differ diff --git a/public/images/jinian_medal.png b/public/images/jinian_medal.png new file mode 100644 index 00000000..9b29f624 Binary files /dev/null and b/public/images/jinian_medal.png differ diff --git a/public/images/list-01.png b/public/images/list-01.png new file mode 100644 index 00000000..47456321 Binary files /dev/null and b/public/images/list-01.png differ diff --git a/public/images/list-img.png b/public/images/list-img.png new file mode 100644 index 00000000..5d574733 Binary files /dev/null and b/public/images/list-img.png differ diff --git a/public/images/list-or.png b/public/images/list-or.png new file mode 100644 index 00000000..389aec6b Binary files /dev/null and b/public/images/list-or.png differ diff --git a/public/images/list-pink.png b/public/images/list-pink.png new file mode 100644 index 00000000..ef161a0c Binary files /dev/null and b/public/images/list-pink.png differ diff --git a/public/images/list02.png b/public/images/list02.png new file mode 100644 index 00000000..9acd2cb6 Binary files /dev/null and b/public/images/list02.png differ diff --git a/public/images/list03.png b/public/images/list03.png new file mode 100644 index 00000000..893043a2 Binary files /dev/null and b/public/images/list03.png differ diff --git a/public/images/list04.png b/public/images/list04.png new file mode 100644 index 00000000..c449a431 Binary files /dev/null and b/public/images/list04.png differ diff --git a/public/images/list05.png b/public/images/list05.png new file mode 100644 index 00000000..108f031c Binary files /dev/null and b/public/images/list05.png differ diff --git a/public/images/listblue01.png b/public/images/listblue01.png new file mode 100644 index 00000000..4a76db16 Binary files /dev/null and b/public/images/listblue01.png differ diff --git a/public/images/listblue010.png b/public/images/listblue010.png new file mode 100644 index 00000000..d90d730f Binary files /dev/null and b/public/images/listblue010.png differ diff --git a/public/images/listblue02.png b/public/images/listblue02.png new file mode 100644 index 00000000..fe437aa7 Binary files /dev/null and b/public/images/listblue02.png differ diff --git a/public/images/listblue03.png b/public/images/listblue03.png new file mode 100644 index 00000000..249ff378 Binary files /dev/null and b/public/images/listblue03.png differ diff --git a/public/images/listblue04.png b/public/images/listblue04.png new file mode 100644 index 00000000..c449a431 Binary files /dev/null and b/public/images/listblue04.png differ diff --git a/public/images/listblue05.png b/public/images/listblue05.png new file mode 100644 index 00000000..108f031c Binary files /dev/null and b/public/images/listblue05.png differ diff --git a/public/images/listblue06.png b/public/images/listblue06.png new file mode 100644 index 00000000..e674a33f Binary files /dev/null and b/public/images/listblue06.png differ diff --git a/public/images/listblue07.png b/public/images/listblue07.png new file mode 100644 index 00000000..64ad47e5 Binary files /dev/null and b/public/images/listblue07.png differ diff --git a/public/images/listblue08.png b/public/images/listblue08.png new file mode 100644 index 00000000..5ef726e7 Binary files /dev/null and b/public/images/listblue08.png differ diff --git a/public/images/listblue09.png b/public/images/listblue09.png new file mode 100644 index 00000000..f0534348 Binary files /dev/null and b/public/images/listblue09.png differ diff --git a/public/images/listred01 .png b/public/images/listred01 .png new file mode 100644 index 00000000..6d696edf Binary files /dev/null and b/public/images/listred01 .png differ diff --git a/public/images/listred02.png b/public/images/listred02.png new file mode 100644 index 00000000..92de0a49 Binary files /dev/null and b/public/images/listred02.png differ diff --git a/public/images/listred03.png b/public/images/listred03.png new file mode 100644 index 00000000..92a16771 Binary files /dev/null and b/public/images/listred03.png differ diff --git a/public/images/login_medal.png b/public/images/login_medal.png new file mode 100644 index 00000000..3ecaf5a7 Binary files /dev/null and b/public/images/login_medal.png differ diff --git a/public/images/luSketch.png b/public/images/luSketch.png deleted file mode 100644 index 0b8e4624..00000000 Binary files a/public/images/luSketch.png and /dev/null differ diff --git a/public/images/lvbg.png b/public/images/lvbg.png new file mode 100644 index 00000000..a5cbd97b Binary files /dev/null and b/public/images/lvbg.png differ diff --git a/public/images/medal.png b/public/images/medal.png new file mode 100644 index 00000000..24bba6b0 Binary files /dev/null and b/public/images/medal.png differ diff --git a/public/images/no-note.png b/public/images/no-note.png new file mode 100644 index 00000000..eefd58bd Binary files /dev/null and b/public/images/no-note.png differ diff --git a/public/images/nocase.png b/public/images/nocase.png new file mode 100644 index 00000000..c7b05176 Binary files /dev/null and b/public/images/nocase.png differ diff --git a/public/images/nocouresimg.png b/public/images/nocouresimg.png new file mode 100644 index 00000000..19d5224b Binary files /dev/null and b/public/images/nocouresimg.png differ diff --git a/public/images/opinion(1).png b/public/images/opinion(1).png new file mode 100644 index 00000000..d473c1f3 Binary files /dev/null and b/public/images/opinion(1).png differ diff --git a/public/images/opinion.png b/public/images/opinion.png index d473c1f3..311eb815 100644 Binary files a/public/images/opinion.png and b/public/images/opinion.png differ diff --git a/public/images/orgaimg.png b/public/images/orgaimg.png new file mode 100644 index 00000000..157da35c Binary files /dev/null and b/public/images/orgaimg.png differ diff --git a/public/images/phone.png b/public/images/phone.png new file mode 100644 index 00000000..6de5c119 Binary files /dev/null and b/public/images/phone.png differ diff --git a/public/images/playicon.png b/public/images/playicon.png new file mode 100644 index 00000000..b9e0940b Binary files /dev/null and b/public/images/playicon.png differ diff --git a/public/images/playtime.png b/public/images/playtime.png new file mode 100644 index 00000000..c917edc5 Binary files /dev/null and b/public/images/playtime.png differ diff --git a/public/images/qa-banner.png b/public/images/qa-banner.png new file mode 100644 index 00000000..5fddef1b Binary files /dev/null and b/public/images/qa-banner.png differ diff --git a/public/images/qa-box.png b/public/images/qa-box.png new file mode 100644 index 00000000..01691163 Binary files /dev/null and b/public/images/qa-box.png differ diff --git a/public/images/rank1.png b/public/images/rank1.png new file mode 100644 index 00000000..4bf3b9a4 Binary files /dev/null and b/public/images/rank1.png differ diff --git a/public/images/rank2.png b/public/images/rank2.png new file mode 100644 index 00000000..008ca416 Binary files /dev/null and b/public/images/rank2.png differ diff --git a/public/images/rank3.png b/public/images/rank3.png new file mode 100644 index 00000000..5122607d Binary files /dev/null and b/public/images/rank3.png differ diff --git a/public/images/replyimg.png b/public/images/replyimg.png new file mode 100644 index 00000000..cc6569df Binary files /dev/null and b/public/images/replyimg.png differ diff --git a/public/images/specimg.png b/public/images/specimg.png new file mode 100644 index 00000000..6309ebe6 Binary files /dev/null and b/public/images/specimg.png differ diff --git a/public/images/study-info.png b/public/images/study-info.png new file mode 100644 index 00000000..bb2fa446 Binary files /dev/null and b/public/images/study-info.png differ diff --git a/public/images/success-note.png b/public/images/success-note.png new file mode 100644 index 00000000..ca91f8b6 Binary files /dev/null and b/public/images/success-note.png differ diff --git a/public/images/tearch-top.png b/public/images/tearch-top.png new file mode 100644 index 00000000..ee8d4220 Binary files /dev/null and b/public/images/tearch-top.png differ diff --git a/public/images/userbgimg.png b/public/images/userbgimg.png new file mode 100644 index 00000000..2f0dae40 Binary files /dev/null and b/public/images/userbgimg.png differ diff --git a/public/images/weiSketch.png b/public/images/weiSketch.png deleted file mode 100644 index eb4ea0d8..00000000 Binary files a/public/images/weiSketch.png and /dev/null differ diff --git a/public/index.html b/public/index.html index add72467..12a0ba92 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,9 @@ 京东方大学堂 + + diff --git a/src/components/Course/courseImage.vue b/src/components/Course/courseImage.vue index dc36d480..fc63b158 100644 --- a/src/components/Course/courseImage.vue +++ b/src/components/Course/courseImage.vue @@ -1,8 +1,8 @@ + + diff --git a/src/components/Portal/authorInfo.vue b/src/components/Portal/authorInfo.vue index a6cd938b..822246f1 100644 --- a/src/components/Portal/authorInfo.vue +++ b/src/components/Portal/authorInfo.vue @@ -1,25 +1,25 @@ @@ -106,12 +113,14 @@ import { userAvatarText } from "@/utils/tools.js"; line-height: 18px; display: flex; .author-text{ - color: #666666; + font-size: 12px; + color: #999999; + font-weight: 300; margin-left: 4px; } .uavatar{ // border: 1px solid #73adfe; - width: 28px; + width: 28px; height: 28px; // background: #d9e9ff; display: flex; diff --git a/src/components/Portal/commentAuthor.vue b/src/components/Portal/commentAuthor.vue new file mode 100644 index 00000000..4a108386 --- /dev/null +++ b/src/components/Portal/commentAuthor.vue @@ -0,0 +1,189 @@ + + + + diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index 19c57bb5..5602f3a4 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -1,32 +1,23 @@ diff --git a/src/components/Portal/course/courseItem.vue b/src/components/Portal/course/courseItem.vue index 9a0ab8ef..2a4573e1 100644 --- a/src/components/Portal/course/courseItem.vue +++ b/src/components/Portal/course/courseItem.vue @@ -68,11 +68,11 @@ }, methods:{ jumpRouter(c){ - if(c.type==20){ + // if(c.type==20){ return '/course/detail?id='+c.id - }else if(c.type==10){ - return '/course/micro?id='+c.id - } + // }else if(c.type==10){ + // return '/course/micro?id='+c.id + // } }, jumpPicture(c){ if(c.type==20){ diff --git a/src/components/Portal/guideBox.vue b/src/components/Portal/guideBox.vue new file mode 100644 index 00000000..9514bbb6 --- /dev/null +++ b/src/components/Portal/guideBox.vue @@ -0,0 +1,425 @@ + + + + diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index b4d2c567..ba6c7a3e 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -7,47 +7,60 @@
- + - + + - {{ data.answers}} + {{ data.answers? data.answers:0}} +
+
+ + + + + {{ data.views}}
- + - {{data.comments}} -
-
- - - - {{data.shares}} + {{data.comments? data.comments:0}}
+
- + - {{ data.praises}} + {{ data.praises? data.praises:0}}
- - - + + - {{ data.favorites}} + {{ data.favorites? data.favorites:0}} +
+
+ + + + {{data.shares}}
-
- + - {{ data.views}} + {{ formatNum(data.views)}}
+
@@ -78,6 +91,7 @@ import apiUser from '@/api/system/user.js' import apiMessage from '@/api/system/message.js' import { mapGetters } from 'vuex'; + import { formatUserNumber } from '@/utils/tools.js'; export default { props: { data:{ @@ -94,6 +108,10 @@ export default { } } }, + size:{ + type:Number, + default:14 + }, nodeWidth:{ type:String, default:'40px' @@ -122,10 +140,18 @@ export default { type:Boolean, default:true }, + courseExclusive:{ + type:Boolean, + default:false + }, shares:{ type:Boolean, default:true }, + couseViews:{ + type:Boolean, + default:false + }, praises:{ type:Boolean, default:true @@ -149,6 +175,7 @@ export default { }, data(){ return { + formatNum:formatUserNumber, loading:false, isPraise:false, isFavorite:false, @@ -222,12 +249,36 @@ export default { content='案例' } if(this.type==4){ - content='问答' + content='提问' } if(this.type==5){ content='回答' } - content=sendName+typeText+content+'-'+title + if(this.type==6){ + content='课程笔记' + } + if(this.type==60){ + content='课程笔记评论' + } +// 点赞type + if(this.type==10){ + content='课程评论' + } + if(this.type==20){ + content='文章评论' + } + if(this.type==30){ + content='案例评论' + } + // 评论点赞通知没有关联id,评论通知暂时关闭 + if(this.type==60 || this.type==10 || this.type==20 || this.type==30 || this.type == 6) { + return; + // content=sendName+typeText+content + } else { + content=sendName+typeText+content+'-'+title + } + + let message={ content, refId, @@ -275,7 +326,7 @@ export default { }, addPraise(){ if(this.type==0){ - console.log('未设置type值,1表课程,2表文章,3表案例,4表问答') + console.log('未设置type值,1表课程,2表文章,3表案例,4表问答,6笔记') return; } //需要判断是否已点赞,已点赞的不再加 @@ -288,7 +339,9 @@ export default { } if(this.type==1){ postData.title=this.data.name; - }else{ + }else if(this.type == 5){ + postData.title=this.data.content; + } else { postData.title=this.data.title; } if(this.loading) { @@ -306,6 +359,29 @@ export default { if(this.unicom) { this.$store.dispatch("unicomPraises",false) } + //自己给自己点赞不算 + let authorId=this.data.sysCreateAid; + if(this.type==3){ //案例取作者id + authorId=this.data.authorId; + }else if(this.type==1){ //课程取老师的id + // 目前页面上没有点赞的地方,课程有多个老师,也要给每个老师加吗? + //console.log(this.data,'点赞中课程的传的数据') + } + if(this.userInfo.aid!=authorId){ + let event = { + key: "CancelPraise",// + title: "取消点赞",//事件的标题 + parameters:"author:"+authorId,//用户自定义参数 name:value,name:value + content: "取消点赞"+postData.title,//事件的内容 + objId: this.data.id,//关联的id + objType: this.type,//关联的类型 + objInfo: this.data.title, + aid: this.userInfo.aid, //当前登录人的id + aname: this.userInfo.name,//当前人的姓名 + status: 1 //状态,直接写1 + } + this.$store.dispatch("userTrigger", event); + } this.$message({message:'取消点赞',type:'success'}) }else{ console.log('取消失败:'+res.message); @@ -329,6 +405,54 @@ export default { // } this.isPraise=true; this.$message({message:'点赞成功',type:'success'}) + let contentText = ''; + if(this.type==1){ + contentText='课程'; + // conType = this.data.type; + } + if(this.type==2){ + contentText='文章' + } + if(this.type==3){ + contentText='案例' + } + if(this.type==4){ + contentText='提问' + } + if(this.type==5){ + contentText='回答' + } + if(this.type==6){ + contentText='课程笔记' + } + if(this.type==60){ + contentText='课程笔记评论' + } + // 点赞type + if(this.type==10){ + contentText='课程评论' + } + if(this.type==20){ + contentText='文章评论' + } + if(this.type==30){ + contentText='案例评论' + } + if(this.userInfo.aid!=this.data.sysCreateAid){ + let event = { + key: "Praise",//后台的事件key 发布文章且审核通过 + title: "点赞",//事件的标题 + parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value + content: "点赞了"+contentText,//事件的内容 + objId: this.data.id,//关联的id + objType: this.type,//关联的类型 + objInfo: this.data.title, + aid: this.userInfo.aid, //当前登录人的id + aname: this.userInfo.name,//当前人的姓名 + status: 1 //状态,直接写1 + } + this.$store.dispatch("userTrigger", event); + } }else{ console.log('点赞失败:'+res.message); } @@ -358,7 +482,11 @@ export default { this.loading=true; if(this.type==1){ postData.title=this.data.name; - }else{ + }else if(this.type==60){ + postData.title=this.data.content; + } else if(this.type==5){ + postData.title='收藏回答'; + } else { postData.title=this.data.title; } if(this.isFavorite) {// 已经收藏,再次点击取消收藏 @@ -508,6 +636,19 @@ export default { this.messageSave(this.data.id,this.data.title,this.userInfo.name,curUser.name,curUser.aid,'分享给我的'); } } + let event = { + key: "Share",//分享 + title: "分享",//分享 + parameters:"author:"+this.data.sysCreateAid,//内容的作者 + content: '分享',//事件的内容 + objId: this.data.id,//关联的id + objType: this.type,//关联的类型 + objInfo: this.data.title, + aid: this.userInfo.aid, //当前登录人的id + aname: this.userInfo.name,//当前人的姓名 + status: 1 //状态,直接写1 + } + this.$store.dispatch("userTrigger", event); }else{ this.$message.warning("您已分享给对方,分享失败") } @@ -533,14 +674,15 @@ export default { .interact-bar{ // height: 30px; .interact-bar-btns { - line-height: 30px; + // line-height: 30px; display: flex; justify-content: flex-end; .interact-bar-btn { margin: 0 0 0 15px; } .interact-bar-value{ - color:#8590A6 + // color:#6E7B84; ui图给的颜色,但是效果于ui图效果不一样,也没有透明度,所以找一个相近的和谐的颜色 + color:#999; } } } diff --git a/src/components/Portal/interactRowBar.vue b/src/components/Portal/interactRowBar.vue deleted file mode 100644 index 82b4b042..00000000 --- a/src/components/Portal/interactRowBar.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - - - diff --git a/src/components/Portal/interestCollection.vue b/src/components/Portal/interestCollection.vue new file mode 100644 index 00000000..f7097074 --- /dev/null +++ b/src/components/Portal/interestCollection.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/components/Portal/medalDlg.vue b/src/components/Portal/medalDlg.vue new file mode 100644 index 00000000..7e566a96 --- /dev/null +++ b/src/components/Portal/medalDlg.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/src/components/Portal/medalImg.vue b/src/components/Portal/medalImg.vue new file mode 100644 index 00000000..b4106202 --- /dev/null +++ b/src/components/Portal/medalImg.vue @@ -0,0 +1,66 @@ + + + + diff --git a/src/components/Portal/noteComment.vue b/src/components/Portal/noteComment.vue new file mode 100644 index 00000000..0bd15488 --- /dev/null +++ b/src/components/Portal/noteComment.vue @@ -0,0 +1,937 @@ + + + + diff --git a/src/components/PortalFloatTools.vue b/src/components/PortalFloatTools.vue index e1c49cf0..2cdbf9bf 100644 --- a/src/components/PortalFloatTools.vue +++ b/src/components/PortalFloatTools.vue @@ -3,35 +3,59 @@
-
+
-
- 做课程 +
+ + + +
+
-
- 提问题 +
+ + + +
+
-
- 写文章 +
+ + + +
+
-
- 提意见 +
+ + + +
+
-
- 联系我们 +
+ + + +
+
-
+
-
- 返回顶部 +
+ + + +
+
-
-
+
+ +
+
+ +
@@ -46,7 +51,7 @@ export default { position: relative; margin-top: 30px; box-sizing: border-box; - height: 300px; + //height: 300px; //background-image: url(/pc/images/bg_foot.png); background-position: center; background-repeat: no-repeat; diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index f06e04c6..ddb4d6fe 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -1,18 +1,40 @@ @@ -66,9 +130,7 @@ import { mapGetters, mapActions } from 'vuex'; import apiMessage from '@/api/system/message.js'; import apiBoeCourse from '@/api/boe/course.js'; -import { - userAvatarText -} from "@/utils/tools.js"; +import {userAvatarText} from "@/utils/tools.js"; export default { props: { current: { @@ -79,21 +141,33 @@ export default { type: Boolean, default: false, }, + textColor:{ + type: String, + default: '', + }, goSearch:{ type: Number, default: 0, } }, + // components:{InterestCollection,GuideBox}, // 注释兴趣爱好弹窗显示 computed: { - ...mapGetters(['userInfo', 'userMsg']), + ...mapGetters(['userInfo', 'userMsg','identity']), avatarText(){ return userAvatarText(this.userInfo.name); + }, + activeNav(){ + return { + 'top-nav-active-blue': this.textColor=='#000000', + 'top-nav-active-white': this.textColor=='#fff' || this.textColor=='#ffffff', + } } }, data() { return { + fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, findType: '1', keyword: '', isTiao: false, @@ -106,6 +180,9 @@ export default { this.loadBoeData(); }, methods: { + setCurIdentity(iden){ + this.$store.dispatch('SetCurIdentity',iden); + }, tomy(){ console.log('lll') }, @@ -117,13 +194,13 @@ export default { // cmtask_status:this.cmtask_status, // cmtask_name:this.cmtask_name, }; - // apiBoeCourse.cmtaskList(params).then(res => { - // if (res.status == 200 && res.result.count > 0) { - // this.isTiao = true; - // } else { - // this.isTiao = false; - // } - // }); + apiBoeCourse.cmtaskList(params).then(res => { + if (res.status == 200 && res.result.count > 0) { + this.isTiao = true; + } else { + this.isTiao = false; + } + }); }, handleCommand(val) { let urlPre=window.location.protocol+'//'+window.location.host; @@ -207,6 +284,7 @@ export default { .then(() => { this.$store.dispatch('LogOut').then(() => { //location.href = this.webBaseUrl + '/login'; + sessionStorage.setItem('dialog_session_show'+this.userInfo.aid,null); // 清除兴趣采集的"关闭"缓存 location.href = process.env.VUE_APP_LOGIN_URL; }); }) @@ -225,41 +303,120 @@ export default { diff --git a/src/components/Qa/addQuestion.vue b/src/components/Qa/addQuestion.vue index b055d502..ac070d06 100644 --- a/src/components/Qa/addQuestion.vue +++ b/src/components/Qa/addQuestion.vue @@ -4,17 +4,19 @@ * @Description: --> diff --git a/src/components/Qa/favoritesQaList.vue b/src/components/Qa/favoritesQaList.vue index 9ef02669..e55488a0 100644 --- a/src/components/Qa/favoritesQaList.vue +++ b/src/components/Qa/favoritesQaList.vue @@ -1,25 +1,34 @@