diff --git a/assets/rymcugzh.jpg b/assets/rymcugzh.jpg new file mode 100644 index 0000000..a725396 Binary files /dev/null and b/assets/rymcugzh.jpg differ diff --git a/assets/weixin.png b/assets/weixin.png new file mode 100644 index 0000000..471faa5 Binary files /dev/null and b/assets/weixin.png differ diff --git a/components/archive/list.vue b/components/archive/list.vue index 178ca17..18cb4b1 100644 --- a/components/archive/list.vue +++ b/components/archive/list.vue @@ -21,7 +21,7 @@ + src="https://static.rymcu.com/article/1578475481946.png">
diff --git a/components/common/comment/main.vue b/components/common/comment/main.vue index 5b8a41e..d0ddb51 100644 --- a/components/common/comment/main.vue +++ b/components/common/comment/main.vue @@ -38,7 +38,7 @@ + src="https://static.rymcu.com/article/1578475481946.png"> diff --git a/components/common/portfolio/list.vue b/components/common/portfolio/list.vue index d1a7e86..3ba6ece 100644 --- a/components/common/portfolio/list.vue +++ b/components/common/portfolio/list.vue @@ -10,7 +10,7 @@ + src="https://static.rymcu.com/article/1574441170152.jpg"> diff --git a/components/layouts/mobile/header.vue b/components/layouts/mobile/header.vue index 9aac976..ad08646 100644 --- a/components/layouts/mobile/header.vue +++ b/components/layouts/mobile/header.vue @@ -53,13 +53,13 @@ - + + src="https://static.rymcu.com/article/1578475481946.png"> {{ nickname }} 系统管理 diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index bffb026..733c6f2 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -55,13 +55,13 @@ - + + src="https://static.rymcu.com/article/1578475481946.png"> {{ nickname }} 系统管理 diff --git a/components/layouts/pc/main.vue b/components/layouts/pc/main.vue index 2d69079..8e5c25a 100644 --- a/components/layouts/pc/main.vue +++ b/components/layouts/pc/main.vue @@ -4,18 +4,40 @@ - + +
+ + + + + + + 扫码关注公众号 + + + + + + + + +
diff --git a/components/widget/share.vue b/components/widget/share.vue new file mode 100644 index 0000000..98eea73 --- /dev/null +++ b/components/widget/share.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/package-lock.json b/package-lock.json index 17e2309..205e005 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1053,6 +1053,14 @@ } } }, + "@chenfengyuan/vue-qrcode": { + "version": "1.0.2", + "resolved": "https://registry.npm.taobao.org/@chenfengyuan/vue-qrcode/download/@chenfengyuan/vue-qrcode-1.0.2.tgz", + "integrity": "sha1-N9cZAuFm4a5YF2vWy5xAkFwbCUk=", + "requires": { + "qrcode": "^1.4.4" + } + }, "@csstools/convert-colors": { "version": "1.4.0", "resolved": "https://registry.npm.taobao.org/@csstools/convert-colors/download/@csstools/convert-colors-1.4.0.tgz", @@ -2766,6 +2774,25 @@ "isarray": "^1.0.0" } }, + "buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npm.taobao.org/buffer-alloc/download/buffer-alloc-1.2.0.tgz", + "integrity": "sha1-iQ3ZDZI6hz4I4Q5f1RpX5bfM4Ow=", + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npm.taobao.org/buffer-alloc-unsafe/download/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha1-vX3CauKXLQ7aJTvgYdupkjScGfA=" + }, + "buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npm.taobao.org/buffer-fill/download/buffer-fill-1.0.0.tgz", + "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" + }, "buffer-from": { "version": "1.1.1", "resolved": "https://registry.npm.taobao.org/buffer-from/download/buffer-from-1.1.1.tgz", @@ -3175,7 +3202,6 @@ "version": "5.0.0", "resolved": "https://registry.npm.taobao.org/cliui/download/cliui-5.0.0.tgz?cache=0&sync_timestamp=1573942320052&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-5.0.0.tgz", "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=", - "dev": true, "requires": { "string-width": "^3.1.0", "strip-ansi": "^5.2.0", @@ -3185,20 +3211,17 @@ "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz", - "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", - "dev": true + "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=" }, "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz", - "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", - "dev": true + "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=" }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", - "dev": true, "requires": { "emoji-regex": "^7.0.1", "is-fullwidth-code-point": "^2.0.0", @@ -3209,7 +3232,6 @@ "version": "5.2.0", "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz?cache=0&sync_timestamp=1573280518303&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-5.2.0.tgz", "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", - "dev": true, "requires": { "ansi-regex": "^4.1.0" } @@ -3218,7 +3240,6 @@ "version": "5.1.0", "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-5.1.0.tgz", "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=", - "dev": true, "requires": { "ansi-styles": "^3.2.0", "string-width": "^3.0.0", @@ -3951,8 +3972,7 @@ "decamelize": { "version": "1.2.0", "resolved": "https://registry.npm.taobao.org/decamelize/download/decamelize-1.2.0.tgz?cache=0&sync_timestamp=1580010393599&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdecamelize%2Fdownload%2Fdecamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, "decode-uri-component": { "version": "0.2.0", @@ -4077,6 +4097,11 @@ } } }, + "dijkstrajs": { + "version": "1.0.1", + "resolved": "https://registry.npm.taobao.org/dijkstrajs/download/dijkstrajs-1.0.1.tgz", + "integrity": "sha1-082BIh4+pAdCz83lVtTpnpjdxxs=" + }, "dimport": { "version": "1.0.0", "resolved": "https://registry.npm.taobao.org/dimport/download/dimport-1.0.0.tgz", @@ -5232,8 +5257,7 @@ "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz", - "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=", - "dev": true + "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=" }, "get-port-please": { "version": "1.0.0", @@ -7857,6 +7881,11 @@ "find-up": "^3.0.0" } }, + "pngjs": { + "version": "3.4.0", + "resolved": "https://registry.npm.taobao.org/pngjs/download/pngjs-3.4.0.tgz", + "integrity": "sha1-mcp9clll+2VYFOr2XzjxK72/VV8=" + }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npm.taobao.org/posix-character-classes/download/posix-character-classes-0.1.1.tgz", @@ -8949,6 +8978,36 @@ "resolved": "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz", "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" }, + "qrcode": { + "version": "1.4.4", + "resolved": "https://registry.npm.taobao.org/qrcode/download/qrcode-1.4.4.tgz", + "integrity": "sha1-8MQ1aKfnUQpV78O4jZYC9xlj6oM=", + "requires": { + "buffer": "^5.4.3", + "buffer-alloc": "^1.2.0", + "buffer-from": "^1.1.1", + "dijkstrajs": "^1.0.1", + "isarray": "^2.0.1", + "pngjs": "^3.3.0", + "yargs": "^13.2.4" + }, + "dependencies": { + "buffer": { + "version": "5.6.0", + "resolved": "https://registry.npm.taobao.org/buffer/download/buffer-5.6.0.tgz", + "integrity": "sha1-oxdJ3H2B2E2wir+Te2uMQDP2J4Y=", + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npm.taobao.org/isarray/download/isarray-2.0.5.tgz", + "integrity": "sha1-ivHkwSISRMxiRZ+vOJQNTmRKVyM=" + } + } + }, "qs": { "version": "6.7.0", "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz", @@ -9320,14 +9379,12 @@ "require-directory": { "version": "2.1.1", "resolved": "https://registry.npm.taobao.org/require-directory/download/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" }, "require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz", - "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=", - "dev": true + "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=" }, "requires-port": { "version": "1.0.0", @@ -9630,8 +9687,7 @@ "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, "set-value": { "version": "2.0.1", @@ -11477,8 +11533,7 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" }, "which-typed-array": { "version": "1.1.2", @@ -11696,7 +11751,6 @@ "version": "13.3.2", "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.3.2.tgz", "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=", - "dev": true, "requires": { "cliui": "^5.0.0", "find-up": "^3.0.0", @@ -11713,20 +11767,17 @@ "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz", - "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", - "dev": true + "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=" }, "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz", - "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", - "dev": true + "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=" }, "find-up": { "version": "3.0.0", "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz", "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=", - "dev": true, "requires": { "locate-path": "^3.0.0" } @@ -11735,7 +11786,6 @@ "version": "3.0.0", "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-3.0.0.tgz", "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=", - "dev": true, "requires": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" @@ -11745,7 +11795,6 @@ "version": "2.3.0", "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz", "integrity": "sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE=", - "dev": true, "requires": { "p-try": "^2.0.0" } @@ -11754,7 +11803,6 @@ "version": "3.0.0", "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-3.0.0.tgz", "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=", - "dev": true, "requires": { "p-limit": "^2.0.0" } @@ -11762,14 +11810,12 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz", - "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=", - "dev": true + "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=" }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", - "dev": true, "requires": { "emoji-regex": "^7.0.1", "is-fullwidth-code-point": "^2.0.0", @@ -11780,7 +11826,6 @@ "version": "5.2.0", "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz?cache=0&sync_timestamp=1573280518303&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-5.2.0.tgz", "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", - "dev": true, "requires": { "ansi-regex": "^4.1.0" } @@ -11791,7 +11836,6 @@ "version": "13.1.2", "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.1.2.tgz", "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=", - "dev": true, "requires": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" diff --git a/package.json b/package.json index 5ad2243..fbfa542 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "generate": "nuxt generate" }, "dependencies": { + "@chenfengyuan/vue-qrcode": "^1.0.2", "@nuxtjs/axios": "^5.12.0", "cookieparser": "^0.1.0", "cross-env": "^7.0.2", diff --git a/pages/article/_article_id.vue b/pages/article/_article_id.vue index 5be2992..d1a1f0a 100644 --- a/pages/article/_article_id.vue +++ b/pages/article/_article_id.vue @@ -1,94 +1,76 @@ @@ -96,9 +78,13 @@