Browse Source

debug

pull/19/head
zyronon 4 years ago
parent
commit
6d701afe99
  1. 608
      src/assets/data/resource.js
  2. 4
      src/components/Scroll.vue
  3. 4
      src/components/Share.vue
  4. 2
      src/components/dialog/ConfirmDialog.vue
  5. 7
      src/mock/index.js
  6. 47
      src/pages/home/Report.vue
  7. 17
      src/pages/home/SubmitReport.vue
  8. 2
      src/pages/home/components/FollowSetting.vue
  9. 2
      src/pages/me/MyRequestUpdate.vue
  10. 15
      src/pages/message/Share2Friend.vue
  11. 81
      src/pages/message/chat/ChatDetail.vue
  12. 71
      src/pages/people/components/People.vue
  13. 6
      src/router/routes.js
  14. 578
      src/store/index.js
  15. 8
      src/utils/const_var.js
  16. 9
      src/utils/mixin.js

608
src/assets/data/resource.js

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
import enums from "../../utils/enums";
import CONST_VAR from "../../utils/const_var";
export default {
videos: [
@ -14441,12 +14442,581 @@ export default { @@ -14441,12 +14442,581 @@ export default {
"music": null
},
],
users: [],
users:{
"all": [
{
"id": "224e9a00-ffa0-4bc1-bb07-c318c7b02fa5",
"avatar": new URL('../../assets/img/icon/avatar/1.png', import.meta.url).href,
"name": "何以为家",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "234",
"pinyin": "H",
"select": false,
type: CONST_VAR.RELATE_ENUM.REQUEST_FOLLOW
},
{
"id": "2b446aa8-5d31-429a-8e39-d4705eb4e900",
"avatar": new URL('../../assets/img/icon/avatar/19.png', import.meta.url).href,
"name": "浅唱↘我们的歌",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "33453",
"pinyin": "Q",
"select": false,
type: CONST_VAR.RELATE_ENUM.FOLLOW_ME
},
{
"id": "2d8622b4-7112-4bc7-a0cf-00a268a85504",
"avatar": new URL('../../assets/img/icon/avatar/25.png', import.meta.url).href,
"name": "‘心’之天空",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "234234",
"pinyin": "#",
"select": false,
type: CONST_VAR.RELATE_ENUM.FOLLOW_HE
},
{
"id": "2e38900b-65f7-426a-8e8b-edb403df35fb",
"avatar": new URL('../../assets/img/icon/avatar/18.png', import.meta.url).href,
"name": "◇、_保持微笑ゞ",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "1111",
"pinyin": "#",
"select": false,
type: CONST_VAR.RELATE_ENUM.FOLLOW_EACH_OTHER
},
{
"id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73",
"avatar": new URL('../../assets/img/icon/avatar/26.png', import.meta.url).href,
"name": "好◇°我会Yi直在●",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sdfs",
"pinyin": "H",
"select": false
},
{
"id": "46c77017-9dc6-4a48-bf96-560c6e7db06f",
"avatar": new URL('../../assets/img/icon/avatar/4.png', import.meta.url).href,
"name": "甫韦茹",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "dgfdfg",
"pinyin": "F",
"select": false
},
{
"id": "4df770d7-a414-4e02-8f9e-72ebd87eb93e",
"avatar": new URL('../../assets/img/icon/avatar/12.png', import.meta.url).href,
"name": "幸福泡泡",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "df",
"pinyin": "X",
"select": false
},
{
"id": "5ebb4d7a-c7ad-43c7-a830-9eb3ee423cb7",
"avatar": new URL('../../assets/img/icon/avatar/3.png', import.meta.url).href,
"name": "蔡傲安",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "ssss",
"pinyin": "C",
"select": false
},
{
"id": "7226092d-a2c5-4ffd-98d7-3b7ac814bca3",
"avatar": new URL('../../assets/img/icon/avatar/16.png', import.meta.url).href,
"name": "心若向阳无谓伤悲",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "asdfasd",
"pinyin": "X",
"select": false
},
{
"id": "72aef2a9-5573-4205-9288-706e19bccc7f",
"avatar": new URL('../../assets/img/icon/avatar/10.png', import.meta.url).href,
"name": "A倒影着稚嫩的少年",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "wfghdf",
"pinyin": "#",
"select": false
},
{
"id": "77c82d2e-9be1-45c2-a733-00445d2e7f2c",
"avatar": new URL('../../assets/img/icon/avatar/22.png', import.meta.url).href,
"name": "一只喵的旅行。",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sadf",
"pinyin": "Y",
"select": false
},
{
"id": "7b30566d-70eb-4a31-ae43-200917269a43",
"avatar": new URL('../../assets/img/icon/avatar/14.png', import.meta.url).href,
"name": "℉阳光下的小情绪",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "asdfa",
"pinyin": "#",
"select": false
},
{
"id": "90c6ccd8-0653-4789-9348-28fba06d6ae3",
"avatar": new URL('../../assets/img/icon/avatar/11.png', import.meta.url).href,
"name": "思念一直在",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "as",
"pinyin": "S",
"select": false
},
{
"id": "a2c1310f-1a3c-430f-9b7c-557b9ccdd33d",
"avatar": new URL('../../assets/img/icon/avatar/9.png', import.meta.url).href,
"name": "阎韶丽",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "vbvd",
"pinyin": "Y",
"select": false
},
{
"id": "a7443b4f-b0fa-4409-a693-5f090aa763ee",
"avatar": new URL('../../assets/img/icon/avatar/5.png', import.meta.url).href,
"name": "马佳婉清",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sdf",
"pinyin": "M",
"select": false
},
{
"id": "b49fd828-f8a7-4be0-a3bc-0a8fa312b2e8",
"avatar": new URL('../../assets/img/icon/avatar/0.png', import.meta.url).href,
"name": "倒影着稚嫩的少年",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "eeee",
"pinyin": "D",
"select": false
},
{
"id": "b632bffe-1cfb-408a-8255-b558e2faf49a",
"avatar": new URL('../../assets/img/icon/avatar/8.png', import.meta.url).href,
"name": "买易槐",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "xczxc",
"pinyin": "M",
"select": false
},
{
"id": "c01f10dd-a270-42ab-876f-64a8beb22a69",
"avatar": new URL('../../assets/img/icon/avatar/7.png', import.meta.url).href,
"name": "章昊苍",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "gggggggggr",
"pinyin": "Z",
"select": false
},
{
"id": "d0bf11a3-a25b-4865-a047-c67de8e8af7b",
"avatar": new URL('../../assets/img/icon/avatar/2.png', import.meta.url).href,
"name": "凌依晨",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "12",
"pinyin": "L",
"select": false
},
{
"id": "d300b7a5-115d-41ba-a071-7d1781da331f",
"avatar": new URL('../../assets/img/icon/avatar/23.png', import.meta.url).href,
"name": "为你锁住心",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "1629993515",
"pinyin": "W",
"select": false
},
{
"id": "deceba30-80fc-45c2-bd56-8d65091bb104",
"avatar": new URL('../../assets/img/icon/avatar/13.png', import.meta.url).href,
"name": "原味青春",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "werwe",
"pinyin": "Y",
"select": false
},
{
"id": "e0c3d20d-5978-4339-962f-cffc6e29aff1",
"avatar": new URL('../../assets/img/icon/avatar/24.png', import.meta.url).href,
"name": "一起走过的日子°",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "dfgdfg",
"pinyin": "Y",
"select": false
},
{
"id": "e1fb6274-10fa-4d50-b9b1-6eefacfc2341",
"avatar": new URL('../../assets/img/icon/avatar/15.png', import.meta.url).href,
"name": "看,熟悉旳风景",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "aasdasd",
"pinyin": "K",
"select": false
},
{
"id": "eab1ef9b-70e6-4249-8d78-b4f6e1b0cb08",
"avatar": new URL('../../assets/img/icon/avatar/20.png', import.meta.url).href,
"name": "dear°学会微笑",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "gggggg",
"pinyin": "#",
"select": false
},
{
"id": "ecb405e2-d057-4c85-a12b-a5fe9a7b8a05",
"avatar": new URL('../../assets/img/icon/avatar/6.png', import.meta.url).href,
"name": "富察昕昕",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "ghjg",
"pinyin": "F",
"select": false
},
{
"id": "f09652a3-d6e1-4517-a15e-583a24a250e1",
"avatar": new URL('../../assets/img/icon/avatar/17.png', import.meta.url).href,
"name": "蓝天下的迷彩?",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "yhjh",
"pinyin": "L",
"select": false
},
{
"id": "f676cc30-cc81-487a-9450-cbb1f3c5cde8",
"avatar": new URL('../../assets/img/icon/avatar/21.png', import.meta.url).href,
"name": "伱的微笑",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "ghj",
"pinyin": "N",
"select": false
}
],
"recent": [
{
"id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73",
"avatar": new URL('../../assets/img/icon/avatar/26.png', import.meta.url).href,
"name": "好◇°我会Yi直在●",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sdfs",
"pinyin": "H",
"select": false
},
{
"id": "77c82d2e-9be1-45c2-a733-00445d2e7f2c",
"avatar": new URL('../../assets/img/icon/avatar/22.png', import.meta.url).href,
"name": "一只喵的旅行。",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sadf",
"pinyin": "Y",
"select": false
}
],
"eachOther": [
{
"id": "2b446aa8-5d31-429a-8e39-d4705eb4e900",
"avatar": new URL('../../assets/img/icon/avatar/19.png', import.meta.url).href,
"name": "浅唱↘我们的歌",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "33453",
"pinyin": "Q",
"select": false
},
{
"id": "eab1ef9b-70e6-4249-8d78-b4f6e1b0cb08",
"avatar": new URL('../../assets/img/icon/avatar/20.png', import.meta.url).href,
"name": "dear°学会微笑",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "gggggg",
"pinyin": "#",
"select": false
}
]
},
music: [
{
name: '龙卷风',
"mp3": "http://im5.tongbu.com/rings/singerring/zt_uunGo_1/5605.mp3",
cover: new URL('../../assets/img/music-cover/1.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/1.png', import.meta.url).href,
author: '周杰伦',
duration: 99,
use_count: 37441000,
@ -14456,7 +15026,7 @@ export default { @@ -14456,7 +15026,7 @@ export default {
{
name: '爱在西元前',
mp3: 'https://m3.8js.net:99/1916/501204165042405.mp3',
cover: new URL('../../assets/img/music-cover/2.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/2.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14466,7 +15036,7 @@ export default { @@ -14466,7 +15036,7 @@ export default {
{
name: '蜗牛',
mp3: 'http://im5.tongbu.com/rings/singerring/zt_uunGo_1/3684.mp3',
cover: new URL('../../assets/img/music-cover/3.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/3.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14476,7 +15046,7 @@ export default { @@ -14476,7 +15046,7 @@ export default {
{
name: '半岛铁盒',
mp3: 'https://m3.8js.net:99/2016n/46/94745.mp3',
cover: new URL('../../assets/img/music-cover/4.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/4.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14486,7 +15056,7 @@ export default { @@ -14486,7 +15056,7 @@ export default {
{
name: '轨迹',
mp3: 'https://m3.8js.net:99/1832/411204324135934.mp3',
cover: new URL('../../assets/img/music-cover/5.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/5.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14496,7 +15066,7 @@ export default { @@ -14496,7 +15066,7 @@ export default {
{
name: '七里香',
mp3: 'https://m3.8js.net:99/2016n/14/53717.mp3',
cover: new URL('../../assets/img/music-cover/6.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/6.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14506,7 +15076,7 @@ export default { @@ -14506,7 +15076,7 @@ export default {
{
name: '发如雪',
mp3: 'https://m3.8js.net:99/2014/211204142150965.mp3',
cover: new URL('../../assets/img/music-cover/7.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/7.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14516,7 +15086,7 @@ export default { @@ -14516,7 +15086,7 @@ export default {
{
name: '霍元甲',
mp3: 'https://m3.8js.net:99/1921/261204212643140.mp3',
cover: new URL('../../assets/img/music-cover/8.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/8.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14526,7 +15096,7 @@ export default { @@ -14526,7 +15096,7 @@ export default {
{
name: '千里之外(周杰伦/费玉清)',
mp3: 'http://im5.tongbu.com/rings/singerring/zt_uunGo_1/121.mp3',
cover: new URL('../../assets/img/music-cover/9.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/9.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14536,7 +15106,7 @@ export default { @@ -14536,7 +15106,7 @@ export default {
{
name: '菊花台',
mp3: 'http://im5.tongbu.com/rings/singerring/zt_uunGo_1/2022.mp3',
cover: new URL('../../assets/img/music-cover/10.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/10.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14546,7 +15116,7 @@ export default { @@ -14546,7 +15116,7 @@ export default {
{
name: '不能说的秘密',
mp3: 'http://im5.tongbu.com/rings/singerring/zt_uunGo_1/165.mp3',
cover: new URL('../../assets/img/music-cover/11.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/11.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14556,7 +15126,7 @@ export default { @@ -14556,7 +15126,7 @@ export default {
{
name: '牛仔很忙',
mp3: 'http://im5.tongbu.com/rings/singerring/zt_uunGo_1/219.mp3',
cover: new URL('../../assets/img/music-cover/12.png', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/12.png', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14566,7 +15136,7 @@ export default { @@ -14566,7 +15136,7 @@ export default {
{
name: '给我一首歌的时间',
mp3: 'https://m3.8js.net:99/1938/041204380445445.mp3',
cover: new URL('../../assets/img/music-cover/13.jpg', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/13.jpg', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14576,7 +15146,7 @@ export default { @@ -14576,7 +15146,7 @@ export default {
{
name: '烟花易冷',
mp3: 'https://m3.8js.net:99/1828/051204280535192.mp3',
cover: new URL('../../assets/img/music-cover/14.jpg', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/14.jpg', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14586,7 +15156,7 @@ export default { @@ -14586,7 +15156,7 @@ export default {
{
name: '惊叹号',
mp3: 'https://m3.8js.net:99/20111103/150.mp3',
cover: new URL('../../assets/img/music-cover/15.jpg', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/15.jpg', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14596,7 +15166,7 @@ export default { @@ -14596,7 +15166,7 @@ export default {
{
name: '明明就',
mp3: 'https://m3.8js.net:99/2016n/27/96537.mp3',
cover: new URL('../../assets/img/music-cover/16.jpg', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/16.jpg', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14606,7 +15176,7 @@ export default { @@ -14606,7 +15176,7 @@ export default {
{
name: '算什么男人',
mp3: 'https://m3.8js.net:99/20150107/429.mp3',
cover: new URL('../../assets/img/music-cover/17.jpg', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/17.jpg', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,
@ -14616,7 +15186,7 @@ export default { @@ -14616,7 +15186,7 @@ export default {
{
name: '告白气球',
mp3: 'https://m3.8js.net:99/20161016/481.mp3',
cover: new URL('../../assets/img/music-cover/18.jpg', import.meta.url).href,
cover: new URL('../../../assets/img/music-cover/18.jpg', import.meta.url).href,
author: '周杰伦',
duration: 60,
use_count: 37441000,

4
src/components/Scroll.vue

@ -60,7 +60,7 @@ export default { @@ -60,7 +60,7 @@ export default {
methods: {
move(e) {
// console.log(this.wrapper)
console.log(this.wrapper.scrollTop)
// console.log(this.wrapper.scrollTop)
if (this.refresh) return
if (this.wrapper.scrollTop > 0) return;
if (this.wrapper.scrollTop === 0 && this.startMoveY === null) {
@ -78,7 +78,7 @@ export default { @@ -78,7 +78,7 @@ export default {
} else {
this.distance = null
}
console.log('end')
// console.log('end')
},
refreshEnd() {
this.distance = null

4
src/components/Share.vue

@ -113,7 +113,7 @@ @@ -113,7 +113,7 @@
<img src="../assets/img/icon/components/video/link.png" alt="">
<span>复制链接</span>
</div>
<div class="tool" @click="$nav('/home/report',{type:this.mode})">
<div class="tool" @click="$nav('/home/report',{mode:this.mode})">
<img src="../assets/img/icon/components/video/warring.png" alt="">
<span>举报音乐</span>
</div>
@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
<img src="../assets/img/icon/components/video/comeonlook.webp" alt="">
<span>一起视频</span>
</div>
<div class="tool" @click="$nav('/home/report',{type:this.mode})">
<div class="tool" @click="$nav('/home/report',{mode:this.mode})">
<img src="../assets/img/icon/components/video/warring.png" alt="">
<span>举报</span>
</div>

2
src/components/dialog/ConfirmDialog.vue

@ -109,10 +109,10 @@ export default { @@ -109,10 +109,10 @@ export default {
.title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1rem;
}
.subtitle {
margin-top: 1rem;
font-size: 1.3rem;
&.gray {

7
src/mock/index.js

@ -110,7 +110,6 @@ Mock.mock(/private1/, options => { @@ -110,7 +110,6 @@ Mock.mock(/private1/, options => {
}, code: 200, msg: '',
})
})
Mock.mock(/collect/, options => {
return Mock.mock({
data: {
@ -125,7 +124,6 @@ Mock.mock(/collect/, options => { @@ -125,7 +124,6 @@ Mock.mock(/collect/, options => {
}, code: 200, msg: '',
})
})
Mock.mock(/historyVideo/, options => {
let page = getPage(options)
return Mock.mock({
@ -146,4 +144,9 @@ Mock.mock(/historyOther/, options => { @@ -146,4 +144,9 @@ Mock.mock(/historyOther/, options => {
list: [],
}, code: 200, msg: '',
})
})
Mock.mock(/user\/friends/, options => {
return Mock.mock({
data: resource.users, code: 200, msg: '',
})
})

47
src/pages/home/Report.vue

@ -3,51 +3,52 @@ @@ -3,51 +3,52 @@
<BaseHeader backMode="light">
<template v-slot:center>
<span class="f16">
<template v-if="type === 'video'">视频</template>
<template v-if="type === 'music'">音乐</template>举报</span>
<template v-if="mode === 'video'">视频</template>
<template v-if="mode === 'music'">音乐</template>
<template v-if="mode === 'chat'">私信</template>举报</span>
</template>
</BaseHeader>
<div class="content">
<div class="title">
<span>内容违规</span>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'色情低俗'})">
<div class="row" @click="$nav('/home/submit-report',{type:'色情低俗',mode})">
<span>色情低俗</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'时政不实信息'})">
<div class="row" @click="$nav('/home/submit-report',{type:'时政不实信息',mode})">
<span>时政不实信息</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'违法犯罪'})">
<div class="row" @click="$nav('/home/submit-report',{type:'违法犯罪',mode})">
<span>违法犯罪</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'垃圾广告、售卖假货等'})">
<div class="row" @click="$nav('/home/submit-report',{type:'垃圾广告、售卖假货等',mode})">
<span>垃圾广告售卖假货等</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'造谣传播'})">
<div class="row" @click="$nav('/home/submit-report',{type:'造谣传播',mode})">
<span>造谣传播</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'涉嫌欺诈'})">
<div class="row" @click="$nav('/home/submit-report',{type:'涉嫌欺诈',mode})">
<span>涉嫌欺诈</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'侮辱漫骂'})">
<div class="row" @click="$nav('/home/submit-report',{type:'侮辱漫骂',mode})">
<span>侮辱漫骂</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'危险行为'})">
<div class="row" @click="$nav('/home/submit-report',{type:'危险行为',mode})">
<span>危险行为</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'涉嫌非法集资'})">
<div class="row" @click="$nav('/home/submit-report',{type:'涉嫌非法集资',mode})">
<span>涉嫌非法集资</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'价值观导向不良'})">
<div class="row" @click="$nav('/home/submit-report',{type:'价值观导向不良',mode})">
<span>价值观导向不良</span>
<back scale=".8" direction="right"></back>
</div>
@ -56,15 +57,15 @@ @@ -56,15 +57,15 @@
<div class="title">
<span>侵犯名誉</span>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'侵犯名誉、隐私、肖像权等'})">
<div class="row" @click="$nav('/home/submit-report',{type:'侵犯名誉、隐私、肖像权等',mode})">
<span>侵犯名誉隐私肖像权等</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'内容盗用本人作品'})">
<div class="row" @click="$nav('/home/submit-report',{type:'内容盗用本人作品',mode})">
<span>内容盗用本人作品</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'内容盗用他人作品'})">
<div class="row" @click="$nav('/home/submit-report',{type:'内容盗用他人作品',mode})">
<span>内容盗用他人作品</span>
<back scale=".8" direction="right"></back>
</div>
@ -72,11 +73,11 @@ @@ -72,11 +73,11 @@
<div class="title">
<span>未成年</span>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'未成年人不当行为'})">
<div class="row" @click="$nav('/home/submit-report',{type:'未成年人不当行为',mode})">
<span>未成年人不当行为</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'内容不适合未成年观看'})">
<div class="row" @click="$nav('/home/submit-report',{type:'内容不适合未成年观看',mode})">
<span>内容不适合未成年观看</span>
<back scale=".8" direction="right"></back>
</div>
@ -84,19 +85,19 @@ @@ -84,19 +85,19 @@
<div class="title">
<span>其他</span>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'引人不适'})">
<div class="row" @click="$nav('/home/submit-report',{type:'引人不适',mode})">
<span>引人不适</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'疑似自我伤害'})">
<div class="row" @click="$nav('/home/submit-report',{type:'疑似自我伤害',mode})">
<span>疑似自我伤害</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'诱导点赞、分享、关注'})">
<div class="row" @click="$nav('/home/submit-report',{type:'诱导点赞、分享、关注',mode})">
<span>诱导点赞分享关注</span>
<back scale=".8" direction="right"></back>
</div>
<div class="row" @click="$nav('/home/submit-report',{type:'其他'})">
<div class="row" @click="$nav('/home/submit-report',{type:'其他',mode})">
<span>其他</span>
<back scale=".8" direction="right"></back>
</div>
@ -109,14 +110,14 @@ export default { @@ -109,14 +110,14 @@ export default {
props: {},
data() {
return {
type: 'video'
mode: 'video'
}
},
computed: {},
created() {
this.mode = this.$route.query.mode
},
activated() {
this.type = this.$route.query.type
},
methods: {}
}

17
src/pages/home/SubmitReport.vue

@ -2,7 +2,10 @@ @@ -2,7 +2,10 @@
<div class="Report">
<BaseHeader>
<template v-slot:center>
<span class="f16">视频举报</span>
<span class="f16">
<template v-if="mode === 'video'">视频</template>
<template v-if="mode === 'music'">音乐</template>
<template v-if="mode === 'chat'">私信</template>举报</span>
</template>
</BaseHeader>
<div class="content">
@ -24,8 +27,8 @@ @@ -24,8 +27,8 @@
<div class="text-num">{{ desc.length }}/200</div>
</div>
<div class="upload-photo">
<div class="photo-wrapper" v-for="(index,item) in photos">
<img class="photo" src="../../assets/img/poster/1.jpg" alt="">
<div class="photo-wrapper" v-for="(item,index) in photos">
<img class="photo" :src="item" alt="">
<img class="close" src="../../assets/img/icon/components/light-close.png" alt="" @click="photos.pop()">
</div>
<div class="upload" @click="upload" v-if="photos.length !== 4">
@ -45,6 +48,7 @@ export default { @@ -45,6 +48,7 @@ export default {
data() {
return {
type: '色情低俗',
mode: 'video',
desc: '',
photos: []
}
@ -52,9 +56,7 @@ export default { @@ -52,9 +56,7 @@ export default {
computed: {},
created() {
this.type = this.$route.query.type
},
activated() {
this.type = this.$route.query.type
this.mode = this.$route.query.mode
},
methods: {
async upload() {
@ -62,7 +64,7 @@ export default { @@ -62,7 +64,7 @@ export default {
await this.$sleep(500)
this.$hideLoading()
this.photos.push(
new URL(`../../assets/img/poster/${this.photos.length}.jpg`)
new URL(`../../assets/img/poster/${this.photos.length}.jpg`, import.meta.url).href,
)
}
@ -147,6 +149,7 @@ export default { @@ -147,6 +149,7 @@ export default {
margin-right: 1vw;
.photo {
object-fit: cover;
position: absolute;
width: 100%;
height: 100%;

2
src/pages/home/components/FollowSetting.vue

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
<img src="../../../assets/img/icon/components/follow/private-chat.png" alt="">
<span>发私信</span>
</div>
<div class="option" @click="cancel(e => $nav('/home/report'))">
<div class="option" @click="cancel(e => $nav('/home/report',{mode:'chat'}))">
<img src="../../../assets/img/icon/components/follow/report.png" alt="">
<span>举报</span>
</div>

2
src/pages/me/MyRequestUpdate.vue

@ -25,7 +25,7 @@ import {mapState} from "vuex"; @@ -25,7 +25,7 @@ import {mapState} from "vuex";
import FromBottomDialog from "../../components/dialog/FromBottomDialog";
export default {
name: "RequestUpdate",
name: "MyRequestUpdate",
components: {FromBottomDialog},
data() {
return {}

15
src/pages/message/Share2Friend.vue

@ -272,6 +272,7 @@ export default { @@ -272,6 +272,7 @@ export default {
},
async getFriends() {
let res = await this.$api.user.friends()
console.log('getFriends', res)
if (res.code === this.SUCCESS) {
this.friends = res.data
this.friends.all = this.friends.all.sort((a, b) => {
@ -339,6 +340,7 @@ export default { @@ -339,6 +340,7 @@ export default {
border-bottom: 1px solid #cccccc11;
font-size: 1.4rem;
padding: 0;
padding-left: @padding-page;
height: 5rem;
border-radius: 2px;
display: flex;
@ -423,13 +425,6 @@ export default { @@ -423,13 +425,6 @@ export default {
}
}
.fixed {
position: fixed;
top: 11rem;
left: 2rem;
right: 2rem;
}
.content {
height: calc(100% - 11.2rem);
margin-top: 11.2rem;
@ -450,7 +445,7 @@ export default { @@ -450,7 +445,7 @@ export default {
justify-content: space-between;
.comment {
padding: 2rem;
padding: 0 2rem;
display: flex;
flex: 1;
@ -469,6 +464,10 @@ export default { @@ -469,6 +464,10 @@ export default {
}
}
.wrapper {
padding: 1rem;
}
.create-chat {
margin: 1rem;
display: flex;

81
src/pages/message/chat/ChatDetail.vue

@ -7,7 +7,16 @@ @@ -7,7 +7,16 @@
</BaseHeader>
<div class="content">
<div class="peoples">
<People v-for="item in list " :people="item"></People>
<People
@follow="follow(index)"
@unfollow="unfollow(index)"
mode="normal-add-button"
v-for="(item,index) in list "
:people="item"/>
<div class="add-people" @click="$nav('/message/share-to-friend')">
<img src="../../../assets/img/icon/message/chat/add.png" alt="" class="head-image">
<div class="name">多人聊天</div>
</div>
</div>
<div class="setting">
<div class="row">
@ -25,20 +34,19 @@ @@ -25,20 +34,19 @@
<div class="row" @click="$nav('/set-remark')">
<div class="left">设备备注</div>
<div class="right">
<back direction="right" scale="1.2" ></back>
<back direction="right" scale=".7"></back>
</div>
</div>
<!-- TODO 没做 -->
<div class="row">
<div class="row" @click="$nav('/home/report',{mode:'chat'})">
<div class="left">举报</div>
<div class="right">
<back direction="right" scale="1.2" ></back>
<back direction="right" scale=".7"></back>
</div>
</div>
<div class="row" @click="blockDialog = true">
<div class="left">拉黑</div>
<div class="right">
<back direction="right" scale="1.2" ></back>
<back direction="right" scale=".7"></back>
</div>
</div>
</div>
@ -51,6 +59,7 @@ import Switches from '../components/swtich/switches'; @@ -51,6 +59,7 @@ import Switches from '../components/swtich/switches';
import People from "../../people/components/People";
import FromBottomDialog from "../../../components/dialog/FromBottomDialog";
import BlockDialog from "../components/BlockDialog";
import CONST_VAR from "../../../utils/const_var";
export default {
name: "ChatDetail",
@ -67,12 +76,23 @@ export default { @@ -67,12 +76,23 @@ export default {
blockDialog: false,
list: [
{
type: 1,
name: 'A'
},
{
type: 6,
name: '多人聊天'
"id": "224e9a00-ffa0-4bc1-bb07-c318c7b02fa5",
"avatar": new URL('../../../assets/img/icon/avatar/1.png', import.meta.url).href,
"name": "何以为家",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "234",
"pinyin": "M",
"select": false,
type: CONST_VAR.RELATE_ENUM.FOLLOW_EACH_OTHER
},
]
}
@ -83,6 +103,25 @@ export default { @@ -83,6 +103,25 @@ export default {
methods: {
t() {
this.enabled = !this.enabled
},
follow(index) {
if (this.list[index].type === this.RELATE_ENUM.FOLLOW_ME) {
this.list[index].type = this.RELATE_ENUM.FOLLOW_EACH_OTHER
}
},
unfollow(index) {
this.$showConfirmDialog(
'正在与对方相互关注,是否不再关注该用户',
null,
'gray',
() => {
this.list[index].type = this.RELATE_ENUM.FOLLOW_ME
},
() => {
},
'取消关注',
'返回'
)
}
}
}
@ -110,8 +149,26 @@ export default { @@ -110,8 +149,26 @@ export default {
.People {
border-bottom: 1px solid @second-btn-color-tran;
}
.add-people {
transition: all 0.3s ease;
width: 100%;
height: 7rem;
display: flex;
align-items: center;
position: relative;
border-bottom: 1px solid @second-btn-color-tran;
.head-image {
margin-right: 1.5rem;
width: 4.5rem;
height: 4.5rem;
border-radius: 50%;
}
}
}
.setting {
.row {
padding-left: 2rem;

71
src/pages/people/components/People.vue

@ -7,21 +7,52 @@ @@ -7,21 +7,52 @@
<div class="name">{{ people.name }}</div>
</div>
</template>
<template v-if="mode === 'normal-add-button'">
<div class="left">
<div class="name">{{ people.name }}</div>
</div>
<div class="right">
<!-- 他关注我 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_ME">
<div class="l-button red" @click.stop="$emit('follow')">回关</div>
</template>
<!-- 我关注他 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_HE">
<div class="l-button" @click.stop="$emit('unfollow')">已关注</div>
</template>
<!-- 相互关注-->
<template v-if="people.type === RELATE_ENUM.FOLLOW_EACH_OTHER">
<div class="l-button" @click.stop="$emit('unfollow')">互相关注</div>
</template>
<!-- 关注请求-->
<template v-if="people.type === RELATE_ENUM.REQUEST_FOLLOW">
<div class="l-button " @click.stop="$emit('ignore')">忽略</div>
<div class="l-button red" @click.stop="$emit('agree')">通过</div>
</template>
</div>
</template>
<template v-if="mode === 'search'">
<div class="left">
<div class="name">
<span v-if="people.name.indexOf(searchKey) > -1">{{ people.name.substr(0, people.name.indexOf(searchKey)) }}<span style="color: yellow">{{ searchKey }}</span>{{ people.name.substr(people.name.indexOf(searchKey) + searchKey.length) }}</span>
<span v-if="people.name.indexOf(searchKey) > -1">{{ people.name.substr(0, people.name.indexOf(searchKey)) }}<span
style="color: yellow">{{
searchKey
}}</span>{{ people.name.substr(people.name.indexOf(searchKey) + searchKey.length) }}</span>
<span v-else>{{ people.name }}</span>
</div>
<div class="name f12">抖音id:
<span v-if="people.account.indexOf(searchKey) > -1">{{ people.account.substr(0, people.account.indexOf(searchKey)) }}<span style="color: yellow">{{ searchKey }}</span>{{ people.account.substr(people.account.indexOf(searchKey) + searchKey.length) }}</span>
<span v-if="people.account.indexOf(searchKey) > -1">{{
people.account.substr(0, people.account.indexOf(searchKey))
}}<span style="color: yellow">{{
searchKey
}}</span>{{ people.account.substr(people.account.indexOf(searchKey) + searchKey.length) }}</span>
<span v-else>{{ people.account }}</span>
</div>
</div>
</template>
<template v-if="mode === 'fans'">
<div class="left">
<div class="name">{{ people.name }}</div>
@ -38,20 +69,20 @@ @@ -38,20 +69,20 @@
<div class="right">
<!-- 他关注我 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_ME">
<div class="l-button red" @click="$emit('follow')">回关</div>
<div class="l-button red" @click.stop="$emit('follow')">回关</div>
</template>
<!-- 我关注他 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_HE">
<div class="l-button" @click="$emit('unfollow')">已关注</div>
<div class="l-button" @click.stop="$emit('unfollow')">已关注</div>
</template>
<!-- 相互关注-->
<template v-if="people.type === RELATE_ENUM.FOLLOW_EACH_OTHER">
<div class="l-button" @click="$emit('unfollow')">互相关注</div>
<div class="l-button" @click.stop="$emit('unfollow')">互相关注</div>
</template>
<!-- 关注请求-->
<template v-if="people.type === RELATE_ENUM.REQUEST_FOLLOW">
<div class="l-button " @click="$emit('ignore')">忽略</div>
<div class="l-button red" @click="$emit('agree')">通过</div>
<div class="l-button " @click.stop="$emit('ignore')">忽略</div>
<div class="l-button red" @click.stop="$emit('agree')">通过</div>
</template>
</div>
</template>
@ -63,15 +94,15 @@ @@ -63,15 +94,15 @@
</div>
<div class="right">
<template v-if="people.type === RELATE_ENUM.RECOMMEND_NO_REMOVE">
<div class="l-button red" @click="$emit('follow')">关注</div>
<div class="l-button red" @click.stop="$emit('follow')">关注</div>
</template>
<template v-if="people.type === RELATE_ENUM.RECOMMEND">
<div class="l-button" @click="$emit('remove')">移除</div>
<div class="l-button red" @click="$emit('follow')">关注</div>
<div class="l-button" @click.stop="$emit('remove')">移除</div>
<div class="l-button red" @click.stop="$emit('follow')">关注</div>
</template>
<!-- 我关注他 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_HE">
<div class="l-button" @click="$emit('unfollow')">已关注</div>
<div class="l-button" @click.stop="$emit('unfollow')">已关注</div>
</template>
</div>
</template>
@ -83,7 +114,7 @@ @@ -83,7 +114,7 @@
</div>
<div class="right">
<div class="l-button">发私信</div>
<img src="../../../assets/img/icon/menu-white.png" alt="" @click="showPopover = !showPopover">
<img src="../../../assets/img/icon/menu-white.png" alt="" @click.stop="showPopover = !showPopover">
</div>
</template>
@ -94,15 +125,15 @@ @@ -94,15 +125,15 @@
<div class="right">
<!-- 他关注我 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_ME">
<div class="l-button red" @click="$emit('follow')">关注</div>
<div class="l-button red" @click.stop="$emit('follow')">关注</div>
</template>
<!-- 我关注他 -->
<template v-if="people.type === RELATE_ENUM.FOLLOW_HE">
<div class="l-button" @click="$emit('unfollow')">已关注</div>
<div class="l-button" @click.stop="$emit('unfollow')">已关注</div>
</template>
<!-- 相互关注-->
<template v-if="people.type === RELATE_ENUM.FOLLOW_EACH_OTHER">
<div class="l-button" @click="$emit('unfollow')">互相关注</div>
<div class="l-button" @click.stop="$emit('unfollow')">互相关注</div>
</template>
</div>
</template>
@ -143,14 +174,6 @@ export default { @@ -143,14 +174,6 @@ export default {
data() {
return {
showPopover: false,
RELATE_ENUM: {
RECOMMEND_NO_REMOVE: -2,//,
RECOMMEND: -1,//
FOLLOW_ME: 1,//
FOLLOW_EACH_OTHER: 2,//
FOLLOW_HE: 3,//
REQUEST_FOLLOW: 4//
}
}
},
computed: {},

6
src/router/routes.js

@ -85,10 +85,8 @@ const routes = [ @@ -85,10 +85,8 @@ const routes = [
{path: '/TestKeepAlive', component: TestKeepAlive},
{path: '/TestKeepAlivePage1', component: TestKeepAlivePage1},
{path: '/home', component: Index},
{path: '/home/submit-report', component: SubmitReport},
{path: '/home/music', component: Music},
{path: '/home/music-rank-list', component: MusicRankList},
{path: '/home/report', component: Report},
{path: '/home/search', component: Search},
{path: '/home/live', component: LivePage},
@ -123,7 +121,6 @@ const routes = [ @@ -123,7 +121,6 @@ const routes = [
{path: '/message', component: Message},
{path: '/message/all', component: AllMessage},
{path: '/message/more-search', component: MoreSearch},
{path: '/message/share-to-friend', component: Share2Friend},
{path: '/message/joined-group-chat', component: JoinedGroupChat},
{path: '/message/fans', component: Fans},
{path: '/message/visitors', component: Visitors},
@ -160,6 +157,9 @@ const routes = [ @@ -160,6 +157,9 @@ const routes = [
{path: '/me/request-update', component: RequestUpdate},
{path: '/me/my-request-update', component: MyRequestUpdate},
{path: '/me/uploader', component: Uploader},
{path: '/home/report', component: Report},
{path: '/home/submit-report', component: SubmitReport},
{path: '/message/share-to-friend', component: Share2Friend},
]
export default routes

578
src/store/index.js

@ -2,13 +2,8 @@ import * as Vuex from "vuex"; @@ -2,13 +2,8 @@ import * as Vuex from "vuex";
import enums from '../utils/enums'
import api from '../api/index'
import CONST_VAR from "../utils/const_var";
import resource from "../assets/data/resource";
let RELATE_ENUM = {
FOLLOW_ME: 1,//只关注我
FOLLOW_EACH_OTHER: 2,//互相关注
FOLLOW_HE: 3,//我关注他
REQUEST_FOLLOW: 4//关注请求
}
const store = Vuex.createStore({
state: {
bodyHeight: document.body.clientHeight,
@ -46,576 +41,7 @@ const store = Vuex.createStore({ @@ -46,576 +41,7 @@ const store = Vuex.createStore({
"desc": `一个普普通通学表演的\n看到的人都能开开心心~~~~~~~~~~~~~`,
"is_private": 1
},
friends: {
"all": [
{
"id": "224e9a00-ffa0-4bc1-bb07-c318c7b02fa5",
"avatar": new URL('../assets/img/icon/avatar/1.png', import.meta.url).href,
"name": "何以为家",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "234",
"pinyin": "M",
"select": false,
type: RELATE_ENUM.REQUEST_FOLLOW
},
{
"id": "2b446aa8-5d31-429a-8e39-d4705eb4e900",
"avatar": new URL('../assets/img/icon/avatar/19.png', import.meta.url).href,
"name": "浅唱↘我们的歌",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "33453",
"pinyin": "Q",
"select": false,
type: RELATE_ENUM.FOLLOW_ME
},
{
"id": "2d8622b4-7112-4bc7-a0cf-00a268a85504",
"avatar": new URL('../assets/img/icon/avatar/25.png', import.meta.url).href,
"name": "‘心’之天空",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "234234",
"pinyin": "#",
"select": false,
type: RELATE_ENUM.FOLLOW_HE
},
{
"id": "2e38900b-65f7-426a-8e8b-edb403df35fb",
"avatar": new URL('../assets/img/icon/avatar/18.png', import.meta.url).href,
"name": "◇、_保持微笑ゞ",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "1111",
"pinyin": "#",
"select": false,
type: RELATE_ENUM.FOLLOW_EACH_OTHER
},
{
"id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73",
"avatar": new URL('../assets/img/icon/avatar/26.png', import.meta.url).href,
"name": "好◇°我会Yi直在●",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sdfs",
"pinyin": "H",
"select": false
},
{
"id": "46c77017-9dc6-4a48-bf96-560c6e7db06f",
"avatar": new URL('../assets/img/icon/avatar/4.png', import.meta.url).href,
"name": "甫韦茹",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "dgfdfg",
"pinyin": "F",
"select": false
},
{
"id": "4df770d7-a414-4e02-8f9e-72ebd87eb93e",
"avatar": new URL('../assets/img/icon/avatar/12.png', import.meta.url).href,
"name": "幸福泡泡",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "df",
"pinyin": "X",
"select": false
},
{
"id": "5ebb4d7a-c7ad-43c7-a830-9eb3ee423cb7",
"avatar": new URL('../assets/img/icon/avatar/3.png', import.meta.url).href,
"name": "蔡傲安",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "ssss",
"pinyin": "C",
"select": false
},
{
"id": "7226092d-a2c5-4ffd-98d7-3b7ac814bca3",
"avatar": new URL('../assets/img/icon/avatar/16.png', import.meta.url).href,
"name": "心若向阳无谓伤悲",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "asdfasd",
"pinyin": "X",
"select": false
},
{
"id": "72aef2a9-5573-4205-9288-706e19bccc7f",
"avatar": new URL('../assets/img/icon/avatar/10.png', import.meta.url).href,
"name": "A倒影着稚嫩的少年",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "wfghdf",
"pinyin": "#",
"select": false
},
{
"id": "77c82d2e-9be1-45c2-a733-00445d2e7f2c",
"avatar": new URL('../assets/img/icon/avatar/22.png', import.meta.url).href,
"name": "一只喵的旅行。",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sadf",
"pinyin": "Y",
"select": false
},
{
"id": "7b30566d-70eb-4a31-ae43-200917269a43",
"avatar": new URL('../assets/img/icon/avatar/14.png', import.meta.url).href,
"name": "℉阳光下的小情绪",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "asdfa",
"pinyin": "#",
"select": false
},
{
"id": "90c6ccd8-0653-4789-9348-28fba06d6ae3",
"avatar": new URL('../assets/img/icon/avatar/11.png', import.meta.url).href,
"name": "思念一直在",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "as",
"pinyin": "S",
"select": false
},
{
"id": "a2c1310f-1a3c-430f-9b7c-557b9ccdd33d",
"avatar": new URL('../assets/img/icon/avatar/9.png', import.meta.url).href,
"name": "阎韶丽",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "vbvd",
"pinyin": "Y",
"select": false
},
{
"id": "a7443b4f-b0fa-4409-a693-5f090aa763ee",
"avatar": new URL('../assets/img/icon/avatar/5.png', import.meta.url).href,
"name": "马佳婉清",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sdf",
"pinyin": "M",
"select": false
},
{
"id": "b49fd828-f8a7-4be0-a3bc-0a8fa312b2e8",
"avatar": new URL('../assets/img/icon/avatar/0.png', import.meta.url).href,
"name": "倒影着稚嫩的少年",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "eeee",
"pinyin": "D",
"select": false
},
{
"id": "b632bffe-1cfb-408a-8255-b558e2faf49a",
"avatar": new URL('../assets/img/icon/avatar/8.png', import.meta.url).href,
"name": "买易槐",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "xczxc",
"pinyin": "M",
"select": false
},
{
"id": "c01f10dd-a270-42ab-876f-64a8beb22a69",
"avatar": new URL('../assets/img/icon/avatar/7.png', import.meta.url).href,
"name": "章昊苍",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "gggggggggr",
"pinyin": "Z",
"select": false
},
{
"id": "d0bf11a3-a25b-4865-a047-c67de8e8af7b",
"avatar": new URL('../assets/img/icon/avatar/2.png', import.meta.url).href,
"name": "凌依晨",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "12",
"pinyin": "L",
"select": false
},
{
"id": "d300b7a5-115d-41ba-a071-7d1781da331f",
"avatar": new URL('../assets/img/icon/avatar/23.png', import.meta.url).href,
"name": "为你锁住心",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "1629993515",
"pinyin": "W",
"select": false
},
{
"id": "deceba30-80fc-45c2-bd56-8d65091bb104",
"avatar": new URL('../assets/img/icon/avatar/13.png', import.meta.url).href,
"name": "原味青春",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "werwe",
"pinyin": "Y",
"select": false
},
{
"id": "e0c3d20d-5978-4339-962f-cffc6e29aff1",
"avatar": new URL('../assets/img/icon/avatar/24.png', import.meta.url).href,
"name": "一起走过的日子°",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "dfgdfg",
"pinyin": "Y",
"select": false
},
{
"id": "e1fb6274-10fa-4d50-b9b1-6eefacfc2341",
"avatar": new URL('../assets/img/icon/avatar/15.png', import.meta.url).href,
"name": "看,熟悉旳风景",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "aasdasd",
"pinyin": "K",
"select": false
},
{
"id": "eab1ef9b-70e6-4249-8d78-b4f6e1b0cb08",
"avatar": new URL('../assets/img/icon/avatar/20.png', import.meta.url).href,
"name": "dear°学会微笑",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "gggggg",
"pinyin": "#",
"select": false
},
{
"id": "ecb405e2-d057-4c85-a12b-a5fe9a7b8a05",
"avatar": new URL('../assets/img/icon/avatar/6.png', import.meta.url).href,
"name": "富察昕昕",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "ghjg",
"pinyin": "F",
"select": false
},
{
"id": "f09652a3-d6e1-4517-a15e-583a24a250e1",
"avatar": new URL('../assets/img/icon/avatar/17.png', import.meta.url).href,
"name": "蓝天下的迷彩?",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "yhjh",
"pinyin": "L",
"select": false
},
{
"id": "f676cc30-cc81-487a-9450-cbb1f3c5cde8",
"avatar": new URL('../assets/img/icon/avatar/21.png', import.meta.url).href,
"name": "伱的微笑",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "ghj",
"pinyin": "N",
"select": false
}
],
"recent": [
{
"id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73",
"avatar": new URL('../assets/img/icon/avatar/26.png', import.meta.url).href,
"name": "好◇°我会Yi直在●",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sdfs",
"pinyin": "H",
"select": false
},
{
"id": "77c82d2e-9be1-45c2-a733-00445d2e7f2c",
"avatar": new URL('../assets/img/icon/avatar/22.png', import.meta.url).href,
"name": "一只喵的旅行。",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "sadf",
"pinyin": "Y",
"select": false
}
],
"eachOther": [
{
"id": "2b446aa8-5d31-429a-8e39-d4705eb4e900",
"avatar": new URL('../assets/img/icon/avatar/19.png', import.meta.url).href,
"name": "浅唱↘我们的歌",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "33453",
"pinyin": "Q",
"select": false
},
{
"id": "eab1ef9b-70e6-4249-8d78-b4f6e1b0cb08",
"avatar": new URL('../assets/img/icon/avatar/20.png', import.meta.url).href,
"name": "dear°学会微笑",
"sex": "",
"age": null,
"idCard": null,
"phone": "",
"address": null,
"wechat": "",
"password": null,
"lastLoginTime": "1629993515",
"createTime": "1630035089",
"isDelete": 0,
"account": "gggggg",
"pinyin": "#",
"select": false
}
]
},
friends: resource.users,
excludeRoutes: []
},
mutations: {

8
src/utils/const_var.js

@ -10,4 +10,12 @@ export default { @@ -10,4 +10,12 @@ export default {
PAGE_SIZE: 10,
DELAY_TIME: 250,
SUCCESS: 200,
RELATE_ENUM: {
RECOMMEND_NO_REMOVE: -2,//推荐,不能移除
RECOMMEND: -1,//推荐
FOLLOW_ME: 1,//只关注我
FOLLOW_EACH_OTHER: 2,//互相关注
FOLLOW_HE: 3,//我关注他
REQUEST_FOLLOW: 4//关注请求
}
}

9
src/utils/mixin.js

@ -13,6 +13,7 @@ import NoMore from "../components/NoMore"; @@ -13,6 +13,7 @@ import NoMore from "../components/NoMore";
import Back from "../components/Back";
import Loading from "../components/Loading";
import BaseButton from "../components/BaseButton";
import CONST_VAR from "./const_var";
export default {
components: {
@ -34,13 +35,7 @@ export default { @@ -34,13 +35,7 @@ export default {
data() {
return {
SUCCESS: 200,
RELATE_ENUM: {
RECOMMEND: -1,//推荐
FOLLOW_ME: 1,//只关注我
FOLLOW_EACH_OTHER: 2,//互相关注
FOLLOW_HE: 3,//我关注他
REQUEST_FOLLOW: 4//关注请求
}
RELATE_ENUM: CONST_VAR.RELATE_ENUM
}
},
methods: {

Loading…
Cancel
Save