master
chenqy 2 years ago
parent 652a947e56
commit dd0817f389

@ -8,7 +8,6 @@ export class ApiController {
constructor(
private readonly apiService: ApiService
) { }
@ -22,7 +21,7 @@ export class ApiController {
@Post('weather')
@Auth()
async getWeather(@Req() req: Request, @Body() body: any) {
async getWeather() {
return this.apiService.getWeather();
}
@ -33,8 +32,4 @@ export class ApiController {
return (await this.apiService.getKeywords(title, content)).data;
}
@Post('faceAuth')
async faceAuth(@Body('face_url') face_url: string) {
return await this.apiService.faceAuth(face_url);
}
}

@ -1,11 +1,10 @@
import { InjectRedis, Redis } from '@nestjs-modules/ioredis';
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { API_TYPE } from 'src/enum/baidu';
import { BAIDU_ACCESS_TOKEN_KEY } from 'src/store/redis/keys';
import { WXBizDataCrypt } from '../../utils/fn/crypt';
import { HttpService } from '../http/http.service';
import { API_TYPE } from 'src/enum/baidu';
import * as axios from 'axios';
@Injectable()
export class ApiService {
@ -71,20 +70,9 @@ export class ApiService {
// 存入redis
this.redis.set(BAIDU_ACCESS_TOKEN_KEY + ':' + type, access_token, 'EX', expires_in);
return access_token;
}
// 获得百度 人脸识别 accessToken
async faceAuth(face_url: string) {
}
// 根据文章标题和内容提取关键词
async getKeywords(title: string, content: string) {
return await this.httpService.post<TopicData>('https://aip.baidubce.com/rpc/2.0/nlp/v1/topic',

@ -6,4 +6,4 @@ import { FaceService } from './face.service';
controllers: [FaceController],
providers: [FaceService]
})
export class FaceModule {}
export class FaceModule { }

@ -6,6 +6,7 @@ import { BAIDU_ACCESS_TOKEN_KEY } from 'src/store/redis/keys';
import { WXBizDataCrypt } from '../../utils/fn/crypt';
import { HttpService } from '../http/http.service';
import { ApiService } from '../api/api.service';
import { UserService } from '../user/user.service';
@Injectable()
export class FaceService {
@ -16,6 +17,7 @@ export class FaceService {
constructor(
private configService: ConfigService,
private readonly httpService: HttpService,
private readonly userService: UserService,
private readonly apiService: ApiService,
@InjectRedis() private readonly redis: Redis,
@ -32,16 +34,17 @@ export class FaceService {
try {
const access_token = await this.apiService.getBaiduOauthAccessToken(API_TYPE.FACE, this.baidu_face_api_key, this.baidu_face_secret_key);
const openid = user.openid;
// console.log('access_token:', access_token);
// console.log('face_url:', face_url);
// console.log('openid:', openid);
// console.log('group_id:', this.baidu_face_group_id);
const res = await this.httpService.post('https://aip.baidubce.com/rest/2.0/face/v3/faceset/user/add?access_token=' + access_token, {
group_id: this.baidu_face_group_id,
image: face_url,
image_type: "URL",
user_id: openid,
});
this.userService.updateUser({
openid: openid,
face_auth_status: true
});
return res.data;
} catch (error) {
console.log(error);

@ -1,9 +1,11 @@
import { Module } from '@nestjs/common';
import { Global, Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
@Global()
@Module({
controllers: [UserController],
providers: [UserService]
providers: [UserService],
exports: [UserService]
})
export class UserModule {}
export class UserModule { }

@ -73,12 +73,12 @@ export class UserService {
}
//update
async updateUser(userDto: UserDto) {
async updateUser(user_update_input: Prisma.UserUpdateInput) {
const user = await this.prismaService.user.update({
where: {
openid: userDto.openid
openid: user_update_input.openid as string
},
data: userDto
data: user_update_input
})
return user
@ -86,13 +86,13 @@ export class UserService {
//通过face_token查找用户
async findUserByFaceToken(face_token: string) {
}
// 添加用户的face_token
async updateUserFaceToken(openid: string, face_url: string) {
}

@ -0,0 +1,99 @@
# Details
Date : 2023-10-27 23:42:28
Directory e:\\Layou\\src\\laoyou_client\\src
Total : 84 files, 7169 codes, 275 comments, 683 blanks, all 8127 lines
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [src/App.vue](/src/App.vue) | Vue | 11 | 0 | 2 | 13 |
| [src/component/block/customBlock.vue](/src/component/block/customBlock.vue) | Vue | 55 | 0 | 4 | 59 |
| [src/component/block/editBlock.vue](/src/component/block/editBlock.vue) | Vue | 37 | 0 | 6 | 43 |
| [src/component/box/closeBox.vue](/src/component/box/closeBox.vue) | Vue | 39 | 0 | 4 | 43 |
| [src/component/box/newbox.vue](/src/component/box/newbox.vue) | Vue | 76 | 0 | 8 | 84 |
| [src/component/button/likeButton.vue](/src/component/button/likeButton.vue) | Vue | 86 | 0 | 9 | 95 |
| [src/component/button/smallButton.vue](/src/component/button/smallButton.vue) | Vue | 48 | 0 | 4 | 52 |
| [src/component/card/WideCommentCard.vue](/src/component/card/WideCommentCard.vue) | Vue | 126 | 1 | 12 | 139 |
| [src/component/card/WideCommonShareCard..vue](/src/component/card/WideCommonShareCard..vue) | Vue | 177 | 1 | 11 | 189 |
| [src/component/card/card.vue](/src/component/card/card.vue) | Vue | 135 | 0 | 11 | 146 |
| [src/component/commentInput/commentInput.vue](/src/component/commentInput/commentInput.vue) | Vue | 158 | 5 | 14 | 177 |
| [src/component/comments/commentDetail.vue](/src/component/comments/commentDetail.vue) | Vue | 115 | 0 | 13 | 128 |
| [src/component/comments/commentList.vue](/src/component/comments/commentList.vue) | Vue | 30 | 0 | 5 | 35 |
| [src/component/comments/comments.vue](/src/component/comments/comments.vue) | Vue | 116 | 0 | 17 | 133 |
| [src/component/comments/footerComment.vue](/src/component/comments/footerComment.vue) | Vue | 117 | 2 | 11 | 130 |
| [src/component/commitBox/commitBox.vue](/src/component/commitBox/commitBox.vue) | Vue | 103 | 0 | 12 | 115 |
| [src/component/drawer/drawer.vue](/src/component/drawer/drawer.vue) | Vue | 74 | 0 | 8 | 82 |
| [src/component/header/fade-header.vue](/src/component/header/fade-header.vue) | Vue | 97 | 0 | 12 | 109 |
| [src/component/header/header.vue](/src/component/header/header.vue) | Vue | 79 | 0 | 7 | 86 |
| [src/component/lazyImg/lazyImg.vue](/src/component/lazyImg/lazyImg.vue) | Vue | 84 | 0 | 5 | 89 |
| [src/component/loading/commonLoading.vue](/src/component/loading/commonLoading.vue) | Vue | 62 | 1 | 8 | 71 |
| [src/component/loading/loading_v2.vue](/src/component/loading/loading_v2.vue) | Vue | 66 | 1 | 11 | 78 |
| [src/component/other/scroll-footer.vue](/src/component/other/scroll-footer.vue) | Vue | 53 | 0 | 3 | 56 |
| [src/component/picker/mulPicker.vue](/src/component/picker/mulPicker.vue) | Vue | 170 | 0 | 15 | 185 |
| [src/component/picker/picker.vue](/src/component/picker/picker.vue) | Vue | 130 | 5 | 15 | 150 |
| [src/component/toast/customToast.vue](/src/component/toast/customToast.vue) | Vue | 84 | 0 | 7 | 91 |
| [src/component/topTabBar/topTabBar.vue](/src/component/topTabBar/topTabBar.vue) | Vue | 111 | 0 | 6 | 117 |
| [src/component/transiton/config.js](/src/component/transiton/config.js) | JavaScript | 1 | 0 | 0 | 1 |
| [src/component/transiton/fadeTransiton.vue](/src/component/transiton/fadeTransiton.vue) | Vue | 75 | 0 | 7 | 82 |
| [src/global.scss](/src/global.scss) | SCSS | 55 | 26 | 20 | 101 |
| [src/layouts/commonLayout.vue](/src/layouts/commonLayout.vue) | Vue | 68 | 0 | 13 | 81 |
| [src/main.js](/src/main.js) | JavaScript | 11 | 1 | 3 | 15 |
| [src/manifest.json](/src/manifest.json) | JSON | 64 | 1 | 1 | 66 |
| [src/pages.json](/src/pages.json) | JSON | 117 | 0 | 3 | 120 |
| [src/pages/function/function.vue](/src/pages/function/function.vue) | Vue | 269 | 7 | 20 | 296 |
| [src/pages/function/user-interaction.vue](/src/pages/function/user-interaction.vue) | Vue | 342 | 3 | 27 | 372 |
| [src/pages/health/health.vue](/src/pages/health/health.vue) | Vue | 289 | 2 | 12 | 303 |
| [src/pages/index/index.vue](/src/pages/index/index.vue) | Vue | 133 | 0 | 17 | 150 |
| [src/pages/learn/learn.vue](/src/pages/learn/learn.vue) | Vue | 111 | 0 | 13 | 124 |
| [src/pages/post/post.vue](/src/pages/post/post.vue) | Vue | 220 | 0 | 16 | 236 |
| [src/pages/post/postHeader.vue](/src/pages/post/postHeader.vue) | Vue | 89 | 0 | 6 | 95 |
| [src/pages/setting/face-auth-setting.vue](/src/pages/setting/face-auth-setting.vue) | Vue | 191 | 0 | 15 | 206 |
| [src/pages/setting/setting.vue](/src/pages/setting/setting.vue) | Vue | 75 | 0 | 11 | 86 |
| [src/pages/setting/userSetting.vue](/src/pages/setting/userSetting.vue) | Vue | 336 | 4 | 17 | 357 |
| [src/pages/share/commonShare.vue](/src/pages/share/commonShare.vue) | Vue | 195 | 0 | 19 | 214 |
| [src/pages/share/share.vue](/src/pages/share/share.vue) | Vue | 228 | 0 | 17 | 245 |
| [src/pages/share/videoShare.vue](/src/pages/share/videoShare.vue) | Vue | 264 | 0 | 18 | 282 |
| [src/pages/test/test.vue](/src/pages/test/test.vue) | Vue | 121 | 0 | 9 | 130 |
| [src/pages/verify/face-login.vue](/src/pages/verify/face-login.vue) | Vue | 133 | 0 | 12 | 145 |
| [src/pages/verify/login.vue](/src/pages/verify/login.vue) | Vue | 157 | 0 | 17 | 174 |
| [src/pages/weather/weather.vue](/src/pages/weather/weather.vue) | Vue | 5 | 0 | 3 | 8 |
| [src/shime-uni.d.ts](/src/shime-uni.d.ts) | TypeScript | 5 | 0 | 1 | 6 |
| [src/static/css/var.scss](/src/static/css/var.scss) | SCSS | 4 | 0 | 1 | 5 |
| [src/store/index.js](/src/store/index.js) | JavaScript | 7 | 0 | 1 | 8 |
| [src/store/modules/comment/comment.js](/src/store/modules/comment/comment.js) | JavaScript | 162 | 17 | 13 | 192 |
| [src/store/modules/comment/index.js](/src/store/modules/comment/index.js) | JavaScript | 1 | 0 | 1 | 2 |
| [src/store/modules/common/common.js](/src/store/modules/common/common.js) | JavaScript | 17 | 2 | 5 | 24 |
| [src/store/modules/common/index.js](/src/store/modules/common/index.js) | JavaScript | 1 | 0 | 0 | 1 |
| [src/store/modules/home/home.js](/src/store/modules/home/home.js) | JavaScript | 4 | 0 | 2 | 6 |
| [src/store/modules/home/index.js](/src/store/modules/home/index.js) | JavaScript | 1 | 0 | 1 | 2 |
| [src/store/modules/post/index.js](/src/store/modules/post/index.js) | JavaScript | 1 | 0 | 1 | 2 |
| [src/store/modules/post/post.js](/src/store/modules/post/post.js) | JavaScript | 46 | 2 | 7 | 55 |
| [src/store/modules/share/commonShare.js](/src/store/modules/share/commonShare.js) | JavaScript | 129 | 5 | 15 | 149 |
| [src/store/modules/share/index.js](/src/store/modules/share/index.js) | JavaScript | 2 | 0 | 1 | 3 |
| [src/store/modules/share/videoShare.js](/src/store/modules/share/videoShare.js) | JavaScript | 34 | 5 | 8 | 47 |
| [src/store/modules/toast/index.js](/src/store/modules/toast/index.js) | JavaScript | 1 | 0 | 0 | 1 |
| [src/store/modules/toast/toast.js](/src/store/modules/toast/toast.js) | JavaScript | 14 | 0 | 2 | 16 |
| [src/store/modules/user/index.js](/src/store/modules/user/index.js) | JavaScript | 1 | 0 | 1 | 2 |
| [src/store/modules/user/user.js](/src/store/modules/user/user.js) | JavaScript | 309 | 53 | 27 | 389 |
| [src/utils/api/api.js](/src/utils/api/api.js) | JavaScript | 7 | 2 | 3 | 12 |
| [src/utils/api/base.js](/src/utils/api/base.js) | JavaScript | 68 | 0 | 5 | 73 |
| [src/utils/api/comment.js](/src/utils/api/comment.js) | JavaScript | 40 | 4 | 4 | 48 |
| [src/utils/api/face.js](/src/utils/api/face.js) | JavaScript | 7 | 2 | 3 | 12 |
| [src/utils/api/like.js](/src/utils/api/like.js) | JavaScript | 18 | 2 | 3 | 23 |
| [src/utils/api/post.js](/src/utils/api/post.js) | JavaScript | 24 | 36 | 3 | 63 |
| [src/utils/api/upload.js](/src/utils/api/upload.js) | JavaScript | 36 | 1 | 5 | 42 |
| [src/utils/api/user.js](/src/utils/api/user.js) | JavaScript | 65 | 5 | 5 | 75 |
| [src/utils/config/constants.js](/src/utils/config/constants.js) | JavaScript | 4 | 4 | 2 | 10 |
| [src/utils/config/http.js](/src/utils/config/http.js) | JavaScript | 2 | 2 | 2 | 6 |
| [src/utils/enum/auth.js](/src/utils/enum/auth.js) | JavaScript | 3 | 0 | 1 | 4 |
| [src/utils/enum/http.js](/src/utils/enum/http.js) | JavaScript | 4 | 0 | 1 | 5 |
| [src/utils/fn/index.js](/src/utils/fn/index.js) | JavaScript | 103 | 68 | 16 | 187 |
| [src/utils/fn/init.js](/src/utils/fn/init.js) | JavaScript | 24 | 5 | 3 | 32 |
| [src/utils/fn/toast.js](/src/utils/fn/toast.js) | JavaScript | 37 | 0 | 4 | 41 |
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

@ -0,0 +1,65 @@
# Diff Details
Date : 2023-10-27 23:42:28
Directory e:\\Layou\\src\\laoyou_client\\src
Total : 50 files, 1828 codes, 141 comments, 204 blanks, all 2173 lines
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [src/App.vue](/src/App.vue) | Vue | -6 | 0 | 0 | -6 |
| [src/component/block/customBlock.vue](/src/component/block/customBlock.vue) | Vue | 6 | 0 | 0 | 6 |
| [src/component/button/likeButton.vue](/src/component/button/likeButton.vue) | Vue | 18 | 0 | 3 | 21 |
| [src/component/card/WideCommentCard.vue](/src/component/card/WideCommentCard.vue) | Vue | 126 | 1 | 12 | 139 |
| [src/component/card/WideCommonShareCard..vue](/src/component/card/WideCommonShareCard..vue) | Vue | 177 | 1 | 11 | 189 |
| [src/component/card/card.vue](/src/component/card/card.vue) | Vue | 17 | 0 | 3 | 20 |
| [src/component/commentInput/commentInput.vue](/src/component/commentInput/commentInput.vue) | Vue | 19 | 0 | 2 | 21 |
| [src/component/comments/commentDetail.vue](/src/component/comments/commentDetail.vue) | Vue | 43 | 0 | 9 | 52 |
| [src/component/comments/commentList.vue](/src/component/comments/commentList.vue) | Vue | -73 | 0 | -1 | -74 |
| [src/component/comments/comments.vue](/src/component/comments/comments.vue) | Vue | 30 | 0 | 9 | 39 |
| [src/component/comments/footerComment.vue](/src/component/comments/footerComment.vue) | Vue | 7 | 0 | 1 | 8 |
| [src/component/header/fade-header.vue](/src/component/header/fade-header.vue) | Vue | 97 | 0 | 12 | 109 |
| [src/component/lazyImg/lazyImg.vue](/src/component/lazyImg/lazyImg.vue) | Vue | 4 | 0 | -1 | 3 |
| [src/component/loading/loading_v2.vue](/src/component/loading/loading_v2.vue) | Vue | 66 | 1 | 11 | 78 |
| [src/component/other/scroll-footer.vue](/src/component/other/scroll-footer.vue) | Vue | 53 | 0 | 3 | 56 |
| [src/component/topTabBar/topTabBar.vue](/src/component/topTabBar/topTabBar.vue) | Vue | -14 | 0 | 0 | -14 |
| [src/layouts/commonLayout.vue](/src/layouts/commonLayout.vue) | Vue | 20 | 0 | 5 | 25 |
| [src/pages.json](/src/pages.json) | JSON | 6 | 0 | 0 | 6 |
| [src/pages/function/function.vue](/src/pages/function/function.vue) | Vue | 33 | 5 | 8 | 46 |
| [src/pages/function/user-interaction.vue](/src/pages/function/user-interaction.vue) | Vue | 342 | 3 | 27 | 372 |
| [src/pages/health/health.vue](/src/pages/health/health.vue) | Vue | 78 | -8 | 5 | 75 |
| [src/pages/index/index.vue](/src/pages/index/index.vue) | Vue | 57 | 0 | 8 | 65 |
| [src/pages/post/post.vue](/src/pages/post/post.vue) | Vue | -5 | 0 | 1 | -4 |
| [src/pages/setting/face-auth-setting.vue](/src/pages/setting/face-auth-setting.vue) | Vue | 191 | 0 | 15 | 206 |
| [src/pages/setting/setting.vue](/src/pages/setting/setting.vue) | Vue | 7 | 0 | 2 | 9 |
| [src/pages/setting/userSetting.vue](/src/pages/setting/userSetting.vue) | Vue | 6 | 0 | 0 | 6 |
| [src/pages/share/commonShare.vue](/src/pages/share/commonShare.vue) | Vue | -1 | 0 | 0 | -1 |
| [src/pages/share/share.vue](/src/pages/share/share.vue) | Vue | -2 | 0 | 0 | -2 |
| [src/pages/test/test.vue](/src/pages/test/test.vue) | Vue | 106 | 0 | 5 | 111 |
| [src/pages/verify/face-login.vue](/src/pages/verify/face-login.vue) | Vue | 133 | 0 | 12 | 145 |
| [src/pages/verify/login.vue](/src/pages/verify/login.vue) | Vue | 15 | -6 | 5 | 14 |
| [src/pages/verify/verify.vue](/src/pages/verify/verify.vue) | Vue | -86 | 0 | -7 | -93 |
| [src/store/modules/comment/comment.js](/src/store/modules/comment/comment.js) | JavaScript | 95 | 9 | 7 | 111 |
| [src/store/modules/common/common.js](/src/store/modules/common/common.js) | JavaScript | 1 | 2 | 1 | 4 |
| [src/store/modules/home/home.js](/src/store/modules/home/home.js) | JavaScript | -1 | 0 | 0 | -1 |
| [src/store/modules/post/post.js](/src/store/modules/post/post.js) | JavaScript | -20 | 2 | 1 | -17 |
| [src/store/modules/share/commonShare.js](/src/store/modules/share/commonShare.js) | JavaScript | -15 | 1 | 0 | -14 |
| [src/store/modules/share/videoShare.js](/src/store/modules/share/videoShare.js) | JavaScript | -19 | -1 | -1 | -21 |
| [src/store/modules/user/user.js](/src/store/modules/user/user.js) | JavaScript | 133 | 34 | 10 | 177 |
| [src/utils/api/api.js](/src/utils/api/api.js) | JavaScript | 7 | 2 | 3 | 12 |
| [src/utils/api/base.js](/src/utils/api/base.js) | JavaScript | 68 | 0 | 5 | 73 |
| [src/utils/api/comment.js](/src/utils/api/comment.js) | JavaScript | 0 | 4 | 2 | 6 |
| [src/utils/api/face.js](/src/utils/api/face.js) | JavaScript | 7 | 2 | 3 | 12 |
| [src/utils/api/like.js](/src/utils/api/like.js) | JavaScript | 18 | 2 | 3 | 23 |
| [src/utils/api/post.js](/src/utils/api/post.js) | JavaScript | 22 | 36 | 2 | 60 |
| [src/utils/api/upload.js](/src/utils/api/upload.js) | JavaScript | 10 | 1 | 1 | 12 |
| [src/utils/api/user.js](/src/utils/api/user.js) | JavaScript | 4 | 1 | 1 | 6 |
| [src/utils/config/constants.js](/src/utils/config/constants.js) | JavaScript | 3 | 4 | 2 | 9 |
| [src/utils/enum/http.js](/src/utils/enum/http.js) | JavaScript | 4 | 0 | 1 | 5 |
| [src/utils/fn/index.js](/src/utils/fn/index.js) | JavaScript | 41 | 45 | 3 | 89 |
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details

@ -0,0 +1,52 @@
"filename", "language", "JavaScript", "JSON", "Vue", "comment", "blank", "total"
"e:\Layou\src\laoyou_client\src\App.vue", "Vue", 0, 0, -6, 0, 0, -6
"e:\Layou\src\laoyou_client\src\component\block\customBlock.vue", "Vue", 0, 0, 6, 0, 0, 6
"e:\Layou\src\laoyou_client\src\component\button\likeButton.vue", "Vue", 0, 0, 18, 0, 3, 21
"e:\Layou\src\laoyou_client\src\component\card\WideCommentCard.vue", "Vue", 0, 0, 126, 1, 12, 139
"e:\Layou\src\laoyou_client\src\component\card\WideCommonShareCard..vue", "Vue", 0, 0, 177, 1, 11, 189
"e:\Layou\src\laoyou_client\src\component\card\card.vue", "Vue", 0, 0, 17, 0, 3, 20
"e:\Layou\src\laoyou_client\src\component\commentInput\commentInput.vue", "Vue", 0, 0, 19, 0, 2, 21
"e:\Layou\src\laoyou_client\src\component\comments\commentDetail.vue", "Vue", 0, 0, 43, 0, 9, 52
"e:\Layou\src\laoyou_client\src\component\comments\commentList.vue", "Vue", 0, 0, -73, 0, -1, -74
"e:\Layou\src\laoyou_client\src\component\comments\comments.vue", "Vue", 0, 0, 30, 0, 9, 39
"e:\Layou\src\laoyou_client\src\component\comments\footerComment.vue", "Vue", 0, 0, 7, 0, 1, 8
"e:\Layou\src\laoyou_client\src\component\header\fade-header.vue", "Vue", 0, 0, 97, 0, 12, 109
"e:\Layou\src\laoyou_client\src\component\lazyImg\lazyImg.vue", "Vue", 0, 0, 4, 0, -1, 3
"e:\Layou\src\laoyou_client\src\component\loading\loading_v2.vue", "Vue", 0, 0, 66, 1, 11, 78
"e:\Layou\src\laoyou_client\src\component\other\scroll-footer.vue", "Vue", 0, 0, 53, 0, 3, 56
"e:\Layou\src\laoyou_client\src\component\topTabBar\topTabBar.vue", "Vue", 0, 0, -14, 0, 0, -14
"e:\Layou\src\laoyou_client\src\layouts\commonLayout.vue", "Vue", 0, 0, 20, 0, 5, 25
"e:\Layou\src\laoyou_client\src\pages.json", "JSON", 0, 6, 0, 0, 0, 6
"e:\Layou\src\laoyou_client\src\pages\function\function.vue", "Vue", 0, 0, 33, 5, 8, 46
"e:\Layou\src\laoyou_client\src\pages\function\user-interaction.vue", "Vue", 0, 0, 342, 3, 27, 372
"e:\Layou\src\laoyou_client\src\pages\health\health.vue", "Vue", 0, 0, 78, -8, 5, 75
"e:\Layou\src\laoyou_client\src\pages\index\index.vue", "Vue", 0, 0, 57, 0, 8, 65
"e:\Layou\src\laoyou_client\src\pages\post\post.vue", "Vue", 0, 0, -5, 0, 1, -4
"e:\Layou\src\laoyou_client\src\pages\setting\face-auth-setting.vue", "Vue", 0, 0, 191, 0, 15, 206
"e:\Layou\src\laoyou_client\src\pages\setting\setting.vue", "Vue", 0, 0, 7, 0, 2, 9
"e:\Layou\src\laoyou_client\src\pages\setting\userSetting.vue", "Vue", 0, 0, 6, 0, 0, 6
"e:\Layou\src\laoyou_client\src\pages\share\commonShare.vue", "Vue", 0, 0, -1, 0, 0, -1
"e:\Layou\src\laoyou_client\src\pages\share\share.vue", "Vue", 0, 0, -2, 0, 0, -2
"e:\Layou\src\laoyou_client\src\pages\test\test.vue", "Vue", 0, 0, 106, 0, 5, 111
"e:\Layou\src\laoyou_client\src\pages\verify\face-login.vue", "Vue", 0, 0, 133, 0, 12, 145
"e:\Layou\src\laoyou_client\src\pages\verify\login.vue", "Vue", 0, 0, 15, -6, 5, 14
"e:\Layou\src\laoyou_client\src\pages\verify\verify.vue", "Vue", 0, 0, -86, 0, -7, -93
"e:\Layou\src\laoyou_client\src\store\modules\comment\comment.js", "JavaScript", 95, 0, 0, 9, 7, 111
"e:\Layou\src\laoyou_client\src\store\modules\common\common.js", "JavaScript", 1, 0, 0, 2, 1, 4
"e:\Layou\src\laoyou_client\src\store\modules\home\home.js", "JavaScript", -1, 0, 0, 0, 0, -1
"e:\Layou\src\laoyou_client\src\store\modules\post\post.js", "JavaScript", -20, 0, 0, 2, 1, -17
"e:\Layou\src\laoyou_client\src\store\modules\share\commonShare.js", "JavaScript", -15, 0, 0, 1, 0, -14
"e:\Layou\src\laoyou_client\src\store\modules\share\videoShare.js", "JavaScript", -19, 0, 0, -1, -1, -21
"e:\Layou\src\laoyou_client\src\store\modules\user\user.js", "JavaScript", 133, 0, 0, 34, 10, 177
"e:\Layou\src\laoyou_client\src\utils\api\api.js", "JavaScript", 7, 0, 0, 2, 3, 12
"e:\Layou\src\laoyou_client\src\utils\api\base.js", "JavaScript", 68, 0, 0, 0, 5, 73
"e:\Layou\src\laoyou_client\src\utils\api\comment.js", "JavaScript", 0, 0, 0, 4, 2, 6
"e:\Layou\src\laoyou_client\src\utils\api\face.js", "JavaScript", 7, 0, 0, 2, 3, 12
"e:\Layou\src\laoyou_client\src\utils\api\like.js", "JavaScript", 18, 0, 0, 2, 3, 23
"e:\Layou\src\laoyou_client\src\utils\api\post.js", "JavaScript", 22, 0, 0, 36, 2, 60
"e:\Layou\src\laoyou_client\src\utils\api\upload.js", "JavaScript", 10, 0, 0, 1, 1, 12
"e:\Layou\src\laoyou_client\src\utils\api\user.js", "JavaScript", 4, 0, 0, 1, 1, 6
"e:\Layou\src\laoyou_client\src\utils\config\constants.js", "JavaScript", 3, 0, 0, 4, 2, 9
"e:\Layou\src\laoyou_client\src\utils\enum\http.js", "JavaScript", 4, 0, 0, 0, 1, 5
"e:\Layou\src\laoyou_client\src\utils\fn\index.js", "JavaScript", 41, 0, 0, 45, 3, 89
"Total", "-", 358, 6, 1464, 141, 204, 2173
1 filename language JavaScript JSON Vue comment blank total
2 e:\Layou\src\laoyou_client\src\App.vue Vue 0 0 -6 0 0 -6
3 e:\Layou\src\laoyou_client\src\component\block\customBlock.vue Vue 0 0 6 0 0 6
4 e:\Layou\src\laoyou_client\src\component\button\likeButton.vue Vue 0 0 18 0 3 21
5 e:\Layou\src\laoyou_client\src\component\card\WideCommentCard.vue Vue 0 0 126 1 12 139
6 e:\Layou\src\laoyou_client\src\component\card\WideCommonShareCard..vue Vue 0 0 177 1 11 189
7 e:\Layou\src\laoyou_client\src\component\card\card.vue Vue 0 0 17 0 3 20
8 e:\Layou\src\laoyou_client\src\component\commentInput\commentInput.vue Vue 0 0 19 0 2 21
9 e:\Layou\src\laoyou_client\src\component\comments\commentDetail.vue Vue 0 0 43 0 9 52
10 e:\Layou\src\laoyou_client\src\component\comments\commentList.vue Vue 0 0 -73 0 -1 -74
11 e:\Layou\src\laoyou_client\src\component\comments\comments.vue Vue 0 0 30 0 9 39
12 e:\Layou\src\laoyou_client\src\component\comments\footerComment.vue Vue 0 0 7 0 1 8
13 e:\Layou\src\laoyou_client\src\component\header\fade-header.vue Vue 0 0 97 0 12 109
14 e:\Layou\src\laoyou_client\src\component\lazyImg\lazyImg.vue Vue 0 0 4 0 -1 3
15 e:\Layou\src\laoyou_client\src\component\loading\loading_v2.vue Vue 0 0 66 1 11 78
16 e:\Layou\src\laoyou_client\src\component\other\scroll-footer.vue Vue 0 0 53 0 3 56
17 e:\Layou\src\laoyou_client\src\component\topTabBar\topTabBar.vue Vue 0 0 -14 0 0 -14
18 e:\Layou\src\laoyou_client\src\layouts\commonLayout.vue Vue 0 0 20 0 5 25
19 e:\Layou\src\laoyou_client\src\pages.json JSON 0 6 0 0 0 6
20 e:\Layou\src\laoyou_client\src\pages\function\function.vue Vue 0 0 33 5 8 46
21 e:\Layou\src\laoyou_client\src\pages\function\user-interaction.vue Vue 0 0 342 3 27 372
22 e:\Layou\src\laoyou_client\src\pages\health\health.vue Vue 0 0 78 -8 5 75
23 e:\Layou\src\laoyou_client\src\pages\index\index.vue Vue 0 0 57 0 8 65
24 e:\Layou\src\laoyou_client\src\pages\post\post.vue Vue 0 0 -5 0 1 -4
25 e:\Layou\src\laoyou_client\src\pages\setting\face-auth-setting.vue Vue 0 0 191 0 15 206
26 e:\Layou\src\laoyou_client\src\pages\setting\setting.vue Vue 0 0 7 0 2 9
27 e:\Layou\src\laoyou_client\src\pages\setting\userSetting.vue Vue 0 0 6 0 0 6
28 e:\Layou\src\laoyou_client\src\pages\share\commonShare.vue Vue 0 0 -1 0 0 -1
29 e:\Layou\src\laoyou_client\src\pages\share\share.vue Vue 0 0 -2 0 0 -2
30 e:\Layou\src\laoyou_client\src\pages\test\test.vue Vue 0 0 106 0 5 111
31 e:\Layou\src\laoyou_client\src\pages\verify\face-login.vue Vue 0 0 133 0 12 145
32 e:\Layou\src\laoyou_client\src\pages\verify\login.vue Vue 0 0 15 -6 5 14
33 e:\Layou\src\laoyou_client\src\pages\verify\verify.vue Vue 0 0 -86 0 -7 -93
34 e:\Layou\src\laoyou_client\src\store\modules\comment\comment.js JavaScript 95 0 0 9 7 111
35 e:\Layou\src\laoyou_client\src\store\modules\common\common.js JavaScript 1 0 0 2 1 4
36 e:\Layou\src\laoyou_client\src\store\modules\home\home.js JavaScript -1 0 0 0 0 -1
37 e:\Layou\src\laoyou_client\src\store\modules\post\post.js JavaScript -20 0 0 2 1 -17
38 e:\Layou\src\laoyou_client\src\store\modules\share\commonShare.js JavaScript -15 0 0 1 0 -14
39 e:\Layou\src\laoyou_client\src\store\modules\share\videoShare.js JavaScript -19 0 0 -1 -1 -21
40 e:\Layou\src\laoyou_client\src\store\modules\user\user.js JavaScript 133 0 0 34 10 177
41 e:\Layou\src\laoyou_client\src\utils\api\api.js JavaScript 7 0 0 2 3 12
42 e:\Layou\src\laoyou_client\src\utils\api\base.js JavaScript 68 0 0 0 5 73
43 e:\Layou\src\laoyou_client\src\utils\api\comment.js JavaScript 0 0 0 4 2 6
44 e:\Layou\src\laoyou_client\src\utils\api\face.js JavaScript 7 0 0 2 3 12
45 e:\Layou\src\laoyou_client\src\utils\api\like.js JavaScript 18 0 0 2 3 23
46 e:\Layou\src\laoyou_client\src\utils\api\post.js JavaScript 22 0 0 36 2 60
47 e:\Layou\src\laoyou_client\src\utils\api\upload.js JavaScript 10 0 0 1 1 12
48 e:\Layou\src\laoyou_client\src\utils\api\user.js JavaScript 4 0 0 1 1 6
49 e:\Layou\src\laoyou_client\src\utils\config\constants.js JavaScript 3 0 0 4 2 9
50 e:\Layou\src\laoyou_client\src\utils\enum\http.js JavaScript 4 0 0 0 1 5
51 e:\Layou\src\laoyou_client\src\utils\fn\index.js JavaScript 41 0 0 45 3 89
52 Total - 358 6 1464 141 204 2173

@ -0,0 +1,58 @@
# Diff Summary
Date : 2023-10-27 23:42:28
Directory e:\\Layou\\src\\laoyou_client\\src
Total : 50 files, 1828 codes, 141 comments, 204 blanks, all 2173 lines
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| Vue | 31 | 1,464 | -3 | 160 | 1,621 |
| JavaScript | 18 | 358 | 144 | 44 | 546 |
| JSON | 1 | 6 | 0 | 0 | 6 |
## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 50 | 1,828 | 141 | 204 | 2,173 |
| . (Files) | 2 | 0 | 0 | 0 | 0 |
| component | 15 | 576 | 3 | 74 | 653 |
| component\\block | 1 | 6 | 0 | 0 | 6 |
| component\\button | 1 | 18 | 0 | 3 | 21 |
| component\\card | 3 | 320 | 2 | 26 | 348 |
| component\\commentInput | 1 | 19 | 0 | 2 | 21 |
| component\\comments | 4 | 7 | 0 | 18 | 25 |
| component\\header | 1 | 97 | 0 | 12 | 109 |
| component\\lazyImg | 1 | 4 | 0 | -1 | 3 |
| component\\loading | 1 | 66 | 1 | 11 | 78 |
| component\\other | 1 | 53 | 0 | 3 | 56 |
| component\\topTabBar | 1 | -14 | 0 | 0 | -14 |
| layouts | 1 | 20 | 0 | 5 | 25 |
| pages | 14 | 874 | -6 | 81 | 949 |
| pages\\function | 2 | 375 | 8 | 35 | 418 |
| pages\\health | 1 | 78 | -8 | 5 | 75 |
| pages\\index | 1 | 57 | 0 | 8 | 65 |
| pages\\post | 1 | -5 | 0 | 1 | -4 |
| pages\\setting | 3 | 204 | 0 | 17 | 221 |
| pages\\share | 2 | -3 | 0 | 0 | -3 |
| pages\\test | 1 | 106 | 0 | 5 | 111 |
| pages\\verify | 3 | 62 | -6 | 10 | 66 |
| store | 7 | 174 | 47 | 18 | 239 |
| store\\modules | 7 | 174 | 47 | 18 | 239 |
| store\\modules\\comment | 1 | 95 | 9 | 7 | 111 |
| store\\modules\\common | 1 | 1 | 2 | 1 | 4 |
| store\\modules\\home | 1 | -1 | 0 | 0 | -1 |
| store\\modules\\post | 1 | -20 | 2 | 1 | -17 |
| store\\modules\\share | 2 | -34 | 0 | -1 | -35 |
| store\\modules\\user | 1 | 133 | 34 | 10 | 177 |
| utils | 11 | 184 | 97 | 26 | 307 |
| utils\\api | 8 | 136 | 48 | 20 | 204 |
| utils\\config | 1 | 3 | 4 | 2 | 9 |
| utils\\enum | 1 | 4 | 0 | 1 | 5 |
| utils\\fn | 1 | 41 | 45 | 3 | 89 |
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)

@ -0,0 +1,111 @@
Date : 2023-10-27 23:42:28
Directory : e:\Layou\src\laoyou_client\src
Total : 50 files, 1828 codes, 141 comments, 204 blanks, all 2173 lines
Languages
+------------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+------------+------------+------------+------------+------------+------------+
| Vue | 31 | 1,464 | -3 | 160 | 1,621 |
| JavaScript | 18 | 358 | 144 | 44 | 546 |
| JSON | 1 | 6 | 0 | 0 | 6 |
+------------+------------+------------+------------+------------+------------+
Directories
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 50 | 1,828 | 141 | 204 | 2,173 |
| . (Files) | 2 | 0 | 0 | 0 | 0 |
| component | 15 | 576 | 3 | 74 | 653 |
| component\block | 1 | 6 | 0 | 0 | 6 |
| component\button | 1 | 18 | 0 | 3 | 21 |
| component\card | 3 | 320 | 2 | 26 | 348 |
| component\commentInput | 1 | 19 | 0 | 2 | 21 |
| component\comments | 4 | 7 | 0 | 18 | 25 |
| component\header | 1 | 97 | 0 | 12 | 109 |
| component\lazyImg | 1 | 4 | 0 | -1 | 3 |
| component\loading | 1 | 66 | 1 | 11 | 78 |
| component\other | 1 | 53 | 0 | 3 | 56 |
| component\topTabBar | 1 | -14 | 0 | 0 | -14 |
| layouts | 1 | 20 | 0 | 5 | 25 |
| pages | 14 | 874 | -6 | 81 | 949 |
| pages\function | 2 | 375 | 8 | 35 | 418 |
| pages\health | 1 | 78 | -8 | 5 | 75 |
| pages\index | 1 | 57 | 0 | 8 | 65 |
| pages\post | 1 | -5 | 0 | 1 | -4 |
| pages\setting | 3 | 204 | 0 | 17 | 221 |
| pages\share | 2 | -3 | 0 | 0 | -3 |
| pages\test | 1 | 106 | 0 | 5 | 111 |
| pages\verify | 3 | 62 | -6 | 10 | 66 |
| store | 7 | 174 | 47 | 18 | 239 |
| store\modules | 7 | 174 | 47 | 18 | 239 |
| store\modules\comment | 1 | 95 | 9 | 7 | 111 |
| store\modules\common | 1 | 1 | 2 | 1 | 4 |
| store\modules\home | 1 | -1 | 0 | 0 | -1 |
| store\modules\post | 1 | -20 | 2 | 1 | -17 |
| store\modules\share | 2 | -34 | 0 | -1 | -35 |
| store\modules\user | 1 | 133 | 34 | 10 | 177 |
| utils | 11 | 184 | 97 | 26 | 307 |
| utils\api | 8 | 136 | 48 | 20 | 204 |
| utils\config | 1 | 3 | 4 | 2 | 9 |
| utils\enum | 1 | 4 | 0 | 1 | 5 |
| utils\fn | 1 | 41 | 45 | 3 | 89 |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| e:\Layou\src\laoyou_client\src\App.vue | Vue | -6 | 0 | 0 | -6 |
| e:\Layou\src\laoyou_client\src\component\block\customBlock.vue | Vue | 6 | 0 | 0 | 6 |
| e:\Layou\src\laoyou_client\src\component\button\likeButton.vue | Vue | 18 | 0 | 3 | 21 |
| e:\Layou\src\laoyou_client\src\component\card\WideCommentCard.vue | Vue | 126 | 1 | 12 | 139 |
| e:\Layou\src\laoyou_client\src\component\card\WideCommonShareCard..vue | Vue | 177 | 1 | 11 | 189 |
| e:\Layou\src\laoyou_client\src\component\card\card.vue | Vue | 17 | 0 | 3 | 20 |
| e:\Layou\src\laoyou_client\src\component\commentInput\commentInput.vue | Vue | 19 | 0 | 2 | 21 |
| e:\Layou\src\laoyou_client\src\component\comments\commentDetail.vue | Vue | 43 | 0 | 9 | 52 |
| e:\Layou\src\laoyou_client\src\component\comments\commentList.vue | Vue | -73 | 0 | -1 | -74 |
| e:\Layou\src\laoyou_client\src\component\comments\comments.vue | Vue | 30 | 0 | 9 | 39 |
| e:\Layou\src\laoyou_client\src\component\comments\footerComment.vue | Vue | 7 | 0 | 1 | 8 |
| e:\Layou\src\laoyou_client\src\component\header\fade-header.vue | Vue | 97 | 0 | 12 | 109 |
| e:\Layou\src\laoyou_client\src\component\lazyImg\lazyImg.vue | Vue | 4 | 0 | -1 | 3 |
| e:\Layou\src\laoyou_client\src\component\loading\loading_v2.vue | Vue | 66 | 1 | 11 | 78 |
| e:\Layou\src\laoyou_client\src\component\other\scroll-footer.vue | Vue | 53 | 0 | 3 | 56 |
| e:\Layou\src\laoyou_client\src\component\topTabBar\topTabBar.vue | Vue | -14 | 0 | 0 | -14 |
| e:\Layou\src\laoyou_client\src\layouts\commonLayout.vue | Vue | 20 | 0 | 5 | 25 |
| e:\Layou\src\laoyou_client\src\pages.json | JSON | 6 | 0 | 0 | 6 |
| e:\Layou\src\laoyou_client\src\pages\function\function.vue | Vue | 33 | 5 | 8 | 46 |
| e:\Layou\src\laoyou_client\src\pages\function\user-interaction.vue | Vue | 342 | 3 | 27 | 372 |
| e:\Layou\src\laoyou_client\src\pages\health\health.vue | Vue | 78 | -8 | 5 | 75 |
| e:\Layou\src\laoyou_client\src\pages\index\index.vue | Vue | 57 | 0 | 8 | 65 |
| e:\Layou\src\laoyou_client\src\pages\post\post.vue | Vue | -5 | 0 | 1 | -4 |
| e:\Layou\src\laoyou_client\src\pages\setting\face-auth-setting.vue | Vue | 191 | 0 | 15 | 206 |
| e:\Layou\src\laoyou_client\src\pages\setting\setting.vue | Vue | 7 | 0 | 2 | 9 |
| e:\Layou\src\laoyou_client\src\pages\setting\userSetting.vue | Vue | 6 | 0 | 0 | 6 |
| e:\Layou\src\laoyou_client\src\pages\share\commonShare.vue | Vue | -1 | 0 | 0 | -1 |
| e:\Layou\src\laoyou_client\src\pages\share\share.vue | Vue | -2 | 0 | 0 | -2 |
| e:\Layou\src\laoyou_client\src\pages\test\test.vue | Vue | 106 | 0 | 5 | 111 |
| e:\Layou\src\laoyou_client\src\pages\verify\face-login.vue | Vue | 133 | 0 | 12 | 145 |
| e:\Layou\src\laoyou_client\src\pages\verify\login.vue | Vue | 15 | -6 | 5 | 14 |
| e:\Layou\src\laoyou_client\src\pages\verify\verify.vue | Vue | -86 | 0 | -7 | -93 |
| e:\Layou\src\laoyou_client\src\store\modules\comment\comment.js | JavaScript | 95 | 9 | 7 | 111 |
| e:\Layou\src\laoyou_client\src\store\modules\common\common.js | JavaScript | 1 | 2 | 1 | 4 |
| e:\Layou\src\laoyou_client\src\store\modules\home\home.js | JavaScript | -1 | 0 | 0 | -1 |
| e:\Layou\src\laoyou_client\src\store\modules\post\post.js | JavaScript | -20 | 2 | 1 | -17 |
| e:\Layou\src\laoyou_client\src\store\modules\share\commonShare.js | JavaScript | -15 | 1 | 0 | -14 |
| e:\Layou\src\laoyou_client\src\store\modules\share\videoShare.js | JavaScript | -19 | -1 | -1 | -21 |
| e:\Layou\src\laoyou_client\src\store\modules\user\user.js | JavaScript | 133 | 34 | 10 | 177 |
| e:\Layou\src\laoyou_client\src\utils\api\api.js | JavaScript | 7 | 2 | 3 | 12 |
| e:\Layou\src\laoyou_client\src\utils\api\base.js | JavaScript | 68 | 0 | 5 | 73 |
| e:\Layou\src\laoyou_client\src\utils\api\comment.js | JavaScript | 0 | 4 | 2 | 6 |
| e:\Layou\src\laoyou_client\src\utils\api\face.js | JavaScript | 7 | 2 | 3 | 12 |
| e:\Layou\src\laoyou_client\src\utils\api\like.js | JavaScript | 18 | 2 | 3 | 23 |
| e:\Layou\src\laoyou_client\src\utils\api\post.js | JavaScript | 22 | 36 | 2 | 60 |
| e:\Layou\src\laoyou_client\src\utils\api\upload.js | JavaScript | 10 | 1 | 1 | 12 |
| e:\Layou\src\laoyou_client\src\utils\api\user.js | JavaScript | 4 | 1 | 1 | 6 |
| e:\Layou\src\laoyou_client\src\utils\config\constants.js | JavaScript | 3 | 4 | 2 | 9 |
| e:\Layou\src\laoyou_client\src\utils\enum\http.js | JavaScript | 4 | 0 | 1 | 5 |
| e:\Layou\src\laoyou_client\src\utils\fn\index.js | JavaScript | 41 | 45 | 3 | 89 |
| Total | | 1,828 | 141 | 204 | 2,173 |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+

@ -0,0 +1,86 @@
"filename", "language", "JavaScript", "JSON", "SCSS", "Vue", "TypeScript", "comment", "blank", "total"
"e:\Layou\src\laoyou_client\src\App.vue", "Vue", 0, 0, 0, 11, 0, 0, 2, 13
"e:\Layou\src\laoyou_client\src\component\block\customBlock.vue", "Vue", 0, 0, 0, 55, 0, 0, 4, 59
"e:\Layou\src\laoyou_client\src\component\block\editBlock.vue", "Vue", 0, 0, 0, 37, 0, 0, 6, 43
"e:\Layou\src\laoyou_client\src\component\box\closeBox.vue", "Vue", 0, 0, 0, 39, 0, 0, 4, 43
"e:\Layou\src\laoyou_client\src\component\box\newbox.vue", "Vue", 0, 0, 0, 76, 0, 0, 8, 84
"e:\Layou\src\laoyou_client\src\component\button\likeButton.vue", "Vue", 0, 0, 0, 86, 0, 0, 9, 95
"e:\Layou\src\laoyou_client\src\component\button\smallButton.vue", "Vue", 0, 0, 0, 48, 0, 0, 4, 52
"e:\Layou\src\laoyou_client\src\component\card\WideCommentCard.vue", "Vue", 0, 0, 0, 126, 0, 1, 12, 139
"e:\Layou\src\laoyou_client\src\component\card\WideCommonShareCard..vue", "Vue", 0, 0, 0, 177, 0, 1, 11, 189
"e:\Layou\src\laoyou_client\src\component\card\card.vue", "Vue", 0, 0, 0, 135, 0, 0, 11, 146
"e:\Layou\src\laoyou_client\src\component\commentInput\commentInput.vue", "Vue", 0, 0, 0, 158, 0, 5, 14, 177
"e:\Layou\src\laoyou_client\src\component\comments\commentDetail.vue", "Vue", 0, 0, 0, 115, 0, 0, 13, 128
"e:\Layou\src\laoyou_client\src\component\comments\commentList.vue", "Vue", 0, 0, 0, 30, 0, 0, 5, 35
"e:\Layou\src\laoyou_client\src\component\comments\comments.vue", "Vue", 0, 0, 0, 116, 0, 0, 17, 133
"e:\Layou\src\laoyou_client\src\component\comments\footerComment.vue", "Vue", 0, 0, 0, 117, 0, 2, 11, 130
"e:\Layou\src\laoyou_client\src\component\commitBox\commitBox.vue", "Vue", 0, 0, 0, 103, 0, 0, 12, 115
"e:\Layou\src\laoyou_client\src\component\drawer\drawer.vue", "Vue", 0, 0, 0, 74, 0, 0, 8, 82
"e:\Layou\src\laoyou_client\src\component\header\fade-header.vue", "Vue", 0, 0, 0, 97, 0, 0, 12, 109
"e:\Layou\src\laoyou_client\src\component\header\header.vue", "Vue", 0, 0, 0, 79, 0, 0, 7, 86
"e:\Layou\src\laoyou_client\src\component\lazyImg\lazyImg.vue", "Vue", 0, 0, 0, 84, 0, 0, 5, 89
"e:\Layou\src\laoyou_client\src\component\loading\commonLoading.vue", "Vue", 0, 0, 0, 62, 0, 1, 8, 71
"e:\Layou\src\laoyou_client\src\component\loading\loading_v2.vue", "Vue", 0, 0, 0, 66, 0, 1, 11, 78
"e:\Layou\src\laoyou_client\src\component\other\scroll-footer.vue", "Vue", 0, 0, 0, 53, 0, 0, 3, 56
"e:\Layou\src\laoyou_client\src\component\picker\mulPicker.vue", "Vue", 0, 0, 0, 170, 0, 0, 15, 185
"e:\Layou\src\laoyou_client\src\component\picker\picker.vue", "Vue", 0, 0, 0, 130, 0, 5, 15, 150
"e:\Layou\src\laoyou_client\src\component\toast\customToast.vue", "Vue", 0, 0, 0, 84, 0, 0, 7, 91
"e:\Layou\src\laoyou_client\src\component\topTabBar\topTabBar.vue", "Vue", 0, 0, 0, 111, 0, 0, 6, 117
"e:\Layou\src\laoyou_client\src\component\transiton\config.js", "JavaScript", 1, 0, 0, 0, 0, 0, 0, 1
"e:\Layou\src\laoyou_client\src\component\transiton\fadeTransiton.vue", "Vue", 0, 0, 0, 75, 0, 0, 7, 82
"e:\Layou\src\laoyou_client\src\global.scss", "SCSS", 0, 0, 55, 0, 0, 26, 20, 101
"e:\Layou\src\laoyou_client\src\layouts\commonLayout.vue", "Vue", 0, 0, 0, 68, 0, 0, 13, 81
"e:\Layou\src\laoyou_client\src\main.js", "JavaScript", 11, 0, 0, 0, 0, 1, 3, 15
"e:\Layou\src\laoyou_client\src\manifest.json", "JSON", 0, 64, 0, 0, 0, 1, 1, 66
"e:\Layou\src\laoyou_client\src\pages.json", "JSON", 0, 117, 0, 0, 0, 0, 3, 120
"e:\Layou\src\laoyou_client\src\pages\function\function.vue", "Vue", 0, 0, 0, 269, 0, 7, 20, 296
"e:\Layou\src\laoyou_client\src\pages\function\user-interaction.vue", "Vue", 0, 0, 0, 342, 0, 3, 27, 372
"e:\Layou\src\laoyou_client\src\pages\health\health.vue", "Vue", 0, 0, 0, 289, 0, 2, 12, 303
"e:\Layou\src\laoyou_client\src\pages\index\index.vue", "Vue", 0, 0, 0, 133, 0, 0, 17, 150
"e:\Layou\src\laoyou_client\src\pages\learn\learn.vue", "Vue", 0, 0, 0, 111, 0, 0, 13, 124
"e:\Layou\src\laoyou_client\src\pages\post\post.vue", "Vue", 0, 0, 0, 220, 0, 0, 16, 236
"e:\Layou\src\laoyou_client\src\pages\post\postHeader.vue", "Vue", 0, 0, 0, 89, 0, 0, 6, 95
"e:\Layou\src\laoyou_client\src\pages\setting\face-auth-setting.vue", "Vue", 0, 0, 0, 191, 0, 0, 15, 206
"e:\Layou\src\laoyou_client\src\pages\setting\setting.vue", "Vue", 0, 0, 0, 75, 0, 0, 11, 86
"e:\Layou\src\laoyou_client\src\pages\setting\userSetting.vue", "Vue", 0, 0, 0, 336, 0, 4, 17, 357
"e:\Layou\src\laoyou_client\src\pages\share\commonShare.vue", "Vue", 0, 0, 0, 195, 0, 0, 19, 214
"e:\Layou\src\laoyou_client\src\pages\share\share.vue", "Vue", 0, 0, 0, 228, 0, 0, 17, 245
"e:\Layou\src\laoyou_client\src\pages\share\videoShare.vue", "Vue", 0, 0, 0, 264, 0, 0, 18, 282
"e:\Layou\src\laoyou_client\src\pages\test\test.vue", "Vue", 0, 0, 0, 121, 0, 0, 9, 130
"e:\Layou\src\laoyou_client\src\pages\verify\face-login.vue", "Vue", 0, 0, 0, 133, 0, 0, 12, 145
"e:\Layou\src\laoyou_client\src\pages\verify\login.vue", "Vue", 0, 0, 0, 157, 0, 0, 17, 174
"e:\Layou\src\laoyou_client\src\pages\weather\weather.vue", "Vue", 0, 0, 0, 5, 0, 0, 3, 8
"e:\Layou\src\laoyou_client\src\shime-uni.d.ts", "TypeScript", 0, 0, 0, 0, 5, 0, 1, 6
"e:\Layou\src\laoyou_client\src\static\css\var.scss", "SCSS", 0, 0, 4, 0, 0, 0, 1, 5
"e:\Layou\src\laoyou_client\src\store\index.js", "JavaScript", 7, 0, 0, 0, 0, 0, 1, 8
"e:\Layou\src\laoyou_client\src\store\modules\comment\comment.js", "JavaScript", 162, 0, 0, 0, 0, 17, 13, 192
"e:\Layou\src\laoyou_client\src\store\modules\comment\index.js", "JavaScript", 1, 0, 0, 0, 0, 0, 1, 2
"e:\Layou\src\laoyou_client\src\store\modules\common\common.js", "JavaScript", 17, 0, 0, 0, 0, 2, 5, 24
"e:\Layou\src\laoyou_client\src\store\modules\common\index.js", "JavaScript", 1, 0, 0, 0, 0, 0, 0, 1
"e:\Layou\src\laoyou_client\src\store\modules\home\home.js", "JavaScript", 4, 0, 0, 0, 0, 0, 2, 6
"e:\Layou\src\laoyou_client\src\store\modules\home\index.js", "JavaScript", 1, 0, 0, 0, 0, 0, 1, 2
"e:\Layou\src\laoyou_client\src\store\modules\post\index.js", "JavaScript", 1, 0, 0, 0, 0, 0, 1, 2
"e:\Layou\src\laoyou_client\src\store\modules\post\post.js", "JavaScript", 46, 0, 0, 0, 0, 2, 7, 55
"e:\Layou\src\laoyou_client\src\store\modules\share\commonShare.js", "JavaScript", 129, 0, 0, 0, 0, 5, 15, 149
"e:\Layou\src\laoyou_client\src\store\modules\share\index.js", "JavaScript", 2, 0, 0, 0, 0, 0, 1, 3
"e:\Layou\src\laoyou_client\src\store\modules\share\videoShare.js", "JavaScript", 34, 0, 0, 0, 0, 5, 8, 47
"e:\Layou\src\laoyou_client\src\store\modules\toast\index.js", "JavaScript", 1, 0, 0, 0, 0, 0, 0, 1
"e:\Layou\src\laoyou_client\src\store\modules\toast\toast.js", "JavaScript", 14, 0, 0, 0, 0, 0, 2, 16
"e:\Layou\src\laoyou_client\src\store\modules\user\index.js", "JavaScript", 1, 0, 0, 0, 0, 0, 1, 2
"e:\Layou\src\laoyou_client\src\store\modules\user\user.js", "JavaScript", 309, 0, 0, 0, 0, 53, 27, 389
"e:\Layou\src\laoyou_client\src\utils\api\api.js", "JavaScript", 7, 0, 0, 0, 0, 2, 3, 12
"e:\Layou\src\laoyou_client\src\utils\api\base.js", "JavaScript", 68, 0, 0, 0, 0, 0, 5, 73
"e:\Layou\src\laoyou_client\src\utils\api\comment.js", "JavaScript", 40, 0, 0, 0, 0, 4, 4, 48
"e:\Layou\src\laoyou_client\src\utils\api\face.js", "JavaScript", 7, 0, 0, 0, 0, 2, 3, 12
"e:\Layou\src\laoyou_client\src\utils\api\like.js", "JavaScript", 18, 0, 0, 0, 0, 2, 3, 23
"e:\Layou\src\laoyou_client\src\utils\api\post.js", "JavaScript", 24, 0, 0, 0, 0, 36, 3, 63
"e:\Layou\src\laoyou_client\src\utils\api\upload.js", "JavaScript", 36, 0, 0, 0, 0, 1, 5, 42
"e:\Layou\src\laoyou_client\src\utils\api\user.js", "JavaScript", 65, 0, 0, 0, 0, 5, 5, 75
"e:\Layou\src\laoyou_client\src\utils\config\constants.js", "JavaScript", 4, 0, 0, 0, 0, 4, 2, 10
"e:\Layou\src\laoyou_client\src\utils\config\http.js", "JavaScript", 2, 0, 0, 0, 0, 2, 2, 6
"e:\Layou\src\laoyou_client\src\utils\enum\auth.js", "JavaScript", 3, 0, 0, 0, 0, 0, 1, 4
"e:\Layou\src\laoyou_client\src\utils\enum\http.js", "JavaScript", 4, 0, 0, 0, 0, 0, 1, 5
"e:\Layou\src\laoyou_client\src\utils\fn\index.js", "JavaScript", 103, 0, 0, 0, 0, 68, 16, 187
"e:\Layou\src\laoyou_client\src\utils\fn\init.js", "JavaScript", 24, 0, 0, 0, 0, 5, 3, 32
"e:\Layou\src\laoyou_client\src\utils\fn\toast.js", "JavaScript", 37, 0, 0, 0, 0, 0, 4, 41
"Total", "-", 1184, 181, 59, 5740, 5, 275, 683, 8127
1 filename language JavaScript JSON SCSS Vue TypeScript comment blank total
2 e:\Layou\src\laoyou_client\src\App.vue Vue 0 0 0 11 0 0 2 13
3 e:\Layou\src\laoyou_client\src\component\block\customBlock.vue Vue 0 0 0 55 0 0 4 59
4 e:\Layou\src\laoyou_client\src\component\block\editBlock.vue Vue 0 0 0 37 0 0 6 43
5 e:\Layou\src\laoyou_client\src\component\box\closeBox.vue Vue 0 0 0 39 0 0 4 43
6 e:\Layou\src\laoyou_client\src\component\box\newbox.vue Vue 0 0 0 76 0 0 8 84
7 e:\Layou\src\laoyou_client\src\component\button\likeButton.vue Vue 0 0 0 86 0 0 9 95
8 e:\Layou\src\laoyou_client\src\component\button\smallButton.vue Vue 0 0 0 48 0 0 4 52
9 e:\Layou\src\laoyou_client\src\component\card\WideCommentCard.vue Vue 0 0 0 126 0 1 12 139
10 e:\Layou\src\laoyou_client\src\component\card\WideCommonShareCard..vue Vue 0 0 0 177 0 1 11 189
11 e:\Layou\src\laoyou_client\src\component\card\card.vue Vue 0 0 0 135 0 0 11 146
12 e:\Layou\src\laoyou_client\src\component\commentInput\commentInput.vue Vue 0 0 0 158 0 5 14 177
13 e:\Layou\src\laoyou_client\src\component\comments\commentDetail.vue Vue 0 0 0 115 0 0 13 128
14 e:\Layou\src\laoyou_client\src\component\comments\commentList.vue Vue 0 0 0 30 0 0 5 35
15 e:\Layou\src\laoyou_client\src\component\comments\comments.vue Vue 0 0 0 116 0 0 17 133
16 e:\Layou\src\laoyou_client\src\component\comments\footerComment.vue Vue 0 0 0 117 0 2 11 130
17 e:\Layou\src\laoyou_client\src\component\commitBox\commitBox.vue Vue 0 0 0 103 0 0 12 115
18 e:\Layou\src\laoyou_client\src\component\drawer\drawer.vue Vue 0 0 0 74 0 0 8 82
19 e:\Layou\src\laoyou_client\src\component\header\fade-header.vue Vue 0 0 0 97 0 0 12 109
20 e:\Layou\src\laoyou_client\src\component\header\header.vue Vue 0 0 0 79 0 0 7 86
21 e:\Layou\src\laoyou_client\src\component\lazyImg\lazyImg.vue Vue 0 0 0 84 0 0 5 89
22 e:\Layou\src\laoyou_client\src\component\loading\commonLoading.vue Vue 0 0 0 62 0 1 8 71
23 e:\Layou\src\laoyou_client\src\component\loading\loading_v2.vue Vue 0 0 0 66 0 1 11 78
24 e:\Layou\src\laoyou_client\src\component\other\scroll-footer.vue Vue 0 0 0 53 0 0 3 56
25 e:\Layou\src\laoyou_client\src\component\picker\mulPicker.vue Vue 0 0 0 170 0 0 15 185
26 e:\Layou\src\laoyou_client\src\component\picker\picker.vue Vue 0 0 0 130 0 5 15 150
27 e:\Layou\src\laoyou_client\src\component\toast\customToast.vue Vue 0 0 0 84 0 0 7 91
28 e:\Layou\src\laoyou_client\src\component\topTabBar\topTabBar.vue Vue 0 0 0 111 0 0 6 117
29 e:\Layou\src\laoyou_client\src\component\transiton\config.js JavaScript 1 0 0 0 0 0 0 1
30 e:\Layou\src\laoyou_client\src\component\transiton\fadeTransiton.vue Vue 0 0 0 75 0 0 7 82
31 e:\Layou\src\laoyou_client\src\global.scss SCSS 0 0 55 0 0 26 20 101
32 e:\Layou\src\laoyou_client\src\layouts\commonLayout.vue Vue 0 0 0 68 0 0 13 81
33 e:\Layou\src\laoyou_client\src\main.js JavaScript 11 0 0 0 0 1 3 15
34 e:\Layou\src\laoyou_client\src\manifest.json JSON 0 64 0 0 0 1 1 66
35 e:\Layou\src\laoyou_client\src\pages.json JSON 0 117 0 0 0 0 3 120
36 e:\Layou\src\laoyou_client\src\pages\function\function.vue Vue 0 0 0 269 0 7 20 296
37 e:\Layou\src\laoyou_client\src\pages\function\user-interaction.vue Vue 0 0 0 342 0 3 27 372
38 e:\Layou\src\laoyou_client\src\pages\health\health.vue Vue 0 0 0 289 0 2 12 303
39 e:\Layou\src\laoyou_client\src\pages\index\index.vue Vue 0 0 0 133 0 0 17 150
40 e:\Layou\src\laoyou_client\src\pages\learn\learn.vue Vue 0 0 0 111 0 0 13 124
41 e:\Layou\src\laoyou_client\src\pages\post\post.vue Vue 0 0 0 220 0 0 16 236
42 e:\Layou\src\laoyou_client\src\pages\post\postHeader.vue Vue 0 0 0 89 0 0 6 95
43 e:\Layou\src\laoyou_client\src\pages\setting\face-auth-setting.vue Vue 0 0 0 191 0 0 15 206
44 e:\Layou\src\laoyou_client\src\pages\setting\setting.vue Vue 0 0 0 75 0 0 11 86
45 e:\Layou\src\laoyou_client\src\pages\setting\userSetting.vue Vue 0 0 0 336 0 4 17 357
46 e:\Layou\src\laoyou_client\src\pages\share\commonShare.vue Vue 0 0 0 195 0 0 19 214
47 e:\Layou\src\laoyou_client\src\pages\share\share.vue Vue 0 0 0 228 0 0 17 245
48 e:\Layou\src\laoyou_client\src\pages\share\videoShare.vue Vue 0 0 0 264 0 0 18 282
49 e:\Layou\src\laoyou_client\src\pages\test\test.vue Vue 0 0 0 121 0 0 9 130
50 e:\Layou\src\laoyou_client\src\pages\verify\face-login.vue Vue 0 0 0 133 0 0 12 145
51 e:\Layou\src\laoyou_client\src\pages\verify\login.vue Vue 0 0 0 157 0 0 17 174
52 e:\Layou\src\laoyou_client\src\pages\weather\weather.vue Vue 0 0 0 5 0 0 3 8
53 e:\Layou\src\laoyou_client\src\shime-uni.d.ts TypeScript 0 0 0 0 5 0 1 6
54 e:\Layou\src\laoyou_client\src\static\css\var.scss SCSS 0 0 4 0 0 0 1 5
55 e:\Layou\src\laoyou_client\src\store\index.js JavaScript 7 0 0 0 0 0 1 8
56 e:\Layou\src\laoyou_client\src\store\modules\comment\comment.js JavaScript 162 0 0 0 0 17 13 192
57 e:\Layou\src\laoyou_client\src\store\modules\comment\index.js JavaScript 1 0 0 0 0 0 1 2
58 e:\Layou\src\laoyou_client\src\store\modules\common\common.js JavaScript 17 0 0 0 0 2 5 24
59 e:\Layou\src\laoyou_client\src\store\modules\common\index.js JavaScript 1 0 0 0 0 0 0 1
60 e:\Layou\src\laoyou_client\src\store\modules\home\home.js JavaScript 4 0 0 0 0 0 2 6
61 e:\Layou\src\laoyou_client\src\store\modules\home\index.js JavaScript 1 0 0 0 0 0 1 2
62 e:\Layou\src\laoyou_client\src\store\modules\post\index.js JavaScript 1 0 0 0 0 0 1 2
63 e:\Layou\src\laoyou_client\src\store\modules\post\post.js JavaScript 46 0 0 0 0 2 7 55
64 e:\Layou\src\laoyou_client\src\store\modules\share\commonShare.js JavaScript 129 0 0 0 0 5 15 149
65 e:\Layou\src\laoyou_client\src\store\modules\share\index.js JavaScript 2 0 0 0 0 0 1 3
66 e:\Layou\src\laoyou_client\src\store\modules\share\videoShare.js JavaScript 34 0 0 0 0 5 8 47
67 e:\Layou\src\laoyou_client\src\store\modules\toast\index.js JavaScript 1 0 0 0 0 0 0 1
68 e:\Layou\src\laoyou_client\src\store\modules\toast\toast.js JavaScript 14 0 0 0 0 0 2 16
69 e:\Layou\src\laoyou_client\src\store\modules\user\index.js JavaScript 1 0 0 0 0 0 1 2
70 e:\Layou\src\laoyou_client\src\store\modules\user\user.js JavaScript 309 0 0 0 0 53 27 389
71 e:\Layou\src\laoyou_client\src\utils\api\api.js JavaScript 7 0 0 0 0 2 3 12
72 e:\Layou\src\laoyou_client\src\utils\api\base.js JavaScript 68 0 0 0 0 0 5 73
73 e:\Layou\src\laoyou_client\src\utils\api\comment.js JavaScript 40 0 0 0 0 4 4 48
74 e:\Layou\src\laoyou_client\src\utils\api\face.js JavaScript 7 0 0 0 0 2 3 12
75 e:\Layou\src\laoyou_client\src\utils\api\like.js JavaScript 18 0 0 0 0 2 3 23
76 e:\Layou\src\laoyou_client\src\utils\api\post.js JavaScript 24 0 0 0 0 36 3 63
77 e:\Layou\src\laoyou_client\src\utils\api\upload.js JavaScript 36 0 0 0 0 1 5 42
78 e:\Layou\src\laoyou_client\src\utils\api\user.js JavaScript 65 0 0 0 0 5 5 75
79 e:\Layou\src\laoyou_client\src\utils\config\constants.js JavaScript 4 0 0 0 0 4 2 10
80 e:\Layou\src\laoyou_client\src\utils\config\http.js JavaScript 2 0 0 0 0 2 2 6
81 e:\Layou\src\laoyou_client\src\utils\enum\auth.js JavaScript 3 0 0 0 0 0 1 4
82 e:\Layou\src\laoyou_client\src\utils\enum\http.js JavaScript 4 0 0 0 0 0 1 5
83 e:\Layou\src\laoyou_client\src\utils\fn\index.js JavaScript 103 0 0 0 0 68 16 187
84 e:\Layou\src\laoyou_client\src\utils\fn\init.js JavaScript 24 0 0 0 0 5 3 32
85 e:\Layou\src\laoyou_client\src\utils\fn\toast.js JavaScript 37 0 0 0 0 0 4 41
86 Total - 1184 181 59 5740 5 275 683 8127

File diff suppressed because one or more lines are too long

@ -0,0 +1,72 @@
# Summary
Date : 2023-10-27 23:42:28
Directory e:\\Layou\\src\\laoyou_client\\src
Total : 84 files, 7169 codes, 275 comments, 683 blanks, all 8127 lines
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| Vue | 46 | 5,740 | 32 | 509 | 6,281 |
| JavaScript | 33 | 1,184 | 216 | 148 | 1,548 |
| JSON | 2 | 181 | 1 | 4 | 186 |
| SCSS | 2 | 59 | 26 | 21 | 106 |
| TypeScript | 1 | 5 | 0 | 1 | 6 |
## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 84 | 7,169 | 275 | 683 | 8,127 |
| . (Files) | 6 | 263 | 28 | 30 | 321 |
| component | 28 | 2,504 | 16 | 245 | 2,765 |
| component\\block | 2 | 92 | 0 | 10 | 102 |
| component\\box | 2 | 115 | 0 | 12 | 127 |
| component\\button | 2 | 134 | 0 | 13 | 147 |
| component\\card | 3 | 438 | 2 | 34 | 474 |
| component\\commentInput | 1 | 158 | 5 | 14 | 177 |
| component\\comments | 4 | 378 | 2 | 46 | 426 |
| component\\commitBox | 1 | 103 | 0 | 12 | 115 |
| component\\drawer | 1 | 74 | 0 | 8 | 82 |
| component\\header | 2 | 176 | 0 | 19 | 195 |
| component\\lazyImg | 1 | 84 | 0 | 5 | 89 |
| component\\loading | 2 | 128 | 2 | 19 | 149 |
| component\\other | 1 | 53 | 0 | 3 | 56 |
| component\\picker | 2 | 300 | 5 | 30 | 335 |
| component\\toast | 1 | 84 | 0 | 7 | 91 |
| component\\topTabBar | 1 | 111 | 0 | 6 | 117 |
| component\\transiton | 2 | 76 | 0 | 7 | 83 |
| layouts | 1 | 68 | 0 | 13 | 81 |
| pages | 17 | 3,158 | 16 | 249 | 3,423 |
| pages\\function | 2 | 611 | 10 | 47 | 668 |
| pages\\health | 1 | 289 | 2 | 12 | 303 |
| pages\\index | 1 | 133 | 0 | 17 | 150 |
| pages\\learn | 1 | 111 | 0 | 13 | 124 |
| pages\\post | 2 | 309 | 0 | 22 | 331 |
| pages\\setting | 3 | 602 | 4 | 43 | 649 |
| pages\\share | 3 | 687 | 0 | 54 | 741 |
| pages\\test | 1 | 121 | 0 | 9 | 130 |
| pages\\verify | 2 | 290 | 0 | 29 | 319 |
| pages\\weather | 1 | 5 | 0 | 3 | 8 |
| static | 1 | 4 | 0 | 1 | 5 |
| static\\css | 1 | 4 | 0 | 1 | 5 |
| store | 16 | 730 | 84 | 85 | 899 |
| store (Files) | 1 | 7 | 0 | 1 | 8 |
| store\\modules | 15 | 723 | 84 | 84 | 891 |
| store\\modules\\comment | 2 | 163 | 17 | 14 | 194 |
| store\\modules\\common | 2 | 18 | 2 | 5 | 25 |
| store\\modules\\home | 2 | 5 | 0 | 3 | 8 |
| store\\modules\\post | 2 | 47 | 2 | 8 | 57 |
| store\\modules\\share | 3 | 165 | 10 | 24 | 199 |
| store\\modules\\toast | 2 | 15 | 0 | 2 | 17 |
| store\\modules\\user | 2 | 310 | 53 | 28 | 391 |
| utils | 15 | 442 | 131 | 60 | 633 |
| utils\\api | 8 | 265 | 52 | 31 | 348 |
| utils\\config | 2 | 6 | 6 | 4 | 16 |
| utils\\enum | 2 | 7 | 0 | 2 | 9 |
| utils\\fn | 3 | 164 | 73 | 23 | 260 |
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

@ -0,0 +1,159 @@
Date : 2023-10-27 23:42:28
Directory : e:\Layou\src\laoyou_client\src
Total : 84 files, 7169 codes, 275 comments, 683 blanks, all 8127 lines
Languages
+------------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+------------+------------+------------+------------+------------+------------+
| Vue | 46 | 5,740 | 32 | 509 | 6,281 |
| JavaScript | 33 | 1,184 | 216 | 148 | 1,548 |
| JSON | 2 | 181 | 1 | 4 | 186 |
| SCSS | 2 | 59 | 26 | 21 | 106 |
| TypeScript | 1 | 5 | 0 | 1 | 6 |
+------------+------------+------------+------------+------------+------------+
Directories
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 84 | 7,169 | 275 | 683 | 8,127 |
| . (Files) | 6 | 263 | 28 | 30 | 321 |
| component | 28 | 2,504 | 16 | 245 | 2,765 |
| component\block | 2 | 92 | 0 | 10 | 102 |
| component\box | 2 | 115 | 0 | 12 | 127 |
| component\button | 2 | 134 | 0 | 13 | 147 |
| component\card | 3 | 438 | 2 | 34 | 474 |
| component\commentInput | 1 | 158 | 5 | 14 | 177 |
| component\comments | 4 | 378 | 2 | 46 | 426 |
| component\commitBox | 1 | 103 | 0 | 12 | 115 |
| component\drawer | 1 | 74 | 0 | 8 | 82 |
| component\header | 2 | 176 | 0 | 19 | 195 |
| component\lazyImg | 1 | 84 | 0 | 5 | 89 |
| component\loading | 2 | 128 | 2 | 19 | 149 |
| component\other | 1 | 53 | 0 | 3 | 56 |
| component\picker | 2 | 300 | 5 | 30 | 335 |
| component\toast | 1 | 84 | 0 | 7 | 91 |
| component\topTabBar | 1 | 111 | 0 | 6 | 117 |
| component\transiton | 2 | 76 | 0 | 7 | 83 |
| layouts | 1 | 68 | 0 | 13 | 81 |
| pages | 17 | 3,158 | 16 | 249 | 3,423 |
| pages\function | 2 | 611 | 10 | 47 | 668 |
| pages\health | 1 | 289 | 2 | 12 | 303 |
| pages\index | 1 | 133 | 0 | 17 | 150 |
| pages\learn | 1 | 111 | 0 | 13 | 124 |
| pages\post | 2 | 309 | 0 | 22 | 331 |
| pages\setting | 3 | 602 | 4 | 43 | 649 |
| pages\share | 3 | 687 | 0 | 54 | 741 |
| pages\test | 1 | 121 | 0 | 9 | 130 |
| pages\verify | 2 | 290 | 0 | 29 | 319 |
| pages\weather | 1 | 5 | 0 | 3 | 8 |
| static | 1 | 4 | 0 | 1 | 5 |
| static\css | 1 | 4 | 0 | 1 | 5 |
| store | 16 | 730 | 84 | 85 | 899 |
| store (Files) | 1 | 7 | 0 | 1 | 8 |
| store\modules | 15 | 723 | 84 | 84 | 891 |
| store\modules\comment | 2 | 163 | 17 | 14 | 194 |
| store\modules\common | 2 | 18 | 2 | 5 | 25 |
| store\modules\home | 2 | 5 | 0 | 3 | 8 |
| store\modules\post | 2 | 47 | 2 | 8 | 57 |
| store\modules\share | 3 | 165 | 10 | 24 | 199 |
| store\modules\toast | 2 | 15 | 0 | 2 | 17 |
| store\modules\user | 2 | 310 | 53 | 28 | 391 |
| utils | 15 | 442 | 131 | 60 | 633 |
| utils\api | 8 | 265 | 52 | 31 | 348 |
| utils\config | 2 | 6 | 6 | 4 | 16 |
| utils\enum | 2 | 7 | 0 | 2 | 9 |
| utils\fn | 3 | 164 | 73 | 23 | 260 |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| e:\Layou\src\laoyou_client\src\App.vue | Vue | 11 | 0 | 2 | 13 |
| e:\Layou\src\laoyou_client\src\component\block\customBlock.vue | Vue | 55 | 0 | 4 | 59 |
| e:\Layou\src\laoyou_client\src\component\block\editBlock.vue | Vue | 37 | 0 | 6 | 43 |
| e:\Layou\src\laoyou_client\src\component\box\closeBox.vue | Vue | 39 | 0 | 4 | 43 |
| e:\Layou\src\laoyou_client\src\component\box\newbox.vue | Vue | 76 | 0 | 8 | 84 |
| e:\Layou\src\laoyou_client\src\component\button\likeButton.vue | Vue | 86 | 0 | 9 | 95 |
| e:\Layou\src\laoyou_client\src\component\button\smallButton.vue | Vue | 48 | 0 | 4 | 52 |
| e:\Layou\src\laoyou_client\src\component\card\WideCommentCard.vue | Vue | 126 | 1 | 12 | 139 |
| e:\Layou\src\laoyou_client\src\component\card\WideCommonShareCard..vue | Vue | 177 | 1 | 11 | 189 |
| e:\Layou\src\laoyou_client\src\component\card\card.vue | Vue | 135 | 0 | 11 | 146 |
| e:\Layou\src\laoyou_client\src\component\commentInput\commentInput.vue | Vue | 158 | 5 | 14 | 177 |
| e:\Layou\src\laoyou_client\src\component\comments\commentDetail.vue | Vue | 115 | 0 | 13 | 128 |
| e:\Layou\src\laoyou_client\src\component\comments\commentList.vue | Vue | 30 | 0 | 5 | 35 |
| e:\Layou\src\laoyou_client\src\component\comments\comments.vue | Vue | 116 | 0 | 17 | 133 |
| e:\Layou\src\laoyou_client\src\component\comments\footerComment.vue | Vue | 117 | 2 | 11 | 130 |
| e:\Layou\src\laoyou_client\src\component\commitBox\commitBox.vue | Vue | 103 | 0 | 12 | 115 |
| e:\Layou\src\laoyou_client\src\component\drawer\drawer.vue | Vue | 74 | 0 | 8 | 82 |
| e:\Layou\src\laoyou_client\src\component\header\fade-header.vue | Vue | 97 | 0 | 12 | 109 |
| e:\Layou\src\laoyou_client\src\component\header\header.vue | Vue | 79 | 0 | 7 | 86 |
| e:\Layou\src\laoyou_client\src\component\lazyImg\lazyImg.vue | Vue | 84 | 0 | 5 | 89 |
| e:\Layou\src\laoyou_client\src\component\loading\commonLoading.vue | Vue | 62 | 1 | 8 | 71 |
| e:\Layou\src\laoyou_client\src\component\loading\loading_v2.vue | Vue | 66 | 1 | 11 | 78 |
| e:\Layou\src\laoyou_client\src\component\other\scroll-footer.vue | Vue | 53 | 0 | 3 | 56 |
| e:\Layou\src\laoyou_client\src\component\picker\mulPicker.vue | Vue | 170 | 0 | 15 | 185 |
| e:\Layou\src\laoyou_client\src\component\picker\picker.vue | Vue | 130 | 5 | 15 | 150 |
| e:\Layou\src\laoyou_client\src\component\toast\customToast.vue | Vue | 84 | 0 | 7 | 91 |
| e:\Layou\src\laoyou_client\src\component\topTabBar\topTabBar.vue | Vue | 111 | 0 | 6 | 117 |
| e:\Layou\src\laoyou_client\src\component\transiton\config.js | JavaScript | 1 | 0 | 0 | 1 |
| e:\Layou\src\laoyou_client\src\component\transiton\fadeTransiton.vue | Vue | 75 | 0 | 7 | 82 |
| e:\Layou\src\laoyou_client\src\global.scss | SCSS | 55 | 26 | 20 | 101 |
| e:\Layou\src\laoyou_client\src\layouts\commonLayout.vue | Vue | 68 | 0 | 13 | 81 |
| e:\Layou\src\laoyou_client\src\main.js | JavaScript | 11 | 1 | 3 | 15 |
| e:\Layou\src\laoyou_client\src\manifest.json | JSON | 64 | 1 | 1 | 66 |
| e:\Layou\src\laoyou_client\src\pages.json | JSON | 117 | 0 | 3 | 120 |
| e:\Layou\src\laoyou_client\src\pages\function\function.vue | Vue | 269 | 7 | 20 | 296 |
| e:\Layou\src\laoyou_client\src\pages\function\user-interaction.vue | Vue | 342 | 3 | 27 | 372 |
| e:\Layou\src\laoyou_client\src\pages\health\health.vue | Vue | 289 | 2 | 12 | 303 |
| e:\Layou\src\laoyou_client\src\pages\index\index.vue | Vue | 133 | 0 | 17 | 150 |
| e:\Layou\src\laoyou_client\src\pages\learn\learn.vue | Vue | 111 | 0 | 13 | 124 |
| e:\Layou\src\laoyou_client\src\pages\post\post.vue | Vue | 220 | 0 | 16 | 236 |
| e:\Layou\src\laoyou_client\src\pages\post\postHeader.vue | Vue | 89 | 0 | 6 | 95 |
| e:\Layou\src\laoyou_client\src\pages\setting\face-auth-setting.vue | Vue | 191 | 0 | 15 | 206 |
| e:\Layou\src\laoyou_client\src\pages\setting\setting.vue | Vue | 75 | 0 | 11 | 86 |
| e:\Layou\src\laoyou_client\src\pages\setting\userSetting.vue | Vue | 336 | 4 | 17 | 357 |
| e:\Layou\src\laoyou_client\src\pages\share\commonShare.vue | Vue | 195 | 0 | 19 | 214 |
| e:\Layou\src\laoyou_client\src\pages\share\share.vue | Vue | 228 | 0 | 17 | 245 |
| e:\Layou\src\laoyou_client\src\pages\share\videoShare.vue | Vue | 264 | 0 | 18 | 282 |
| e:\Layou\src\laoyou_client\src\pages\test\test.vue | Vue | 121 | 0 | 9 | 130 |
| e:\Layou\src\laoyou_client\src\pages\verify\face-login.vue | Vue | 133 | 0 | 12 | 145 |
| e:\Layou\src\laoyou_client\src\pages\verify\login.vue | Vue | 157 | 0 | 17 | 174 |
| e:\Layou\src\laoyou_client\src\pages\weather\weather.vue | Vue | 5 | 0 | 3 | 8 |
| e:\Layou\src\laoyou_client\src\shime-uni.d.ts | TypeScript | 5 | 0 | 1 | 6 |
| e:\Layou\src\laoyou_client\src\static\css\var.scss | SCSS | 4 | 0 | 1 | 5 |
| e:\Layou\src\laoyou_client\src\store\index.js | JavaScript | 7 | 0 | 1 | 8 |
| e:\Layou\src\laoyou_client\src\store\modules\comment\comment.js | JavaScript | 162 | 17 | 13 | 192 |
| e:\Layou\src\laoyou_client\src\store\modules\comment\index.js | JavaScript | 1 | 0 | 1 | 2 |
| e:\Layou\src\laoyou_client\src\store\modules\common\common.js | JavaScript | 17 | 2 | 5 | 24 |
| e:\Layou\src\laoyou_client\src\store\modules\common\index.js | JavaScript | 1 | 0 | 0 | 1 |
| e:\Layou\src\laoyou_client\src\store\modules\home\home.js | JavaScript | 4 | 0 | 2 | 6 |
| e:\Layou\src\laoyou_client\src\store\modules\home\index.js | JavaScript | 1 | 0 | 1 | 2 |
| e:\Layou\src\laoyou_client\src\store\modules\post\index.js | JavaScript | 1 | 0 | 1 | 2 |
| e:\Layou\src\laoyou_client\src\store\modules\post\post.js | JavaScript | 46 | 2 | 7 | 55 |
| e:\Layou\src\laoyou_client\src\store\modules\share\commonShare.js | JavaScript | 129 | 5 | 15 | 149 |
| e:\Layou\src\laoyou_client\src\store\modules\share\index.js | JavaScript | 2 | 0 | 1 | 3 |
| e:\Layou\src\laoyou_client\src\store\modules\share\videoShare.js | JavaScript | 34 | 5 | 8 | 47 |
| e:\Layou\src\laoyou_client\src\store\modules\toast\index.js | JavaScript | 1 | 0 | 0 | 1 |
| e:\Layou\src\laoyou_client\src\store\modules\toast\toast.js | JavaScript | 14 | 0 | 2 | 16 |
| e:\Layou\src\laoyou_client\src\store\modules\user\index.js | JavaScript | 1 | 0 | 1 | 2 |
| e:\Layou\src\laoyou_client\src\store\modules\user\user.js | JavaScript | 309 | 53 | 27 | 389 |
| e:\Layou\src\laoyou_client\src\utils\api\api.js | JavaScript | 7 | 2 | 3 | 12 |
| e:\Layou\src\laoyou_client\src\utils\api\base.js | JavaScript | 68 | 0 | 5 | 73 |
| e:\Layou\src\laoyou_client\src\utils\api\comment.js | JavaScript | 40 | 4 | 4 | 48 |
| e:\Layou\src\laoyou_client\src\utils\api\face.js | JavaScript | 7 | 2 | 3 | 12 |
| e:\Layou\src\laoyou_client\src\utils\api\like.js | JavaScript | 18 | 2 | 3 | 23 |
| e:\Layou\src\laoyou_client\src\utils\api\post.js | JavaScript | 24 | 36 | 3 | 63 |
| e:\Layou\src\laoyou_client\src\utils\api\upload.js | JavaScript | 36 | 1 | 5 | 42 |
| e:\Layou\src\laoyou_client\src\utils\api\user.js | JavaScript | 65 | 5 | 5 | 75 |
| e:\Layou\src\laoyou_client\src\utils\config\constants.js | JavaScript | 4 | 4 | 2 | 10 |
| e:\Layou\src\laoyou_client\src\utils\config\http.js | JavaScript | 2 | 2 | 2 | 6 |
| e:\Layou\src\laoyou_client\src\utils\enum\auth.js | JavaScript | 3 | 0 | 1 | 4 |
| e:\Layou\src\laoyou_client\src\utils\enum\http.js | JavaScript | 4 | 0 | 1 | 5 |
| e:\Layou\src\laoyou_client\src\utils\fn\index.js | JavaScript | 103 | 68 | 16 | 187 |
| e:\Layou\src\laoyou_client\src\utils\fn\init.js | JavaScript | 24 | 5 | 3 | 32 |
| e:\Layou\src\laoyou_client\src\utils\fn\toast.js | JavaScript | 37 | 0 | 4 | 41 |
| Total | | 7,169 | 275 | 683 | 8,127 |
+------------------------------------------------------------------------+------------+------------+------------+------------+------------+

@ -32,7 +32,6 @@ const props = defineProps({
display: grid;
grid-template-columns: 1fr max-content;
align-items: center;
border-bottom: 1px solid #eee;
.icon {
width: 30px;

@ -7,24 +7,25 @@
}
},
{
"path": "pages/setting/face-auth-setting",
"path": "pages/setting/setting",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/test/test",
"path": "pages/setting/face-auth-setting",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/setting/setting",
"path": "pages/test/test",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/verify/login",
"style": {

@ -32,7 +32,7 @@ import CommonLayout from "../../layouts/commonLayout.vue";
import CToast from "../../utils/fn/toast";
import { storeToRefs } from "pinia";
import { useUserStore } from "../../store";
import { useUserStore, useCommonStore } from "../../store";
import { updateUserFaceToken } from "../../utils/api/user";
import { faceRegister } from "../../utils/api/face";
import { httpStatus } from "../../utils/enum/http";
@ -42,7 +42,9 @@ import { uploadFace } from "../../utils/api/upload";
// -------------------- S T O R E -------------------- //
const userStore = useUserStore();
const commonStore = useCommonStore();
const { face_auth_status } = storeToRefs(userStore);
const { show_loading } = storeToRefs(commonStore);
// ------------------- C I R C L E ------------------- //
@ -53,38 +55,106 @@ onReady(() => {
// ----------------- F U N C T I O N ----------------- //
const open_face_auth = () => {
uni.chooseImage({
count: 1,
sizeType: ["original", "compressed"],
sourceType: ["camera"], //cameraalbum
extension: ["jpg", "png", "webp"],
success: (res) => {
if (res.errMsg !== "chooseImage:ok") {
CToast.error("获取照片失败");
return;
}
uploadFace({
filePath: res.tempFiles[0].path,
type: "face",
}).then((res) => {
console.log(res);
if (res.statusCode === httpStatus.POST) {
const face_url = res.data;
setTimeout(() => {
console.log(face_url);
faceRegister({
face_url,
}).then((res) => {
console.log("faceRegister:", res);
});
}, 2000);
} else {
CToast.error("上传失败");
}
// const open_face_auth = () => {
// uni.chooseImage({
// count: 1,
// sizeType: ["original", "compressed"],
// sourceType: ["camera"], //cameraalbum
// extension: ["jpg", "png", "webp"],
// success: (res) => {
// if (res.errMsg !== "chooseImage:ok") {
// CToast.error("");
// return;
// }
// show_loading.value = true;
// //
// uploadFace({
// filePath: res.tempFiles[0].path,
// type: "face",
// })
// .then((res) => {
// if (res.statusCode === httpStatus.POST) {
// //
// const face_url = res.data;
// setTimeout(() => {
// console.log(face_url);
// faceRegister({
// face_url,
// })
// .then((res) => {
// const user_cache = uni.getStorageSync(Auth.USER_TOKEN).data
// .user;
// user_cache.face_auth_status = true;
// face_auth_status.value = true;
// uni.setStorageSync(Auth.USER_TOKEN, user_cache);
// console.log("faceRegister:", res);
// show_loading.value = false;
// })
// .catch((err) => {
// console.log(err);
// show_loading.value = false;
// CToast.error("");
// });
// }, 2000);
// } else {
// //
// show_loading.value = false;
// console.log(res);
// CToast.error("");
// }
// })
// .catch((err) => {
// show_loading.value = false;
// console.log(err);
// CToast.error("");
// });
// },
// });
// };
const open_face_auth = async () => {
try {
const res = await uni.chooseImage({
count: 1,
sizeType: ["original", "compressed"],
sourceType: ["camera"],
extension: ["jpg", "png", "webp"],
});
if (res.errMsg !== "chooseImage:ok") {
CToast.error("获取照片失败");
return;
}
// show_loading.value = true;
const uploadResponse = await uploadFace({
filePath: res.tempFiles[0].path,
type: "face",
});
// console.log(uploadResponse);
if (uploadResponse.statusCode === httpStatus.POST) {
const face_url = uploadResponse.data;
console.log(face_url);
const registerResponse = await faceRegister({
face_url,
});
},
});
const user_cache = uni.getStorageSync(Auth.USER_TOKEN).data.user;
user_cache.face_auth_status = true;
face_auth_status.value = true;
uni.setStorageSync(Auth.USER_TOKEN, user_cache);
console.log("faceRegister:", registerResponse);
} else {
show_loading.value = false;
console.log(uploadResponse);
CToast.error("上传失败");
}
} catch (error) {
show_loading.value = false;
console.log(error);
CToast.error("人脸识别开启失败");
}
};
</script>

@ -2,21 +2,24 @@
<CommonLayout>
<view class="main-content">
<Header title="设置"></Header>
<EditBlock
:click="
() => linkTo('/pages/setting/userSetting', false, user_is_login)
"
>
<view class="edit-slot"> 编辑个人资料 </view>
</EditBlock>
<view class="edit-list">
<EditBlock
:click="
() => linkTo('/pages/setting/userSetting', false, user_is_login)
"
>
<view class="edit-slot"> 编辑个人资料 </view>
</EditBlock>
<EditBlock
:click="
() => linkTo('/pages/setting/face-auth-setting', false, user_is_login)
"
>
<view class="edit-slot"> 人脸识别 </view>
</EditBlock>
<EditBlock
:click="
() =>
linkTo('/pages/setting/face-auth-setting', false, user_is_login)
"
>
<view class="edit-slot"> 人脸识别 </view>
</EditBlock>
</view>
<button class="btn-logout" @click="login_out">退</button>
</view>
@ -61,7 +64,12 @@ const login_out = () => {
box-sizing: border-box;
background-color: #f4f4f4;
display: grid;
grid-template-rows: 10vh;
grid-template-rows: max-content 1fr max-content;
.edit-list {
margin-top: 3vh;
display: grid;
grid-template-rows: repeat(auto-fit, 8vh);
}
.edit-user {
box-sizing: border-box;

@ -1,3 +1,7 @@
export const Auth = {
USER_TOKEN: "user_token",
};
export const face_register = {
223105: "人脸已经存在",
};

Loading…
Cancel
Save