diff --git a/.gitignore b/.gitignore index e8f682b..e51f36f 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,6 @@ sw.* # Vim swap files *.swp +# deps +package-lock.json +yarn.lock diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index 8a3293d..01a2f3e 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -18,7 +18,7 @@ jobs: image: node:16.17.0-alpine interpreter: !DefaultInterpreter commands: - - yarn --registry=https://registry.npm.taobao.org + - yarn --registry=https://registry.npmmirror.com - npx nuxt build useTTY: false condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL diff --git a/Dockerfile b/Dockerfile index 955e97d..9fc484a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN cd /opt/app RUN chmod -R 777 * # 添加执行shell文件权限 RUN chmod u+x pm2.sh -RUN yarn --registry=https://registry.npm.taobao.org -RUN npm i pm2 -g --registry=https://registry.npm.taobao.org +RUN yarn --registry=https://registry.npmmirror.com +RUN npm i pm2 -g --registry=https://registry.npmmirror.com RUN npm run build RUN ls -l -a diff --git a/components/ImgCropper.vue b/components/ImgCropper.vue new file mode 100644 index 0000000..8b0e8b9 --- /dev/null +++ b/components/ImgCropper.vue @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + 上传 + + + + 重置 + + + + + + + 取 消 + 确 定 + + + + + + + diff --git a/components/common/product/list.vue b/components/common/product/list.vue index b955abb..4174bcb 100644 --- a/components/common/product/list.vue +++ b/components/common/product/list.vue @@ -1,12 +1,13 @@ - + - - - + + + - + - - + + + {{ product.productDescription }} + 了解更多 @@ -167,4 +171,13 @@ h3, .h3 { padding-left: 0.75rem; } +.text-container { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; + text-overflow: ellipsis; +} + + diff --git a/components/common/topic/main.vue b/components/common/topic/main.vue index e0cf6d3..8ab9b7e 100644 --- a/components/common/topic/main.vue +++ b/components/common/topic/main.vue @@ -1,41 +1,45 @@ - - - + + + 最新 - {{topic.topicTitle}} + {{ topic.topicTitle }} - - + + + diff --git a/pages/user/settings/security.vue b/pages/user/settings/security.vue index 0d2dec7..9755c64 100644 --- a/pages/user/settings/security.vue +++ b/pages/user/settings/security.vue @@ -107,13 +107,7 @@ export default { getData() { let _ts = this; _ts.$axios.$get('/api/user-info/detail/' + _ts.idUser).then(function (res) { - if (res) { - if (res.message) { - _ts.$message.error(res.message); - } else { - _ts.$set(_ts, 'user', res.user); - } - } + _ts.$set(_ts, 'user', res); }) }, hideChangeEmailDialog() {