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
26160e26
Commit
26160e26
authored
Mar 30, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2b8a76c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
33 deletions
+46
-33
editData.vue
pages/blindDate/editData.vue
+46
-33
No files found.
pages/blindDate/editData.vue
View file @
26160e26
...
@@ -68,13 +68,13 @@
...
@@ -68,13 +68,13 @@
<view
class=
"subName"
>
<view
class=
"subName"
>
{{
item1
.
name
}}
{{
item1
.
name
}}
</view>
</view>
<input
type=
"text"
:placeholder=
"item1.placehloder"
v-model=
"data[item1.field]"
:type=
"item1.showType"
class=
"subInput"
v-if=
"item1.subType==1"
/>
<input
type=
"text"
:placeholder=
"item1.placehloder"
:disabled=
"item1.disabled"
v-model=
"data[item1.field]"
:type=
"item1.showType"
class=
"subInput"
v-if=
"item1.subType==1"
/>
<view
class=
"unit"
v-if=
"item1.unit"
>
<view
class=
"unit"
v-if=
"item1.unit"
>
{{
item1
.
unit
}}
{{
item1
.
unit
}}
</view>
</view>
<view
class=
"subpicker"
v-if=
"item1.subType==2"
>
<view
class=
"subpicker"
v-if=
"item1.subType==2"
>
<picker
:mode =
"item1.mode"
class=
"subpicker"
:range=
"item1.array"
@
change=
"changPicker($event,item1.field,item1.mode,item1.array)"
>
<picker
:mode =
"item1.mode"
class=
"subpicker"
:
disabled=
"item1.disabled"
:
range=
"item1.array"
@
change=
"changPicker($event,item1.field,item1.mode,item1.array)"
>
<input
class=
"subInput"
disabled
type=
"text"
:placeholder=
"item1.placehloder"
v-model=
"data[item1.field]"
/>
<input
class=
"subInput"
disabled
type=
"text"
:
disabled=
"item1.disabled"
:
placeholder=
"item1.placehloder"
v-model=
"data[item1.field]"
/>
</picker>
</picker>
<!--
<u-icon
style=
"flex-grow: 4;"
name=
"arrow-right"
></u-icon>
-->
<!--
<u-icon
style=
"flex-grow: 4;"
name=
"arrow-right"
></u-icon>
-->
</view>
</view>
...
@@ -124,74 +124,85 @@
...
@@ -124,74 +124,85 @@
field
:
"Name"
,
field
:
"Name"
,
placehloder
:
"请填写昵称"
,
placehloder
:
"请填写昵称"
,
subType
:
1
,
subType
:
1
,
showType
:
"text"
showType
:
"text"
,
disabled
:
true
},{
},{
name
:
"性别"
,
name
:
"性别"
,
field
:
"SexStr"
,
field
:
"SexStr"
,
placehloder
:
"请选择性别"
,
placehloder
:
"请选择性别"
,
subType
:
2
,
subType
:
2
,
array
:[
'男'
,
'女'
],
array
:[
'男'
,
'女'
],
mode
:
"selector"
mode
:
"selector"
,
disabled
:
true
},{
},{
name
:
"出生日期"
,
name
:
"出生日期"
,
field
:
"Birthday"
,
field
:
"Birthday"
,
placehloder
:
"请选择出生日期"
,
placehloder
:
"请选择出生日期"
,
subType
:
2
,
subType
:
2
,
array
:
""
,
array
:
""
,
mode
:
"date"
mode
:
"date"
,
disabled
:
false
},{
},{
name
:
"身高"
,
name
:
"身高"
,
field
:
"Height"
,
field
:
"Height"
,
placehloder
:
"请填写身高"
,
placehloder
:
"请填写身高"
,
subType
:
1
,
subType
:
1
,
unit
:
"厘米"
,
unit
:
"厘米"
,
showType
:
"number"
showType
:
"number"
,
disabled
:
false
},{
},{
name
:
"体重"
,
name
:
"体重"
,
field
:
"Weight"
,
field
:
"Weight"
,
placehloder
:
"请填写体重"
,
placehloder
:
"请填写体重"
,
subType
:
1
,
subType
:
1
,
unit
:
"公斤"
,
unit
:
"公斤"
,
showType
:
"number"
showType
:
"number"
,
disabled
:
false
},{
},{
name
:
"学历"
,
name
:
"学历"
,
field
:
"EducationTypeStr"
,
field
:
"EducationTypeStr"
,
placehloder
:
"请选择学历"
,
placehloder
:
"请选择学历"
,
subType
:
2
,
subType
:
2
,
array
:[
'高中及以下'
,
'大专'
,
'本科'
,
'硕士及以上'
],
array
:[
'高中及以下'
,
'大专'
,
'本科'
,
'硕士及以上'
],
mode
:
"selector"
mode
:
"selector"
,
disabled
:
false
},{
},{
name
:
"毕业院校"
,
name
:
"毕业院校"
,
field
:
"SchoolInfo"
,
field
:
"SchoolInfo"
,
placehloder
:
"请填写毕业院校"
,
placehloder
:
"请填写毕业院校"
,
subType
:
1
,
subType
:
1
,
showType
:
"text"
showType
:
"text"
,
disabled
:
false
},{
},{
name
:
"婚姻"
,
name
:
"婚姻"
,
field
:
"MarriageStr"
,
field
:
"MarriageStr"
,
placehloder
:
"请选择婚姻状况"
,
placehloder
:
"请选择婚姻状况"
,
subType
:
2
,
subType
:
2
,
array
:[
'未婚'
,
'离异'
,
'丧偶'
],
array
:[
'未婚'
,
'离异'
,
'丧偶'
],
mode
:
"selector"
mode
:
"selector"
,
disabled
:
false
},{
},{
name
:
"职位"
,
name
:
"职位"
,
field
:
"Job"
,
field
:
"Job"
,
placehloder
:
"请填写职位"
,
placehloder
:
"请填写职位"
,
subType
:
1
,
subType
:
1
,
showType
:
"text"
showType
:
"text"
,
disabled
:
false
},{
},{
name
:
"工作单位"
,
name
:
"工作单位"
,
field
:
"WorkUnit"
,
field
:
"WorkUnit"
,
placehloder
:
"请填写工作单位"
,
placehloder
:
"请填写工作单位"
,
subType
:
1
,
subType
:
1
,
showType
:
"text"
showType
:
"text"
,
disabled
:
false
},{
},{
name
:
"年收入"
,
name
:
"年收入"
,
field
:
"YearMoney"
,
field
:
"YearMoney"
,
placehloder
:
"请填写年收入"
,
placehloder
:
"请填写年收入"
,
subType
:
1
,
subType
:
1
,
unit
:
"万"
,
unit
:
"万"
,
showType
:
"number"
showType
:
"number"
,
disabled
:
false
},{
},{
name
:
"籍贯"
,
name
:
"籍贯"
,
field
:
"nativePlace"
,
field
:
"nativePlace"
,
...
@@ -204,7 +215,8 @@
...
@@ -204,7 +215,8 @@
field
:
"HouseInfo"
,
field
:
"HouseInfo"
,
placehloder
:
"请填写资产"
,
placehloder
:
"请填写资产"
,
subType
:
1
,
subType
:
1
,
showType
:
"text"
showType
:
"text"
,
disabled
:
false
}],
}],
type
:
2
type
:
2
},{
},{
...
@@ -473,14 +485,14 @@
...
@@ -473,14 +485,14 @@
});
});
return
return
}
}
//
if(this.data.EducationTypeStr==""){
if
(
this
.
data
.
EducationTypeStr
==
""
){
//
uni.showToast({
uni
.
showToast
({
//
title: '请选择学历',
title
:
'请选择学历'
,
//
duration: 2000,
duration
:
2000
,
//
icon:"none"
icon
:
"none"
//
});
});
//
return
return
//
}
}
if
(
this
.
data
.
MarriageStr
==
""
){
if
(
this
.
data
.
MarriageStr
==
""
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'请选择婚姻状况'
,
title
:
'请选择婚姻状况'
,
...
@@ -489,7 +501,7 @@
...
@@ -489,7 +501,7 @@
});
});
return
return
}
}
// if(this.data.
nativePlace
==""){
// if(this.data.
address
==""){
// uni.showToast({
// uni.showToast({
// title: '请选择籍贯',
// title: '请选择籍贯',
// duration: 2000,
// duration: 2000,
...
@@ -508,12 +520,12 @@
...
@@ -508,12 +520,12 @@
duration
:
2000
,
duration
:
2000
,
icon
:
"success"
,
icon
:
"success"
,
success
:()
=>
{
success
:()
=>
{
let
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
):
null
;
setTimeout
(()
=>
{
if
(
mall_UserInfo
!=
null
){
uni
.
navigateBack
({
uni
.
navigateTo
({
delta
:
1
url
:
'/pages/blindDate/persondetails?UserId='
+
mall_UserInfo
.
UserId
});
});
}
},
1000
)
}
}
});
});
...
@@ -584,10 +596,8 @@
...
@@ -584,10 +596,8 @@
},
},
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
&&
options
.
UserId
){
this
.
UserId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
null
;
this
.
UserId
=
options
.
UserId
;
this
.
getInfo
();
this
.
getInfo
();
}
},
},
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
...
@@ -757,6 +767,9 @@
...
@@ -757,6 +767,9 @@
height
:
180rpx
;
height
:
180rpx
;
width
:
100%
;
width
:
100%
;
border-bottom
:
1rpx
solid
#E2E2E2
FF
;
border-bottom
:
1rpx
solid
#E2E2E2
FF
;
font-size
:
24rpx
;
font-weight
:
bold
;
color
:
#111111
;
}
}
}
}
}
}
...
...
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