Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
732ef1e0
Commit
732ef1e0
authored
Mar 17, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
edd029d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
205 additions
and
46 deletions
+205
-46
pages.json
pages.json
+4
-2
message.vue
pages/blindDate/message.vue
+21
-7
systemMsg.vue
pages/blindDate/systemMsg.vue
+136
-0
visitor.vue
pages/blindDate/visitor.vue
+42
-33
index.vue
pages/index/index.vue
+2
-4
No files found.
pages.json
View file @
732ef1e0
...
@@ -580,15 +580,17 @@
...
@@ -580,15 +580,17 @@
"path"
:
"personal/myrecruitstick"
//我的招募贴
"path"
:
"personal/myrecruitstick"
//我的招募贴
},{
},{
"path"
:
"richText"
//富文本编辑页面
"path"
:
"richText"
//富文本编辑页面
},{
},{
"path"
:
"message"
//消息
"path"
:
"message"
//消息
},{
},{
"path"
:
"visitor"
//访客
"path"
:
"visitor"
//访客
},{
"path"
:
"systemMsg"
//系统消息
},{
},{
"path"
:
"personal/mydate"
//我的约会
"path"
:
"personal/mydate"
//我的约会
}]
}]
},
},
//韩国馆项目
{
"root"
:
"pages/kotra"
,
"pages"
:
[{
"path"
:
"contanctus"
},{
"path"
:
"contanctDetail"
},{
"path"
:
"compInformation"
},{
//韩国馆项目
{
"root"
:
"pages/kotra"
,
"pages"
:
[{
"path"
:
"contanctus"
},{
"path"
:
"contanctDetail"
},{
"path"
:
"compInformation"
},{
"path"
:
"activeInner"
"path"
:
"activeInner"
},{
},{
"path"
:
"investment"
//投资
"path"
:
"investment"
//投资
...
...
pages/blindDate/message.vue
View file @
732ef1e0
<
template
>
<
template
>
<view
class=
"page"
>
<view
class=
"page"
>
<view
v-for=
"(item,index) in listData"
:key=
"index"
>
<view
v-for=
"(item,index) in listData"
:key=
"index"
>
<view
class=
"itemBox"
>
<view
class=
"itemBox"
@
click=
"jumpPage(index)"
>
<view
class=
"avatarBox"
>
<view
class=
"avatarBox"
>
<image
class=
"imgicon"
:src=
"item.imgurl"
mode=
"widthFix"
></image>
<image
class=
"imgicon"
:src=
"item.imgurl"
mode=
"widthFix"
></image>
<u-badge
size=
"mini"
class=
"badge"
:absolute=
"false"
:count=
"item.Num"
></u-badge>
<u-badge
size=
"mini"
class=
"badge"
:absolute=
"false"
:count=
"item.Num"
></u-badge>
...
@@ -34,6 +34,21 @@
...
@@ -34,6 +34,21 @@
}
}
},
},
methods
:
{
methods
:
{
jumpPage
(
index
){
let
url
=
""
;
if
(
index
==
0
){
url
=
""
}
else
if
(
index
==
1
){
url
=
"/pages/blindDate/systemMsg"
}
else
if
(
index
==
2
){
url
=
""
}
else
if
(
index
==
3
){
url
=
"/pages/blindDate/visitor"
}
uni
.
navigateTo
({
url
:
url
})
},
getMiaiMessageCenter
(){
getMiaiMessageCenter
(){
this
.
request2
(
this
.
request2
(
{
{
...
@@ -55,7 +70,6 @@
...
@@ -55,7 +70,6 @@
}
}
this
.
listData
.
push
(
res
.
data
[
key
])
this
.
listData
.
push
(
res
.
data
[
key
])
}
}
}
}
}
}
);
);
...
@@ -100,24 +114,24 @@
...
@@ -100,24 +114,24 @@
height
:
148rpx
;
height
:
148rpx
;
margin-left
:
27rpx
;
margin-left
:
27rpx
;
flex-grow
:
5
;
flex-grow
:
5
;
display
:
flex
;
flex-wrap
:
wrap
;
align-content
:
center
;
border-bottom
:
1rpx
solid
#E2E2E2
;
border-bottom
:
1rpx
solid
#E2E2E2
;
padding-top
:
40rpx
;
.infoTop
{
.infoTop
{
width
:
100%
;
width
:
100%
;
// height: 30rpx;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
// margin-bottom: 5rpx;
// margin-bottom:
1
5rpx;
.infoName
{
.infoName
{
font-size
:
30rpx
;
font-size
:
30rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#000000
;
color
:
#000000
;
}
}
.infoDate
{
.infoDate
{
font-size
:
24rpx
;
font-size
:
24rpx
;
font-weight
:
500
;
//
font-weight: 500;
color
:
#999999
;
color
:
#999999
;
}
}
}
}
...
...
pages/blindDate/systemMsg.vue
0 → 100644
View file @
732ef1e0
<
template
>
<view
class=
"page"
>
<u-empty
v-if=
"sysMsgData.length == 0"
text=
"暂无系统消息"
mode=
"list"
></u-empty>
<view
v-if=
"sysMsgData.length > 0"
style=
"
height: calc(100vh);
overflow: hidden;
padding-bottom: 50px;
"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<view
v-for=
"(item,index) in sysMsgData"
:key=
"index"
>
<view
class=
"itemBox"
>
<view
class=
"date"
>
{{
item
.
date
}}
</view>
<view
v-if=
"item.list"
v-for=
"(subItem,subIndex) in item.list"
:key=
"subIndex"
>
<view
class=
"subItemBox"
>
<view
class=
"top"
>
<image
class=
"icon"
:src=
"subItem.icon"
mode=
"heightFix"
></image>
<view
class=
"type"
>
{{
subItem
.
type
}}
</view>
</view>
</view>
</view>
</view>
</view>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#FFF"
/>
</scroll-view>
</view>
<!-- 加载中 -->
<view
class=
"loading"
v-if=
"loading"
>
<u-loading
mode=
"flower"
size=
"48"
></u-loading>
<Text
style=
"color: #fff; margin-top: 10rpx;"
>
加载中...
</Text>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
pageTitle
:
"系统消息"
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
SelectType
:
4
,
Status
:
-
1
},
sysMsgData
:[
{
date
:
"2021/03/01"
,
list
:[{
type
:
"系统消息"
,
icon
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Blind-ppplus.png"
,
tipMsg
:
"报名取消成功!"
,
con
:
'支付宝717生活狂欢节--开场动画 美术制造流程'
}]}
],
loading
:
false
,
status
:
"loadmore"
,
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
}
},
methods
:{
getMiaiMessagePageList
(){
this
.
request2
(
{
url
:
'/api/AppletMiai/GetMiaiMessagePageList'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
){
}
}
);
}
},
mounted
()
{
this
.
getMiaiMessagePageList
();
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.page
{
padding
:
0
30rpx
;
// width: 100%;
min-height
:
100vh
;
background-color
:
#EAEBEC
;
}
.itemBox
{
width
:
100%
;
.date
{
height
:
84rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
26rpx
;
font-weight
:
500
;
color
:
#888888
;
padding-top
:
40rpx
;
}
.subItemBox
{
// width: 100%;
height
:
290rpx
;
padding
:
30rpx
;
background-color
:
#FFFFFF
;
.top
{
width
:
100%
;
height
:
95rpx
;
display
:
flex
;
align-items
:
center
;
.icon
{
width
:
30rpx
;
height
:
30rpx
;
margin-right
:
10rpx
;
}
.type
{
font-size
:
30rpx
;
font-weight
:
800
;
color
:
#000000
;
}
}
}
}
</
style
>
pages/blindDate/visitor.vue
View file @
732ef1e0
...
@@ -47,23 +47,23 @@
...
@@ -47,23 +47,23 @@
<view
v-for=
"(item,index) in visitorData"
:key=
"index"
>
<view
v-for=
"(item,index) in visitorData"
:key=
"index"
>
<view
class=
"itemBox"
>
<view
class=
"itemBox"
>
<view
class=
"date"
>
<view
class=
"date"
>
{{
item
.
DateStr
}}
{{
item
.
date
.
slice
(
0
,
10
)
}}
</view>
</view>
<view
v-if=
"item.
List"
v-for=
"(subItem,subIndex) in item.L
ist"
:key=
"subIndex"
>
<view
v-if=
"item.
list"
v-for=
"(subItem,subIndex) in item.l
ist"
:key=
"subIndex"
>
<view
class=
"subItemBox"
>
<view
class=
"subItemBox"
>
<view
class=
"avaBox"
>
<view
class=
"avaBox"
>
<image
class=
"avatar"
src=
"subItem.Photo"
></image>
<image
class=
"avatar"
:
src=
"subItem.Photo"
></image>
<image
class=
"sex"
src=
"sex[subItem.Sex]"
></image>
<image
class=
"sex"
:
src=
"sex[subItem.Sex]"
></image>
</view>
</view>
<view
class=
"rightBox"
>
<view
class=
"rightBox"
>
<view
class=
"infoBox"
>
<view
class=
"infoBox"
>
<view
class=
"name"
>
<view
class=
"name"
>
{{
subItem
.
UserName
}}
{{
subItem
.
RealName
||
subItem
.
UserName
}}
</view>
</view>
<view
class=
"time"
>
<view
class=
"time"
>
{{
subItem
.
CreateDate
Hour
}}
访问了你的自画像
{{
subItem
.
CreateDate
.
slice
(
-
5
)
}}
访问了你的自画像
</view>
</view>
</view>
</view>
<view
class=
"icon"
>
</view>
<view
class=
"icon"
>
</view>
...
@@ -89,7 +89,10 @@
...
@@ -89,7 +89,10 @@
data
()
{
data
()
{
return
{
return
{
pageTitle
:
"访客"
,
pageTitle
:
"访客"
,
sex
:{
0
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"
,
1
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"
},
sex
:
{
0
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"
,
1
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"
},
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
10
,
pageSize
:
10
,
...
@@ -143,28 +146,32 @@
...
@@ -143,28 +146,32 @@
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
handleDate
(
res
.
data
.
pageData
,
"CreateDateDay"
)
let
data
=
this
.
handleDate
(
res
.
data
.
pageData
,
"CreateDate"
,
"CreateDate"
)
// this.visitorData = this.visitorData.concat(data);
console
.
log
(
data
)
this
.
visitorData
=
this
.
visitorData
.
concat
(
data
);
this
.
pageCount
=
res
.
data
.
pageCount
this
.
pageCount
=
res
.
data
.
pageCount
}
}
}
}
);
);
},
},
handleDate
(
array
,
date
){
handleDate
(
arr
,
date
,
id
)
{
let
newArr
=
array
.
reduce
((
results
,
item
)
=>
{
let
newArr
=
[]
const
current
=
results
.
find
(
i
=>
i
.
date
===
item
.
date
);
if
(
current
)
{
arr
.
map
((
item
,
i
)
=>
{
for
(
let
property
in
item
)
{
let
find
=
newArr
.
filter
((
e
)
=>
{
if
(
property
!==
date
)
{
return
e
.
date
==
item
[
date
]
current
[
property
]
=
item
[
property
];
})
}
if
(
find
.
length
>
0
)
{
}
find
[
0
].
list
.
push
(
item
)
}
else
{
}
else
{
results
.
push
({...
item
});
let
obj
=
{
}
date
:
item
[
date
],
return
results
;
list
:
[
item
]
},
[]);
}
console
.
log
(
newArr
)
newArr
.
push
(
obj
)
}
},
[])
return
newArr
},
},
lower
(
e
)
{
lower
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -255,8 +262,9 @@
...
@@ -255,8 +262,9 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.avaBox
{
.avaBox
{
position
:
relative
;
position
:
relative
;
.avatar
{
.avatar
{
width
:
80rpx
;
width
:
80rpx
;
height
:
80rpx
;
height
:
80rpx
;
...
@@ -264,16 +272,17 @@
...
@@ -264,16 +272,17 @@
background-color
:
#00BFFF
;
background-color
:
#00BFFF
;
margin-right
:
30rpx
;
margin-right
:
30rpx
;
}
}
.sex
{
width
:
80rpx
;
.sex
{
height
:
80rpx
;
width
:
30rpx
;
height
:
30rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:absolute
;
position
:
absolute
;
right
:
0
;
right
:
30rpx
;
bottom
:
0
;
bottom
:
0
;
}
}
}
}
.rightBox
{
.rightBox
{
flex-grow
:
5
;
flex-grow
:
5
;
...
...
pages/index/index.vue
View file @
732ef1e0
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<u-icon
name=
"arrow-left"
size=
"44"
></u-icon>
<u-icon
name=
"arrow-left"
size=
"44"
></u-icon>
</view>
</view>
</view>
</view>
<
!--
<view
@
click=
'yj'
style=
"width: 200px;height: 50px;"
>
活动
</view>
--
>
<
view
@
click=
'yj'
style=
"width: 200px;height: 50px;"
>
活动
</view
>
<u-tabs
v-if=
"myPageData.home_pages && myPageData.home_pages.navs.length > 1"
name=
"name"
:list=
"myPageData.home_pages.navs"
<u-tabs
v-if=
"myPageData.home_pages && myPageData.home_pages.navs.length > 1"
name=
"name"
:list=
"myPageData.home_pages.navs"
:is-scroll=
"true"
:active-color=
"mainColor"
:current=
"active"
:bar-width=
"80"
:font-size=
"32"
:bold=
"false"
@
change=
"changeHandler"
></u-tabs>
:is-scroll=
"true"
:active-color=
"mainColor"
:current=
"active"
:bar-width=
"80"
:font-size=
"32"
:bold=
"false"
@
change=
"changeHandler"
></u-tabs>
<template
v-for=
"(item, i) in myPageData.home_pages.navs"
>
<template
v-for=
"(item, i) in myPageData.home_pages.navs"
>
...
@@ -1133,9 +1133,7 @@
...
@@ -1133,9 +1133,7 @@
yj
(){
yj
(){
uni
.
navigateTo
({
uni
.
navigateTo
({
// url: '/pages/blindDate/message'
url
:
'/pages/blindDate/message'
url
:
'/pages/blindDate/visitor'
})
})
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment