From 753bf2fc1bedef460380f60db2eb0c9a9095ed2a Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 7 Sep 2021 01:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96uploader=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 + src/App.vue | 6 +- src/assets/scss/custom.less | 9 +- src/components/Comment.vue | 10 +- src/components/Search.vue | 39 +- src/components/Share.vue | 4 - src/components/dialog/ConfirmDialog.vue | 2 +- src/components/dialog/FromBottomDialog.vue | 15 +- src/config/index.js | 8 +- src/pages/Test.vue | 138 +- src/pages/home/Index2.vue | 58 +- src/pages/home/components/FollowSetting.vue | 184 +++ src/pages/home/components/FollowSetting2.vue | 167 +++ src/pages/me/Me.less | 5 +- src/pages/me/Uploader.less | 212 ++- src/pages/me/Uploader.vue | 231 ++-- src/pages/message/Chat.vue | 3 +- src/pages/message/ChatDetail.vue | 53 +- src/pages/message/Message.vue | 2 +- src/pages/message/components/BlockDialog.vue | 81 ++ .../message/components/swtich/switches.vue | 2 +- src/router/index.js | 4 +- src/store/index.js | 1134 ++++++++--------- src/utils/global-methods.js | 28 +- 24 files changed, 1498 insertions(+), 901 deletions(-) create mode 100644 src/pages/home/components/FollowSetting.vue create mode 100644 src/pages/home/components/FollowSetting2.vue create mode 100644 src/pages/message/components/BlockDialog.vue diff --git a/public/index.html b/public/index.html index 2981b05..277192b 100644 --- a/public/index.html +++ b/public/index.html @@ -7,6 +7,10 @@ <%= htmlWebpackPlugin.options.title %> diff --git a/src/pages/home/Index2.vue b/src/pages/home/Index2.vue index df031a5..1f74741 100644 --- a/src/pages/home/Index2.vue +++ b/src/pages/home/Index2.vue @@ -2,6 +2,7 @@
- + @@ -126,9 +132,10 @@ @share2Webo="shareType = 8" @download="shareType = 9" /> + - + @@ -136,6 +143,26 @@ :videoId="videos[videoActiveIndex]?.id" :canDownload="videos[videoActiveIndex]?.canDownload" /> + + + + + + + + + + +
+ + diff --git a/src/pages/home/components/FollowSetting2.vue b/src/pages/home/components/FollowSetting2.vue new file mode 100644 index 0000000..2c69f20 --- /dev/null +++ b/src/pages/home/components/FollowSetting2.vue @@ -0,0 +1,167 @@ + + + + diff --git a/src/pages/me/Me.less b/src/pages/me/Me.less index 5903171..7d2f5ff 100644 --- a/src/pages/me/Me.less +++ b/src/pages/me/Me.less @@ -246,7 +246,6 @@ } } - .desc { header { color: white; @@ -261,8 +260,10 @@ } .detail { + transform: translateY(-1rem); background: @main-bg; - padding: 0 2rem .5rem 2rem; + padding: 0 2rem 0 2rem; + border-radius: 1rem 1rem 0 0 ; .head { width: 100%; diff --git a/src/pages/me/Uploader.less b/src/pages/me/Uploader.less index 8930aca..a2aa500 100644 --- a/src/pages/me/Uploader.less +++ b/src/pages/me/Uploader.less @@ -11,11 +11,22 @@ opacity: 0; } +.recommend-enter-active, +.recommend-leave-active { + transition: all 0.3s ease; +} + +.recommend-enter-from, +.recommend-leave-to { + transform: translateY(-100%); +} + +.FromBottomDialog { + left: inherit; +} - - -.Uploader { +#Uploader { position: fixed; background: @main-bg; height: 100%; @@ -210,6 +221,9 @@ transition: all .2s; .center { + left: 50%; + transform: translateX(-50%); + position: absolute; color: white; } @@ -222,24 +236,54 @@ } .left { - font-size: 1.2rem; - height: 2.6rem; - display: flex; - padding-right: 1.3rem; - padding-left: .5rem; - align-items: center; - border-radius: 2rem; - background: rgba(82, 80, 80, 0.5); - img { + transform: rotate(180deg); + border-radius: 50%; + background: rgba(82, 80, 80, 0.5); padding: .6rem; width: 1.8rem; } } + .follow-btn { + color: white; + position: absolute; + font-size: 1.2rem; + padding: .3rem 1.2rem; + border-radius: .2rem; + right: 6rem; + background: @primary-btn-color; + + &.followed { + background: @second-btn-color; + } + } + + .right { - img { - margin-left: 2rem; + display: flex; + color: white; + align-items: center; + position: relative; + + .request { + font-size: 1.2rem; + height: 2.6rem; + display: flex; + padding-right: 1.3rem; + padding-left: .5rem; + align-items: center; + border-radius: 2rem; + background: rgba(82, 80, 80, 0.5); + + img { + padding: .6rem; + width: 1.8rem; + } + } + + .menu { + margin-left: 1.5rem; border-radius: 50%; background: rgba(82, 80, 80, 0.5); padding: .6rem; @@ -262,8 +306,13 @@ } .detail { + transform: translateY(-1rem); background: @main-bg; - padding: 0 2rem .5rem 2rem; + border-radius: 1rem 1rem 0 0; + + .detail-wrapper { + padding: 0 2rem 0 2rem; + } .head { width: 100%; @@ -361,6 +410,40 @@ } } + .other { + display: flex; + margin-bottom: 2rem; + + .item { + margin-right: 2.5rem; + display: flex; + + img { + margin-right: .8rem; + border-radius: .4rem; + background: @second-btn-color-tran; + padding: .8rem; + height: 2.2rem; + } + + .right { + display: flex; + justify-content: space-between; + flex-direction: column; + + .top { + color: white; + font-size: 1.4rem; + } + + .bottom { + color: @second-text-color; + font-size: 1.2rem; + } + } + } + } + .my-buttons { margin-top: 2rem; overflow: hidden; @@ -428,7 +511,6 @@ } } } - } @@ -443,9 +525,16 @@ border-radius: .2rem; background: @second-btn-color; color: white; + + &.option-recommend { + img { + transform: rotate(0deg); + } + } } img { + transform: rotate(180deg); @width: 1.6rem; width: @width; height: @width; @@ -453,35 +542,92 @@ } - .other { - display: flex; - margin-bottom: 2rem; + .recommend { + transition: all .3s ease; + height: 22rem; + margin-top: 1.5rem; - .item { - margin-right: 2.5rem; + .title { + padding: 0 2rem 0 2rem; + font-size: 1.2rem; + color: @second-text-color; display: flex; + justify-content: space-between; + + .left { + display: flex; + align-items: center; + } img { - margin-right: .8rem; - border-radius: .4rem; - background: @second-btn-color-tran; - padding: .8rem; - height: 2.2rem; + margin-left: .3rem; + width: 1.3rem; + height: 1.3rem; } .right { display: flex; - justify-content: space-between; - flex-direction: column; + align-items: center; + } + } - .top { - color: white; - font-size: 1.4rem; + .friends { + padding-left: 2rem; + margin-top: 1rem; + display: flex; + overflow-x: scroll; + + .friend { + position: relative; + background: @second-btn-color-tran; + margin-right: 1rem; + padding: 1rem; + display: flex; + flex-direction: column; + align-items: center; + + .avatar { + @width: 10rem; + border-radius: 50%; + width: @width; + height: @width; } - .bottom { - color: @second-text-color; + .name { + margin-top: 1rem; font-size: 1.2rem; + color: white; + } + + .tips { + margin-top: .5rem; + font-size: 1.2rem; + color: @second-text-color; + } + + .button { + margin-top: 1rem; + width: 15rem; + height: 2.6rem; + font-size: 1.2rem; + } + + .close { + position: absolute; + top: .2rem; + right: .2rem; + } + } + + .more { + .notice { + width: 10rem; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + color: @second-text-color; } } } diff --git a/src/pages/me/Uploader.vue b/src/pages/me/Uploader.vue index 211a76a..ef78e5d 100644 --- a/src/pages/me/Uploader.vue +++ b/src/pages/me/Uploader.vue @@ -1,20 +1,27 @@ + + diff --git a/src/pages/message/components/swtich/switches.vue b/src/pages/message/components/swtich/switches.vue index 4361cec..5788171 100644 --- a/src/pages/message/components/swtich/switches.vue +++ b/src/pages/message/components/swtich/switches.vue @@ -91,4 +91,4 @@ export default { - + diff --git a/src/router/index.js b/src/router/index.js index 6d2894f..9f0c718 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -64,6 +64,8 @@ const routes = [ {path: '/message', component: Message}, {path: '/message/share-to-friend', component: Share2Friend}, {path: '/message/joined-group-chat', component: JoinedGroupChat}, + {path: '/message/chat', component: Chat}, + {path: '/message/chat-detail', component: ChatDetail}, {path: '/me', component: Me}, {path: '/me/request-update', component: RequestUpdate}, {path: '/edit-userinfo', component: EditUserInfo}, @@ -86,8 +88,6 @@ const routes = [ {path: '/address-list', component: AddressList}, {path: '/scan', component: Scan}, {path: '/face-to-face', component: FaceToFace}, - {path: '/chat', component: Chat}, - {path: '/chat-detail', component: ChatDetail}, {path: '/set-remark', component: SetRemark}, {path: '/me/right-menu/look-history', component: LookHistory}, {path: '/me/right-menu/minor-protection/index', component: MinorProtectionIndex}, diff --git a/src/store/index.js b/src/store/index.js index 3a98d84..69a21bd 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -27,576 +27,570 @@ const store = Vuex.createStore({ } }, friends: { - all: { - "all": [ - { - "id": "224e9a00-ffa0-4bc1-bb07-c318c7b02fa5", - "avatar": "images/20210816/1.png", - "name": "冒安志", - "sex": "", - "age": null, - "idCard": null, - "phone": "", - "address": null, - "wechat": "", - "password": null, - "lastLoginTime": "1629993515", - "createTime": "1630035089", - "isDelete": 0, - "account": "234", - "pinyin": "M", - "select": false - }, - { - "id": "2b446aa8-5d31-429a-8e39-d4705eb4e900", - "avatar": "images/20210816/19.png", - "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": "2d8622b4-7112-4bc7-a0cf-00a268a85504", - "avatar": "images/20210816/25.png", - "name": "‘心’之天空", - "sex": "", - "age": null, - "idCard": null, - "phone": "", - "address": null, - "wechat": "", - "password": null, - "lastLoginTime": "1629993515", - "createTime": "1630035089", - "isDelete": 0, - "account": "234234", - "pinyin": "#", - "select": false - }, - { - "id": "2e38900b-65f7-426a-8e8b-edb403df35fb", - "avatar": "images/20210816/18.png", - "name": "◇、_保持微笑ゞ", - "sex": "", - "age": null, - "idCard": null, - "phone": "", - "address": null, - "wechat": "", - "password": null, - "lastLoginTime": "1629993515", - "createTime": "1630035089", - "isDelete": 0, - "account": "1111", - "pinyin": "#", - "select": false - }, - { - "id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73", - "avatar": "images/20210816/26.png", - "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": "images/20210816/4.png", - "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": "images/20210816/12.png", - "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": "images/20210816/3.png", - "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": "images/20210816/16.png", - "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": "images/20210816/10.png", - "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": "images/20210816/22.png", - "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": "images/20210816/14.png", - "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": "images/20210816/11.png", - "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": "images/20210816/9.png", - "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": "images/20210816/5.png", - "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": "images/20210816/0.png", - "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": "images/20210816/8.png", - "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": "images/20210816/7.png", - "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": "images/20210816/2.png", - "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": "images/20210816/23.png", - "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": "images/20210816/13.png", - "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": "images/20210816/24.png", - "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": "images/20210816/15.png", - "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": "images/20210816/20.png", - "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": "images/20210816/6.png", - "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": "images/20210816/17.png", - "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": "images/20210816/21.png", - "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: { - "recent": [ - { - "id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73", - "avatar": "images/20210816/26.png", - "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": "images/20210816/22.png", - "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: { - "eachOther": [ - { - "id": "2b446aa8-5d31-429a-8e39-d4705eb4e900", - "avatar": "images/20210816/19.png", - "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": "images/20210816/20.png", - "name": "dear°学会微笑", - "sex": "", - "age": null, - "idCard": null, - "phone": "", - "address": null, - "wechat": "", - "password": null, - "lastLoginTime": "1629993515", - "createTime": "1630035089", - "isDelete": 0, - "account": "gggggg", - "pinyin": "#", - "select": false - } - ] - } + "all": [ + { + "id": "224e9a00-ffa0-4bc1-bb07-c318c7b02fa5", + "avatar": "images/20210816/1.png", + "name": "冒安志", + "sex": "", + "age": null, + "idCard": null, + "phone": "", + "address": null, + "wechat": "", + "password": null, + "lastLoginTime": "1629993515", + "createTime": "1630035089", + "isDelete": 0, + "account": "234", + "pinyin": "M", + "select": false + }, + { + "id": "2b446aa8-5d31-429a-8e39-d4705eb4e900", + "avatar": "images/20210816/19.png", + "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": "2d8622b4-7112-4bc7-a0cf-00a268a85504", + "avatar": "images/20210816/25.png", + "name": "‘心’之天空", + "sex": "", + "age": null, + "idCard": null, + "phone": "", + "address": null, + "wechat": "", + "password": null, + "lastLoginTime": "1629993515", + "createTime": "1630035089", + "isDelete": 0, + "account": "234234", + "pinyin": "#", + "select": false + }, + { + "id": "2e38900b-65f7-426a-8e8b-edb403df35fb", + "avatar": "images/20210816/18.png", + "name": "◇、_保持微笑ゞ", + "sex": "", + "age": null, + "idCard": null, + "phone": "", + "address": null, + "wechat": "", + "password": null, + "lastLoginTime": "1629993515", + "createTime": "1630035089", + "isDelete": 0, + "account": "1111", + "pinyin": "#", + "select": false + }, + { + "id": "3cd53cb5-04f8-4439-ad2b-e57b3f9b8c73", + "avatar": "images/20210816/26.png", + "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": "images/20210816/4.png", + "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": "images/20210816/12.png", + "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": "images/20210816/3.png", + "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": "images/20210816/16.png", + "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": "images/20210816/10.png", + "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": "images/20210816/22.png", + "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": "images/20210816/14.png", + "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": "images/20210816/11.png", + "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": "images/20210816/9.png", + "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": "images/20210816/5.png", + "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": "images/20210816/0.png", + "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": "images/20210816/8.png", + "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": "images/20210816/7.png", + "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": "images/20210816/2.png", + "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": "images/20210816/23.png", + "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": "images/20210816/13.png", + "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": "images/20210816/24.png", + "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": "images/20210816/15.png", + "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": "images/20210816/20.png", + "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": "images/20210816/6.png", + "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": "images/20210816/17.png", + "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": "images/20210816/21.png", + "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": "images/20210816/26.png", + "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": "images/20210816/22.png", + "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": "images/20210816/19.png", + "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": "images/20210816/20.png", + "name": "dear°学会微笑", + "sex": "", + "age": null, + "idCard": null, + "phone": "", + "address": null, + "wechat": "", + "password": null, + "lastLoginTime": "1629993515", + "createTime": "1630035089", + "isDelete": 0, + "account": "gggggg", + "pinyin": "#", + "select": false + } + ] } }, mutations: { diff --git a/src/utils/global-methods.js b/src/utils/global-methods.js index 087e605..8e409ef 100644 --- a/src/utils/global-methods.js +++ b/src/utils/global-methods.js @@ -6,6 +6,7 @@ import Loading from "../components/Loading"; import Config from '../config' import NoticeDialog from "../components/dialog/NoticeDialog"; import dayjs from 'dayjs' + export default { $showLoading() { const app = Vue.createApp({ @@ -140,7 +141,7 @@ export default { document.body.removeChild(div) }, 1000) }, - $no(){ + $no() { this.$notice('未实现') }, $back() { @@ -169,6 +170,24 @@ export default { // return reg.test(val) ? parseFloat(val) : val return parseFloat(val) }, + $getCss2(curEle, attr) { + let val = null, reg = null + if ("getComputedStyle" in window) { + val = window.getComputedStyle(curEle, null)[attr] + } else { //ie6~8不支持上面属性 + //不兼容 + if (attr === "opacity") { + val = curEle.currentStyle["filter"] //'alpha(opacity=12,345)' + reg = /^alphaopacity=(\d+(?:\.\d+)?)opacity=(\d+(?:\.\d+)?)$/i + val = reg.test(val) ? reg.exec(val)[1] / 100 : 1 + } else { + val = curEle.currentStyle[attr] + } + } + // reg = /^(-?\d+(\.\d)?)(px|pt|em|rem)?$/i + // return reg.test(val) ? parseFloat(val) : val + return val + }, $setCss(el, key, value) { // console.log(value) if (key === 'transform') { @@ -232,7 +251,8 @@ export default { } }, $imgPreview(url) { - if (url.includes('http')){ + if (!url) return + if (url.includes('http')) { return url } return Config.filePreview + url @@ -275,8 +295,8 @@ export default { $dateFormat(val, type) { if (!val) return - if (val.length === 10){ - val+='000' + if (val.length === 10) { + val += '000' } if (typeof val === 'string' && (val.length === 10 || val.length === 13)) { val = Number(val)