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
4400e0d6
Commit
4400e0d6
authored
Mar 24, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c7adb9e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
401 additions
and
295 deletions
+401
-295
detail.vue
pages/kotra/carrier/detail.vue
+96
-40
list.vue
pages/kotra/carrier/list.vue
+121
-197
identification.vue
pages/kotra/identification.vue
+126
-50
user-center.vue
pages/user-center/user-center.vue
+58
-8
No files found.
pages/kotra/carrier/detail.vue
View file @
4400e0d6
This diff is collapsed.
Click to expand it.
pages/kotra/carrier/list.vue
View file @
4400e0d6
This diff is collapsed.
Click to expand it.
pages/kotra/identification.vue
View file @
4400e0d6
This diff is collapsed.
Click to expand it.
pages/user-center/user-center.vue
View file @
4400e0d6
<
template
>
<scroll-view
:scroll-y=
"true"
@
scroll=
"scrollHandler"
@
scrolltoupper=
"scrollTopHandler"
style=
"height: 100vh;"
>
<view
class=
"userStyle"
v-if=
"meueData.user_center && meueData.user_center.is_ppenmiai==0"
:class=
"
{'dark':isCompany}">
<view
class=
"userStyle"
v-if=
"meueData.user_center && meueData.user_center.is_ppenmiai==0"
:class=
"
{'dark':isCompany}">
<!-- 修改 -->
<view
class=
"headStatus"
v-if=
"scrollTop > 50"
:style=
"[headStyle,
{
zIndex: scrollTop
<
10
?
'
unset
'
:
2
,
...
...
@@ -19,10 +19,26 @@
<view
style=
"display: flex;flex-direction: column;justify-content: center;height: 50px;margin-left: 20rpx"
>
<Text
class=
"nickname"
style=
"color: #FFF;font-size: 40rpx;font-weight:800;max-width: 200px;overflow: hidden;display: inline-block;white-space: nowrap; text-overflow:ellipsis;"
@
click=
"login(user_info)"
>
{{
user_info
.
nickname
?
user_info
.
nickname
:
'立即登录'
}}
</Text>
<view
class=
"member"
v-if=
"is_icon_members_grade == 1&& user_info.nickname"
>
<image
:src=
"user_info.identity.level_icon"
mode=
"aspectFill"
style=
"width: 22px;height: 22px;border-radius: 11px;"
></image>
<Text
style=
"margin-right: 10px;"
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
</view>
<view
style=
"display: flex; align-items: center;"
>
<view
class=
"member"
v-if=
"is_icon_members_grade == 1&& user_info.nickname"
>
<image
:src=
"user_info.identity.level_icon"
mode=
"aspectFill"
style=
"width: 22px;height: 22px;border-radius: 11px;"
></image>
<Text
style=
"margin-right: 10px;"
>
{{
user_info
.
identity
.
level_name
!=
null
?
user_info
.
identity
.
level_name
:
'普通用户'
}}
</Text>
<!-- 公司认证状态 -->
</view>
<view
class=
"componyStatusBox"
@
click=
"goIdentification"
>
<view
class=
"renzhen"
v-if=
"companyStatus==2 "
>
未认证
</view>
<view
class=
"renzhen"
v-if=
"companyStatus==0"
:style=
"
{'border':'1px solid '+mainColor,'color':mainColor}">
认证审核中
</view>
<view
class=
"companyName"
v-if=
"companyStatus==1"
>
{{
companyName
}}
</view>
</view>
</view>
</view>
</view>
<view
style=
"display: flex;flex-direction: column;align-items: center;margin-top: 23px;margin-bottom: 5px;"
v-if=
"meueData.user_center.top_style == 2"
>
...
...
@@ -167,7 +183,7 @@
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<tabbars></tabbars>
</view>
<view
v-if=
"meueData.user_center && meueData.user_center.is_ppenmiai==1 && isloading== true"
>
<view
v-if=
"meueData.user_center && meueData.user_center.is_ppenmiai==1 && isloading== true"
>
<!-- 修改 -->
<blinddate
:meueData=
'meueData'
:user_info =
'user_info'
...
...
@@ -215,7 +231,9 @@
IsEducation
:
0
,
//1是0否是网课模式
PointNum
:
0
,
setting
:
{},
isCompany
:
true
//TODO 完成动态加载系统所属类型
isCompany
:
true
,
//TODO 完成动态加载系统所属类型
companyStatus
:
2
,
companyName
:
""
};
},
components
:
{
...
...
@@ -246,6 +264,7 @@
}
},
mounted
()
{
this
.
getUserCompany
()
let
currentPages
=
getCurrentPages
();
let
c
=
this
.
$uiConfig
.
is_bang
?
80
:
52
;
this
.
bottommargin
=
c
+
10
+
'px'
;
...
...
@@ -264,8 +283,10 @@
uni
.
setNavigationBarTitle
({
title
:
'用户中心'
});
},
onShow
()
{
this
.
userinfo
(
2
);
if
(
this
.
mall_UserInfo
)
{
this
.
getUserPoint
()
...
...
@@ -453,6 +474,26 @@
url
:
'/pages/appointment/personal/pointBalance'
});
},
// 获取公司认证信息
getUserCompany
()
{
let
that
=
this
let
parms
=
{
url
:
"/api/AppletTrade/GetUserCompany"
,
}
this
.
request2
(
parms
,
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
that
.
companyStatus
=
res
.
data
.
CompanyStatus
that
.
companyName
=
res
.
data
.
CompanyName
}
})
},
//去认证页
goIdentification
(){
uni
.
navigateTo
({
url
:
'/pages/kotra/identification'
})
}
}
};
</
script
>
...
...
@@ -654,7 +695,7 @@
.userStyle
.member
{
background
:
#3b3641
;
width
:
80px
;
/* width: 80px; */
font-size
:
10px
;
color
:
#fff
;
height
:
18px
;
...
...
@@ -782,4 +823,13 @@
.userBox
.paike
{
margin-top
:
15px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.componyStatusBox
.renzhen
{
height
:
15px
;
font-size
:
10px
;
margin-top
:
10px
;
color
:
#555555
;
border-radius
:
7px
;
border
:
1px
solid
#999999
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
padding
:
0
10
rpx
;
margin-left
:
10
rpx
;
}
.componyStatusBox
.companyName
{
font-size
:
26
rpx
;
font-weight
:
500
;
color
:
#888888
;
/* background-color: #F6F6F6FF */
}
</
style
>
\ No newline at end of file
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