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
e7bd2bc1
Commit
e7bd2bc1
authored
Mar 16, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a4b68f60
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
209 additions
and
24 deletions
+209
-24
pages.json
pages.json
+2
-0
mydate.vue
pages/blindDate/personal/mydate.vue
+178
-0
mysignupList.vue
pages/blindDate/personal/mysignupList.vue
+2
-2
postDetails.vue
pages/blindDate/postDetails.vue
+5
-11
postPublishing.vue
pages/blindDate/postPublishing.vue
+19
-9
postbar.vue
pages/blindDate/postbar.vue
+3
-2
No files found.
pages.json
View file @
e7bd2bc1
...
...
@@ -580,6 +580,8 @@
"path"
:
"personal/myrecruitstick"
//我的招募贴
},{
"path"
:
"richText"
//富文本编辑页面
},{
"path"
:
"personal/mydate"
//我的约会
}]
},
//韩国馆项目
{
"root"
:
"pages/kotra"
,
"pages"
:
[{
"path"
:
"contanctus"
},{
"path"
:
"contanctDetail"
},{
"path"
:
"compInformation"
},{
...
...
pages/blindDate/personal/mydate.vue
0 → 100644
View file @
e7bd2bc1
<
template
>
<view
class=
"mydate"
:style=
"
{ height: contentHeight }">
<u-tabs
:list=
"list"
:is-scroll=
"false"
:current=
"current"
@
change=
"change"
:active-color=
"mainColor"
></u-tabs>
<u-empty
v-if=
"g.length == 0"
text=
"暂无约会记录"
mode=
"list"
></u-empty>
<view
v-if=
"g.length > 0"
style=
"
height: calc(100vh);
width: calc(100vw);
overflow: hidden;
"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }"
>
<view
class=
"details"
>
<view
class=
"item"
v-for=
"(x, i) in g"
:key=
"i"
>
</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>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'gbAuth'
></auth>
</view>
</
template
>
<
script
>
import
auth
from
"@/components/auth/index.vue"
;
export
default
{
components
:
{
auth
},
data
()
{
return
{
pageTitle
:
"我的约会"
,
showAuth
:
false
,
u
:{},
show
:
false
,
current
:
0
,
mainColor
:
""
,
contentHeight
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
10
,
},
page_count
:
1
,
g
:
[],
loading
:
false
,
status
:
"loadmore"
,
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
};
},
created
()
{
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
let
pages
=
wx
.
getStorageSync
(
"basedata"
)
?
wx
.
getStorageSync
(
"basedata"
).
bar_title
:
[];
pages
.
forEach
((
x
)
=>
{
if
(
x
.
value
==
u
)
{
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
:
function
(
option
)
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
};
this
.
showAuth
=
true
;
}
else
{
this
.
init
();
}
},
methods
:
{
init
()
{
this
.
request2
(
{
url
:
'/api/AppletMiai/GetMiaiMyDatingPageList'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
loading
=
false
;
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
this
.
status
=
"nomore"
;
}
}
}
);
},
lower
(
e
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
this
.
msg
.
pageIndex
++
;
this
.
status
=
"loading"
;
this
.
init
();
}
else
{
this
.
status
=
"nomore"
;
}
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
// this.showAuth=false;
this
.
init
();
},
//关闭登录窗口
gbAuth
(){
uni
.
navigateBack
()
},
},
};
</
script
>
<
style
>
.mydate
{
width
:
100%
;
height
:
100%
;
background
:
#FFF
;
position
:
relative
;
}
</
style
>
pages/blindDate/personal/mysignupList.vue
View file @
e7bd2bc1
...
...
@@ -12,10 +12,10 @@
<view
v-if=
"g.length > 0"
style=
"
height: calc(100vh);
height: calc(100vh
- 50px
);
width: calc(100vw);
overflow: hidden;
padding-bottom: 50px;
"
>
<scroll-view
...
...
pages/blindDate/postDetails.vue
View file @
e7bd2bc1
...
...
@@ -62,7 +62,7 @@
background
:
#F0F0F0
;
font-size
:
11px
;
color
:
#111111
;
padding
:
1
5px
;
padding
:
1
0px
15px
0
;
}
.postDetails
.content
{
font-size
:
13px
;
...
...
@@ -339,8 +339,8 @@
{{
details
.
IsFocus
==
0
?
'关注'
:
details
.
IsFocus
==
1
?
'已关注'
:
'互相关注'
}}
</view>
</view>
<view
class=
"activitytime"
v-if=
'details.IsOpenEnroll==1'
>
<view
class=
"activitytime-item"
>
<view
class=
"activitytime"
>
<view
class=
"activitytime-item"
v-if=
'details.IsOpenEnroll==1'
>
<view
class=
"activitytime-item-l"
>
报名截止时间
</view>
...
...
@@ -358,17 +358,16 @@
</view>
<text>
{{
details
.
EndTime
}}
</text>
</view>
<view
class=
"activitytime-item"
>
<view
class=
"activitytime-item"
v-if=
'details.IsOpenEnroll==1'
>
<view
class=
"activitytime-item-l"
>
报名人数
</view>
<text>
男
{{
details
.
ManNum
}}
人
<text
style=
"margin-left: 10px;"
>
女
{{
details
.
WoManNum
}}
人
</text>
</text>
</view>
<view
class=
"activitytime-item"
style=
"margin-bottom: 0;
"
>
<view
class=
"activitytime-item"
v-if=
"details.LocationName !=null && details.LocationName!=''
"
>
<view
class=
"activitytime-item-l"
>
活动地址
</view>
<view
style=
"display: flex;flex-wrap: wrap;"
>
<u-icon
name=
"location"
:color=
"mainColor"
size=
"30"
></u-icon>
<text
style=
"margin-left: 5px;"
>
{{
details
.
LocationName
}}
</text>
...
...
@@ -379,11 +378,6 @@
<rich-text
:nodes=
"details.Content"
></rich-text>
</view>
<!--
<view
style=
"width: 100%;"
v-if=
"details.ImageList.length>0"
>
<view
v-for=
"(x, i) in details.ImageList"
:key=
"i"
>
<image
:src=
"x"
mode=
"widthFix"
class=
"imgs"
@
click=
"previewImage(i,details.ImageList)"
></image>
</view>
</view>
-->
<view
class=
"esignup"
v-if=
"details.IsOpenEnroll==1"
>
<view
v-if=
'Enrollcount==0'
style=
"font-size: 12px;color: #111111;"
>
暂无人报名
</view>
<view
v-if=
'Enrollcount>0'
>
...
...
pages/blindDate/postPublishing.vue
View file @
e7bd2bc1
...
...
@@ -169,7 +169,7 @@
<u-icon
name=
"arrow"
color=
"#A5A4AC"
size=
"30"
></u-icon>
</view>
</view>
<view
class=
"box-item"
style=
"justify-content: space-between;"
v-if=
"addMsg.IsOpenEnroll==1"
@
click=
"showtime = true,defaulttime= addMsg.StartTime,timetype=2"
>
<view
class=
"box-item"
style=
"justify-content: space-between;"
@
click=
"showtime = true,defaulttime= addMsg.StartTime,timetype=2"
>
<text
style=
"font-size:12px;color: #666666;"
>
活动开始时间
</text>
<view
class=
"flex-row"
>
<text
style=
"margin-right: 5px;font-size:12px;color: #999999"
v-if=
"addMsg.StartTime==''"
>
请选择活动开始时间
</text>
...
...
@@ -177,7 +177,7 @@
<u-icon
name=
"arrow"
color=
"#A5A4AC"
size=
"30"
></u-icon>
</view>
</view>
<view
class=
"box-item"
style=
"justify-content: space-between;"
v-if=
"addMsg.IsOpenEnroll==1"
@
click=
"showtime = true,defaulttime= addMsg.EndTime,timetype=3"
>
<view
class=
"box-item"
style=
"justify-content: space-between;"
@
click=
"showtime = true,defaulttime= addMsg.EndTime,timetype=3"
>
<text
style=
"font-size:12px;color: #666666;"
>
活动结束时间
</text>
<view
class=
"flex-row"
>
<text
style=
"margin-right: 5px;font-size:12px;color: #999999"
v-if=
"addMsg.EndTime==''"
>
请选择活动结束时间
</text>
...
...
@@ -410,16 +410,17 @@ export default {
},
releasebtn
(){
if
(
this
.
addMsg
.
ForumId
==
0
){
if
(
this
.
addMsg
.
ImageList
.
length
==
0
){
uni
.
showToast
({
title
:
'请
选择分类板块
'
,
title
:
'请
上传招募贴图片
'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addMsg
.
ActivityTitle
==
''
){
uni
.
showToast
({
title
:
'
编辑
不能为空'
,
title
:
'
主题
不能为空'
,
icon
:
'none'
,
})
return
...
...
@@ -431,20 +432,29 @@ export default {
})
return
}
if
(
this
.
addMsg
.
IsOpenEnroll
==
1
&&
this
.
addMsg
.
Deadlin
e
==
''
){
if
(
this
.
addMsg
.
StartTim
e
==
''
){
uni
.
showToast
({
title
:
'请选择
报名截止
时间'
,
title
:
'请选择
活动开始
时间'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addMsg
.
ImageList
.
length
==
0
){
if
(
this
.
addMsg
.
EndTime
==
''
){
uni
.
showToast
({
title
:
'请上传招募贴图片'
,
title
:
'请选择活动结束时间'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addMsg
.
IsOpenEnroll
==
1
&&
this
.
addMsg
.
Deadline
==
''
){
uni
.
showToast
({
title
:
'请选择报名截止时间'
,
icon
:
'none'
,
})
return
}
this
.
disbth
=
true
let
pages
=
getCurrentPages
();
// 当前页面
...
...
pages/blindDate/postbar.vue
View file @
e7bd2bc1
...
...
@@ -71,10 +71,11 @@
</text>
<view
style=
"display: flex;align-items: center;justify-content: space-between;font-size: 11px;color: #858687;"
>
<view
style=
"display: flex;align-items: center;"
>
<text>
报名
{{
x
.
EnrollNum
}}
人
</text>
<text
style=
"margin-left: 5px;"
>
{{
x
.
ReplyNum
}}
留言
</text>
<text
v-if=
"x.IsOpenEnroll==1"
style=
"margin-right: 5px;"
>
报名
{{
x
.
EnrollNum
}}
人
</text>
<text
>
{{
x
.
ReplyNum
}}
留言
</text>
</view>
<text
v-if=
"x.IsOpenEnroll==1"
>
{{
x
.
Deadline
}}
截止
</text>
<text
v-if=
"x.IsOpenEnroll==2"
>
创建时间:
{{
x
.
CreateDate
}}
</text>
</view>
</view>
</view>
...
...
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