Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
2714017b
Commit
2714017b
authored
Dec 01, 2022
by
huSun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册下一步传参--Id
parent
1b9806a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
components/myteam/lazy-tree.vue
+8
-3
pages/invitationRegister/invitationRegister.vue
+12
-8
pages/invitationRegister/invitationlogin.vue
+2
-4
No files found.
components/myteam/lazy-tree.vue
View file @
2714017b
...
...
@@ -15,7 +15,8 @@
<!-- 为了提高dom渲染效率,当list产生破坏性变动时(如删除其中一项,或者排序等)必须使用唯一确定的key,而不能使用index -->
<block
v-for=
"(item, i) in treeList"
:key=
"item.id"
>
<view
class=
"d-box"
v-if=
"item.level === 0 || checkOpen(item.pids[item.pids.length - 1])"
>
<view
class=
"d-td"
style=
"text-align: left;"
:class=
"`padding-left-$
{item.level * 5 + 10}`">
<!-- :class="`padding-left-$
{item.level * 5 + 10}`" -->
<view
class=
"d-td"
>
<view
class=
""
style=
"display: flex;align-items: center;"
>
<uni-icons
v-if=
"item.hasChildren"
...
...
@@ -26,7 +27,8 @@
<view
@
click=
"open(item, i)"
v-if=
"item.level && !item.hasChildren"
style=
"width: 24rpx;height: 26rpx;display: inline-block;"
></view>
<view
v-else
@
click=
"open(item, i)"
:class=
"item.levelCode == 'B1' ? 'content-box-title-a' : item.levelCode == 'C3' ? 'content-box-title-b':'content-box-title'"
>
<!-- -->
<text
class=
""
style=
"text-align: center;font-size: 13px;line-height: 26px;"
>
{{
item
.
areaCenterName
||
'张麻花'
}}
</text>
<text
class=
""
v-if=
"item.levelCode == 'A1'"
style=
"text-align: center;font-size: 26rpx;line-height: rpx;"
>
{{
item
.
name
||
'张麻花'
}}
</text>
<text
class=
""
v-else
style=
"text-align: center;font-size: 13px;line-height: 26px;"
>
{{
item
.
areaCenterName
||
'张麻花'
}}
</text>
</view>
</view>
...
...
@@ -34,7 +36,7 @@
<!--
</view>
-->
</view>
<view
class=
"d-td"
v-if=
"item.levelCode == 'A1'"
>
{{
item
.
levelName
}}
</view>
<view
class=
"d-td"
>
{{
item
.
levelName
}}
</view>
<view
class=
"d-td"
style=
"padding-right: 10rpx;"
>
{{
item
.
count
}}
</view>
</view>
</block>
...
...
@@ -338,6 +340,9 @@ export default {
.d-box
{
display
:
flex
;
justify-content
:
space-between
;
.d-td{
flex
:
1
;
}
}
.d-tr
{
display
:
flex
;
...
...
pages/invitationRegister/invitationRegister.vue
View file @
2714017b
...
...
@@ -21,26 +21,30 @@
data
()
{
return
{
areaName
:
''
,
invitationName
:
''
invitationName
:
''
,
shareId
:
''
}
},
onLoad
(
options
)
{
console
.
log
(
options
,
777
)
this
.
getqueryById
(
options
.
shareId
)
this
.
shareId
=
options
.
shareId
this
.
getqueryById
()
},
methods
:{
getqueryById
(
id
){
console
.
log
(
id
)
api
.
queryById
({
id
}).
then
(
res
=>
{
console
.
log
(
res
,
77414
)
getqueryById
(){
api
.
queryById
({
id
:
this
.
shareId
}).
then
(
res
=>
{
this
.
areaName
=
res
.
data
.
data
.
areaName
this
.
invitationName
=
res
.
data
.
data
.
invitationName
this
.
mobileNumber
=
res
.
data
.
data
.
mobileNumber
})
},
ckregister
(){
let
dataForm
=
{
name
:
this
.
invitationName
,
mobile
:
this
.
mobileNumber
,
id
:
this
.
shareId
};
uni
.
navigateTo
({
url
:
'/pages/invitationRegister/invitationlogin?
invitationName='
+
this
.
invitationName
+
'&mobileNumber='
+
this
.
mobileNumber
url
:
'/pages/invitationRegister/invitationlogin?
form='
+
JSON
.
stringify
(
dataForm
)
})
}
}
...
...
pages/invitationRegister/invitationlogin.vue
View file @
2714017b
...
...
@@ -54,10 +54,8 @@
}
}
},
onLoad
(
option
)
{
console
.
log
(
option
,
555
)
this
.
form
.
name
=
option
.
invitationName
this
.
form
.
mobile
=
option
.
mobileNumber
onLoad
(
options
)
{
this
.
form
=
JSON
.
parse
(
options
.
form
)
},
methods
:{
sendMessage
(){
...
...
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