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
04d7f8ce
Commit
04d7f8ce
authored
Apr 26, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
1b1d4ea0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
124 additions
and
21 deletions
+124
-21
editData.vue
pages/blindDate/editData.vue
+48
-9
persondetails.vue
pages/blindDate/persondetails.vue
+1
-1
postDetails.vue
pages/blindDate/postDetails.vue
+9
-4
postPublishing.vue
pages/blindDate/postPublishing.vue
+47
-2
postbar.vue
pages/blindDate/postbar.vue
+19
-5
No files found.
pages/blindDate/editData.vue
View file @
04d7f8ce
...
@@ -74,12 +74,16 @@
...
@@ -74,12 +74,16 @@
</view>
</view>
<view
class=
"conBox"
v-if=
"item.type==2"
>
<view
class=
"conBox"
v-if=
"item.type==2"
>
<view
v-for=
"(item1,index1) in item.childDataList"
:key=
"index1"
>
<view
v-for=
"(item1,index1) in item.childDataList"
:key=
"index1"
>
<view
class=
"subItemBox"
>
<view
class=
"subItemBox"
v-if=
"item1.subType!=4"
>
<view
class=
"subName"
>
<view
class=
"subName"
>
{{
item1
.
name
}}
{{
item1
.
name
}}
<text
v-if=
"item1.must!=undefined && item1.must"
style=
"font-size: 12px;color: #F70027;margin-left: 3px;font-weight: normal;"
>
*
</text>
<text
v-if=
"item1.must!=undefined && item1.must"
style=
"font-size: 12px;color: #F70027;margin-left: 3px;font-weight: normal;"
>
*
</text>
</view>
</view>
<input
type=
"text"
:placeholder=
"item1.placehloder"
:disabled=
"item1.disabled"
v-model=
"data[item1.field]"
:type=
"item1.showType"
class=
"subInput"
v-if=
"item1.subType==1"
/>
<input
type=
"text"
v-if=
"item1.name=='昵称' && item1.subType==1"
maxlength=
'10'
:placeholder=
"item1.placehloder"
:disabled=
"item1.disabled"
v-model=
"data[item1.field]"
:type=
"item1.showType"
class=
"subInput"
/>
<input
type=
"text"
v-if=
"item1.name!='昵称' && item1.subType==1"
:placeholder=
"item1.placehloder"
:disabled=
"item1.disabled"
v-model=
"data[item1.field]"
:type=
"item1.showType"
class=
"subInput"
/>
<!-- 显示有昵称的长度 -->
<view
class=
"unit"
v-if=
"item1.name=='昵称' && item1.subType==1"
>
{{
data
[
item1
.
field
].
length
}}
/10
</view>
<view
class=
"unit"
v-if=
"item1.unit"
>
<view
class=
"unit"
v-if=
"item1.unit"
>
{{
item1
.
unit
}}
{{
item1
.
unit
}}
</view>
</view>
...
@@ -94,7 +98,19 @@
...
@@ -94,7 +98,19 @@
<Text
:style=
"
{'color':address!=''? '#303133':'#9D9C9B'}">
{{
address
!=
''
?
address
:
'请选择'
}}
</Text>
<Text
:style=
"
{'color':address!=''? '#303133':'#9D9C9B'}">
{{
address
!=
''
?
address
:
'请选择'
}}
</Text>
<pickerAddress
v-model=
"addressShow"
@
confirm=
"addresspick"
/>
<pickerAddress
v-model=
"addressShow"
@
confirm=
"addresspick"
/>
</view>
</view>
</view>
<!-- 头像上传的情况 4-26新加 -->
<view
class=
"subItemBox"
v-if=
"item1.subType==4"
style=
"height: 140rpx;"
>
<view
class=
"subName"
>
{{
item1
.
name
}}
<text
v-if=
"item1.must!=undefined && item1.must"
style=
"font-size: 12px;color: #F70027;margin-left: 3px;font-weight: normal;"
>
*
</text>
</view>
<view
>
<u-upload
ref=
"uUpload"
:action=
"action"
:custom-btn=
"true"
@
on-success=
"uploadSuccessHandler"
:show-upload-list=
"showUploadList"
:file-list=
"fileList"
:multiple=
'false'
>
<u-avatar
:src=
"data.Photo"
size=
"110"
slot=
"addBtn"
mode=
"square"
></u-avatar>
</u-upload>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -160,7 +176,15 @@
...
@@ -160,7 +176,15 @@
placehloder
:
"请填写昵称"
,
placehloder
:
"请填写昵称"
,
subType
:
1
,
subType
:
1
,
showType
:
"text"
,
showType
:
"text"
,
disabled
:
true
,
disabled
:
false
,
must
:
true
,
//必填
},{
name
:
"头像"
,
field
:
"Name"
,
placehloder
:
"请填写头像"
,
subType
:
4
,
showType
:
"text"
,
disabled
:
false
,
must
:
true
,
//必填
must
:
true
,
//必填
},{
},{
name
:
"性别"
,
name
:
"性别"
,
...
@@ -431,6 +455,9 @@
...
@@ -431,6 +455,9 @@
addressShow
:
false
,
addressShow
:
false
,
address
:
''
,
address
:
''
,
Jumptype
:
0
,
Jumptype
:
0
,
action
:
''
,
showUploadList
:
false
,
fileList
:[],
}
}
},
},
onShareAppMessage
(
res
)
{
onShareAppMessage
(
res
)
{
...
@@ -511,11 +538,9 @@
...
@@ -511,11 +538,9 @@
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'上传中'
title
:
'上传中'
})
})
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
.
MallBaseId
:
1
;
let
action
=
that
.
host2
+
'/api/File/UploadTencent?MallBaseId='
+
MallBaseId
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
action
,
url
:
that
.
action
,
filePath
:
img
,
filePath
:
img
,
name
:
'field'
,
name
:
'field'
,
formData
:
{
formData
:
{
...
@@ -557,7 +582,14 @@
...
@@ -557,7 +582,14 @@
delete
msg
.
nativePlace
delete
msg
.
nativePlace
delete
msg
.
addCode
delete
msg
.
addCode
if
(
this
.
data
.
Name
==
''
){
uni
.
showToast
({
title
:
'昵称不能为空'
,
duration
:
2000
,
icon
:
"none"
});
return
}
if
(
this
.
data
.
SexStr
==
"男"
){
if
(
this
.
data
.
SexStr
==
"男"
){
msg
.
Sex
=
1
msg
.
Sex
=
1
}
else
{
}
else
{
...
@@ -865,6 +897,10 @@
...
@@ -865,6 +897,10 @@
}
}
});
});
},
},
uploadSuccessHandler
(
data
,
index
,
lists
)
{
let
r
=
JSON
.
parse
(
data
);
this
.
data
.
Photo
=
r
.
data
;
},
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
UserId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
null
;
this
.
UserId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
null
;
...
@@ -872,6 +908,9 @@
...
@@ -872,6 +908,9 @@
if
(
options
&&
options
.
Jumptype
){
if
(
options
&&
options
.
Jumptype
){
this
.
Jumptype
=
options
.
Jumptype
this
.
Jumptype
=
options
.
Jumptype
}
}
let
MallBaseId
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
MallBaseId
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
.
MallBaseId
:
1
;
this
.
action
=
this
.
host2
+
'/api/File/UploadTencent?MallBaseId='
+
MallBaseId
},
},
created
()
{
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
...
...
pages/blindDate/persondetails.vue
View file @
04d7f8ce
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</view>
</view>
<view
class=
"pd-box-center"
>
<view
class=
"pd-box-center"
>
<view
class=
"pd-portrait"
>
<view
class=
"pd-portrait"
>
<view
class=
"pd-portrait-l"
>
<view
class=
"pd-portrait-l"
@
click=
"previewImage(0,[dataList.Photo])"
>
<u-avatar
v-if=
'dataList.Photo'
:src=
"dataList.Photo"
size=
"140"
></u-avatar>
<u-avatar
v-if=
'dataList.Photo'
:src=
"dataList.Photo"
size=
"140"
></u-avatar>
<image
v-if=
"dataList.Sex==1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"
style=
"width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"
></image>
<image
v-if=
"dataList.Sex==1"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"
style=
"width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"
></image>
<image
v-if=
"dataList.Sex==2"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"
style=
"width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"
></image>
<image
v-if=
"dataList.Sex==2"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"
style=
"width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"
></image>
...
...
pages/blindDate/postDetails.vue
View file @
04d7f8ce
...
@@ -388,7 +388,8 @@
...
@@ -388,7 +388,8 @@
<view
class=
"activitytime-item-l"
>
<view
class=
"activitytime-item-l"
>
活动人数
活动人数
</view>
</view>
<text>
男
{{
details
.
ManNum
}}
人
<text
style=
"margin-left: 10px;"
>
女
{{
details
.
WoManNum
}}
人
</text>
</text>
<text
v-if=
"details.Distinguish == 0"
>
男
{{
details
.
ManNum
}}
人
<text
style=
"margin-left: 10px;"
>
女
{{
details
.
WoManNum
}}
人
</text>
</text>
<text
v-if=
"details.Distinguish == 1"
>
{{
details
.
ManNum
}}
人
</text>
</view>
</view>
<view
class=
"activitytime-item"
v-if=
"details.LocationName !=null && details.LocationName!=''"
@
click=
"goopenlocation(details)"
>
<view
class=
"activitytime-item"
v-if=
"details.LocationName !=null && details.LocationName!=''"
@
click=
"goopenlocation(details)"
>
<view
class=
"activitytime-item-l"
>
<view
class=
"activitytime-item-l"
>
...
@@ -472,15 +473,19 @@
...
@@ -472,15 +473,19 @@
<view
class=
"btn-l"
@
click=
"showreply=true"
>
<view
class=
"btn-l"
@
click=
"showreply=true"
>
说点什么呗
说点什么呗
</view>
</view>
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==1 && gettime() == true "
:style=
"
{background:mainColor}" @click="gosigUp()">
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==1 && gettime() == true
&& details.IsEnroll==false
"
:style=
"
{background:mainColor}" @click="gosigUp()">
立即报名
立即报名
</view>
</view>
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==1 && gettime() == false "
>
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==1 && gettime() == false && details.IsEnroll==false"
>
活动结束
报名结束
</view>
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==1 && details.IsEnroll==true"
>
已报名
</view>
</view>
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==2"
>
<view
class=
"btn-r"
v-if=
"details.IsOpenEnroll==2"
>
暂无活动
暂无活动
</view>
</view>
</view>
</view>
<view
class=
"btn2"
v-if=
"showreply==true"
:style=
"
{'margin-bottom':oneheight+'px'}">
<view
class=
"btn2"
v-if=
"showreply==true"
:style=
"
{'margin-bottom':oneheight+'px'}">
<view
class=
"btn2-l"
>
<view
class=
"btn2-l"
>
...
...
pages/blindDate/postPublishing.vue
View file @
04d7f8ce
...
@@ -192,14 +192,32 @@
...
@@ -192,14 +192,32 @@
<u-icon
name=
"arrow"
color=
"#A5A4AC"
size=
"30"
></u-icon>
<u-icon
name=
"arrow"
color=
"#A5A4AC"
size=
"30"
></u-icon>
</view>
</view>
</view>
</view>
<view
class=
"box-item"
style=
"justify-content: space-between;"
>
<text
style=
"font-size:12px;color: #666666;"
>
是否区分性别
</text>
<view
class=
"flex-row"
>
<u-radio-group
v-model=
"addMsg.Distinguish"
>
<u-radio
shape=
"circle"
v-for=
"(item, index) in qufenlist"
:key=
"index"
:name=
"item.id"
:active-color=
"mainColor"
icon-size=
'34'
label-size=
'24'
>
{{
item
.
name
}}
</u-radio>
</u-radio-group>
</view>
</view>
<view
class=
"box-item"
style=
"justify-content: space-between;"
v-if=
"addMsg.IsOpenEnroll==1"
>
<view
class=
"box-item"
style=
"justify-content: space-between;"
v-if=
"addMsg.IsOpenEnroll==1"
>
<text
style=
"font-size:12px;color: #666666;"
>
男数量
</text>
<text
style=
"font-size:12px;color: #666666;"
>
{{
addMsg
.
Distinguish
==
0
?
'男数量'
:
'总人数'
}}
</text>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<input
type=
"number"
v-model=
"addMsg.ManNum"
:min=
'0'
placeholder=
"男性数量"
style=
"font-size: 12px;text-align: right;margin-right: 5px;"
>
<input
type=
"number"
v-model=
"addMsg.ManNum"
:min=
'0'
placeholder=
"男性数量"
style=
"font-size: 12px;text-align: right;margin-right: 5px;"
>
人
人
</view>
</view>
</view>
</view>
<view
class=
"box-item"
style=
"justify-content: space-between;"
v-if=
"addMsg.IsOpenEnroll==1"
>
<view
class=
"box-item"
style=
"justify-content: space-between;"
v-if=
"addMsg.IsOpenEnroll==1
&& addMsg.Distinguish==0
"
>
<text
style=
"font-size:12px;color: #666666;"
>
女数量
</text>
<text
style=
"font-size:12px;color: #666666;"
>
女数量
</text>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<input
type=
"number"
v-model=
"addMsg.WoManNum"
:min=
'0'
placeholder=
"女性数量"
style=
"font-size: 12px;text-align: right;margin-right: 5px;"
>
<input
type=
"number"
v-model=
"addMsg.WoManNum"
:min=
'0'
placeholder=
"女性数量"
style=
"font-size: 12px;text-align: right;margin-right: 5px;"
>
...
@@ -293,6 +311,7 @@ export default {
...
@@ -293,6 +311,7 @@ export default {
Deadline
:
''
,
Deadline
:
''
,
LabelList
:[],
LabelList
:[],
IsOpenEnroll
:
1
,
//1 是开启 2 是不开启
IsOpenEnroll
:
1
,
//1 是开启 2 是不开启
Distinguish
:
0
,
//0是区分,1不区分
StartTime
:
''
,
StartTime
:
''
,
EndTime
:
''
,
EndTime
:
''
,
ManNum
:
0
,
ManNum
:
0
,
...
@@ -310,6 +329,7 @@ export default {
...
@@ -310,6 +329,7 @@ export default {
second
:
false
second
:
false
},
},
kqlist
:[{
id
:
1
,
name
:
'开启'
},{
id
:
2
,
name
:
'不开启'
}],
kqlist
:[{
id
:
1
,
name
:
'开启'
},{
id
:
2
,
name
:
'不开启'
}],
qufenlist
:[{
id
:
0
,
name
:
'区分'
},{
id
:
1
,
name
:
'不区分'
}],
ForumName
:
''
,
ForumName
:
''
,
action
:
this
.
host2
+
"/api/File/UploadTencent"
,
action
:
this
.
host2
+
"/api/File/UploadTencent"
,
timetype
:
0
,
timetype
:
0
,
...
@@ -485,6 +505,31 @@ export default {
...
@@ -485,6 +505,31 @@ export default {
})
})
return
return
}
}
if
(
this
.
addMsg
.
Distinguish
==
0
){
if
(
this
.
addMsg
.
ManNum
==
''
&&
this
.
addMsg
.
ManNum
==
0
){
uni
.
showToast
({
title
:
'男性数量大于0'
,
icon
:
'none'
,
})
return
}
if
(
this
.
addMsg
.
WoManNum
==
''
&&
this
.
addMsg
.
WoManNum
==
0
){
uni
.
showToast
({
title
:
'女性数量大于0'
,
icon
:
'none'
,
})
return
}
}
else
{
if
(
this
.
addMsg
.
ManNum
==
''
&&
this
.
addMsg
.
ManNum
==
0
){
uni
.
showToast
({
title
:
'总人数数量大于0'
,
icon
:
'none'
,
})
return
}
}
if
(
this
.
addMsg
.
Content
==
''
){
if
(
this
.
addMsg
.
Content
==
''
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'内容不能为空'
,
title
:
'内容不能为空'
,
...
...
pages/blindDate/postbar.vue
View file @
04d7f8ce
...
@@ -119,6 +119,7 @@
...
@@ -119,6 +119,7 @@
},
},
forumList
:
[],
forumList
:
[],
isAttestation
:
0
,
isAttestation
:
0
,
isFaTie
:
0
};
};
},
},
created
()
{
created
()
{
...
@@ -139,7 +140,9 @@
...
@@ -139,7 +140,9 @@
title
:
this
.
pageTitle
,
title
:
this
.
pageTitle
,
});
});
let
basedata
=
wx
.
getStorageSync
(
"basedata"
)
let
basedata
=
wx
.
getStorageSync
(
"basedata"
)
this
.
isAttestation
=
basedata
.
user_info
.
isAttestation
?
basedata
.
user_info
.
isAttestation
:
0
this
.
isAttestation
=
basedata
.
user_info
.
isAttestation
?
basedata
.
user_info
.
isAttestation
:
0
;
this
.
isFaTie
=
basedata
.
user_info
.
isFaTie
?
basedata
.
user_info
.
isFaTie
:
0
;
},
},
onLoad
:
function
(
option
)
{
onLoad
:
function
(
option
)
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
...
@@ -235,9 +238,18 @@
...
@@ -235,9 +238,18 @@
this
.
showAuth
=
true
;
this
.
showAuth
=
true
;
}
else
{
}
else
{
if
(
this
.
isAttestation
==
1
){
//判断是否认证了
if
(
this
.
isAttestation
==
1
){
//判断是否认证了
uni
.
navigateTo
({
if
(
this
.
isFaTie
==
1
){
url
:
'/pages/blindDate/postPublishing?ForumId='
+
this
.
msg
.
ForumId
uni
.
navigateTo
({
})
url
:
'/pages/blindDate/postPublishing?ForumId='
+
this
.
msg
.
ForumId
})
}
else
{
uni
.
showToast
({
title
:
'暂无发帖权限,联系管理员开通权利'
,
duration
:
2000
,
icon
:
"none"
});
}
}
else
{
}
else
{
this
.
show
=
true
this
.
show
=
true
}
}
...
@@ -261,7 +273,8 @@
...
@@ -261,7 +273,8 @@
(
res
)
=>
{
(
res
)
=>
{
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
let
basedata
=
wx
.
getStorageSync
(
"basedata"
)
let
basedata
=
wx
.
getStorageSync
(
"basedata"
)
this
.
isAttestation
=
basedata
.
user_info
.
isAttestation
?
basedata
.
user_info
.
isAttestation
:
0
this
.
isAttestation
=
basedata
.
user_info
.
isAttestation
?
basedata
.
user_info
.
isAttestation
:
0
;
this
.
isFaTie
=
basedata
.
user_info
.
isFaTie
?
basedata
.
user_info
.
isFaTie
:
0
;
},
},
(
error
)
=>
{}
(
error
)
=>
{}
);
);
...
@@ -271,6 +284,7 @@
...
@@ -271,6 +284,7 @@
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
// this.showAuth=false;
// this.showAuth=false;
this
.
GetForumList
();
this
.
GetForumList
();
this
.
getisAttestation
()
//登陆成功了 获取发帖权限
},
},
//关闭登录窗口
//关闭登录窗口
gbAuth
()
{
gbAuth
()
{
...
...
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