Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
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
李伟
cust-app
Commits
09a06ec4
Commit
09a06ec4
authored
Jan 18, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了会员列表搜索功能和页面
parent
98e7d2b2
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
2870 deletions
+10
-2870
pages.json
pages.json
+2
-2
userFilterPage.vue
pagesUser/userFilterPage.vue
+5
-15
userList.vue
pagesUser/userList.vue
+3
-5
s-region-slider.vue
...preference/components/s-region-slider/s-region-slider.vue
+0
-388
level-data.js
...ce/components/three-level-linkage/data-info/level-data.js
+0
-1247
linkage.vue
pagespreference/components/three-level-linkage/linkage.vue
+0
-575
linkages.vue
pagespreference/components/three-level-linkage/linkages.vue
+0
-638
No files found.
pages.json
View file @
09a06ec4
...
...
@@ -294,9 +294,9 @@
]
},
{
"root"
:
"pages
preference
"
,
"root"
:
"pages
User
"
,
"pages"
:
[{
"path"
:
"
preference/preferenc
e"
,
"path"
:
"
userFilterPag
e"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选设置"
,
"backgroundColor"
:
"#ffffff"
,
...
...
pages
preference/preference/preferenc
e.vue
→
pages
User/userFilterPag
e.vue
View file @
09a06ec4
...
...
@@ -124,14 +124,13 @@
</
template
>
<
script
>
import
UFormItem
from
"../
../
uni_modules/uview-ui/components/u-form-item/u-form-item"
;
import
{
getOptions
}
from
"../
../
common/options"
;
import
UFormItem
from
"../uni_modules/uview-ui/components/u-form-item/u-form-item"
;
import
{
getOptions
}
from
"../common/options"
;
export
default
{
components
:
{
UFormItem
},
components
:
{
UFormItem
},
data
()
{
return
{
index
:
0
,
//数据选项
sexActions
:[
getOptions
(
'sex'
)
...
...
@@ -149,12 +148,12 @@ export default {
value
:
'0101'
}]
],
//选择器
//选择器
显示
showSex
:
false
,
showEducation
:
false
,
showResidence
:
false
,
showHeight
:
false
,
showWeight
:
false
,
//搜索参数
queryParams
:
{
memSex
:
''
,
//性别
memHeight
:
''
,
//身高
...
...
@@ -162,20 +161,11 @@ export default {
memResidenceProvince
:
''
,
//居住地省份
memResidenceCity
:
''
,
//居住城市
},
tipMsg
:
''
,
isConfirm
:
false
}
},
onReady
()
{
},
onShow
()
{
},
methods
:
{
//性别确认
confirmSex
(
e
){
console
.
log
(
'======e======'
,
e
)
this
.
showSex
=
false
this
.
queryParams
.
memSex
=
e
.
value
[
0
].
value
this
.
queryParams
.
memSexText
=
e
.
value
[
0
].
label
...
...
pagesUser/userList.vue
View file @
09a06ec4
...
...
@@ -93,11 +93,11 @@ export default {
let
maxHeight
=
''
let
minWeight
=
''
let
maxWeight
=
''
if
(
value
.
memHeight
!=
''
){
if
(
value
.
memHeight
!=
''
&&
value
.
memHeight
!=
'不限'
){
minHeight
=
value
.
memHeight
.
split
(
'-'
)[
0
]
maxHeight
=
value
.
memHeight
.
split
(
'-'
)[
1
]
}
if
(
value
.
memWeight
!=
''
){
if
(
value
.
memWeight
!=
''
&&
value
.
memWeight
!=
'不限'
){
minWeight
=
value
.
memWeight
.
split
(
'-'
)[
0
]
maxWeight
=
value
.
memWeight
.
split
(
'-'
)[
1
]
}
...
...
@@ -105,8 +105,6 @@ export default {
this
.
queryParam
=
{
page
:
1
,
rows
:
10
,
memCareer
:
value
.
memCareer
,
memCollege
:
value
.
memCollege
,
memSex
:
value
.
memSex
,
minHeight
:
minHeight
,
maxHeight
:
maxHeight
,
...
...
@@ -121,7 +119,7 @@ export default {
search
()
{
//判断当前是否已登录
uni
.
navigateTo
({
url
:
'/pages
preference/preference/preferenc
e'
url
:
'/pages
User/userFilterPag
e'
});
},
//跳转用户详情
...
...
pagespreference/components/s-region-slider/s-region-slider.vue
deleted
100644 → 0
View file @
98e7d2b2
<
template
>
<view
clipchildren=
false
>
<!--
<text
class=
"loading"
:style=
"
{opacity: lineLeft===0 ? '1' : '0'}">loading...
</text>
-->
<view
class=
"fj-slider-box"
:style=
"
{opacity: lineLeft!==0 ? '1' : '0'}" clipchildren=false>
<!--
<view
class=
"fj-value"
>
<text
class=
"fj-v-l"
>
{{
fillMinValue
}}
</text>
<text
class=
"fj-v-r"
>
{{
fillValue
}}
</text>
</view>
-->
<text
class=
"tip"
:style=
"
{left:curValue==100?`${tipLeft-22}px`:`${tipLeft-16}px`,opacity: tipShow ? '1' : '0'}">
{{
curValue
}}
</text>
<view
class=
"fj-slider"
clipchildren=
false
>
<view
class=
"fj-line"
ref=
"fj-line"
></view>
<view
v-if=
"maxLeft-minLeft>=0"
class=
"fj-line-pull"
:style=
"
{left: `${minLeft + touchWidth/2}px`, width:`${Math.abs(maxLeft - minLeft)}px`}">
</view>
<view
v-else
class=
"fj-line-pull"
:style=
"
{left: `${minLeft + touchWidth/2- Math.abs(maxLeft - minLeft) }px`, width:`${Math.abs(maxLeft - minLeft)}px`}">
</view>
<view
class=
""
style=
"width: 100rpx;height: 100rpx;position: absolute;display: flex;justify-content: flex-start;margin-top: -40rpx;
margin-left: -40rpx;"
ref=
"fjtouchleft"
@
touchstart=
"touchstart($event, 'min')"
:style=
"
{left:`${minLeft}px`}"
@touchmove="touchmove($event, 'min')" @touchend="touchend($event, 'min')">
<view
class=
"fj-touch-left"
style=
"margin-top: 40rpx;margin-left: 40rpx;margin-bottom: 20px;"
>
</view>
</view>
<view
class=
""
style=
"width: 100rpx;height: 100rpx;position: absolute;display: flex;justify-content: flex-start;margin-top: -40rpx;
margin-right: -40rpx;"
@
touchstart=
"touchstart($event, 'max')"
:style=
"
{left:`${maxLeft-4}px`}"
@touchmove="touchmove($event, 'max')" @touchend="touchend($event, 'max')">
<view
class=
"fj-touch-right"
style=
"margin-top: 40rpx;margin-right: 40rpx;margin-bottom: 20px;"
>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
// #ifndef APP-PLUS
const
createSelectorQuery
=
(
that
)
=>
{
let
query
=
uni
.
createSelectorQuery
().
in
(
that
);
// #ifdef MP-ALIPAY
query
=
my
.
createSelectorQuery
();
// #endif
return
query
;
}
// #endif
// #ifdef APP-PLUS
const
dom
=
weex
.
requireModule
(
'dom'
);
// #endif
export
default
{
name
:
's-region-slider'
,
props
:
{
fillValue
:
{
type
:
Number
,
default
:
1000
,
},
fillMinValue
:
{
type
:
Number
,
default
:
0
,
},
minValue
:
{
type
:
Number
,
default
:
0
,
},
maxValue
:
{
type
:
Number
,
default
:
1000
,
},
step
:
{
type
:
Number
,
default
:
50
,
},
},
watch
:
{
minValue
(
newVal
,
oldVla
)
{
if
(
newVal
<
this
.
fillMinValue
||
this
.
maxValue
>
this
.
fillValue
)
{
console
.
error
(
`请在
${
this
.
fillMinValue
}
-
${
this
.
fillValue
}
范围中设置`
)
return
;
}
this
.
sMinValue
=
newVal
-
this
.
fillMinValue
;
this
.
showMinNum
=
newVal
;
this
.
minLeft
=
this
.
sMinValue
/
this
.
percentage
;
},
maxValue
(
newVal
,
oldVla
)
{
if
(
this
.
minValue
<
this
.
fillMinValue
||
newVal
>
this
.
fillValue
)
{
console
.
error
(
`请在
${
this
.
fillMinValue
}
-
${
this
.
fillValue
}
范围中设置`
)
return
;
}
this
.
sMaxValue
=
newVal
-
this
.
fillMinValue
;
this
.
showMaxNum
=
newVal
;
this
.
maxLeft
=
this
.
sMaxValue
/
this
.
percentage
;
},
fillValue
(
newVal
,
oldVla
)
{
this
.
sFillValue
=
this
.
fillValue
;
}
},
data
()
{
return
{
tipShow
:
false
,
tipLeft
:
0
,
minLeft
:
0
,
maxLeft
:
0
,
touchWidth
:
30
,
lineWidth
:
0
,
lineLeft
:
0
,
showMinNum
:
0
,
showMaxNum
:
0
,
curValue
:
0
,
sMinValue
:
0
,
sMaxValue
:
0
,
sFillValue
:
0
,
sFillMinValue
:
0
,
percentage
:
0
};
},
mounted
()
{
this
.
$nextTick
().
then
(()
=>
{
this
.
envir
({
classname
:
'.fj-touch-left'
,
refname
:
this
.
$refs
.
fjtouchleft
,
fn
:
(
ret
)
=>
{
this
.
touchWidth
=
ret
.
width
;
}
})
this
.
envir
({
classname
:
'.fj-line'
,
refname
:
this
.
$refs
[
'fj-line'
],
fn
:
(
ret
)
=>
{
this
.
lineWidth
=
ret
.
width
;
this
.
lineLeft
=
ret
.
left
;
//
this
.
sMinValue
=
(
this
.
minValue
-
this
.
fillMinValue
)
>
0
?
this
.
minValue
-
this
.
fillMinValue
:
0
;
this
.
sMaxValue
=
(
this
.
maxValue
-
this
.
fillMinValue
)
>
0
?
this
.
maxValue
-
this
.
fillMinValue
:
0
;
this
.
sFillValue
=
(
this
.
fillValue
-
this
.
fillMinValue
)
>
0
?
this
.
fillValue
-
this
.
fillMinValue
:
0
;
this
.
percentage
=
this
.
sFillValue
/
this
.
lineWidth
;
this
.
minLeft
=
this
.
sMinValue
/
this
.
percentage
;
this
.
maxLeft
=
this
.
sMaxValue
/
this
.
percentage
;
this
.
showMaxNum
=
this
.
sMaxValue
+
this
.
fillMinValue
;
this
.
showMinNum
=
this
.
sMinValue
+
this
.
fillMinValue
;
}
})
})
},
methods
:
{
envir
(
opt
)
{
setTimeout
(()
=>
{
// #ifdef APP-PLUS
dom
.
getComponentRect
(
opt
.
refname
,
ret
=>
{
const
option
=
ret
.
size
opt
.
fn
({
width
:
option
.
width
,
height
:
option
.
height
,
top
:
option
.
top
,
bottom
:
option
.
bottom
,
left
:
option
.
left
,
right
:
option
.
right
,
})
})
// #endif
// #ifndef APP-PLUS
createSelectorQuery
(
this
).
select
(
opt
.
classname
).
boundingClientRect
().
exec
((
data
)
=>
{
const
option
=
data
[
0
];
opt
.
fn
({
width
:
option
.
width
,
height
:
option
.
height
,
top
:
option
.
top
,
bottom
:
option
.
bottom
,
left
:
option
.
left
,
right
:
option
.
right
,
})
})
// #endif
},
200
)
},
touchstart
(
e
,
type
)
{
this
.
$emit
(
'down'
,
{
...
e
,
custom
:
{
type
,
minValue
:
this
.
showMinNum
,
maxValue
:
this
.
showMaxNum
}
})
},
touchmove
(
e
,
type
)
{
// #ifndef APP-PLUS
const
disX
=
e
.
touches
[
0
].
clientX
-
this
.
lineLeft
// #endif
// #ifdef APP-PLUS
const
disX
=
e
.
touches
[
0
].
screenX
-
this
.
lineLeft
// #endif
if
(
disX
<
0
||
disX
>
this
.
lineWidth
)
{
return
;
}
if
(
type
===
'min'
)
{
this
.
minLeft
=
Math
.
floor
(
disX
);
if
(
this
.
minLeft
<
0
)
{
this
.
minLeft
=
0
;
return
;
}
if
(
this
.
maxLeft
>
this
.
lineWidth
)
{
this
.
maxLeft
=
this
.
lineWidth
;
return
;
}
//if(this.maxLeft - this.minLeft
<=
this
.
touchWidth
)
{
this
.
minLeft
=
this
.
maxLeft
-
this
.
touchWidth
;
return
;}
this
.
curValue
=
Math
.
floor
(
this
.
minLeft
*
this
.
percentage
);
}
if
(
type
===
'max'
)
{
this
.
maxLeft
=
Math
.
ceil
(
disX
);
if
(
this
.
minLeft
<
0
)
{
this
.
minLeft
=
0
;
return
;
}
if
(
this
.
maxLeft
>
this
.
lineWidth
)
{
this
.
maxLeft
=
this
.
lineWidth
;
return
;
}
// if(this.maxLeft - this.minLeft
<=
this
.
touchWidth
)
{
this
.
maxLeft
=
this
.
minLeft
+
this
.
touchWidth
;
return
;}
this
.
curValue
=
Math
.
round
(
this
.
maxLeft
*
this
.
percentage
);
}
this
.
tipShow
=
true
;
this
.
tipLeft
=
Math
.
round
((
this
.
curValue
)
/
this
.
percentage
);
this
.
tipLeft
=
this
.
tipLeft
>=
this
.
lineWidth
?
this
.
lineWidth
:
this
.
tipLeft
this
.
tipLeft
=
this
.
tipLeft
<=
0
?
0
:
this
.
tipLeft
this
.
curValue
=
this
.
curValue
+
this
.
fillMinValue
;
this
.
$emit
(
'move'
,
{
...
e
,
custom
:
{
type
,
minValue
:
this
.
showMinNum
,
maxValue
:
this
.
showMaxNum
,
curValue
:
this
.
curValue
,
}
})
},
touchend
(
e
,
type
)
{
if
(
type
===
'min'
)
{
if
(
this
.
step
===
1
)
{
this
.
sMinValue
=
this
.
curValue
-
this
.
fillMinValue
;
}
else
{
const
stepnum
=
Math
.
round
((
this
.
minLeft
*
this
.
percentage
)
/
this
.
step
);
this
.
sMinValue
=
stepnum
*
this
.
step
;
this
.
minLeft
=
this
.
sMinValue
/
this
.
percentage
;
}
}
if
(
type
===
'max'
)
{
if
(
this
.
step
===
1
)
{
this
.
sMaxValue
=
this
.
curValue
-
this
.
fillMinValue
;
}
else
{
const
stepnum
=
Math
.
round
((
this
.
maxLeft
*
this
.
percentage
)
/
this
.
step
);
this
.
sMaxValue
=
stepnum
*
this
.
step
;
if
(
this
.
sFillValue
-
this
.
sMaxValue
<
this
.
step
)
{
this
.
sMaxValue
=
this
.
sFillValue
}
this
.
maxLeft
=
this
.
sMaxValue
/
this
.
percentage
;
}
}
this
.
tipShow
=
false
;
if
(
this
.
sMinValue
<=
this
.
sMaxValue
)
{
this
.
showMaxNum
=
this
.
sMaxValue
+
this
.
fillMinValue
;
this
.
showMinNum
=
this
.
sMinValue
+
this
.
fillMinValue
;
}
else
{
this
.
showMaxNum
=
this
.
sMinValue
+
this
.
fillMinValue
;
this
.
showMinNum
=
this
.
sMaxValue
+
this
.
fillMinValue
;
}
this
.
$emit
(
'up'
,
{
...
e
,
custom
:
{
type
,
minValue
:
this
.
showMinNum
<
this
.
fillMinValue
?
this
.
fillMinValue
:
this
.
showMinNum
,
maxValue
:
this
.
showMaxNum
>
this
.
fillValue
?
this
.
fillValue
:
this
.
showMaxNum
}
})
},
},
};
</
script
>
<
style
scoped
>
.fj-slider-box
{
font-size
:
12px
;
position
:
relative
;
}
.loading
{
font-size
:
12px
;
}
.fj-value
{
position
:
relative
;
height
:
50
rpx
;
width
:
686
rpx
;
display
:
flex
;
align-items
:
center
;
}
.fj-v-l
{
height
:
50
rpx
;
font-size
:
36
rpx
;
font-family
:
PingFang
SC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
50
rpx
;
}
.fj-v-r
{
height
:
50
rpx
;
font-size
:
32
rpx
;
font-family
:
PingFang
SC-Bold
,
PingFang
SC
;
font-weight
:
bold
;
color
:
#446CD2
;
line-height
:
50
rpx
;
margin-left
:
24
rpx
;
}
.fj-slider
{
position
:
relative
;
height
:
30px
;
}
.fj-touch-left
,
.fj-touch-right
{
position
:
absolute
;
width
:
20
rpx
;
height
:
20
rpx
;
background
:
#EBEEF3
;
border-radius
:
50%
;
z-index
:
3
;
}
.tip
{
position
:
absolute
;
padding
:
10px
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
color
:
#fff
;
top
:
-60px
;
border-radius
:
10px
;
z-index
:
4
;
font-size
:
10px
;
justify-content
:
center
}
.fj-line
,
.fj-line-pull
{
height
:
5px
;
position
:
absolute
;
top
:
3px
;
left
:
0px
;
right
:
15px
;
background
:
#E6E6E6
;
width
:
682
rpx
;
border-radius
:
4
rpx
;
z-index
:
1
;
}
.fj-line-pull
{
z-index
:
2
;
background
:
#446CD2
;
}
</
style
>
pagespreference/components/three-level-linkage/data-info/level-data.js
deleted
100644 → 0
View file @
98e7d2b2
This diff is collapsed.
Click to expand it.
pagespreference/components/three-level-linkage/linkage.vue
deleted
100644 → 0
View file @
98e7d2b2
This diff is collapsed.
Click to expand it.
pagespreference/components/three-level-linkage/linkages.vue
deleted
100644 → 0
View file @
98e7d2b2
This diff is collapsed.
Click to expand it.
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