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
7c462fde
Commit
7c462fde
authored
Feb 22, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增粉丝和关注页面
parent
5cde7f0b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
653 additions
and
98 deletions
+653
-98
pages.json
pages.json
+4
-0
fanlist.vue
pages/blindDate/personal/fanlist.vue
+271
-0
followlist.vue
pages/blindDate/personal/followlist.vue
+273
-0
index.vue
pages/share/index/index.vue
+1
-0
blinddate-user.vue
pages/user-center/components/blinddate-user.vue
+104
-98
No files found.
pages.json
View file @
7c462fde
...
...
@@ -552,6 +552,10 @@
"root"
:
"pages/blindDate"
,
"pages"
:
[{
"path"
:
"basicdata"
//基础资料的填写
},{
"path"
:
"personal/fanlist"
//粉丝列表
},{
"path"
:
"personal/followlist"
//关注列表
}]
},
//韩国馆项目
{
"root"
:
"pages/kotra"
,
"pages"
:
[{
"path"
:
"contanctus"
},{
"path"
:
"contanctDetail"
},{
"path"
:
"compInformation"
}]
}
...
...
pages/blindDate/personal/fanlist.vue
0 → 100644
View file @
7c462fde
<
template
>
<view
class=
"fanlist"
:style=
"
{ height: contentHeight }">
<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=
"ftBox"
>
<view
class=
"interDList"
v-for=
"(x, i) in g"
:key=
"i"
>
<view
style=
"position: relative;"
>
<u-avatar
:src=
"x.TeacherLogo"
size=
"80"
></u-avatar>
<image
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
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>
<view
:style=
"
{'width':(windowWidth-30-45-20-30)+'px','margin-left':'10px'}">
<view
class=
"teinfo"
>
{{
x
.
Name
}}
</view>
<!--
<view
class=
"teinfo"
style=
"margin-top: 10px;font-size: 11px;color: #999999;"
>
{{
x
.
Major
}}
</view>
-->
</view>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
>
<view
class=
"iconstyle"
:style=
"
{background:mainColor}">
<u-icon
name=
"plus"
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;"
></image>
</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>
<!-- 取消提示 -->
<u-toast
ref=
"uToast"
/>
<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
,
msg
:{
pageIndex
:
1
,
pageSize
:
10
,
},
mainColor
:
""
,
secondary
:
''
,
pricecolor
:
''
,
contentHeight
:
0
,
page
:
1
,
page_count
:
1
,
g
:
[],
loading
:
false
,
status
:
"loadmore"
,
count
:
0
,
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
windowWidth
:
0
,
};
},
created
()
{
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
pricecolor
=
this
.
$uiConfig
.
pricecolor
;
this
.
windowWidth
=
this
.
$utils
.
SystemInfo
().
windowWidth
;
},
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
(){
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
};
this
.
showAuth
=
true
;
}
else
{
this
.
init
();
}
},
methods
:
{
init
()
{
this
.
loading
=
true
;
this
.
request2
(
{
url
:
'/api/AppletEducation/GetFollowTeacherPageList'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
loading
=
false
;
this
.
count
=
res
.
data
.
count
;
// res.data.pageData.forEach(x=>{
// x.fanlist=1;//1为关注
// })
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
this
.
status
=
"nomore"
;
}
}
}
);
},
setFollowTeacher
(
x
,
i
){
this
.
request2
({
url
:
'/api/AppletEducation/fanlist'
,
data
:
{
ID
:
x
.
ID
,
TeacherId
:
x
.
TeacherId
,
}
},
res
=>
{
this
.
g
.
splice
(
i
,
1
)
this
.
count
--
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
,
duration
:
2000
});
}
);
},
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
>
.fanlist
{
width
:
100%
;
height
:
100vh
;
background
:
#FFF
;
}
.fanlist
.loading
{
width
:
200
rpx
;
height
:
200
rpx
;
background
:
#000000
;
opacity
:
0.7
;
border-radius
:
10
rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
left
:
50%
;
top
:
30%
;
margin-left
:
-100
rpx
;
z-index
:
999
;
}
.fanlist
.interDList
{
width
:
calc
(
100vw
-
30px
)
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
padding
:
15px
0
;
border-bottom
:
1px
solid
#f5f5f5
;
}
.fanlist
.followTeacher-top
{
width
:
100%
;
height
:
35px
;
padding
:
0
15px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
font-size
:
11px
;
color
:
#999999
;
background
:
#FAF8F9
;
}
.fanlist
.ftBox
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.fanlist
.teinfo
{
width
:
100%
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
font-size
:
15px
;
}
.fanlist
.gzbtn
{
width
:
69px
;
height
:
26px
;
border-radius
:
4px
;
margin-left
:
8px
;
color
:
#111111
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
13px
;
}
.iconstyle
{
width
:
50
rpx
;
height
:
50
rpx
;
border-radius
:
25
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
pages/blindDate/personal/followlist.vue
0 → 100644
View file @
7c462fde
<
template
>
<view
class=
"followlist"
:style=
"
{ height: contentHeight }">
<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=
"ftBox"
>
<view
class=
"interDList"
v-for=
"(x, i) in g"
:key=
"i"
>
<view
style=
"position: relative;"
>
<u-avatar
:src=
"x.TeacherLogo"
size=
"80"
></u-avatar>
<image
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
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>
<view
:style=
"
{'width':(windowWidth-30-45-20-30)+'px','margin-left':'10px'}">
<view
class=
"teinfo"
>
{{
x
.
Name
}}
</view>
<!--
<view
class=
"teinfo"
style=
"margin-top: 10px;font-size: 11px;color: #999999;"
>
{{
x
.
Major
}}
</view>
-->
</view>
<view
class=
"gzbtn"
@
click
.
stop=
"setFollowTeacher(x,i)"
>
<view
class=
"iconstyle"
>
<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>
</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>
<!-- 取消提示 -->
<u-toast
ref=
"uToast"
/>
<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
,
msg
:{
pageIndex
:
1
,
pageSize
:
10
,
},
mainColor
:
""
,
secondary
:
''
,
pricecolor
:
''
,
contentHeight
:
0
,
page
:
1
,
page_count
:
1
,
g
:
[],
loading
:
false
,
status
:
"loadmore"
,
count
:
0
,
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
windowWidth
:
0
,
};
},
created
()
{
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
pricecolor
=
this
.
$uiConfig
.
pricecolor
;
this
.
windowWidth
=
this
.
$utils
.
SystemInfo
().
windowWidth
;
},
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
(){
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
};
this
.
showAuth
=
true
;
}
else
{
this
.
init
();
}
},
methods
:
{
init
()
{
this
.
loading
=
true
;
this
.
request2
(
{
url
:
'/api/AppletEducation/GetFollowTeacherPageList'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
){
this
.
loading
=
false
;
this
.
count
=
res
.
data
.
count
;
// res.data.pageData.forEach(x=>{
// x.followlist=1;//1为关注
// })
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
this
.
status
=
"nomore"
;
}
}
}
);
},
setFollowTeacher
(
x
,
i
){
this
.
request2
({
url
:
'/api/AppletEducation/followlist'
,
data
:
{
ID
:
x
.
ID
,
TeacherId
:
x
.
TeacherId
,
}
},
res
=>
{
this
.
g
.
splice
(
i
,
1
)
this
.
count
--
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
,
duration
:
2000
});
}
);
},
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
>
.followlist
{
width
:
100%
;
height
:
100vh
;
background
:
#FFF
;
}
.followlist
.loading
{
width
:
200
rpx
;
height
:
200
rpx
;
background
:
#000000
;
opacity
:
0.7
;
border-radius
:
10
rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
position
:
fixed
;
left
:
50%
;
top
:
30%
;
margin-left
:
-100
rpx
;
z-index
:
999
;
}
.followlist
.interDList
{
width
:
calc
(
100vw
-
30px
)
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
padding
:
15px
0
;
border-bottom
:
1px
solid
#f5f5f5
;
}
.followlist
.followTeacher-top
{
width
:
100%
;
height
:
35px
;
padding
:
0
15px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
font-size
:
11px
;
color
:
#999999
;
background
:
#FAF8F9
;
}
.followlist
.ftBox
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.followlist
.teinfo
{
width
:
100%
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
font-size
:
15px
;
}
.followlist
.gzbtn
{
width
:
69px
;
height
:
26px
;
border-radius
:
4px
;
margin-left
:
8px
;
color
:
#111111
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
13px
;
}
.iconstyle
{
width
:
50
rpx
;
height
:
50
rpx
;
border-radius
:
25
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
border
:
1px
solid
#999999
}
</
style
>
pages/share/index/index.vue
View file @
7c462fde
...
...
@@ -378,6 +378,7 @@
.shareindexStyle
.shareadd
{
width
:
100%
;
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
...
...
pages/user-center/components/blinddate-user.vue
View file @
7c462fde
<
template
>
<view
class=
"userStyle"
style=
"background: linear-gradient(to top, '#6E75EA',80%, '#B984EC');"
>
<view
class=
"userStyle"
>
<view
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"[headStyle,
{
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
opacity:
scrollTop
<
10
?
'
100
'
:
scrollTop
,
},
]"
>
<view
class=
"title"
v-if=
"scrollTop > 50"
>
{{
pageTitle
}}
</view>
<view
class=
"title"
style=
"color: #000;"
v-if=
"scrollTop > 50"
>
{{
pageTitle
}}
</view>
</view>
<view
class=
"userBox"
:style=
"
{ 'margin-bottom': bottommargin }">
<view
class=
"imgbg"
:class=
"
{'miniHeadTop':meueData.user_center.is_foot_bar_status!=1
&&
meueData.user_center.is_account_status!=1}
">
<view
class=
"titlenav"
:style=
"
{paddingTop:nav}">
{{
pageTitle
}}
</view>
<view
class=
'topheard'
:style=
"
{'margin-top':modelstype==0?'52px':(modelstype==1?'37px':(modelstype==2)?'33px':0) }
"
class=
"imgbg"
style=
"background:linear-gradient( #9EE3E1,5%, #f3f4f6);height: 217px;
"
>
<view
class=
"titlenav"
:style=
"
{paddingTop:nav
,color:'#000'
}">
{{
pageTitle
}}
</view>
<view
class=
'topheard'
style=
"margin-top: 30px;
"
v-if=
"meueData.user_center.top_style == 1"
>
<u-avatar
:src=
"user_info.avatar"
size=
"140"
style=
"margin-left: 50rpx;"
></u-avatar>
<view
style=
"display: flex;flex-direction: column;justify-content: center;height: 50px;margin-left: 20rpx"
>
...
...
@@ -32,108 +32,33 @@
<Text
style=
"margin-right: 10px;"
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
</view>
</view>
<view
class=
"Receiptbalance"
v-if=
"meueData.user_center&&meueData.user_center.is_account_status == 1"
>
<view
class=
"Receiptbalance_item"
v-for=
"(item, index) in meueData.user_center.account"
:key=
"index"
v-if=
"item.link_url == '/pages/balance/balance'"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 22px;height: auto"
mode=
'widthFix'
></image>
<view
style=
"margin-left: 15px;display: flex;flex-direction: column;justify-content: space-between;"
>
<span
style=
'font-size: 21px;color: #0D0D0D;font-weight: 200;'
>
{{
user_info
.
balance
?(
user_info
.
balance
>
10000
?(
user_info
.
balance
/
10000
).
toFixed
(
1
)
+
'w'
:
user_info
.
balance
):
0
}}
</span>
<span
style=
''
>
{{
item
.
name
}}
</span>
</view>
</view>
<view
style=
"width: 1px;height: 34px;background: #E8E8E8;"
></view>
<view
class=
"Receiptbalance_item"
v-for=
"(item, index) in meueData.user_center.account"
:key=
"index"
v-if=
"item.link_url == '/pages/user-center/integral-detail/integral-detail'"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 17px;;height: auto"
mode=
'widthFix'
></image>
<view
style=
"margin-left: 15px;display: flex;flex-direction: column;justify-content: space-between;"
>
<span
style=
'font-size: 21px;color: #0D0D0D;font-weight: 200;'
>
{{
user_info
.
integral
?(
user_info
.
integral
>
10000
?(
user_info
.
integral
/
10000
).
toFixed
(
1
)
+
'w'
:
user_info
.
integral
):
0
}}
</span>
<span>
{{
item
.
name
}}
</span>
</view>
</view>
</view>
</view>
<view
class=
"order_bar"
v-if=
"meueData.user_center.is_order_bar_status == 1"
>
<u-section
title=
"我的订单"
sub-title=
"查看更多"
style=
"width: 100%;padding:0px 0 10px ;"
@
click=
"goUrl('/pages/order/index/index?status=0')"
></u-section>
<view
class=
"order_bar_list"
>
<view
class=
"order_bar_item"
v-for=
"(item, index) in meueData.user_center.order_bar"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 60rpx;height: auto"
mode=
'widthFix'
></image>
<Text
style=
"margin-top: 10rpx;"
>
{{
item
.
name
}}
</Text>
<!-- 待付款 -->
<view
v-if=
"item.link_url == '/pages/order/index/index?status=1' && user_info.MyOrder.NonPayment > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
NonPayment
}}
</view>
<!-- 待发货 -->
<view
v-if=
"item.link_url == '/pages/order/index/index?status=2' && user_info.MyOrder.WaitSendGoods > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitSendGoods
}}
</view>
<!-- 待收货 -->
<view
v-if=
"item.link_url == '/pages/order/index/index?status=3' && user_info.MyOrder.WaitReceiving > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitReceiving
}}
</view>
<!-- 待评价 -->
<view
v-if=
"item.link_url == '/pages/order/order-commit' && user_info.MyOrder.WaitCommentNum > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
WaitCommentNum
}}
</view>
<!-- 售后 -->
<view
v-if=
"item.link_url == '/pages/order/after-sale/refunds-list' && user_info.MyOrder.AfterSaleNum > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyOrder
.
AfterSaleNum
}}
</view>
</view>
</view>
</view>
<view
class=
"order_bar"
style=
"margin-top:20rpx;"
v-if=
"meueData.user_center.is_sdorder_bar_status == 1"
>
<u-section
title=
"司导订单"
sub-title=
"查看更多"
style=
"width: 100%;padding:0px 0 10px ;"
@
click=
"goUrl('/pages/guidecar/orderList?status=0')"
></u-section>
<view
class=
"order_bar_list"
>
<view
class=
"order_bar_item"
v-for=
"(item, index) in meueData.user_center.sdorder_bar"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
style=
"width: 60rpx;height: auto"
mode=
'widthFix'
></image>
<Text
style=
"margin-top: 10rpx;"
>
{{
item
.
name
}}
</Text>
<!-- 待付款 -->
<view
v-if=
"item.link_url == '/pages/guidecar/orderList?status=1' && user_info.MyGuideCarOrder.NonPayment > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyGuideCarOrder
.
NonPayment
}}
</view>
<!-- 待确认 -->
<view
v-if=
"item.link_url == '/pages/guidecar/orderList?status=2' && user_info.MyGuideCarOrder.WaitSendGoods > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyGuideCarOrder
.
WaitSendGoods
}}
</view>
<!-- 待出行 -->
<view
v-if=
"item.link_url == '/pages/guidecar/orderList?status=3' && user_info.MyGuideCarOrder.WaitReceiving > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyGuideCarOrder
.
WaitReceiving
}}
</view>
<!-- 出行中 -->
<view
v-if=
"item.link_url == '/pages/guidecar/orderList?status=4' && user_info.MyGuideCarOrder.Completed > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyGuideCarOrder
.
Completed
}}
</view>
<!-- 待评价 -->
<view
v-if=
"item.link_url == '/pages/guidecar/order-commit' && user_info.MyGuideCarOrder.GuideCarWaitCommentNum > 0"
class=
"badge"
:style=
"
{ background: mainColor }">
{{
user_info
.
MyGuideCarOrder
.
GuideCarWaitCommentNum
}}
<view
class=
"top_b"
>
<view
class=
"top_b_item2"
@
click=
"goUrl('/pages/blindDate/personal/followlist')"
>
<text
style=
"font-size: 20px;font-weight: bold;"
>
{{
user_info
.
favorite
?
user_info
.
favorite
:
0
}}
</text>
<text
style=
"color: #666666;"
>
关注
</text>
</view>
<view
class=
"top_b_item2"
@
click=
"goUrl('/pages/blindDate/personal/fanlist')"
>
<text
style=
"font-size: 20px;font-weight: bold;"
>
{{
user_info
.
footprint
?
user_info
.
footprint
:
0
}}
</text>
<text
style=
"color: #666666;"
>
粉丝
</text>
</view>
</view>
</view>
<template
v-if=
"meueData.user_center&&meueData.user_center.nar_menus.length>0"
>
<view
v-if=
"meueData.user_center && meueData.user_center.is_menu_status == 1"
v-for=
"(mItem,mIndex) in meueData.user_center.nar_menus"
:key=
"mIndex"
:style=
"
{'marginTop':mIndex==0
&&
(meueData.user_center.is_foot_bar_status==1||meueData.user_center.is_account_status==1)?'
2
5px':''}"
:key=
"mIndex"
:style=
"
{'marginTop':mIndex==0
&&
(meueData.user_center.is_foot_bar_status==1||meueData.user_center.is_account_status==1)?'
1
5px':''}"
class="headCommon">
<view
style=
"margin:10px;"
>
{{
mItem
.
MenuNavTitle
}}
</view>
<view
:class=
"mItem.MenuNavStyle == 1 ? '
menus' : '
menus2'"
style=
"width:100%;"
>
<view
:class=
"mItem.MenuNavStyle == 1 ? '
menus_item' : '
menus_item2'"
v-for=
"(item, index) in mItem.MeunList"
<view
style=
"margin:10px;"
v-if=
"mItem.MenuNavTitle!=''"
>
{{
mItem
.
MenuNavTitle
}}
</view>
<view
:class=
"mItem.MenuNavStyle == 1 ? '
xq-menus' : 'xq-
menus2'"
style=
"width:100%;"
>
<view
:class=
"mItem.MenuNavStyle == 1 ? '
xq-menus_item' : 'xq-
menus_item2'"
v-for=
"(item, index) in mItem.MeunList"
:key=
"index"
:name=
"item.name"
@
click=
"goUrl(item.link_url)"
>
<image
:src=
"item.icon_url"
:style=
"
{width:mItem.MenuNavStyle == 1 ?'20px':'12px',height: 'auto'}
" mode="widthFix">
</image>
<Text
:style=
"
{ 'margin-top': mItem.MenuNavStyle == 1 ? '10rpx' : '0rpx', 'margin-left': mItem.MenuNavStyle == 1 ? '0rpx' : '
1
0rpx' }">
<image
:src=
"item.icon_url"
style=
"width:18px;height: auto
"
mode=
"widthFix"
></image>
<Text
:style=
"
{ 'margin-top': mItem.MenuNavStyle == 1 ? '10rpx' : '0rpx', 'margin-left': mItem.MenuNavStyle == 1 ? '0rpx' : '
4
0rpx' }">
{{
item
.
name
}}
</Text>
<view
v-if=
"mItem.MenuNavStyle!=1"
class=
"wangr"
>
<u-icon
name=
"arrow"
color=
"#A5A4AC"
size=
"20"
></u-icon>
</view>
<button
open-type=
"contact"
class=
"contButton"
v-if=
"item.link_url == 'contact' && item.name == '客服'"
></button>
</view>
</view>
...
...
@@ -156,7 +81,7 @@
},
created
()
{
this
.
nav
=
uni
.
getMenuButtonBoundingClientRect
().
top
+
'px'
;
this
.
headStyle
.
background
=
`linear-gradient(
to right, '#6E75EA',80%, '#B984EC'
)`
;
this
.
headStyle
.
background
=
`linear-gradient(
#9EE3E1 5%, #f3f4f6
)`
;
this
.
headStyle
.
paddingTop
=
this
.
nav
;
let
currentPages
=
getCurrentPages
();
let
u
=
"/"
+
currentPages
[
currentPages
.
length
-
1
].
route
;
...
...
@@ -168,10 +93,91 @@
this
.
pageTitle
=
x
.
new_name
?
x
.
new_name
:
x
.
name
;
}
});
},
methods
:{
goUrl
(
url
)
{
if
(
url
==
'/pages/balance/balance'
)
{
uni
.
navigateTo
({
url
:
'/pages/balance/balance?balance='
+
this
.
user_info
.
balance
});
}
else
{
uni
.
navigateTo
({
url
:
url
});
}
},
}
}
</
script
>
<
style
>
.top_b_item2
{
width
:
50%
;
height
:
45px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
color
:
#111
;
font-size
:
12px
;
font-family
:
aa
;
}
.userStyle
.xq-menus
{
width
:
94%
;
border-radius
:
10
rpx
;
background
:
#fff
;
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
align-items
:
center
;
}
.userStyle
.xq-menus2
{
width
:
94%
;
border-radius
:
10
rpx
;
background
:
#fff
;
display
:
flex
;
flex-direction
:
column
;
}
.userStyle
.xq-menus
.xq-menus_item
{
width
:
25%
;
height
:
110
rpx
;
margin
:
20
rpx
0
10
rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-around
;
position
:
relative
;
}
.xq-menus_item2
.contButton
,
.xq-menus_item
.contButton
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
opacity
:
0
;
}
.userStyle
.xq-menus2
.xq-menus_item2
{
width
:
100%
;
height
:
90
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
/* margin-left: 30rpx; */
padding
:
0
26
rpx
;
position
:
relative
;
}
.wangr
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
position
:
absolute
;
height
:
25px
;
line-height
:
25px
;
right
:
26
rpx
;
top
:
10px
;
}
</
style
>
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