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
66ca6b05
Commit
66ca6b05
authored
Mar 05, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 接口的绑定
parent
cdcba47f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
392 additions
and
176 deletions
+392
-176
baomingList.vue
pages/blindDate/baomingList.vue
+44
-20
basicdata.vue
pages/blindDate/basicdata.vue
+199
-66
followlist.vue
pages/blindDate/personal/followlist.vue
+23
-13
persondetails.vue
pages/blindDate/persondetails.vue
+91
-74
postDetails.vue
pages/blindDate/postDetails.vue
+35
-3
No files found.
pages/blindDate/baomingList.vue
View file @
66ca6b05
...
...
@@ -29,14 +29,15 @@
</view>
</view>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
v-if=
"UserId != x.UserId"
>
<view
class=
"iconstyle"
:style=
"
{background:mainColor,border:'none'}" v-if="x.IsFocus==0">
<u-icon
name=
"plus"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
<view
class=
"iconstyle"
:style=
"
{background:mainColor}" v-if="x.IsFocus==1">
<u-icon
name=
"success"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png"
style=
"width: 50rpx;height: 50rpx;"
v-if=
"x.IsFocus==2"
></image>
<view
class=
"iconstyle"
:style=
"
{background:mainColor}" v-else>
<u-icon
name=
"plus"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
</view>
</view>
</view>
...
...
@@ -59,14 +60,15 @@
<view>
{{
x
.
Mobile
}}
</view>
</view>
</view>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
v-if=
"UserId != x.UserId"
>
<view
class=
"iconstyle"
:style=
"
{background:mainColor,border:'none'}" v-if="x.IsFocus==0">
<u-icon
name=
"plus"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
<view
class=
"iconstyle"
:style=
"
{background:mainColor}" v-if="x.IsFocus==1">
<u-icon
name=
"success"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png"
style=
"width: 50rpx;height: 50rpx;"
v-if=
"x.IsFocus==2"
></image>
<view
class=
"iconstyle"
:style=
"
{background:mainColor}" v-else>
<u-icon
name=
"plus"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
</view>
</view>
<view
class=
"box-Remark"
v-if=
"x.Remark!=''"
>
...
...
@@ -127,6 +129,7 @@ export default {
nomore
:
"没有更多了"
,
},
windowWidth
:
0
,
UserId
:
0
,
};
},
created
()
{
...
...
@@ -135,7 +138,7 @@ export default {
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
pricecolor
=
this
.
$uiConfig
.
pricecolor
;
this
.
windowWidth
=
this
.
$utils
.
SystemInfo
().
windowWidth
;
this
.
UserId
=
uni
.
getStorageSync
(
'mall_UserInfo'
)?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
;
},
mounted
()
{
let
currentPages
=
getCurrentPages
();
...
...
@@ -159,6 +162,7 @@ export default {
this
.
type
=
options
.
type
;
this
.
msg
.
ActivityId
=
options
.
ActivityId
;
}
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
...
...
@@ -192,21 +196,40 @@ export default {
);
},
setFollowTeacher
(
x
,
i
){
let
ID
=
0
if
(
x
.
IsFocus
!=
0
){
ID
=
x
.
MyFollowId
}
this
.
request2
({
url
:
'/api/Applet
Education/baomingList
'
,
url
:
'/api/Applet
Miai/GetFollowMember
'
,
data
:
{
ID
:
x
.
ID
,
TeacherId
:
x
.
Teach
erId
,
ID
:
ID
,
UserId
:
x
.
Us
erId
,
}
},
res
=>
{
this
.
g
.
splice
(
i
,
1
)
this
.
count
--
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
,
duration
:
2000
});
title
:
res
.
message
,
icon
:
'none'
})
this
.
request2
(
{
url
:
'/api/AppletMiai/GetActivityEnrollPageList'
,
data
:
{
pageIndex
:
1
,
pageSize
:
10
,
ActivityId
:
this
.
msg
.
ActivityId
,
Id
:
x
.
Id
},
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
g
[
i
]
=
res
.
data
.
pageData
[
0
]
this
.
$forceUpdate
()
}
}
);
}
);
...
...
@@ -295,9 +318,10 @@ export default {
margin-left
:
8px
;
color
:
#111111
;
display
:
flex
;
align-items
:
flex-end
;
justify-content
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
font-size
:
13px
;
}
.iconstyle
{
width
:
50
rpx
;
...
...
pages/blindDate/basicdata.vue
View file @
66ca6b05
<
style
>
.basicdata
{
width
:
100%
;
h
eight
:
100vh
;
H
eight
:
100vh
;
background
:
#FFFFFF
;
padding
:
20px
15px
;
}
...
...
@@ -32,12 +32,12 @@
}
.basicdata
.tx-img
{
width
:
228
upx
;
h
eight
:
250
upx
;
H
eight
:
250
upx
;
}
.basicdata
.tx-text
{
width
:
200
upx
;
h
eight
:
30px
;
H
eight
:
30px
;
background
:
#F8F8F8
;
border-radius
:
15px
;
display
:
flex
;
...
...
@@ -52,7 +52,7 @@
.basicdata
.xueli_item
{
margin-top
:
17px
;
width
:
100%
;
h
eight
:
80px
;
H
eight
:
80px
;
border-radius
:
10px
;
background
:
#F8F8F8
;
display
:
flex
;
...
...
@@ -63,7 +63,7 @@
.basicdata
.xueli_item_l
{
width
:
50%
;
position
:
relative
;
h
eight
:
100%
;
H
eight
:
100%
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
center
;
...
...
@@ -71,12 +71,12 @@
}
.basicdata
.xueli_item_r
{
width
:
50%
;
h
eight
:
100%
;
H
eight
:
100%
;
}
.basicdata
.sfz
{
width
:
100%
;
h
eight
:
130px
;
H
eight
:
130px
;
border-radius
:
10px
;
margin-top
:
15px
;
background
:
#F8F8F8
;
...
...
@@ -98,12 +98,12 @@
}
.basicdata
.sfz-r
{
width
:
286
upx
;
h
eight
:
97px
;
H
eight
:
97px
;
}
.basicdata
.input-style
{
width
:
100%
;
h
eight
:
43px
;
H
eight
:
43px
;
margin-top
:
15px
;
display
:
flex
;
flex-direction
:
row
;
...
...
@@ -117,7 +117,7 @@
}
.basicdata
.tjiao
{
width
:
100%
;
h
eight
:
44px
;
H
eight
:
44px
;
margin-top
:
35px
;
border-radius
:
22px
;
display
:
flex
;
...
...
@@ -135,88 +135,88 @@
</view>
<view
class=
"basicdata-box"
style=
"padding: 0 15px;"
v-show=
"step==1"
>
<view
class=
"box-xingbie"
>
<view
class=
"tx"
@
click=
"addmsg.
gender
=1"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/male-y.png"
class=
"tx-img"
v-if=
"addmsg.
gender
==1"
></image>
<view
class=
"tx"
@
click=
"addmsg.
Sex
=1"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/male-y.png"
class=
"tx-img"
v-if=
"addmsg.
Sex
==1"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/male-n.png"
class=
"tx-img"
v-else
></image>
<view
class=
"tx-text"
:style=
"
{'color':addmsg.
gender==1?mainColor:'#999999','border':addmsg.gender==1?'1px solid '+mainColor:'none','box-shadow':addmsg.gender
==1?'0 3px 8px 0px '+mainColor:'0'}">
<view
class=
"tx-text"
:style=
"
{'color':addmsg.
Sex==1?mainColor:'#999999','border':addmsg.Sex==1?'1px solid '+mainColor:'none','box-shadow':addmsg.Sex
==1?'0 3px 8px 0px '+mainColor:'0'}">
我是男生
</view>
</view>
<view
class=
"tx"
@
click=
"addmsg.
gender
=2"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/female-y.png"
class=
"tx-img"
v-if=
"addmsg.
gender
==2"
></image>
<view
class=
"tx"
@
click=
"addmsg.
Sex
=2"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/female-y.png"
class=
"tx-img"
v-if=
"addmsg.
Sex
==2"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/female-n.png"
class=
"tx-img"
v-else
></image>
<view
class=
"tx-text"
:style=
"
{'color':addmsg.
gender==2?mainColor:'#999999','border':addmsg.gender==2?'1px solid '+mainColor:'none','box-shadow':addmsg.gender
==2?'0 3px 8px 0px '+mainColor:'0'}">
<view
class=
"tx-text"
:style=
"
{'color':addmsg.
Sex==2?mainColor:'#999999','border':addmsg.Sex==2?'1px solid '+mainColor:'none','box-shadow':addmsg.Sex
==2?'0 3px 8px 0px '+mainColor:'0'}">
我是女生
</view>
</view>
</view>
<view
class=
"box-birth"
>
<view
style=
"display: flex;flex-direction: row;align-items: center;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/rili.png"
style=
"width: 13px;
h
eight: 13px;"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/rili.png"
style=
"width: 13px;
H
eight: 13px;"
></image>
<text
style=
"font-size: 13px;color: #888888;margin-left: 5px;"
>
出生日期(年龄大于18岁)
</text>
</view>
<view
style=
"padding: 20px 0;"
>
<mypicker
mode=
"time"
v-model=
"showp"
:params=
"params"
:end-year=
'endyear'
@
confirm=
'getTime'
:default-time=
'addmsg.
birth
'
></mypicker>
<mypicker
mode=
"time"
v-model=
"showp"
:params=
"params"
:end-year=
'endyear'
@
confirm=
'getTime'
:default-time=
'addmsg.
Birthday
'
></mypicker>
</view>
</view>
</view>
<view
style=
"padding: 0 15px;"
v-if=
"step==2"
>
<view
style=
"display: flex;flex-direction: row;align-items: center;justify-content: space-between;;margin-top: 35px;"
>
<view
style=
"display: flex;flex-direction: row;align-items: center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-weight.png"
style=
"width: 13px;
h
eight: 13px;"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-weight.png"
style=
"width: 13px;
H
eight: 13px;"
></image>
<text
style=
"font-size: 13px;color: #888888;margin-left: 5px;"
>
体重(kg)
</text>
</view>
<view
style=
"display: flex;flex-direction: row;align-items: flex-end;color: #111111;"
>
<text
style=
"font-size: 14px;"
>
{{
addmsg
.
w
eight
}}
</text>
<text
style=
"font-size: 14px;"
>
{{
addmsg
.
W
eight
}}
</text>
<text
style=
"font-size: 12px;margin-left: 5px;"
>
kg
</text>
</view>
</view>
<scroll-choose
@
scroll=
"scroll"
:scrollStart=
"weightStart"
:scrollEnd=
"weightEnd"
:scrollLeft=
"addmsg.
w
eight"
:maginL=
"maginL"
></scroll-choose>
<scroll-choose
@
scroll=
"scroll"
:scrollStart=
"weightStart"
:scrollEnd=
"weightEnd"
:scrollLeft=
"addmsg.
W
eight"
:maginL=
"maginL"
></scroll-choose>
<view
style=
"display: flex;flex-direction: row;align-items: center;justify-content: space-between;;margin-top: 35px;"
>
<view
style=
"display: flex;flex-direction: row;align-items: center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-height.png"
style=
"width: 13px;
h
eight: 13px;"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-height.png"
style=
"width: 13px;
H
eight: 13px;"
></image>
<text
style=
"font-size: 13px;color: #888888;margin-left: 5px;"
>
身高(cm)
</text>
</view>
<view
style=
"display: flex;flex-direction: row;align-items: flex-end;color: #111111;"
>
<text
style=
"font-size: 14px;"
>
{{
addmsg
.
h
eight
}}
</text>
<text
style=
"font-size: 14px;"
>
{{
addmsg
.
H
eight
}}
</text>
<text
style=
"font-size: 12px;margin-left: 5px;"
>
cm
</text>
</view>
</view>
<scroll-choose
@
scroll=
"scroll2"
:scrollStart=
"heightStart"
:scrollEnd=
"heightEnd"
:scrollLeft=
"addmsg.
h
eight"
:maginL=
"maginL"
></scroll-choose>
<scroll-choose
@
scroll=
"scroll2"
:scrollStart=
"heightStart"
:scrollEnd=
"heightEnd"
:scrollLeft=
"addmsg.
H
eight"
:maginL=
"maginL"
></scroll-choose>
</view>
<view
style=
"padding: 0 15px;"
v-if=
"step==3"
>
<view
class=
"xueli_item"
v-for=
"(x,y) in
xuelist"
:key=
'y'
@
click=
"addmsg.xueli= x.Id"
:style=
"
{'border':addmsg.xueli==x.Id?'1px solid '+mainColor:'none','box-shadow':addmsg.xueli
==x.Id?'0 3px 8px 0px '+mainColor:'0'}">
<view
class=
"xueli_item"
v-for=
"(x,y) in
enumList"
:key=
'y'
@
click=
"addmsg.EducationType= x.Id"
:style=
"
{'border':addmsg.EducationType==x.Id?'1px solid '+mainColor:'none','box-shadow':addmsg.EducationType
==x.Id?'0 3px 8px 0px '+mainColor:'0'}">
<view
class=
"xueli_item_l"
>
<image
src=
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/xueilibg.png'
style=
"width: 70px;
h
eight: 63px;position: absolute;left: 12px;bottom: 0;"
></image>
<image
:src=
'x.img_y'
v-if=
"addmsg.
xueli==x.Id"
style=
"width: 66px;h
eight: 70px;margin-top: 5px;"
></image>
<image
:src=
'x.img_n'
v-else
style=
"width: 66px;
h
eight: 70px;margin-top: 5px;"
></image>
<image
src=
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/xueilibg.png'
style=
"width: 70px;
H
eight: 63px;position: absolute;left: 12px;bottom: 0;"
></image>
<image
:src=
'x.img_y'
v-if=
"addmsg.
EducationType==x.Id"
style=
"width: 66px;H
eight: 70px;margin-top: 5px;"
></image>
<image
:src=
'x.img_n'
v-else
style=
"width: 66px;
H
eight: 70px;margin-top: 5px;"
></image>
</view>
<view
class=
"xueli_item_r"
>
<view
style=
"font-weight: bold;margin-top: 23px;"
>
<text
:style=
"
{'color':addmsg.
xueli==x.Id?mainColor:'#111111',}">
{{
x
.
n
ame
}}
</text>
<text
:style=
"
{'color':addmsg.
EducationType==x.Id?mainColor:'#111111',}">
{{
x
.
N
ame
}}
</text>
</view>
<view
style=
"font-size: 12px;color: #A1A0A7;margin-top: 9px;"
>
选此学历
</view>
</view>
</view>
</view>
<view
style=
"padding: 0 15px;"
v-if=
"step==4"
>
<view
class=
"xueli_item"
v-for=
"(x,y) in
marriagelist"
:key=
'y'
@
click=
"addmsg.marriage= x.Id"
:style=
"
{'border':addmsg.marriage==x.Id?'1px solid '+mainColor:'none','box-shadow':addmsg.m
arriage==x.Id?'0 3px 8px 0px '+mainColor:'0'}">
<view
class=
"xueli_item"
v-for=
"(x,y) in
Marriage"
:key=
'y'
@
click=
"addmsg.Marriage= x.Id"
:style=
"
{'border':addmsg.Marriage==x.Id?'1px solid '+mainColor:'none','box-shadow':addmsg.M
arriage==x.Id?'0 3px 8px 0px '+mainColor:'0'}">
<view
class=
"xueli_item_l"
>
<image
:src=
'xueilibg'
style=
"width: 70px;
h
eight: 63px;position: absolute;left: 12px;bottom: 0;"
></image>
<image
:src=
'x.img_y'
v-if=
"addmsg.
marriage==x.Id"
style=
"width: 66px;h
eight: 70px;margin-top: 5px;"
></image>
<image
:src=
'x.img_n'
v-else
style=
"width: 66px;
h
eight: 70px;margin-top: 5px;"
></image>
<image
:src=
'xueilibg'
style=
"width: 70px;
H
eight: 63px;position: absolute;left: 12px;bottom: 0;"
></image>
<image
:src=
'x.img_y'
v-if=
"addmsg.
Marriage==x.Id"
style=
"width: 66px;H
eight: 70px;margin-top: 5px;"
></image>
<image
:src=
'x.img_n'
v-else
style=
"width: 66px;
H
eight: 70px;margin-top: 5px;"
></image>
</view>
<view
class=
"xueli_item_r"
>
<view
style=
"font-weight: bold;margin-top: 23px;"
>
<text
:style=
"
{'color':addmsg.
marriage==x.Id?mainColor:'#111111',}">
{{
x
.
n
ame
}}
</text>
<text
:style=
"
{'color':addmsg.
Marriage==x.Id?mainColor:'#111111',}">
{{
x
.
N
ame
}}
</text>
</view>
<view
style=
"font-size: 12px;color: #A1A0A7;margin-top: 9px;"
>
选此婚姻状态
</view>
</view>
</view>
</view>
<view
class=
"btns"
:style=
"
{'justify-content':step==1?'center':'space-around'}" v-if="step!=5">
<image
v-if=
"step!=1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-left.png"
style=
"width: 136upx;
h
eight: 136upx;"
@
click=
"laststep"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-right.png"
style=
"width: 136upx;
h
eight: 136upx;"
@
click=
"nextstep"
></image>
<image
v-if=
"step!=1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-left.png"
style=
"width: 136upx;
H
eight: 136upx;"
@
click=
"laststep"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-right.png"
style=
"width: 136upx;
H
eight: 136upx;"
@
click=
"nextstep"
></image>
</view>
<view
v-if=
"step==5"
>
<view
style=
"font-size: 17px;color:#111111;font-weight: bold;"
>
请上传身份证正反面
</view>
...
...
@@ -226,8 +226,8 @@
<view
class=
"sfz-l-c"
>
上传您的身份证头像面
</view>
</view>
<view
class=
"sfz-r"
@
click=
"upimg(1)"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/sfz-z.png"
style=
"width: 100%;
height: 100%;"
v-if=
"addmsg.sfz_z
==''"
></image>
<image
:src=
"addmsg.
sfz_z"
style=
"width: 100%;h
eight: 100%;"
v-else
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/sfz-z.png"
style=
"width: 100%;
Height: 100%;"
v-if=
"addmsg.IDCard
==''"
></image>
<image
:src=
"addmsg.
IDCard"
style=
"width: 100%;H
eight: 100%;"
v-else
></image>
</view>
</view>
<view
class=
"sfz"
>
...
...
@@ -236,20 +236,20 @@
<view
class=
"sfz-l-c"
>
上传您的身份证国徽面
</view>
</view>
<view
class=
"sfz-r"
@
click=
"upimg(2)"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/sfz-f.png"
style=
"width: 100%;
height: 100%;"
v-if=
"addmsg.sfz_f
==''"
></image>
<image
:src=
"addmsg.
sfz_f"
style=
"width: 100%;h
eight: 100%;"
v-else
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/sfz-f.png"
style=
"width: 100%;
Height: 100%;"
v-if=
"addmsg.IDCardBack
==''"
></image>
<image
:src=
"addmsg.
IDCardBack"
style=
"width: 100%;H
eight: 100%;"
v-else
></image>
</view>
</view>
<view
style=
"font-size: 17px;color:#111111;font-weight: bold;margin-top: 20px;"
>
请完善您的个人信息
</view>
<view
class=
"input-style"
>
<view
class=
"input-style-l"
>
姓名
</view>
<input
type=
"text"
v-model=
"addmsg.
n
ame"
style=
"width: 1px;flex: 1;border: none;"
placeholder=
'请输入姓名'
>
<input
type=
"text"
v-model=
"addmsg.
RealN
ame"
style=
"width: 1px;flex: 1;border: none;"
placeholder=
'请输入姓名'
>
</view>
<view
class=
"input-style"
>
<view
class=
"input-style-l"
>
身份证号
</view>
<input
type=
"idcard"
v-model=
"addmsg.IDNo"
style=
"width: 1px;flex: 1;border: none;"
placeholder=
'请输入本人身份证号'
>
<input
type=
"idcard"
v-model=
"addmsg.ID
Card
No"
style=
"width: 1px;flex: 1;border: none;"
placeholder=
'请输入本人身份证号'
>
</view>
<view
class=
"tjiao"
:style=
"
{background:mainColor}">
<view
class=
"tjiao"
:style=
"
{background:mainColor}"
@click="tijiao()"
>
提交
</view>
</view>
...
...
@@ -273,16 +273,32 @@
secondary
:
''
,
step
:
1
,
addmsg
:{
gender
:
1
,
//性别
birth
:
'1990-03-01'
,
weight
:
60
,
height
:
160
,
xueli
:
0
,
marriage
:
0
,
sfz_z
:
''
,
sfz_f
:
''
,
name
:
''
,
IDNo
:
''
,
Sex
:
1
,
//性别
Birthday
:
'1990-03-01'
,
Weight
:
60
,
Height
:
160
,
EducationType
:
1
,
Marriage
:
1
,
IDCard
:
''
,
IDCardBack
:
''
,
RealName
:
''
,
IDCardNo
:
''
,
HuKou
:
''
,
NativePlace
:
''
,
HouseInfo
:
''
,
SchoolInfo
:
''
,
YearMoney
:
0
,
Job
:
''
,
OtherPople
:
''
,
MajorInfo
:
''
,
CarInfo
:
''
,
FatherInfo
:
''
,
MotherInfo
:
''
,
About
:
''
,
IdealLove
:
''
,
AlbumList
:[]
},
endyear
:
''
,
params
:
{
...
...
@@ -300,18 +316,20 @@
heightEnd
:
250
,
//身高结束值
maginL
:
5
,
//线间距
xuelist
:[
{
Id
:
0
,
name
:
'高中及以下'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/gaozhong-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/gaozhong-y.png'
},
{
Id
:
1
,
name
:
'大专'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/dazhuan-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/dazhuan-y.png'
},
{
Id
:
2
,
name
:
'本科'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/benke-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/benke-y.png'
},
{
Id
:
3
,
name
:
'硕士及以上'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/suoshi-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/suoshi-y.png'
},
{
Id
:
1
,
name
:
'高中及以下'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/gaozhong-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/gaozhong-y.png'
},
{
Id
:
2
,
name
:
'大专'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/dazhuan-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/dazhuan-y.png'
},
{
Id
:
3
,
name
:
'本科'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/benke-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/benke-y.png'
},
{
Id
:
4
,
name
:
'硕士及以上'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/suoshi-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/suoshi-y.png'
},
],
marriagelist
:[
{
Id
:
0
,
name
:
'未婚'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weihui-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weihui-y.png'
},
{
Id
:
1
,
name
:
'离异'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/liyi-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/liyi-y.png'
},
{
Id
:
2
,
name
:
'丧偶'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/shangou-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/shangou-y.png'
},
{
Id
:
1
,
name
:
'未婚'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weihui-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weihui-y.png'
},
{
Id
:
2
,
name
:
'离异'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/liyi-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/liyi-y.png'
},
{
Id
:
3
,
name
:
'丧偶'
,
img_n
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/shangou-n.png'
,
img_y
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/shangou-y.png'
},
],
data
:{},
//百度的返回数据
enumList
:[],
//学历数据
Marriage
:[],
//婚姻状态
}
},
onLoad
(
options
)
{
...
...
@@ -325,8 +343,69 @@
});
var
myDate
=
new
Date
();
this
.
endyear
=
myDate
.
getFullYear
();
this
.
getEnumList
()
//学历列表
this
.
getMarriage
()
//婚姻列表
},
methods
:{
getEnumList
(){
this
.
request2
(
{
url
:
'/api/AppletMiai/GetEducationTypeEnumList'
,
data
:
{}
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
enumList
=
res
.
data
;
this
.
enumList
.
forEach
(
x
=>
{
if
(
x
.
Id
==
1
){
x
.
img_n
=
this
.
xuelist
[
0
].
img_n
;
x
.
img_y
=
this
.
xuelist
[
0
].
img_y
;
}
if
(
x
.
Id
==
2
){
x
.
img_n
=
this
.
xuelist
[
1
].
img_n
;
x
.
img_y
=
this
.
xuelist
[
1
].
img_y
;
}
if
(
x
.
Id
==
3
){
x
.
img_n
=
this
.
xuelist
[
2
].
img_n
;
x
.
img_y
=
this
.
xuelist
[
2
].
img_y
;
}
if
(
x
.
Id
==
4
){
x
.
img_n
=
this
.
xuelist
[
3
].
img_n
;
x
.
img_y
=
this
.
xuelist
[
3
].
img_y
;
}
})
}
}
);
},
getMarriage
(){
this
.
request2
(
{
url
:
'/api/AppletMiai/GetMarriageEnumList'
,
data
:
{}
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
Marriage
=
res
.
data
;
this
.
Marriage
.
forEach
(
x
=>
{
if
(
x
.
Id
==
1
){
x
.
img_n
=
this
.
marriagelist
[
0
].
img_n
;
x
.
img_y
=
this
.
marriagelist
[
0
].
img_y
;
}
if
(
x
.
Id
==
2
){
x
.
img_n
=
this
.
marriagelist
[
1
].
img_n
;
x
.
img_y
=
this
.
marriagelist
[
1
].
img_y
;
}
if
(
x
.
Id
==
3
){
x
.
img_n
=
this
.
marriagelist
[
2
].
img_n
;
x
.
img_y
=
this
.
marriagelist
[
2
].
img_y
;
}
})
}
}
);
},
getTime
(
e
){
console
.
log
(
e
)
},
...
...
@@ -342,10 +421,10 @@
}
},
scroll
(
val
){
//体重
this
.
addmsg
.
w
eight
=
val
this
.
addmsg
.
W
eight
=
val
},
scroll2
(
val
){
//身高
this
.
addmsg
.
h
eight
=
val
this
.
addmsg
.
H
eight
=
val
},
getBDtoken
(){
var
that
=
this
;
...
...
@@ -404,8 +483,8 @@
console
.
log
(
_res
.
data
)
if
(
_res
.
data
.
image_status
==
'normal'
&&
type
==
1
){
//身份证为正面
that
.
upFile
(
res
.
tempFilePaths
[
0
],
type
)
that
.
addmsg
.
n
ame
=
_res
.
data
.
words_result
[
'姓名'
].
words
?
_res
.
data
.
words_result
[
'姓名'
].
words
:
''
;
that
.
addmsg
.
IDNo
=
_res
.
data
.
words_result
[
'公民身份号码'
].
words
?
_res
.
data
.
words_result
[
'公民身份号码'
].
words
:
''
;
that
.
addmsg
.
RealN
ame
=
_res
.
data
.
words_result
[
'姓名'
].
words
?
_res
.
data
.
words_result
[
'姓名'
].
words
:
''
;
that
.
addmsg
.
ID
Card
No
=
_res
.
data
.
words_result
[
'公民身份号码'
].
words
?
_res
.
data
.
words_result
[
'公民身份号码'
].
words
:
''
;
}
if
(
_res
.
data
.
image_status
==
'reversed_side'
&&
type
==
2
){
//身份证反面
that
.
upFile
(
res
.
tempFilePaths
[
0
],
type
)
...
...
@@ -491,9 +570,9 @@
if
(
uploadFileRes
.
statusCode
==
200
)
{
let
data
=
JSON
.
parse
(
uploadFileRes
.
data
)
if
(
type
==
1
){
that
.
addmsg
.
sfz_z
=
data
.
data
that
.
addmsg
.
IDCard
=
data
.
data
}
else
{
that
.
addmsg
.
sfz_f
=
data
.
data
that
.
addmsg
.
IDCardBack
=
data
.
data
}
}
},
...
...
@@ -506,6 +585,60 @@
})
}
});
},
tijiao
(){
if
(
this
.
addmsg
.
IDCard
==
''
){
uni
.
showToast
({
title
:
'请上传身份证正面照'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addmsg
.
IDCardBack
==
''
){
uni
.
showToast
({
title
:
'请上传身份证反面照'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addmsg
.
RealName
==
''
){
uni
.
showToast
({
title
:
'请填写真实名字'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addmsg
.
IDCardNo
==
''
){
uni
.
showToast
({
title
:
'请填写身份证号'
,
icon
:
'none'
,
})
return
}
uni
.
showLoading
({
title
:
'认证中~'
});
this
.
request2
(
{
url
:
'/api/AppletMiai/GetSetMiAiBaseInfo'
,
data
:
this
.
addmsg
},
res
=>
{
uni
.
hideLoading
();
if
(
res
.
resultCode
==
1
){
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
,
});
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
});
},
1000
)
}
}
);
}
}
...
...
pages/blindDate/personal/followlist.vue
View file @
66ca6b05
...
...
@@ -19,7 +19,7 @@
<view
class=
"ftBox"
>
<view
class=
"interDList"
v-for=
"(x, i) in g"
:key=
"i"
>
<view
style=
"position: relative;"
>
<u-avatar
:src=
"x.
TeacherLog
o"
size=
"80"
></u-avatar>
<u-avatar
:src=
"x.
Phot
o"
size=
"80"
></u-avatar>
<image
v-if=
"x.Sex==1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"
style=
"width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"
></image>
<image
v-if=
"x.Sex==2"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"
style=
"width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"
></image>
</view>
...
...
@@ -29,10 +29,13 @@
</view>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
>
<view
class=
"iconstyle"
>
<view
class=
"iconstyle"
v-if=
"x.show==false && x.MutualFollowId==0"
>
<u-icon
name=
"success"
color=
"#999999"
size=
"32"
></u-icon>
</view>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png"
style=
"width: 50rpx;height: 50rpx;"
></image>
<view
class=
"iconstyle"
:style=
"
{background:mainColor,border:'none'}" v-if="x.show==true">
<u-icon
name=
"plus"
color=
"#FFF"
size=
"32"
></u-icon>
</view>
<image
v-if=
"x.MutualFollowId>0 && x.show==false"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png"
style=
"width: 50rpx;height: 50rpx;"
></image>
</view>
</view>
</view>
...
...
@@ -140,7 +143,11 @@ export default {
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
loading
=
false
;
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
let
data
=
res
.
data
.
pageData
data
.
forEach
(
x
=>
{
x
.
show
=
false
})
this
.
g
=
this
.
g
.
concat
(
data
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
this
.
status
=
"nomore"
;
...
...
@@ -150,21 +157,24 @@ export default {
);
},
setFollowTeacher
(
x
,
i
){
let
ID
=
x
.
show
==
true
?
0
:
x
.
ID
this
.
request2
({
url
:
'/api/Applet
Education/followlist
'
,
url
:
'/api/Applet
Miai/GetFollowMember
'
,
data
:
{
ID
:
x
.
ID
,
TeacherId
:
x
.
Teach
erId
,
ID
:
ID
,
UserId
:
x
.
Us
erId
,
}
},
res
=>
{
this
.
g
.
splice
(
i
,
1
)
this
.
count
--
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
,
duration
:
2000
});
title
:
res
.
message
,
icon
:
'none'
})
console
.
log
(
this
.
g
[
i
].
show
)
this
.
g
[
i
].
show
=
!
this
.
g
[
i
].
show
}
);
...
...
pages/blindDate/persondetails.vue
View file @
66ca6b05
...
...
@@ -179,17 +179,17 @@
<view
class=
"pd-box-center"
>
<view
class=
"pd-portrait"
>
<view
class=
"pd-portrait-l"
>
<u-avatar
v-if=
'
mall_UserInfo.Photo'
:src=
"mall_UserInfo
.Photo"
size=
"140"
></u-avatar>
<u-avatar
v-if=
'
dataList.Photo'
:src=
"dataList
.Photo"
size=
"140"
></u-avatar>
<image
v-if=
"dataList.Sex==1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"
style=
"width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"
></image>
<image
v-if=
"dataList.Sex==2"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"
style=
"width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"
></image>
</view>
<view
class=
"pd-portrait-c"
>
<view
class=
"pd-portrait-ct"
>
<view
class=
"pd-p-text"
>
{{
mall_UserInfo
.
Name
?
mall_UserInfo
.
Name
:
'无'
}}
</view>
<view
class=
"pd-p-text"
>
{{
dataList
.
Name
?
dataList
.
Name
:
'无'
}}
</view>
</view>
<view
class=
"pd-portrait-ct"
>
<view
style=
"display: flex;flex-direction: row;align-items: center;"
>
<view
style=
"width: 40px;height: 15px;font-size: 10px;color: #555555;border-radius: 7px;border: 1px solid #999999;display: flex;align-items: center;justify-content: center;"
>
<view
style=
"width: 40px;height: 15px;font-size: 10px;color: #555555;border-radius: 7px;border: 1px solid #999999;display: flex;align-items: center;justify-content: center;"
v-if=
"dataList.IsAttestation==0"
>
未认证
</view>
</view>
...
...
@@ -208,97 +208,106 @@
</view>
</view>
</view>
<!-- 基础资料 -->
<view
class=
"pd-title"
>
基础资料
</view>
<view
class=
"pd-bubble"
>
<view
class=
"bubble"
v-if=
"dataList.SexStr"
>
{{
dataList
.
SexStr
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Birthday"
>
{{
dataList
.
Birthday
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Age"
>
{{
dataList
.
Age
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.ShenXiao"
>
{{
dataList
.
ShenXiao
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.ConoldBaseInfostellation"
>
{{
dataList
.
ConoldBaseInfostellation
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Height"
>
{{
dataList
.
Height
}}
cm
</view>
<view
class=
"bubble"
v-if=
"dataList.Weight"
>
{{
dataList
.
Weight
}}
kg
</view>
<view
class=
"bubble"
v-if=
"dataList.Marriage"
>
{{
dataList
.
Marriage
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.YearMoney"
>
年收入(税后):
{{
dataList
.
YearMoney
}}
万元
</view>
<view
v-if=
"dataList.IsAttestation==0 && mall_UserInfo.UserId != dataList.Id"
style=
"width: 100%;margin-top: 50px;text-align: center;color: #999999;"
>
此用户还未实名认证
</view>
<view
class=
"pd-title"
>
其他资料
</view>
<view
class=
"pd-bubble"
>
<view
class=
"bubble"
v-if=
"dataList.HuKou"
>
户口:
{{
dataList
.
HuKou
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.NativePlace"
>
籍贯:
{{
dataList
.
NativePlace
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.SchoolInfo"
>
{{
dataList
.
SchoolInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.EducationType"
>
学历:
{{
dataList
.
EducationType
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.HouseInfo"
>
{{
dataList
.
HouseInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.MajorInfo"
>
{{
dataList
.
MajorInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Job"
>
{{
dataList
.
Job
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.MotherInfo"
>
母亲:
{{
dataList
.
MotherInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Weight"
>
父亲:
{{
dataList
.
FatherInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.CarInfo"
>
车:
{{
dataList
.
CarInfo
}}
</view>
</view>
<view
class=
"pd-title"
>
关于她(他)
</view>
<view
class=
"pd-abouthim"
>
<u-read-more
show-height=
"100"
:toggle=
"true"
:shadow-style=
"shadowStyle"
close-text=
'展开查看全部'
>
<rich-text
v-if=
"dataList.About==''"
nodes=
"无"
></rich-text>
<rich-text
v-if=
"dataList.About!=''"
:nodes=
"dataList.About"
style=
"font-size: 12px;color: #000;"
></rich-text>
</u-read-more>
</view>
<view
class=
"pd-title"
>
理想中的爱情
</view>
<view
class=
"pd-abouthim"
>
{{
dataList
.
IdealLove
?
dataList
.
IdealLove
:
''
}}
</view>
<view
class=
"pd-title"
>
相册
</view>
<view
class=
"pd-img"
style=
"margin-top: 15px;"
>
<view
v-if=
"dataList.AlbumList.length==0"
style=
"width: 100%;height: 50px;line-height: 50px;text-align: center;color: #666666;"
>
暂无照片墙
</view>
<view
v-if=
"dataList.AlbumList.length==1"
style=
"width: 100%;height: 690rpx;border-radius: 15px;"
@
click=
"previewImage(0,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[0]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
v-if=
"dataList.IsAttestation==1"
>
<!-- 基础资料 -->
<view
class=
"pd-title"
>
基础资料
</view>
<view
class=
"pd-bubble"
>
<view
class=
"bubble"
v-if=
"dataList.SexStr"
>
{{
dataList
.
SexStr
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Birthday"
>
{{
dataList
.
Birthday
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Age"
>
{{
dataList
.
Age
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.ShenXiao"
>
{{
dataList
.
ShenXiao
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.ConoldBaseInfostellation"
>
{{
dataList
.
ConoldBaseInfostellation
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Height"
>
{{
dataList
.
Height
}}
cm
</view>
<view
class=
"bubble"
v-if=
"dataList.Weight"
>
{{
dataList
.
Weight
}}
kg
</view>
<view
class=
"bubble"
v-if=
"dataList.Marriage"
>
{{
dataList
.
Marriage
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.YearMoney"
>
年收入(税后):
{{
dataList
.
YearMoney
}}
万元
</view>
</view>
<view
v-if=
"dataList.AlbumList.length==2"
style=
"width: 100%;display: flex;flex-direction: row;align-items: center;justify-content: space-between;"
>
<view
v-for=
'(x,y) in dataList.AlbumList'
:key=
'y'
style=
"width: calc(50vw - 20px);height: 335rpx;border-radius: 15px;"
@
click=
"previewImage(y,dataList.AlbumList)"
>
<image
:src=
"x"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
<view
class=
"pd-title"
>
其他资料
</view>
<view
class=
"pd-bubble"
>
<view
class=
"bubble"
v-if=
"dataList.HuKou"
>
户口:
{{
dataList
.
HuKou
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.NativePlace"
>
籍贯:
{{
dataList
.
NativePlace
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.SchoolInfo"
>
{{
dataList
.
SchoolInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.EducationType"
>
学历:
{{
dataList
.
EducationType
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.HouseInfo"
>
{{
dataList
.
HouseInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.MajorInfo"
>
{{
dataList
.
MajorInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.Job"
>
{{
dataList
.
Job
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.MotherInfo"
>
母亲:
{{
dataList
.
MotherInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.FatherInfo"
>
父亲:
{{
dataList
.
FatherInfo
}}
</view>
<view
class=
"bubble"
v-if=
"dataList.CarInfo"
>
车:
{{
dataList
.
CarInfo
}}
</view>
</view>
<view
v-if=
"dataList.AlbumList.length==3"
style=
"width: 100%;display: flex;flex-direction: row;align-items: center;justify-content: space-between;"
>
<view
style=
"width: 448rpx;height: 448rpx;border-radius: 15px;"
@
click=
"previewImage(0,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[0]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
class=
"pd-title"
>
关于她(他)
</view>
<view
class=
"pd-abouthim"
>
<u-read-more
show-height=
"100"
:toggle=
"true"
:shadow-style=
"shadowStyle"
close-text=
'展开查看全部'
>
<rich-text
v-if=
"dataList.About==''"
nodes=
"无"
></rich-text>
<rich-text
v-if=
"dataList.About!=''"
:nodes=
"dataList.About"
style=
"font-size: 12px;color: #000;"
></rich-text>
</u-read-more>
</view>
<view
class=
"pd-title"
>
理想中的爱情
</view>
<view
class=
"pd-abouthim"
>
{{
dataList
.
IdealLove
?
dataList
.
IdealLove
:
'暂无'
}}
</view>
<view
class=
"pd-title"
>
相册
</view>
<view
class=
"pd-img"
style=
"margin-top: 15px;"
>
<view
v-if=
"dataList.AlbumList.length==0"
style=
"width: 100%;height: 50px;line-height: 50px;text-align: center;color: #666666;"
>
暂无照片墙
</view>
<view
v-if=
"dataList.AlbumList.length==1"
style=
"width: 100%;height: 690rpx;border-radius: 15px;"
@
click=
"previewImage(0,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[0]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
<view
style=
"margin-left: 20rpx;"
>
<view
style=
"width: 220rpx;height: 214rpx;border-radius: 15px;"
@
click=
"previewImage(1,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[1]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
<view
style=
"width: 220rpx;height: 214rpx;border-radius: 15px;margin-top: 20rpx;"
@
click=
"previewImage(2,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[2]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
v-if=
"dataList.AlbumList.length==2"
style=
"width: 100%;display: flex;flex-direction: row;align-items: center;justify-content: space-between;"
>
<view
v-for=
'(x,y) in dataList.AlbumList'
:key=
'y'
style=
"width: calc(50vw - 20px);height: 335rpx;border-radius: 15px;"
@
click=
"previewImage(y,dataList.AlbumList)"
>
<image
:src=
"x"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
</view>
</view>
<view
v-if=
"dataList.AlbumList.length>3"
style=
"display: flex;flex-direction: row;align-items: center;"
>
<view
>
<view
v-if=
"dataList.AlbumList.length==3"
style=
"width: 100%;display: flex;flex-direction: row;align-items: center;justify-content: space-between;"
>
<view
style=
"width: 448rpx;height: 448rpx;border-radius: 15px;"
@
click=
"previewImage(0,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[0]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
<view
style=
"width: 448rpx;height: 260rpx;border-radius: 15px;margin-top: 20rpx;"
@
click=
"previewImage(2,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[2]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
style=
"margin-left: 20rpx;"
>
<view
style=
"width: 220rpx;height: 214rpx;border-radius: 15px;"
@
click=
"previewImage(1,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[1]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
<view
style=
"width: 220rpx;height: 214rpx;border-radius: 15px;margin-top: 20rpx;"
@
click=
"previewImage(2,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[2]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
</view>
</view>
<view
style=
"margin-left: 20rpx;"
>
<view
style=
"width: 220rpx;height: 260rpx;border-radius: 15px;position: relative;"
@
click=
"previewImage(1,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[1]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
class=
"zhezao"
v-if=
"dataList.AlbumList.length>4"
>
+
{{
dataList
.
AlbumList
.
length
}}
</view>
<view
v-if=
"dataList.AlbumList.length>3"
style=
"display: flex;flex-direction: row;align-items: center;"
>
<view
>
<view
style=
"width: 448rpx;height: 448rpx;border-radius: 15px;"
@
click=
"previewImage(0,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[0]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
<view
style=
"width: 448rpx;height: 260rpx;border-radius: 15px;margin-top: 20rpx;"
@
click=
"previewImage(2,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[2]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
</view>
<view
style=
"width: 220rpx;height: 458rpx;border-radius: 15px;margin-top: 20rpx;"
@
click=
"previewImage(3,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[3]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
style=
"margin-left: 20rpx;"
>
<view
style=
"width: 220rpx;height: 260rpx;border-radius: 15px;position: relative;"
@
click=
"previewImage(1,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[1]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
<view
class=
"zhezao"
v-if=
"dataList.AlbumList.length>4"
>
+
{{
dataList
.
AlbumList
.
length
}}
</view>
</view>
<view
style=
"width: 220rpx;height: 458rpx;border-radius: 15px;margin-top: 20rpx;"
@
click=
"previewImage(3,dataList.AlbumList)"
>
<image
:src=
"dataList.AlbumList[3]"
style=
"width: 100%;height: 100%;border-radius: 15px;"
mode=
"aspectFill"
></image>
</view>
</view>
</view>
</view>
</view>
<view
class=
"edit"
:style=
"
{background:mainColor}" @click="goedit()">
<view
class=
"edit"
v-if=
"dataList.IsAttestation==1"
:style=
"
{background:mainColor}" @click="goedit()">
编辑资料
</view>
<view
class=
"edit"
v-if=
"dataList.IsAttestation==0 && mall_UserInfo.UserId == dataList.Id"
:style=
"
{background:mainColor}" @click="gorenz()">
去认证
</view>
</view>
</view>
</view>
...
...
@@ -341,6 +350,9 @@
this
.
init
()
}
},
onShow
()
{
this
.
init
()
},
methods
:{
scrollHandler
(
e
)
{
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
...
...
@@ -395,6 +407,11 @@
}
}
);
},
gorenz
(){
//去认证
uni
.
navigateTo
({
url
:
'/pages/blindDate/basicdata'
})
}
}
}
...
...
pages/blindDate/postDetails.vue
View file @
66ca6b05
...
...
@@ -139,6 +139,7 @@
left
:
0
;
bottom
:
0
;
background
:
#FFF
;
z-index
:
2
;
}
.postDetails
.btn2-l
{
...
...
@@ -312,13 +313,13 @@
</view>
<view
class=
"details-info-c"
>
<view
style=
"width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 14px;color: #111111;font-weight: bold;"
>
{{
details
.
UserName
}}
</view>
<view
style=
'font-size: 11px;color: #858687;'
v-if=
"details.CreateDate"
>
<view
style=
'font-size: 11px;color: #858687;'
v-if=
"details.CreateDate"
>
{{
details
.
CreateDate
.
split
(
' '
)[
0
].
split
(
'-'
)[
1
]
}}
-
{{
details
.
CreateDate
.
split
(
' '
)[
0
].
split
(
'-'
)[
2
]
}}
</view>
</view>
</view>
<view
v-if=
'details.UserId!=sendMsg.ReplyUserId'
class=
"details-info-r"
:style=
"
{background:mainColor}">
{{
details
.
IsFocus
==
true
?
'已关注'
:
'
关注'
}}
<view
v-if=
'details.UserId!=sendMsg.ReplyUserId'
class=
"details-info-r"
:style=
"
{background:mainColor}"
@click="getfollow(details)"
>
{{
details
.
IsFocus
==
0
?
'关注'
:
details
.
IsFocus
==
1
?
'已关注'
:
'互相
关注'
}}
</view>
</view>
<view
class=
"activitytime"
v-if=
'details.IsOpenEnroll==1'
>
...
...
@@ -865,6 +866,37 @@
uni
.
navigateTo
({
url
:
'/pages/blindDate/baomingList?type='
+
type
+
'&ActivityId='
+
this
.
details
.
Id
})
},
getfollow
(
x
){
let
ID
=
0
if
(
x
.
IsFocus
!=
0
){
ID
=
x
.
MyFollowId
}
this
.
request2
({
url
:
'/api/AppletMiai/GetFollowMember'
,
data
:
{
ID
:
ID
,
UserId
:
x
.
UserId
,
}
},
res
=>
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
this
.
request2
(
{
url
:
'/api/AppletMiai/GetActivityInfo'
,
data
:
{
ActivityId
:
this
.
msg
.
ActivityId
}
},
res
=>
{
this
.
details
=
res
.
data
}
);
}
);
}
}
...
...
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