Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
28b4b6b1
Commit
28b4b6b1
authored
Mar 13, 2020
by
shijiuyan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
154435ff
d1535e5e
Show whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
763 additions
and
363 deletions
+763
-363
compass_db_schema.txt
doc/DB/compass_db_schema.txt
+3
-2
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
小程序文件命名以及接口调用说明.xlsx
doc/小程序文件命名以及接口调用说明.xlsx
+0
-0
接口文档 V1.0.xls
doc/接口文档 V1.0.xls
+0
-0
FamilyEventDat.inc
src/cn/compass/entity/FamilyEventDat.inc
+1
-0
FamilyEventMemberDat.inc
src/cn/compass/entity/FamilyEventMemberDat.inc
+1
-1
SocialEventMemberDat.inc
src/cn/compass/entity/SocialEventMemberDat.inc
+1
-1
UserMessageDat.inc
src/cn/compass/entity/UserMessageDat.inc
+3
-0
WxPay.Config.php
src/cn/extralib/wxpay/WxPay.Config.php
+4
-4
settings.inc
src/settings/settings.inc
+5
-0
ajax_accept_user_join_circle.php
src/user/if/ajax_accept_user_join_circle.php
+8
-0
ajax_attend_volunteer_event_circle.php
src/user/if/ajax_attend_volunteer_event_circle.php
+1
-1
ajax_buy_user_member.php
src/user/if/ajax_buy_user_member.php
+3
-1
ajax_get_family_event_detail.php
src/user/if/ajax_get_family_event_detail.php
+5
-4
ajax_get_family_event_list.php
src/user/if/ajax_get_family_event_list.php
+1
-1
ajax_get_social_event_detail.php
src/user/if/ajax_get_social_event_detail.php
+5
-4
ajax_get_user_message_detail.php
src/user/if/ajax_get_user_message_detail.php
+13
-3
ajax_refuse_user_join_circle.php
src/user/if/ajax_refuse_user_join_circle.php
+2
-1
ajax_set_family_event_result.php
src/user/if/ajax_set_family_event_result.php
+38
-13
ajax_set_social_event_result.php
src/user/if/ajax_set_social_event_result.php
+35
-11
ajax_user_join_circle.php
src/user/if/ajax_user_join_circle.php
+1
-1
test.php
src/user/if/test.php
+24
-1
app.wxss
src/wx/app.wxss
+1
-3
1.jpg
src/wx/img/1.jpg
+0
-0
circle.json
src/wx/pages/circle/circle.json
+3
-1
circleDetails.js
src/wx/pages/circleDetails/circleDetails.js
+1
-1
courseIndex.json
src/wx/pages/courseIndex/courseIndex.json
+3
-1
familyEvent.js
src/wx/pages/familyEvent/familyEvent.js
+39
-45
familyEvent.json
src/wx/pages/familyEvent/familyEvent.json
+3
-1
familyEvent.wxml
src/wx/pages/familyEvent/familyEvent.wxml
+5
-8
familyEventDetail.js
src/wx/pages/familyEventDetail/familyEventDetail.js
+25
-20
familyEventDetail.json
src/wx/pages/familyEventDetail/familyEventDetail.json
+3
-1
familyEventDetail.wxml
src/wx/pages/familyEventDetail/familyEventDetail.wxml
+12
-39
familyEventDetail.wxss
src/wx/pages/familyEventDetail/familyEventDetail.wxss
+61
-28
history.json
src/wx/pages/history/history.json
+3
-1
joinFamilyEvent.js
src/wx/pages/joinFamilyEvent/joinFamilyEvent.js
+153
-14
joinFamilyEvent.json
src/wx/pages/joinFamilyEvent/joinFamilyEvent.json
+3
-1
joinFamilyEvent.wxml
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxml
+33
-11
joinFamilyEvent.wxss
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxss
+16
-2
joinSocialEvent.js
src/wx/pages/joinSocialEvent/joinSocialEvent.js
+136
-25
joinSocialEvent.json
src/wx/pages/joinSocialEvent/joinSocialEvent.json
+3
-1
joinSocialEvent.wxml
src/wx/pages/joinSocialEvent/joinSocialEvent.wxml
+32
-10
joinSocialEvent.wxss
src/wx/pages/joinSocialEvent/joinSocialEvent.wxss
+16
-2
socialEvent.js
src/wx/pages/socialEvent/socialEvent.js
+4
-6
socialEventDetail.js
src/wx/pages/socialEventDetail/socialEventDetail.js
+25
-23
socialEventDetail.wxml
src/wx/pages/socialEventDetail/socialEventDetail.wxml
+8
-58
socialEventDetail.wxss
src/wx/pages/socialEventDetail/socialEventDetail.wxss
+19
-10
socialUserRegister.js
src/wx/pages/socialUserRegister/socialUserRegister.js
+2
-2
No files found.
doc/DB/compass_db_schema.txt
View file @
28b4b6b1
...
...
@@ -260,6 +260,7 @@ CREATE TABLE IF NOT EXISTS user_message_dat(
attach_dat_id int8 NOT NULL DEFAULT '0',
attach_dat_path text,
is_read tinyint(1) NOT NULL DEFAULT '0',
is_operated tinyint(1) NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
...
...
@@ -300,7 +301,7 @@ CREATE TABLE IF NOT EXISTS social_event_member_dat(
user_id int8 NOT NULL,
comment text NOT NULL,
front_image text,
images text
NOT NULL
,
images text,
status varchar(64) NOT NULL DEFAULT '0',
point int8 NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
...
...
@@ -342,7 +343,7 @@ CREATE TABLE IF NOT EXISTS family_event_member_dat(
family_event_id int8 NOT NULL,
user_id int8 NOT NULL,
comment text NOT NULL,
images text
NOT NULL
,
images text,
status varchar(64) NOT NULL DEFAULT '0',
point int8 NOT NULL DEFAULT '0',
delete_flg tinyint(1) NOT NULL DEFAULT '0'
...
...
doc/DB/compass_db_schema.xlsx
View file @
28b4b6b1
No preview for this file type
doc/小程序文件命名以及接口调用说明.xlsx
View file @
28b4b6b1
No preview for this file type
doc/接口文档 V1.0.xls
View file @
28b4b6b1
No preview for this file type
src/cn/compass/entity/FamilyEventDat.inc
View file @
28b4b6b1
...
...
@@ -39,6 +39,7 @@ class FamilyEventDat extends CompassDynamicData
$this
->
original_source
=
$record
[
"original_source"
];
$this
->
title
=
$record
[
"title"
];
$this
->
author
=
$record
[
"author"
];
$this
->
publish_time
=
$record
[
"publish_time"
];
$this
->
front_image
=
$record
[
"front_image"
];
$this
->
images
=
$record
[
"images"
];
$this
->
images
=
$record
[
"images"
];
...
...
src/cn/compass/entity/FamilyEventMemberDat.inc
View file @
28b4b6b1
...
...
@@ -99,7 +99,7 @@ class FamilyEventMemberDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"family_event_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"user_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"comment"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"images"
);
ParamUtil
::
copyObj2Array
NullField
(
$v_param
,
$this
,
"images"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"status"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"point"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
...
...
src/cn/compass/entity/SocialEventMemberDat.inc
View file @
28b4b6b1
...
...
@@ -99,7 +99,7 @@ class SocialEventMemberDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"social_event_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"user_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"comment"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"images"
);
ParamUtil
::
copyObj2Array
NullField
(
$v_param
,
$this
,
"images"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"status"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"point"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
...
...
src/cn/compass/entity/UserMessageDat.inc
View file @
28b4b6b1
...
...
@@ -15,6 +15,7 @@ class UserMessageDat extends CompassDynamicData
var
$attach_dat_id
;
var
$attach_dat_path
;
var
$is_read
;
var
$is_operated
;
var
$delete_flg
;
/**
...
...
@@ -34,6 +35,7 @@ class UserMessageDat extends CompassDynamicData
$this
->
attach_dat_id
=
$record
[
"attach_dat_id"
];
$this
->
attach_dat_path
=
$record
[
"attach_dat_path"
];
$this
->
is_read
=
$record
[
"is_read"
];
$this
->
is_operated
=
$record
[
"is_operated"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
}
...
...
@@ -105,6 +107,7 @@ class UserMessageDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"attach_dat_id"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"attach_dat_path"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"is_read"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"is_operated"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
// 保存
...
...
src/cn/extralib/wxpay/WxPay.Config.php
View file @
28b4b6b1
...
...
@@ -22,10 +22,10 @@ class WxPayConfig
* 获取地址:https://mp.weixin.qq.com/advanced/advanced?action=dev&t=advanced/dev&token=2005451881&lang=zh_CN
* @var string
*/
const
APPID
=
WECHAT_APP_ID
_58
;
const
MCHID
=
WECHAT_PAY_MCHID
_58
;
const
KEY
=
WECHAT_PAY_KEY
_58
;
const
APPSECRET
=
WECHAT_APP_SECRET
_58
;
const
APPID
=
WECHAT_APP_ID
;
const
MCHID
=
WECHAT_PAY_MCHID
;
const
KEY
=
WECHAT_PAY_KEY
;
const
APPSECRET
=
WECHAT_APP_SECRET
;
//=======【证书路径设置】=====================================
/**
...
...
src/settings/settings.inc
View file @
28b4b6b1
...
...
@@ -50,6 +50,11 @@ define("WECHAT_PAY_KEY","a1b2c3defghijKlmnopqrstuvwx4y5z6");
define
(
"LBS_KEY"
,
"TMJBZ-MTX3G-MPFQT-INGZP-VQVTK-WLFM3"
);
define
(
"LBS_SECRET"
,
"BYLkXP9bZaQhI1ELr6HWkHRuKm1YPU"
);
//完成活动奖励能力分
define
(
"ABILITY_POINT"
,
20
);
//完成活动奖励服务分
define
(
"SERVICE_POINT"
,
20
);
// 固定テンプレート用ディレクトリ
define
(
"SCHOOL_TEMPLATE_DIR"
,
COMPASS_ROOT
.
"/school/templates"
);
// 固定テンプレート用ディレクトリ
...
...
src/user/if/ajax_accept_user_join_circle.php
View file @
28b4b6b1
...
...
@@ -37,6 +37,13 @@ if(empty($circleDat)) {
responseNG
(
$result
);
}
//消息改为已经处理过
$userMessageDat
=
UserMessageDat
::
getById
(
$msgId
);
if
(
empty
(
$userMessageDat
))
{
$userMessageDat
->
is_operated
=
true
;
$userMessageDat
->
save
();
}
//用户是否已经加入圈子
$param
=
array
();
$param
[
'circle_id'
]
=
$circleDat
->
id
;
...
...
@@ -62,6 +69,7 @@ $circleDat->save();
$userMsgDat
=
UserMessageDat
::
getById
(
$msgId
);
if
(
!
empty
(
$userMsgDat
))
{
$userMsgDat
->
is_read
=
true
;
$userMsgDat
->
is_operated
=
true
;
$userMsgDat
->
save
();
}
...
...
src/user/if/ajax_attend_volunteer_event_circle.php
View file @
28b4b6b1
...
...
@@ -91,7 +91,7 @@ if(!empty($tmpCircleMemberList)) {
//添加附件附件
$userMessageDat
->
attach_dat_type
=
"VOLUNTEER"
;
$userMessageDat
->
attach_dat_id
=
$circleDat
->
id
;
$userMessageDat
->
attach_dat_path
=
"pages/volunteersEventDetail/volunteersEventDetail?eventId=
{
$volunteerDat
->
id
}
&circleId=
{
$circleDat
->
id
}
"
;
$userMessageDat
->
attach_dat_path
=
"
/
pages/volunteersEventDetail/volunteersEventDetail?eventId=
{
$volunteerDat
->
id
}
&circleId=
{
$circleDat
->
id
}
"
;
}
}
...
...
src/user/if/ajax_buy_user_member.php
View file @
28b4b6b1
...
...
@@ -23,6 +23,8 @@ if(empty($tmpUserMstList)) {
responseNG
(
"参数错误!"
);
}
$userMst
=
$tmpUserMstList
[
0
];
//调用支付
//生成临时订单
$orderNo
=
"B"
.
date
(
"YmdHis"
)
.
"_"
.
$userMst
->
id
;
...
...
@@ -33,7 +35,7 @@ $input = new WxPayUnifiedOrder();
$input
->
SetBody
(
"志愿者会员购买"
);
$input
->
SetAttach
(
"志愿者会员购买"
);
$input
->
SetOut_trade_no
(
$orderNo
);
$input
->
SetTotal_fee
(
$
200
*
100
);
//折算到分
$input
->
SetTotal_fee
(
200
*
100
);
//折算到分
$input
->
SetTime_start
(
date
(
"YmdHis"
));
$input
->
SetTime_expire
(
date
(
"YmdHis"
,
time
()
+
800
));
$input
->
SetGoods_tag
(
"志愿者会员购买"
);
...
...
src/user/if/ajax_get_family_event_detail.php
View file @
28b4b6b1
...
...
@@ -33,17 +33,18 @@ if(empty($familyEventDat)) {
$result
[
"message"
]
=
"参数错误!"
;
responseNG
(
$result
);
}
$familyEventDat
->
publish_time
=
substr
(
$familyEventDat
->
publish_time
,
0
,
10
);
//todo 改为从家园系统数据库获取数据,格式一致!!
//todo 获取已完成和未完成人员名单
$finishUserList
=
array
();
$finishUserList
[]
=
"家校用户1"
;
$finishUserList
[]
=
"家校用户2"
;
$finishUserList
[]
=
array
(
"name"
=>
"家园用户1"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
$finishUserList
[]
=
array
(
"name"
=>
"家园用户2"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
$unfinishUserList
=
array
();
$unfinishUserList
[]
=
"家校用户3"
;
$unfinishUserList
[]
=
"家校用户4"
;
$unfinishUserList
[]
=
array
(
"name"
=>
"家园用户3"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
$unfinishUserList
[]
=
array
(
"name"
=>
"家园用户4"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
//组装返回数据
...
...
src/user/if/ajax_get_family_event_list.php
View file @
28b4b6b1
...
...
@@ -58,7 +58,7 @@ if(!empty($tmpList)) {
//组装返回数据
$result
[
"rowCount"
]
=
$rowCount
;
$result
[
"page"
]
=
$page
;
$result
[
"
familyEventCount"
]
=
$familyEvent
Count
;
$result
[
"
pageCount"
]
=
$page
Count
;
$result
[
"familyEventList"
]
=
$familyEventList
;
ErrorLogger
::
doOutput
(
"Compass...ajax_get_family_event_list.php....End."
,
0
);
...
...
src/user/if/ajax_get_social_event_detail.php
View file @
28b4b6b1
...
...
@@ -33,17 +33,18 @@ if(empty($sociaEventDat)) {
$result
[
"message"
]
=
"参数错误!"
;
responseNG
(
$result
);
}
$sociaEventDat
->
publish_time
=
substr
(
$sociaEventDat
->
publish_time
,
0
,
10
);
//todo 改为从家校系统数据库获取数据,格式一致!!
//todo 获取已完成和未完成人员名单
$finishUserList
=
array
();
$finishUserList
[]
=
"家校用户1"
;
$finishUserList
[]
=
"家校用户2"
;
$finishUserList
[]
=
array
(
"name"
=>
"家校用户1"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
$finishUserList
[]
=
array
(
"name"
=>
"家校用户2"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
$unfinishUserList
=
array
();
$unfinishUserList
[]
=
"家校用户3"
;
$unfinishUserList
[]
=
"家校用户4"
;
$unfinishUserList
[]
=
array
(
"name"
=>
"家校用户3"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
$unfinishUserList
[]
=
array
(
"name"
=>
"家校用户4"
,
"head_img"
=>
"http://zgzyz.cyol.com/tplimg/25049.files/zt_ewm2.gif"
)
;
//组装返回数据
...
...
src/user/if/ajax_get_user_message_detail.php
View file @
28b4b6b1
...
...
@@ -24,17 +24,17 @@ if(empty($userList)) {
$result
[
"message"
]
=
"用户不存在!"
;
responseNG
(
$result
);
}
$user
Id
=
$userList
[
0
]
->
id
;
$user
Mst
=
$userList
[
0
]
;
//查询消息数据
$param
=
array
();
$param
[
'user_id'
]
=
$user
I
d
;
$param
[
'user_id'
]
=
$user
Mst
->
i
d
;
$param
[
'id'
]
=
$messageId
;
$param
[
'delete_flg'
]
=
false
;
$userMessageList
=
UserMessageDat
::
getList
(
$param
,
'id'
,
'desc'
,
0
,
1
);
//更新
if
(
!
empty
(
$userMessageList
)
&&
!
$userMessageList
[
0
]
->
is_read
)
{
if
(
!
empty
(
$userMessageList
)
&&
$userMessageList
[
0
]
->
is_read
==
false
)
{
$userMessageList
[
0
]
->
is_read
=
true
;
$userMessageList
[
0
]
->
save
();
}
...
...
@@ -45,6 +45,16 @@ $userMessageDat = $userMessageList[0];
if
(
$userMessageDat
->
attach_dat_type
==
"VOLUNTEER"
)
{
$attachDat
=
VolunteerEventDat
::
getById
(
$userMessageDat
->
attach_dat_id
);
//数据加工
$status_title
=
"征集中"
;
if
(
$attachDat
->
status
==
"FINISH"
)
{
$status_title
=
"活动结束"
;
}
$attachDat
->
status_title
=
$status_title
;
$attachDat
->
scope
=
"校内"
;
if
(
$attachDat
->
include_social_user
)
{
$attachDat
->
scope
=
"校内.社会人士"
;
}
}
if
(
$userMessageDat
->
attach_dat_type
==
"CIRCLE"
)
{
$attachDat
=
CircleDat
::
getById
(
$userMessageDat
->
attach_dat_id
);
...
...
src/user/if/ajax_refuse_user_join_circle.php
View file @
28b4b6b1
...
...
@@ -51,7 +51,8 @@ if($tmpCount >= 1) {
//拒绝加入圈子处理,删除本条消息
$userMsgDat
=
UserMessageDat
::
getById
(
$msgId
);
if
(
!
empty
(
$userMsgDat
))
{
$userMsgDat
->
delete_flg
=
true
;
$userMsgDat
->
is_read
=
true
;
$userMsgDat
->
is_operated
=
true
;
$userMsgDat
->
save
();
}
...
...
src/user/if/ajax_set_family_event_result.php
View file @
28b4b6b1
...
...
@@ -13,7 +13,7 @@ $comment = ParamUtil::getRequestString("comment");//说明
$result
=
array
();
//参数检查
if
(
empty
(
$unionId
||
empty
(
$eventId
)
||
empty
(
$comment
)
))
{
if
(
empty
(
$unionId
||
empty
(
$eventId
)))
{
$result
[
"message"
]
=
"参数错误!"
;
responseNG
(
$result
);
}
...
...
@@ -28,9 +28,9 @@ if(empty($userList)) {
responseNG
(
$result
);
}
//查询
社会实践
活动
//查询
亲子活动
活动
//todo 以后改为家校系统查询
$familyEventDat
=
Volunteer
EventDat
::
getById
(
$eventId
);
$familyEventDat
=
Family
EventDat
::
getById
(
$eventId
);
if
(
empty
(
$familyEventDat
))
{
$result
[
"message"
]
=
"参数错误!"
;
responseNG
(
$result
);
...
...
@@ -39,23 +39,48 @@ if(empty($familyEventDat)) {
$userMst
=
$userList
[
0
];
//添加用户完成情况
$familyEventMemberDat
=
new
FamilyEventMemberDat
[
0
];
$familyEventMemberDat
->
family_event_id
=
$familyEventDat
->
id
;
$familyEventMemberDat
->
user_id
=
$userMst
->
id
;
$familyEventMemberDat
->
comment
=
$comment
;
$familyEventMemberDat
->
save
();
//处理上传图片
$aliHandler
=
new
AliUploadHandler
();
if
(
!
empty
(
$_FILES
[
'photo'
][
'tmp_name'
])){
if
(
!
empty
(
$comment
))
{
//没有图片,只有感想的情况
$familyEventMemberDat
=
new
FamilyEventMemberDat
();
$familyEventMemberDat
->
family_event_id
=
$familyEventDat
->
id
;
$familyEventMemberDat
->
user_id
=
$userMst
->
id
;
$familyEventMemberDat
->
comment
=
$comment
;
$familyEventMemberDat
->
point
=
ABILITY_POINT
;
$familyEventMemberDat
->
save
();
//给用户添加能力分(todo)
$userMst
->
ability_point
+=
ABILITY_POINT
;
$userMst
->
save
();
}
else
{
//批量接受上传图
$param
=
array
();
$param
[
'social_event_id'
]
=
$familyEventDat
->
id
;
$param
[
'user_id'
]
=
$userMst
->
id
;
$param
[
'delete_flg'
]
=
false
;
$tmpList
=
FamilyEventMemberDat
::
getList
(
$param
,
'id'
,
'desc'
,
0
,
1
);
if
(
!
empty
(
$tmpList
))
{
$familyEventMemberDat
=
$tmpList
[
0
];
//接受图片并更新
//处理上传图片
$aliHandler
=
new
AliUploadHandler
();
if
(
!
empty
(
$_FILES
[
'photo'
][
'tmp_name'
])){
$upload_file
=
FileUploadUtil
::
getScalarFile
(
@
$_FILES
[
'photo'
]);
$tmp_file_name
=
date
(
"Ymd"
)
.
"_"
.
trim
(
basename
(
$upload_file
->
name
));
//保存的名字自定义,这里如果图片的名字原来的是aa.jp,保存成20200220_aa.jpg
$url
=
$aliHandler
->
uploadImg
(
$tmp_file_name
,
$upload_file
->
tmp_name
);
//这里的url就是http://compass-dev.oss-cn-beijing.aliyuncs.com/20200220_aa.jpg
ErrorLogger
::
doOutput
(
"Compass...ajax_set_social_event_result.php....images="
.
$familyEventMemberDat
->
images
,
0
);
if
(
empty
(
$familyEventMemberDat
->
images
))
{
$familyEventMemberDat
->
images
=
$url
;
}
else
{
$familyEventMemberDat
->
images
=
$familyEventMemberDat
->
images
.
"|"
.
$url
;
}
$familyEventMemberDat
->
save
();
}
}
}
$familyEventMemberDat
->
save
();
//todo 改为通知家校系统用户
...
...
src/user/if/ajax_set_social_event_result.php
View file @
28b4b6b1
...
...
@@ -13,7 +13,7 @@ $comment = ParamUtil::getRequestString("comment");//说明
$result
=
array
();
//参数检查
if
(
empty
(
$unionId
||
empty
(
$eventId
)
||
empty
(
$comment
)
))
{
if
(
empty
(
$unionId
||
empty
(
$eventId
)))
{
$result
[
"message"
]
=
"参数错误!"
;
responseNG
(
$result
);
}
...
...
@@ -39,23 +39,47 @@ if(empty($socialEventDat)) {
$userMst
=
$userList
[
0
];
//添加用户完成情况
$socialEventMemberDat
=
new
SocialEventMemberDat
[
0
];
$socialEventMemberDat
->
social_event_id
=
$socialEventDat
->
id
;
$socialEventMemberDat
->
user_id
=
$userMst
->
id
;
$socialEventMemberDat
->
comment
=
$comment
;
$socialEventMemberDat
->
save
();
//处理上传图片
$aliHandler
=
new
AliUploadHandler
();
if
(
!
empty
(
$_FILES
[
'photo'
][
'tmp_name'
])){
if
(
!
empty
(
$comment
))
{
//没有图片,只有感想的情况
$socialEventMemberDat
=
new
SocialEventMemberDat
();
$socialEventMemberDat
->
social_event_id
=
$socialEventDat
->
id
;
$socialEventMemberDat
->
user_id
=
$userMst
->
id
;
$socialEventMemberDat
->
comment
=
$comment
;
$socialEventMemberDat
->
point
=
ABILITY_POINT
;
$socialEventMemberDat
->
save
();
//给用户添加能力分(todo)
$userMst
->
ability_point
+=
ABILITY_POINT
;
$userMst
->
save
();
}
else
{
//批量接受上传图
$param
=
array
();
$param
[
'social_event_id'
]
=
$socialEventDat
->
id
;
$param
[
'user_id'
]
=
$userMst
->
id
;
$param
[
'delete_flg'
]
=
false
;
$tmpList
=
SocialEventMemberDat
::
getList
(
$param
,
'id'
,
'desc'
,
0
,
1
);
if
(
!
empty
(
$tmpList
))
{
$socialEventMemberDat
=
$tmpList
[
0
];
//接受图片并更新
//处理上传图片
$aliHandler
=
new
AliUploadHandler
();
if
(
!
empty
(
$_FILES
[
'photo'
][
'tmp_name'
])){
$upload_file
=
FileUploadUtil
::
getScalarFile
(
@
$_FILES
[
'photo'
]);
$tmp_file_name
=
date
(
"Ymd"
)
.
"_"
.
trim
(
basename
(
$upload_file
->
name
));
//保存的名字自定义,这里如果图片的名字原来的是aa.jp,保存成20200220_aa.jpg
$url
=
$aliHandler
->
uploadImg
(
$tmp_file_name
,
$upload_file
->
tmp_name
);
//这里的url就是http://compass-dev.oss-cn-beijing.aliyuncs.com/20200220_aa.jpg
ErrorLogger
::
doOutput
(
"Compass...ajax_set_social_event_result.php....images="
.
$socialEventMemberDat
->
images
,
0
);
if
(
empty
(
$socialEventMemberDat
->
images
))
{
$socialEventMemberDat
->
images
=
$url
;
}
else
{
$socialEventMemberDat
->
images
=
$socialEventMemberDat
->
images
.
"|"
.
$url
;
}
$socialEventMemberDat
->
save
();
}
}
}
$socialEventMemberDat
->
save
();
//todo 改为通知家校系统用户
...
...
src/user/if/ajax_user_join_circle.php
View file @
28b4b6b1
...
...
@@ -59,7 +59,7 @@ if($circleDat->need_check) {
//添加附件附件
$userMessageDat
->
attach_dat_type
=
"CIRCLE"
;
$userMessageDat
->
attach_dat_id
=
$circleDat
->
id
;
$userMessageDat
->
attach_dat_path
=
"pages/checkJoinCircle/checkJoinCircle?userId=
{
$userMst
->
id
}
&circleId=
{
$circleDat
->
id
}
"
;
//
$userMessageDat->attach_dat_path = "pages/checkJoinCircle/checkJoinCircle?userId={$userMst->id}&circleId={$circleDat->id}";
$result
[
"message"
]
=
"申请成功,请等待圈主审核!"
;
responseOK
(
$result
);
...
...
src/user/if/test.php
View file @
28b4b6b1
...
...
@@ -56,7 +56,7 @@ foreach($tmpList as $tmp) {
}
print_r($tmpList);
*/
$param = array();
$param['delete_flg'] = false;
...
...
@@ -70,6 +70,29 @@ foreach($tmpList as $tmp) {
}
print_r($tmpList);
$param = array();
$param['delete_flg'] = false;
$tmpList = UserMessageDat::getList($param, 'id', 'asc');
$index = 0;
foreach($tmpList as $tmp) {
if($tmp->attach_dat_type == "CIRCLE") {
$tmp->title = "您的圈子有一条加入申请";
$tmp->comment = "嘀嘀嘀![聪明的一休]申请加入您的圈子!";
$tmp->save();
}
}
*/
$param
=
array
();
$param
[
'delete_flg'
]
=
false
;
$tmpList
=
SocialEventDat
::
getList
(
$param
,
'id'
,
'asc'
);
$index
=
0
;
foreach
(
$tmpList
as
$tmp
)
{
$tmp
->
content
=
"<font style='color:red'>此处富文本</font><img src='https://www.baidu.com/img/baidu_jgylogo3.gif'/>"
;
$tmp
->
save
();
}
ErrorLogger
::
doOutput
(
"Compass...test.php....End."
,
0
);
...
...
src/wx/app.wxss
View file @
28b4b6b1
...
...
@@ -211,9 +211,7 @@ video, live-player, live-pusher, open-data, web-view {
line-height: 20px;
}
.right_listPractice>text{
display: block;
text-align: right;
margin-top: 20px;
color: #000;
}
.listPublicWelfare>view{
width: 94%;
...
...
src/wx/img/1.jpg
View replaced file @
154435ff
View file @
28b4b6b1
50 KB
|
W:
|
H:
93.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/wx/pages/circle/circle.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"圈子"
}
\ No newline at end of file
src/wx/pages/circleDetails/circleDetails.js
View file @
28b4b6b1
// pages/
testCircle/testCircle
.js
// pages/
circleDetail/circleDetail
.js
var
app
=
getApp
();
Page
({
...
...
src/wx/pages/courseIndex/courseIndex.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"公益课堂"
}
\ No newline at end of file
src/wx/pages/familyEvent/familyEvent.js
View file @
28b4b6b1
...
...
@@ -17,35 +17,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
var
that
=
this
;
that
.
setData
({
showLoading
:
true
,
});
var
config
=
wx
.
getStorageSync
(
'config'
);
var
location
=
wx
.
getStorageSync
(
'location'
);
wx
:
wx
.
request
({
url
:
app
.
url
+
'ajax_get_family_event_list.php'
,
data
:
{
unionId
:
config
.
unionId
,
age
:
4
,
province
:
location
.
province
,
city
:
location
.
city
,
district
:
location
.
district
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
statusCode
==
200
)
{
that
.
setData
({
familyEventList
:
res
.
data
.
result
.
familyEventList
})
}
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
this
.
familyEventList
()
},
/**
...
...
@@ -70,20 +42,6 @@ Page({
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
...
...
@@ -96,17 +54,53 @@ Page({
onShareAppMessage
:
function
()
{
},
familyEventDetail
()
{
// 社会实践列表
familyEventList
()
{
var
that
=
this
;
that
.
setData
({
showLoading
:
true
,
});
var
config
=
wx
.
getStorageSync
(
'config'
);
wx
.
request
({
url
:
app
.
url
+
'ajax_get_family_event_list.php'
,
data
:
{
unionId
:
config
.
unionId
,
page
:
that
.
data
.
page
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
statusCode
==
200
)
{
that
.
setData
({
pageCount
:
res
.
data
.
result
.
pageCount
,
familyEventList
:
res
.
data
.
result
.
familyEventList
})
}
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
},
//跳转到亲子活动详情页面
familyEventDetail
(
e
)
{
var
eventId
=
e
.
currentTarget
.
dataset
[
'index'
]
wx
.
navigateTo
({
url
:
'../familyEventDetail/familyEventDetail
'
,
url
:
'../familyEventDetail/familyEventDetail
?eventId='
+
eventId
,
})
},
//加载更多
loadMore
()
{
if
((
this
.
data
.
page
+
1
)
<
this
.
data
.
pageCount
)
{
var
pageIndex
=
this
.
data
.
page
+
1
this
.
setData
({
page
:
pageIndex
})
this
.
familyEventList
()
}
else
{
wx
.
showToast
({
title
:
'没有更多内容啦。'
,
...
...
src/wx/pages/familyEvent/familyEvent.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"亲子活动"
}
\ No newline at end of file
src/wx/pages/familyEvent/familyEvent.wxml
View file @
28b4b6b1
<!--pages/familyEvent/familyEvent.wxml-->
<view class='familyEvent'>
<view class='titleqinzi'>
<image src='../../img/sanjiao.png'></image>亲子活动
</view>
<view class='listPractice'>
<scroll-view scroll-y="true" style='height:1100rpx;bottom:10rpx;' class="listPublicWelfare" bindscrolltolower='loadMore'>
<view class='activelist' wx:for="{{familyEventList}}" wx:key="{{familyEventList[index].id}}" bindtap='familyEventDetail'>
<view class='activelist' wx:for="{{familyEventList}}" wx:key="{{familyEventList[index].id}}" bindtap='familyEventDetail'
data-index='{{item.id}}'
>
<view class='left_listPractice'>
<image src='{{item.
images
}}'></image>
<image src='{{item.
front_image
}}'></image>
</view>
<view class='right_listPractice'>
<text>{{item.class_title}}{{item.title}}\n</text>
<view>
<text>{{item.title
}}\n</text>
<text>{{item.content}}
</text>
<text>发布人:{{item.author
}}\n</text>
<text>发布时间:{{item.publish_time}}\n
</text>
</view>
<text>{{item.author}}</text>
</view>
<text class='activeLine'></text>
</view>
...
...
src/wx/pages/familyEventDetail/familyEventDetail.js
View file @
28b4b6b1
...
...
@@ -8,6 +8,10 @@ Page({
* 页面的初始数据
*/
data
:
{
eventId
:
''
,
eventDat
:
''
,
finishUserList
:
[],
unfinishUserList
:
[],
active
:
0
},
...
...
@@ -16,24 +20,29 @@ Page({
*/
onLoad
:
function
(
options
)
{
var
that
=
this
;
that
.
setData
({
eventId
:
options
.
eventId
})
var
config
=
wx
.
getStorageSync
(
'config'
);
var
location
=
wx
.
getStorageSync
(
'location'
);
wx
:
wx
.
request
({
//调用接口获取数据
wx
.
request
({
url
:
app
.
url
+
'ajax_get_family_event_detail.php'
,
data
:
{
unionId
:
config
.
unionId
,
eventId
:
1
eventId
:
that
.
data
.
eventId
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
// if (res.statusCode == 200) {
// that.setData({
// familyEventList: res.data.result.familyEventList
// })
// }
if
(
res
.
statusCode
==
200
)
{
that
.
setData
({
eventDat
:
res
.
data
.
result
.
familyEventDat
,
finishUserList
:
res
.
data
.
result
.
finishUserList
,
unfinishUserList
:
res
.
data
.
result
.
unfinishUserList
})
}
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
...
...
@@ -91,18 +100,13 @@ Page({
onChange
(
event
)
{
},
btnBaoming
()
{
Dialog
.
confirm
({
title
:
'标题'
,
message
:
'是否报名!'
}).
then
(()
=>
{
//参加
attend
()
{
var
that
=
this
;
wx
.
navigateTo
({
url
:
'../joinFamilyEvent/joinFamilyEvent'
,
url
:
'../joinFamilyEvent/joinFamilyEvent?eventId='
+
that
.
data
.
eventId
+
"&eventTitle="
+
that
.
data
.
eventDat
.
title
,
})
}).
catch
(()
=>
{
// on cancel
Notify
({
type
:
'danger'
,
message
:
'取消报名'
});
});
},
}
})
\ No newline at end of file
src/wx/pages/familyEventDetail/familyEventDetail.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"亲子活动详情"
}
\ No newline at end of file
src/wx/pages/familyEventDetail/familyEventDetail.wxml
View file @
28b4b6b1
<!--pages/familyEventDetail/familyEventDetail.wxml-->
<!--pages/activeDetails/activeDetails.wxml-->
<view class='activeDetails'>
<image src='../../img/1.jpg'></image>
<view class='con_activeDetails'>
<text>活动名称:马群街道卫生清理</text>
<text>活动地点:马群区2号地铁站南出口处</text>
<text>征集范围:不限</text>
<text>活动人数:30人</text>
<text>活动时长:2.5h</text>
<text>活动期限:2019.10.11-2019.10.30</text>
</view>
<view class='botCon_activeDetails'>
<view>
<text>联系人:邵帅</text>
<text>联系方式:19308903183</text>
<text>集合地点:马群街道</text>
<text>集合时间:2019.11.10 12:00</text>
<view class='top_familyEventDetail'>
<view>{{eventDat.title}}</view>
<text>作者:{{eventDat.author}} 发表时间:{{eventDat.publish_time}}</text>
</view>
</view>
<view class='activejieshao'>
活动介绍:*************
<view class='con_familyEventDetail'>
<rich-text nodes="{{eventDat.content}}"></rich-text>
</view>
<view class='avtiveTab'>
<van-tabs active="{{ active }}" bind:change="onChange" tab-active-class="activebeijing">
<van-tab title="
圈子报名
">
<van-tab title="
已完成
">
<view class='quanzi'>
<view wx:for='{{finishUserList}}' >
<view>
<view>
<image src='../../img/3.jpg'></image>梁天同学
</view>
<text>已报名</text>
</view>
<view>
<view>
<image src='../../img/3.jpg'></image>梁天同学
<image src='{{item.head_img}}'></image>{{item.name}}
</view>
<text>已报名</text>
</view>
</view>
</van-tab>
<van-tab title="
个人报名
">
<van-tab title="
未完成
">
<view class='quanzi'>
<view wx:for='{{unfinishUserList}}' >
<view>
<view>
<image src='../../img/3.jpg'></image>小天同学
</view>
<text>已报名</text>
</view>
<view>
<view>
<image src='../../img/3.jpg'></image>小天同学
<image src='{{item.head_img}}'></image>{{item.name}}
</view>
<text>已报名</text>
</view>
</view>
</van-tab>
</van-tabs>
<view class='
btnBaoming' bindtap='btnBaoming'>报名
参加</view>
<view class='
actionBtn' bindtap='attend'>
参加</view>
</view>
</view>
<van-dialog id="van-dialog" />
...
...
src/wx/pages/familyEventDetail/familyEventDetail.wxss
View file @
28b4b6b1
/* pages/familyEventDetail/familyEventDetail.wxss */
.activeDetails>image{
width: 100%;
height: 100px;
.top_familyEventDetail{
box-sizing: border-box;
padding: 15px 5px;
text-align: center;
}
.con_activeDetails{
width: 80%;
margin: 30px auto;
.top_familyEventDetail>view{
font-size: 14px;
color: #000;
text-indent: 2rem;
}
.con_activeDetails>text{
display: block;
width: 100%;
.top_familyEventDetail>text{
font-size: 12px;
margin-bottom: 15px;
color: #666;
}
.con_familyEventDetail{
box-sizing: border-box;
padding: 15px 5px;
}
.
botCon_activeDetails
{
.
top_title
{
width: 100%;
height: 76px;
border-bottom: 1px solid #ccc;
height: 40px;
display: flex;
align-items: center;
}
.top_title>view{
width: 100px;
height: 30px;
font-size: 14px;
line-height: 30px;
text-align: center;
color: #fff;
background: #698FBB;
}
.top_title>text{
display: block;
flex: 1;
height: 1px;
background: #698FBB;
}
.botCon_activeDetails>view{
width: 150px;
float: right;
.neirong_title{
font-size: 12px;
color: #666;
font-size: 10px;
}
.botCon_activeDetails>view>text{
.neirong_title>image{
width: 100%;
height: 260px;
}
.title_familyEventDetail>text{
display: block;
margin-bottom: 5px;
width: 100%;
height: 2px;
background: #698FBB;
margin: 10px auto;
}
.activejieshao{
width: 100%;
...
...
@@ -37,7 +63,11 @@
border-bottom: 1px solid #ccc;
}
.activebeijing{
background: #666;
background: #0D76ED;
color: #fff!important;
}
.avtiveTab .van-tabs__wrap{
border-bottom: 1px solid #0D76ED;
}
.avtiveTab .van-tabs__line{
display: none;
...
...
@@ -74,13 +104,15 @@
justify-content: center;
align-items: center;
}
.
btnBaoming
{
width:
100
%;
height:
3
0px;
line-height:
3
0px;
.
actionBtn
{
width:
75
%;
height:
4
0px;
line-height:
4
0px;
text-align: center;
font-size: 13px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
margin-bottom: 3px;
font-size: 14px;
margin: 10px auto;
background: #0D76ED;
margin-bottom: 10px;
color: #fff;
border-radius: 15px;
}
\ No newline at end of file
src/wx/pages/history/history.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"观看记录"
}
\ No newline at end of file
src/wx/pages/joinFamilyEvent/joinFamilyEvent.js
View file @
28b4b6b1
// pages/uploadDocuments/uploadDocuments.js
import
Notify
from
'../../dist/notify/notify'
;
var
app
=
getApp
()
Page
({
/**
* 页面的初始数据
*/
data
:
{
value
:
''
,
fileList
:
[],
eventId
:
''
,
eventTitle
:
''
,
comment
:
''
,
fileList1
:
[],
fileList2
:
[],
fileList3
:
[],
imgPaths
:
[],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
//获取参数
this
.
setData
({
eventId
:
options
.
eventId
,
eventTitle
:
options
.
eventTitle
})
},
/**
...
...
@@ -64,23 +76,78 @@ Page({
onShareAppMessage
:
function
()
{
},
onChange
(
event
)
{
// event.detail 为当前输入的值
console
.
log
(
event
.
detail
);
//第1张图片
delete1
(
event
)
{
const
{
index
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList1`
];
fileList
.
splice
(
index
,
1
);
this
.
setData
({
[
`fileList1`
]:
fileList
});
},
afterRead1
(
event
)
{
const
{
file
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList1`
];
const
images
=
this
.
data
.
imgPaths
;
this
.
setData
({
[
`fileList1`
]:
fileList
.
concat
(
file
),
imgPaths
:
images
.
concat
(
file
[
0
].
path
)
});
},
beforeRead1
(
event
)
{
const
{
file
,
callback
}
=
event
.
detail
;
if
(
file
[
0
].
path
.
indexOf
(
'jpg'
)
<
0
)
{
wx
.
showToast
({
title
:
'请选择jpg图片上传'
,
icon
:
'none'
});
callback
(
false
);
return
;
}
callback
(
true
);
},
//第2张图片
delete2
(
event
)
{
const
{
index
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList2`
];
fileList
.
splice
(
index
,
1
);
this
.
setData
({
[
`fileList2`
]:
fileList
});
},
afterRead2
(
event
)
{
const
{
file
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList2`
];
const
images
=
this
.
data
.
imgPaths
;
this
.
setData
({
[
`fileList2`
]:
fileList
.
concat
(
file
),
imgPaths
:
images
.
concat
(
file
[
0
].
path
)
});
},
beforeRead2
(
event
)
{
const
{
file
,
callback
}
=
event
.
detail
;
if
(
file
[
0
].
path
.
indexOf
(
'jpg'
)
<
0
)
{
wx
.
showToast
({
title
:
'请选择jpg图片上传'
,
icon
:
'none'
});
callback
(
false
);
return
;
}
callback
(
true
);
},
delete
(
event
)
{
//第3张图片
delete3
(
event
)
{
const
{
index
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList`
];
const
fileList
=
this
.
data
[
`fileList
3
`
];
fileList
.
splice
(
index
,
1
);
this
.
setData
({
[
`fileList`
]:
fileList
});
this
.
setData
({
[
`fileList
3
`
]:
fileList
});
},
afterRead
(
event
)
{
afterRead
3
(
event
)
{
const
{
file
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList`
];
const
fileList
=
this
.
data
[
`fileList3`
];
const
images
=
this
.
data
.
imgPaths
;
this
.
setData
({
[
`fileList`
]:
fileList
.
concat
(
file
)
});
this
.
setData
({
[
`fileList3`
]:
fileList
.
concat
(
file
),
imgPaths
:
images
.
concat
(
file
[
0
].
path
)
});
},
beforeRead
(
event
)
{
beforeRead
3
(
event
)
{
const
{
file
,
callback
}
=
event
.
detail
;
if
(
file
[
0
].
path
.
indexOf
(
'jpg'
)
<
0
)
{
wx
.
showToast
({
title
:
'请选择jpg图片上传'
,
icon
:
'none'
});
...
...
@@ -89,7 +156,78 @@ Page({
}
callback
(
true
);
},
shangchuan
(){
//上传素材
upload
()
{
var
that
=
this
;
//感想必须输入
if
(
that
.
data
.
comment
==
null
||
that
.
data
.
comment
.
trim
()
==
""
)
{
Notify
(
'请输入感想'
)
return
}
var
config
=
wx
.
getStorageSync
(
'config'
);
wx
.
request
({
url
:
app
.
url
+
'ajax_set_family_event_result.php'
,
data
:
{
unionId
:
config
.
unionId
,
eventId
:
that
.
data
.
eventId
,
comment
:
that
.
data
.
comment
,
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
//循环上传图片
var
completeCount
=
0
;
for
(
var
i
=
0
;
i
<
that
.
data
.
imgPaths
.
length
;
i
++
)
{
//停顿1秒
var
imgPath
=
that
.
data
.
imgPaths
[
i
];
setTimeout
(
function
()
{
wx
.
uploadFile
({
url
:
app
.
url
+
'ajax_set_family_event_result.php?unionId='
+
config
.
unionId
+
"&eventId="
+
that
.
data
.
eventId
,
filePath
:
imgPath
,
name
:
'photo'
,
header
:
{
'content-type'
:
'multipart/form-data'
},
success
:
function
(
res
)
{
},
fail
:
function
(
res
)
{
console
.
log
(
res
,
'上传失败'
)
},
complete
:
function
(
res
)
{
completeCount
++
;
},
})
},
1000
)
//延迟时间 这里是1秒
}
//循环执行等待全部结束
var
a
=
setInterval
(
function
()
{
//循环执行代码
if
(
that
.
data
.
imgPaths
.
length
==
completeCount
)
{
//跳转到首页
wx
.
showToast
({
title
:
'上传成功!'
,
icon
:
'success'
,
duration
:
2000
});
clearInterval
(
a
)
//跳转到社会实践页面
wx
.
redirectTo
({
url
:
'../familyEvent/familyEvent'
,
});
}
},
1000
)
//循环时间 这里是1秒
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
},
//获取输入的感想
inputComment
(
event
)
{
this
.
setData
({
comment
:
event
.
detail
.
value
})
}
})
\ No newline at end of file
src/wx/pages/joinFamilyEvent/joinFamilyEvent.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"亲子活动"
}
\ No newline at end of file
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxml
View file @
28b4b6b1
<!--pages/
uploadDocuments/uploadDocuments
.wxml-->
<!--pages/
joinSocialEvent/joinSocialEvent
.wxml-->
<view class='uploadDocuments'>
<view class='uploadDocuments_title'>活动名称:
马群xxxxxxxx
</view>
<view class='uploadDocuments_title'>活动名称:
{{eventTitle}}
</view>
<view class='uploadDocuments_ganwu'>
活动感悟:<textarea class='inpGanwu'></textarea>
活动感悟:<textarea class='inpGanwu'
bindinput="inputComment" value='{{comment}}'
></textarea>
</view>
<view style="width:100%;margin-top:10px;">活动图片(3张即可):</view>
<view class='uploadDocuments_img'>
活动图片:
<view>
<van-uploader file-list="{{ fileList }}"
max-count="
3
"
<van-uploader file-list="{{ fileList
1
}}"
max-count="
1
"
multiple
bind:after-read="afterRead"
bind:before-read="beforeRead"
bind:after-read="afterRead
1
"
bind:before-read="beforeRead
1
"
use-before-read="{{ true }}"
bind:delete="delete"/>
bind:delete="delete
1
"/>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<text style='font-size:14px;color:#666'>(3张即可)</text>
<view>
<van-uploader file-list="{{ fileList2 }}"
max-count="1"
multiple
bind:after-read="afterRead2"
bind:before-read="beforeRead2"
use-before-read="{{ true }}"
bind:delete="delete2"/>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<view>
<van-uploader file-list="{{ fileList3 }}"
max-count="1"
multiple
bind:after-read="afterRead3"
bind:before-read="beforeRead3"
use-before-read="{{ true }}"
bind:delete="delete3"/>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<text style='font-size:14px;color:#666'></text>
</view>
<view style='width:100%;display:flex;justify-content: center;'>
<v
an-button type="default" bind:click="shangchuan">确认上传</van-button
>
<v
iew class="actionBtn" bindtap="upload">确认上传</view
>
</view>
<van-notify id="van-notify" />
</view>
src/wx/pages/joinFamilyEvent/joinFamilyEvent.wxss
View file @
28b4b6b1
...
...
@@ -22,10 +22,23 @@
}
.uploadDocuments_img{
display: flex;
height:
32
0px;
margin-top:
2
0px;
height:
24
0px;
margin-top:
1
0px;
}
.uploadDocuments_img>view{
width: 100px;
height: 100px;
}
.actionBtn{
width: 75%;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 14px;
margin: 10px auto;
background: #0D76ED;
margin-bottom: 10px;
color: #fff;
border-radius: 15px;
}
\ No newline at end of file
src/wx/pages/joinSocialEvent/joinSocialEvent.js
View file @
28b4b6b1
// pages/uploadDocuments/uploadDocuments.js
var
app
=
getApp
();
// pages/joinSocialEvent/joinSocialEvent.js
import
Notify
from
'../../dist/notify/notify'
;
var
app
=
getApp
()
Page
({
/**
* 页面的初始数据
*/
data
:
{
value
:
''
,
fileList
:
[],
eventId
:
''
,
img
:
''
eventId
:
''
,
eventTitle
:
''
,
comment
:
''
,
fileList1
:
[],
fileList2
:
[],
fileList3
:
[],
imgPaths
:[],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
//获取参数
this
.
setData
({
eventId
:
options
.
eventId
eventId
:
options
.
eventId
,
eventTitle
:
options
.
eventTitle
})
},
...
...
@@ -69,26 +77,52 @@ Page({
onShareAppMessage
:
function
()
{
},
onChange
(
event
)
{
// event.detail 为当前输入的值
console
.
log
(
event
.
detail
);
//第1张图片
delete1
(
event
)
{
const
{
index
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList1`
];
fileList
.
splice
(
index
,
1
);
this
.
setData
({
[
`fileList1`
]:
fileList
});
},
afterRead1
(
event
)
{
const
{
file
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList1`
];
const
images
=
this
.
data
.
imgPaths
;
this
.
setData
({
[
`fileList1`
]:
fileList
.
concat
(
file
),
imgPaths
:
images
.
concat
(
file
[
0
].
path
)
});
},
beforeRead1
(
event
)
{
const
{
file
,
callback
}
=
event
.
detail
;
if
(
file
[
0
].
path
.
indexOf
(
'jpg'
)
<
0
)
{
wx
.
showToast
({
title
:
'请选择jpg图片上传'
,
icon
:
'none'
});
callback
(
false
);
return
;
}
callback
(
true
);
},
delete
(
event
)
{
//第2张图片
delete2
(
event
)
{
const
{
index
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList`
];
const
fileList
=
this
.
data
[
`fileList
2
`
];
fileList
.
splice
(
index
,
1
);
this
.
setData
({
[
`fileList`
]:
fileList
});
this
.
setData
({
[
`fileList
2
`
]:
fileList
});
},
afterRead
(
event
)
{
afterRead
2
(
event
)
{
const
{
file
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList`
];
const
fileList
=
this
.
data
[
`fileList2`
];
const
images
=
this
.
data
.
imgPaths
;
this
.
setData
({
[
`fileList`
]:
fileList
.
concat
(
file
),
img
:
file
[
0
].
path
[
`fileList
2
`
]:
fileList
.
concat
(
file
),
img
Paths
:
images
.
concat
(
file
[
0
].
path
)
});
},
beforeRead
(
event
)
{
beforeRead
2
(
event
)
{
const
{
file
,
callback
}
=
event
.
detail
;
if
(
file
[
0
].
path
.
indexOf
(
'jpg'
)
<
0
)
{
wx
.
showToast
({
title
:
'请选择jpg图片上传'
,
icon
:
'none'
});
...
...
@@ -97,30 +131,106 @@ Page({
}
callback
(
true
);
},
shangchuan
(){
//第3张图片
delete3
(
event
)
{
const
{
index
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList3`
];
fileList
.
splice
(
index
,
1
);
this
.
setData
({
[
`fileList3`
]:
fileList
});
},
afterRead3
(
event
)
{
const
{
file
,
name
}
=
event
.
detail
;
const
fileList
=
this
.
data
[
`fileList3`
];
const
images
=
this
.
data
.
imgPaths
;
this
.
setData
({
[
`fileList3`
]:
fileList
.
concat
(
file
),
imgPaths
:
images
.
concat
(
file
[
0
].
path
)
});
},
beforeRead3
(
event
)
{
const
{
file
,
callback
}
=
event
.
detail
;
if
(
file
[
0
].
path
.
indexOf
(
'jpg'
)
<
0
)
{
wx
.
showToast
({
title
:
'请选择jpg图片上传'
,
icon
:
'none'
});
callback
(
false
);
return
;
}
callback
(
true
);
},
//上传素材
upload
(){
var
that
=
this
;
//感想必须输入
if
(
that
.
data
.
comment
==
null
||
that
.
data
.
comment
.
trim
()
==
""
)
{
Notify
(
'请输入感想'
)
return
}
var
config
=
wx
.
getStorageSync
(
'config'
);
wx
:
wx
.
request
({
wx
.
request
({
url
:
app
.
url
+
'ajax_set_social_event_result.php'
,
data
:
{
unionId
:
config
.
unionId
,
eventId
:
that
.
data
.
eventId
,
comment
:
that
.
data
.
value
,
photo
:
that
.
data
.
img
comment
:
that
.
data
.
comment
,
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
//循环上传图片
var
completeCount
=
0
;
for
(
var
i
=
0
;
i
<
that
.
data
.
imgPaths
.
length
;
i
++
)
{
//停顿1秒
var
imgPath
=
that
.
data
.
imgPaths
[
i
];
setTimeout
(
function
()
{
wx
.
uploadFile
({
url
:
app
.
url
+
'ajax_set_social_event_result.php?unionId='
+
config
.
unionId
+
"&eventId="
+
that
.
data
.
eventId
,
filePath
:
imgPath
,
name
:
'photo'
,
header
:
{
'content-type'
:
'multipart/form-data'
},
success
:
function
(
res
)
{
},
fail
:
function
(
res
)
{
console
.
log
(
res
,
'上传失败'
)
},
complete
:
function
(
res
)
{
completeCount
++
;
},
})
},
1000
)
//延迟时间 这里是1秒
}
//循环执行等待全部结束
var
a
=
setInterval
(
function
()
{
//循环执行代码
if
(
that
.
data
.
imgPaths
.
length
==
completeCount
)
{
//跳转到首页
wx
.
showToast
({
title
:
'上传成功!'
,
icon
:
'success'
,
duration
:
2000
});
clearInterval
(
a
)
//跳转到社会实践页面
wx
.
redirectTo
({
url
:
'../socialEvent/socialEvent'
,
});
}
},
1000
)
//循环时间 这里是1秒
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
},
changeinp
(
event
){
//获取输入的感想
inputComment
(
event
){
this
.
setData
({
value
:
event
.
detail
.
value
comment
:
event
.
detail
.
value
})
}
})
\ No newline at end of file
src/wx/pages/joinSocialEvent/joinSocialEvent.json
View file @
28b4b6b1
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"社会实践"
}
\ No newline at end of file
src/wx/pages/joinSocialEvent/joinSocialEvent.wxml
View file @
28b4b6b1
<!--pages/
uploadDocuments/uploadDocuments
.wxml-->
<!--pages/
joinSocialEvent/joinSocialEvent
.wxml-->
<view class='uploadDocuments'>
<view class='uploadDocuments_title'>活动名称:
马群xxxxxxxx
</view>
<view class='uploadDocuments_title'>活动名称:
{{eventTitle}}
</view>
<view class='uploadDocuments_ganwu'>
活动感悟:<textarea class='inpGanwu' bindinput="
changeinp" value='{{value
}}'></textarea>
活动感悟:<textarea class='inpGanwu' bindinput="
inputComment" value='{{comment
}}'></textarea>
</view>
<view style="width:100%;margin-top:10px;">活动图片(3张即可):</view>
<view class='uploadDocuments_img'>
活动图片:
<view>
<van-uploader file-list="{{ fileList }}"
<van-uploader file-list="{{ fileList
1
}}"
max-count="1"
multiple
bind:after-read="afterRead"
bind:before-read="beforeRead"
bind:after-read="afterRead
1
"
bind:before-read="beforeRead
1
"
use-before-read="{{ true }}"
bind:delete="delete"/>
bind:delete="delete
1
"/>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<text style='font-size:14px;color:#666'>(3张即可)</text>
<view>
<van-uploader file-list="{{ fileList2 }}"
max-count="1"
multiple
bind:after-read="afterRead2"
bind:before-read="beforeRead2"
use-before-read="{{ true }}"
bind:delete="delete2"/>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<view>
<van-uploader file-list="{{ fileList3 }}"
max-count="1"
multiple
bind:after-read="afterRead3"
bind:before-read="beforeRead3"
use-before-read="{{ true }}"
bind:delete="delete3"/>
<text style='font-size:12px;color:#666'>仅支持jpg格式</text>
</view>
<text style='font-size:14px;color:#666'></text>
</view>
<view style='width:100%;display:flex;justify-content: center;'>
<v
an-button type="default" bind:click="shangchuan">确认上传</van-button
>
<v
iew class="actionBtn" bindtap="upload">确认上传</view
>
</view>
<van-notify id="van-notify" />
</view>
src/wx/pages/joinSocialEvent/joinSocialEvent.wxss
View file @
28b4b6b1
...
...
@@ -22,10 +22,23 @@
}
.uploadDocuments_img{
display: flex;
height:
32
0px;
margin-top:
2
0px;
height:
24
0px;
margin-top:
1
0px;
}
.uploadDocuments_img>view{
width: 100px;
height: 100px;
}
.actionBtn{
width: 75%;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 14px;
margin: 10px auto;
background: #0D76ED;
margin-bottom: 10px;
color: #fff;
border-radius: 15px;
}
\ No newline at end of file
src/wx/pages/socialEvent/socialEvent.js
View file @
28b4b6b1
...
...
@@ -50,13 +50,9 @@ Page({
//跳转到社会实践详情页面
socialEventDetail
(
e
){
var
eventId
=
e
.
currentTarget
.
dataset
[
'
eventid
'
]
var
eventId
=
e
.
currentTarget
.
dataset
[
'
index
'
]
wx
.
navigateTo
({
url
:
'../socialEventDetail/socialEventDetail?eventid='
+
eventId
,
})
wx
.
setNavigationBarColor
({
frontColor
:
'#ffffff'
,
backgroundColor
:
'#00C56B'
url
:
'../socialEventDetail/socialEventDetail?eventId='
+
eventId
,
})
},
...
...
@@ -80,6 +76,7 @@ Page({
console
.
log
(
res
)
if
(
res
.
statusCode
==
200
)
{
that
.
setData
({
pageCount
:
res
.
data
.
result
.
pageCount
,
socialEventEventList
:
res
.
data
.
result
.
socialEventEventList
})
}
...
...
@@ -96,6 +93,7 @@ Page({
this
.
setData
({
page
:
pageIndex
})
this
.
socialList
()
}
else
{
wx
.
showToast
({
title
:
'没有更多内容啦。'
,
...
...
src/wx/pages/socialEventDetail/socialEventDetail.js
View file @
28b4b6b1
...
...
@@ -8,36 +8,42 @@ Page({
* 页面的初始数据
*/
data
:
{
active
:
0
,
eventId
:
''
eventId
:
''
,
eventDat
:
''
,
finishUserList
:[],
unfinishUserList
:
[],
active
:
0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
this
.
setData
({
eventId
:
options
.
eventId
})
var
that
=
this
;
that
.
setData
({
eventId
:
options
.
eventId
})
var
config
=
wx
.
getStorageSync
(
'config'
);
var
jingweidu
=
wx
.
getStorageSync
(
'jingweidu'
);
wx
:
wx
.
request
({
//调用接口获取数据
wx
.
request
({
url
:
app
.
url
+
'ajax_get_social_event_detail.php'
,
data
:
{
unionId
:
config
.
unionId
,
eventId
:
1
eventId
:
that
.
data
.
eventId
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
console
.
log
(
res
)
// if (res.statusCode == 200) {
// that.setData({
// circleList: res.data.result.circleList
// })
// }
if
(
res
.
statusCode
==
200
)
{
that
.
setData
({
eventDat
:
res
.
data
.
result
.
sociaEventDat
,
finishUserList
:
res
.
data
.
result
.
finishUserList
,
unfinishUserList
:
res
.
data
.
result
.
unfinishUserList
})
}
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
...
...
@@ -59,13 +65,6 @@ Page({
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
...
...
@@ -92,13 +91,16 @@ Page({
onShareAppMessage
:
function
()
{
},
onChange
(
event
)
{
},
btnBaoming
(){
//参加
attend
(){
var
that
=
this
;
wx
.
navigateTo
({
url
:
'../joinSocialEvent/joinSocialEvent?eventId='
+
that
.
data
.
eventId
,
url
:
'../joinSocialEvent/joinSocialEvent?eventId='
+
that
.
data
.
eventId
+
"&eventTitle="
+
that
.
data
.
eventDat
.
title
,
})
}
...
...
src/wx/pages/socialEventDetail/socialEventDetail.wxml
View file @
28b4b6b1
<view class='activeDetails'>
<view class='top_socialEventDetail'>
<view>
初一(5)班七年级48期:爱心土豆番茄汤
</view>
<text>作者:
家校共育指导老师 发表时间:2020-01-07
</text>
<view>
{{eventDat.title}}
</view>
<text>作者:
{{eventDat.author}} 发表时间:{{eventDat.publish_time}}
</text>
</view>
<view class='con_socialEventDetail'>
<view class='title_socialEventDetail'>
<view class='top_title'>
<view>《活动目标》</view>
<text></text>
</view>
<view class='neirong_title'>
寒假快要到了,孩子也有时间为家人做一份简单味美的私家食疗菜--土豆番茄食疗汤。主料只有土豆和番茄,红黄相称,汤鲜开胃,清淡爽口。
1.了解土豆番茄食疗汤的做法;
2.知道菜系的功效,讲给老人听一听,提高表达能力;
3.营造家庭和谐的氛围,做一个关心家人的好少年。
</view>
<text></text>
</view>
<view class='title_socialEventDetail'>
<view class='top_title'>
<view>《活动准备》</view>
<text></text>
</view>
<view class='neirong_title'>
1.食材:土豆1个,番茄1-个,香葱1根;
2.佐料:盐1/2茶匙(3g),鸡精1/2茶匙(3g),油(15ml);
</view>
<text></text>
</view>
<view class='title_socialEventDetail'>
<view class='top_title'>
<view>《活动过程》</view>
<text></text>
</view>
<view class='neirong_title'>
一、亲子聊天室:
1.番茄--植物中的黄金:番茄含有丰富的番茄红素,它是目前自然界植物中被发现的最强的抗氧化剂之一,被称为"植物中的黄金"。烧熟的西红柿中番茄红素比生西红柿更高,更加有益于人的健康。
<image src='../../img/1.jpg'></image>
2.土豆--地下苹果:土豆浑身是宝,享有"地下苹果"的美誉。以土豆为代表的含钾蔬果有利于降血压,每天坚持吃一个中等大小的土豆,可以使脑卒中的发病率降低40%。
<image src='../../img/1.jpg'></image>
3.土豆搭配番茄,这两种食材一起做汤时绝配,不仅功效强大,还很好喝,因此颇受大家欢迎。
</view>
<text></text>
</view>
<rich-text nodes="{{eventDat.content}}"></rich-text>
</view>
<view class='avtiveTab'>
<van-tabs active="{{ active }}" bind:change="onChange" tab-active-class="activebeijing">
<van-tab title="已完成">
<view class='quanzi'>
<view wx:for='{{finishUserList}}' >
<view>
<view>
<image src='../../img/3.jpg'></image>梁天同学
</view>
<text>已报名</text>
</view>
<view>
<view>
<image src='../../img/3.jpg'></image>梁天同学
<image src='{{item.head_img}}'></image>{{item.name}}
</view>
<text>已报名</text>
</view>
...
...
@@ -64,22 +20,16 @@
</van-tab>
<van-tab title="未完成">
<view class='quanzi'>
<view wx:for='{{unfinishUserList}}' >
<view>
<view>
<image src='../../img/3.jpg'></image>小天同学
</view>
<text>已报名</text>
</view>
<view>
<view>
<image src='../../img/3.jpg'></image>小天同学
<image src='{{item.head_img}}'></image>{{item.name}}
</view>
<text>已报名</text>
</view>
</view>
</van-tab>
</van-tabs>
<view class='
btnBaoming' bindtap='btnBaoming
'>参加</view>
<view class='
actionBtn' bindtap='attend
'>参加</view>
</view>
</view>
<van-dialog id="van-dialog" />
...
...
src/wx/pages/socialEventDetail/socialEventDetail.wxss
View file @
28b4b6b1
/* pages/socialEventDetail/socialEventDetail.wxss */
.top_socialEventDetail{
box-sizing: border-box;
padding: 15px 5px
padding: 15px 5px;
text-align: center;
}
.top_socialEventDetail>view{
font-size: 14px;
...
...
@@ -11,6 +12,7 @@
.top_socialEventDetail>text{
font-size: 12px;
color: #666;
}
.con_socialEventDetail{
box-sizing: border-box;
...
...
@@ -61,7 +63,11 @@
border-bottom: 1px solid #ccc;
}
.activebeijing{
background: #00C56B;
background: #0D76ED;
color: #fff!important;
}
.avtiveTab .van-tabs__wrap{
border-bottom: 1px solid #0D76ED;
}
.avtiveTab .van-tabs__line{
display: none;
...
...
@@ -98,13 +104,15 @@
justify-content: center;
align-items: center;
}
.
btnBaoming
{
width:
100
%;
height:
3
0px;
line-height:
3
0px;
.
actionBtn
{
width:
75
%;
height:
4
0px;
line-height:
4
0px;
text-align: center;
font-size: 13px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
margin-bottom: 3px;
font-size: 14px;
margin: 10px auto;
background: #0D76ED;
margin-bottom: 10px;
color: #fff;
border-radius: 15px;
}
\ No newline at end of file
src/wx/pages/socialUserRegister/socialUserRegister.js
View file @
28b4b6b1
...
...
@@ -189,12 +189,12 @@ Page({
}
//法人行密名必须输入
if
(
that
.
data
.
legalPerson
==
null
||
that
.
data
.
legalPerson
.
trim
()
==
""
)
{
Notify
(
'请输法人姓名'
)
Notify
(
'请输
入
法人姓名'
)
return
}
//法人行密名必须输入
if
(
that
.
data
.
organizationContact
==
null
||
that
.
data
.
organizationContact
.
trim
()
==
""
)
{
Notify
(
'请输法人手机'
)
Notify
(
'请输
入
法人手机'
)
return
}
wx
.
request
({
...
...
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