Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
acb83a1c
Commit
acb83a1c
authored
Mar 04, 2025
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分享样式
parent
27c06926
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
13 deletions
+29
-13
App.vue
App.vue
+4
-4
index.vue
components/auth/index.vue
+1
-1
user-bind-erp.vue
pages/user-center/user-bind-erp.vue
+3
-3
user-center.vue
pages/user-center/user-center.vue
+17
-1
utils.js
plugin/utils.js
+4
-4
No files found.
App.vue
View file @
acb83a1c
...
...
@@ -9,7 +9,7 @@ export default {
},
onLaunch
:
function
()
{
console
.
log
(
'App Launch'
)
this
.
$utils
.
setAttatchParameter
()
this
.
$utils
.
setAttatchParameter
(
this
)
this
.
init
();
this
.
formatPlat
();
},
...
...
@@ -68,8 +68,8 @@ export default {
createBy
:
u
.
pid
,
EmLoginMobile
:
u
.
moblie
,
contactNumber
:
u
.
moblie
,
salesBaseInfo
:
u
.
salesBaseInfo
,
pid
:
u
.
pid
,
salesBaseInfo
:
u
.
erpBaseInfo
?
u
.
erpBaseInfo
:
u
.
salesBaseInfo
,
pid
:
u
.
erpBaseInfo
?
u
.
erpBaseInfo
.
employeeId
:
u
.
pid
,
erpBaseInfo
:
u
.
erpBaseInfo
,
count
:
0
,
customerType
:
1
,
//直客,2-同行
...
...
@@ -78,7 +78,7 @@ export default {
uni
.
setStorageSync
(
'b2b_user'
,
user
)
this
.
user
=
user
uni
.
setStorageSync
(
"lastLogin"
,
new
Date
().
getTime
())
this
.
$utils
.
setAttatchParameter
()
this
.
$utils
.
setAttatchParameter
(
this
)
})
},
init
()
{
...
...
components/auth/index.vue
View file @
acb83a1c
...
...
@@ -243,7 +243,7 @@
uni
.
setStorageSync
(
'b2b_user'
,
user
)
this
.
$emit
(
"changeuserinfo"
);
uni
.
setStorageSync
(
"lastLogin"
,
new
Date
().
getTime
())
this
.
$utils
.
setAttatchParameter
()
this
.
$utils
.
setAttatchParameter
(
this
)
},
e
=>
{
uni
.
showToast
({
title
:
'用户登录失败'
,
...
...
pages/user-center/user-bind-erp.vue
View file @
acb83a1c
...
...
@@ -104,8 +104,8 @@
createBy
:
u
.
pid
,
EmLoginMobile
:
u
.
moblie
,
contactNumber
:
u
.
moblie
,
salesBaseInfo
:
u
.
salesBaseInfo
,
pid
:
u
.
pid
,
salesBaseInfo
:
u
.
erpBaseInfo
?
u
.
erpBaseInfo
:
u
.
salesBaseInfo
,
pid
:
u
.
erpBaseInfo
?
u
.
erpBaseInfo
.
employeeId
:
u
.
pid
,
erpBaseInfo
:
u
.
erpBaseInfo
,
count
:
0
,
customerType
:
1
,
//直客,2-同行
...
...
@@ -114,7 +114,7 @@
uni
.
setStorageSync
(
'b2b_user'
,
user
)
this
.
user
=
user
uni
.
setStorageSync
(
"lastLogin"
,
new
Date
().
getTime
())
this
.
$utils
.
setAttatchParameter
()
this
.
$utils
.
setAttatchParameter
(
this
)
uni
.
hideLoading
()
})
},
...
...
pages/user-center/user-center.vue
View file @
acb83a1c
...
...
@@ -49,7 +49,13 @@
<u-icon
name=
"pen_"
size=
"24"
class=
"q-ml-sm"
custom-prefix=
"tffont"
color=
"#121212"
></u-icon>
</view>
<view
style=
"font-size:12px; margin-top:3px;"
>
<
template
v-if=
"b2b_user_info&&b2b_user_info.customerName&&b2b_user_info.customerName!=''"
>
<
template
v-if=
'b2b_user_info.erpBaseInfo'
>
<view
class=
"empolyee-tag row items-center"
>
<text
style=
"padding: 6rpx;"
class=
"text-center"
>
{{
b2b_user_info
.
erpBaseInfo
.
branchName
}}
</text>
<text
class=
"text-center"
style=
"padding:6rpx;color:#fff;background-color: #B99846;"
>
{{
b2b_user_info
.
erpBaseInfo
.
emName
}}
</text>
</view>
</
template
>
<
template
v-else-if=
"b2b_user_info&&b2b_user_info.customerName&&b2b_user_info.customerName!=''"
>
{{
b2b_user_info
.
customerName
}}
</
template
>
...
...
@@ -948,6 +954,16 @@
align-items
:
center
;
justify-content
:
space-between
;
}
.empolyee-tag
{
border-radius
:
7
rpx
;
background-color
:
#100000
;
font-size
:
22
rpx
;
font-weight
:
400
;
color
:
#f1f2f4
;
overflow
:
hidden
;
padding
:
0
;
line-height
:
1
;
}
.componyStatusBox
.renzhen
{
height
:
15px
;
...
...
plugin/utils.js
View file @
acb83a1c
...
...
@@ -170,14 +170,14 @@ function formatDates(date, fmt) {
function
padLeftZero
(
str
)
{
return
(
'00'
+
str
).
substr
(
str
.
length
);
}
function
setAttatchParameter
(){
this
.
$uiConfig
.
DIRECT_PARAMETER
=
''
function
setAttatchParameter
(
vm
){
vm
.
$uiConfig
.
DIRECT_PARAMETER
=
''
if
(
uni
.
getStorageSync
(
'b2b_user'
)){
const
{
salesBaseInfo
,
erpBaseInfo
}
=
uni
.
getStorageSync
(
'b2b_user'
)
if
(
erpBaseInfo
&&
erpBaseInfo
.
employeeId
){
this
.
$uiConfig
.
DIRECT_PARAMETER
=
'&direct_user_id='
+
erpBaseInfo
.
employeeId
vm
.
$uiConfig
.
DIRECT_PARAMETER
=
'&direct_user_id='
+
erpBaseInfo
.
employeeId
}
else
if
(
salesBaseInfo
&&
salesBaseInfo
.
employeeId
){
this
.
$uiConfig
.
DIRECT_PARAMETER
=
'&direct_user_id='
+
salesBaseInfo
.
employeeId
vm
.
$uiConfig
.
DIRECT_PARAMETER
=
'&direct_user_id='
+
salesBaseInfo
.
employeeId
}
}
...
...
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