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
4dc0d064
Commit
4dc0d064
authored
Mar 18, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
2974db59
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
65 additions
and
38 deletions
+65
-38
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
小程序文件命名以及接口调用说明.xlsx
doc/小程序文件命名以及接口调用说明.xlsx
+0
-0
指南针测试.docx
doc/指南针测试.docx
+0
-0
接口文档 V1.0.xls
doc/接口文档 V1.0.xls
+0
-0
CompassHandler.inc
src/cn/compass/handler/CompassHandler.inc
+1
-1
org_account_edit_result.php
src/manager/org_account_edit_result.php
+23
-14
org_accredited_list.php
src/manager/org_accredited_list.php
+1
-1
org_account_list.inc
src/manager/templates/org_account_list.inc
+8
-1
org_accredited_list.inc
src/manager/templates/org_accredited_list.inc
+1
-1
settings.inc
src/settings/settings.inc
+1
-0
ajax_attend_volunteer_event_circle.php
src/user/if/ajax_attend_volunteer_event_circle.php
+1
-0
ajax_get_user_message_detail.php
src/user/if/ajax_get_user_message_detail.php
+2
-4
ajax_social_user_register1.php
src/user/if/ajax_social_user_register1.php
+3
-4
ajax_user_join_circle.php
src/user/if/ajax_user_join_circle.php
+1
-0
app.wxss
src/wx/app.wxss
+1
-1
index.js
src/wx/pages/index/index.js
+7
-0
myNewsDetail.wxml
src/wx/pages/myNewsDetail/myNewsDetail.wxml
+1
-1
myNewsDetail.wxss
src/wx/pages/myNewsDetail/myNewsDetail.wxss
+5
-4
newCircleEvent.js
src/wx/pages/newCircleEvent/newCircleEvent.js
+1
-1
socialUserRegister.js
src/wx/pages/socialUserRegister/socialUserRegister.js
+2
-1
socialUserRegister.json
src/wx/pages/socialUserRegister/socialUserRegister.json
+3
-1
socialUserRegister.wxml
src/wx/pages/socialUserRegister/socialUserRegister.wxml
+1
-1
socialUserRegister.wxss
src/wx/pages/socialUserRegister/socialUserRegister.wxss
+2
-2
No files found.
doc/DB/compass_db_schema.xlsx
View file @
4dc0d064
No preview for this file type
doc/小程序文件命名以及接口调用说明.xlsx
View file @
4dc0d064
No preview for this file type
doc/指南针测试.docx
View file @
4dc0d064
No preview for this file type
doc/接口文档 V1.0.xls
View file @
4dc0d064
No preview for this file type
src/cn/compass/handler/CompassHandler.inc
View file @
4dc0d064
...
...
@@ -743,7 +743,7 @@ class CompassHandler{
*/
public
static
function
getOrgAccreditedListCount
(
$param
)
{
$from
=
"select count(*) count from user_mst"
;
$sql_where
=
" where delete_flg=false and
organization_no is not null
"
;
$sql_where
=
" where delete_flg=false and
role=6
"
;
if
(
isset
(
$param
[
"title"
])
&&
!
empty
(
$param
[
"title"
]))
{
$sql_where
.=
" and organization_title like '%"
.
$param
[
"title"
]
.
"%'"
;
}
...
...
src/manager/org_account_edit_result.php
View file @
4dc0d064
...
...
@@ -27,11 +27,11 @@ if (!checkAuthority("13")) {
$id
=
ParamUtil
::
getRequestString
(
"id"
);
$action_type
=
ParamUtil
::
getRequestString
(
"action_type"
);
if
(
$action_type
==
"new"
){
$account
_m
st
=
new
AccountMst
();
$account
M
st
=
new
AccountMst
();
}
if
(
$action_type
==
"edit"
){
$account
_m
st
=
AccountMst
::
getById
(
$id
);
if
(
$account
_m
st
==
null
)
{
$account
M
st
=
AccountMst
::
getById
(
$id
);
if
(
$account
M
st
==
null
)
{
// エラー表示
$layout_pages
=
array
();
$layout_pages
[
"left"
]
=
"menu.inc"
;
...
...
@@ -51,8 +51,8 @@ $uid = ParamUtil::getRequestNumber("uid");
$param
=
array
();
$param
[
"delete_flg"
]
=
false
;
$param
[
"login"
]
=
$login
;
$account
_l
ist
=
AccountMst
::
getList
(
$param
);
if
(
count
(
$account
_l
ist
)
>
1
)
{
$account
L
ist
=
AccountMst
::
getList
(
$param
);
if
(
count
(
$account
L
ist
)
>
1
)
{
$error_message
=
"登陆帐号已经被使用,请换一个。"
;
$_SCRIPT_FILE
=
array
(
"scripts/validators.js"
);
// 页面表示
...
...
@@ -65,17 +65,26 @@ if (count($account_list) > 1) {
}
// 数据库更新
$account
_m
st
->
login
=
$login
;
$account
_m
st
->
password
=
$password
;
$account
_m
st
->
name
=
$name
;
$account
_m
st
->
contact
=
$contact
;
$account
_m
st
->
comment
=
$comment
;
$account
_m
st
->
user_id
=
$uid
;
$account
_m
st
->
modules
=
"14"
;
$account
_m
st
->
role
=
9
;
$account
M
st
->
login
=
$login
;
$account
M
st
->
password
=
$password
;
$account
M
st
->
name
=
$name
;
$account
M
st
->
contact
=
$contact
;
$account
M
st
->
comment
=
$comment
;
$account
M
st
->
user_id
=
$uid
;
$account
M
st
->
modules
=
"14"
;
$account
M
st
->
role
=
9
;
$account
_m
st
->
save
();
$account
M
st
->
save
();
//发送消息给前端用户
$userMst
=
UserMst
::
getById
(
$accountMst
->
user_id
);
$userMessageDat
=
new
UserMessageDat
();
$userMessageDat
->
user_id
=
$userMst
->
id
;
$userMessageDat
->
title
=
"账号审核通过通知"
;
$userMessageDat
->
comment
=
"恭喜您账号审核通过。
\n
后台网址:
\n
"
.
MANAGER_PATH
.
"
\n
账号名称:"
.
$accountMst
->
login
.
"
\n
账号密码:"
.
$accountMst
->
password
;
$userMessageDat
->
attach_dat_type
=
"ORGNAZATION"
;
$userMessageDat
->
save
();
// 页面表示
$layout_pages
=
array
();
$layout_pages
[
"left"
]
=
"menu.inc"
;
...
...
src/manager/org_accredited_list.php
View file @
4dc0d064
...
...
@@ -52,7 +52,7 @@ if ($search_flg) {
$page_num
=
$param
[
"page_num"
];
}
}
else
{
//
検索条件を作成してsessionに設定
//
把检索条件放入session
$param
=
array
();
if
(
!
empty
(
$status
))
{
$param
[
"status"
]
=
$status
;
...
...
src/manager/templates/org_account_list.inc
View file @
4dc0d064
...
...
@@ -13,14 +13,21 @@
<div
class=
"list_title"
>
机构账号管理
<div
style=
"float: right;"
>
<
!
-
机构只有一个账号
-
>
<?
if
(
$account_count
<
1
)
{
?>
<el-button
type=
"primary"
style=
"margin-right: 10px;"
@
click=
"addAccount()"
>
新建账号
</el-button>
<?
}
?>
</div>
</div>
<br
/>
<div
class=
"result_list"
>
<el-table
:data=
"tableData"
border
>
<el-table-column
prop=
"id"
label=
"
编号
"
></el-table-column>
<el-table-column
prop=
"id"
label=
"
ID
"
></el-table-column>
<el-table-column
prop=
"login"
label=
"账号"
width=
""
></el-table-column>
<el-table-column
prop=
"password"
label=
"原始密码"
width=
""
></el-table-column>
<el-table-column
prop=
"comment"
label=
"账号备注"
width=
""
></el-table-column>
...
...
src/manager/templates/org_accredited_list.inc
View file @
4dc0d064
...
...
@@ -35,7 +35,7 @@
<br
/>
<div
class=
"result_list"
>
<el-table
:data=
"tableData"
border
>
<el-table-column
prop=
"
organization_no"
label=
"编号
"
width=
"150"
></el-table-column>
<el-table-column
prop=
"
id"
label=
"ID
"
width=
"150"
></el-table-column>
<el-table-column
prop=
"organization_title"
label=
"机构名称"
width=
"200"
></el-table-column>
<el-table-column
prop=
"legal_person"
label=
"法人姓名"
width=
"200"
></el-table-column>
<el-table-column
prop=
"organization_contact"
label=
"联系方式"
width=
"200"
></el-table-column>
...
...
src/settings/settings.inc
View file @
4dc0d064
...
...
@@ -18,6 +18,7 @@ define("SERVICE_NAME", "指南针");
define
(
"DOMAIN_NAME"
,
"compass.koala-online.cn"
);
define
(
"HOST_NAME"
,
"compass.koala-online.cn"
);
define
(
"SSL_PATH"
,
"www.koala-online.cn/compass"
);
define
(
"MANAGER_PATH"
,
"http://compass.koala-online.cn/manager"
);
// 数据库配置
define
(
"COMPASS_DB"
,
"compass_develop_db"
);
...
...
src/user/if/ajax_attend_volunteer_event_circle.php
View file @
4dc0d064
...
...
@@ -92,6 +92,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
->
save
();
}
}
...
...
src/user/if/ajax_get_user_message_detail.php
View file @
4dc0d064
...
...
@@ -46,10 +46,8 @@ $userMessageDat = $userMessageList[0];
if
(
$userMessageDat
->
attach_dat_type
==
"VOLUNTEER"
)
{
$attachDat
=
VolunteerEventDat
::
getById
(
$userMessageDat
->
attach_dat_id
);
//数据加工
$status_title
=
"征集中"
;
if
(
$attachDat
->
status
==
"FINISH"
)
{
$status_title
=
"活动结束"
;
}
$status_title
=
EventStatus
::
getTitleByName
(
$attachDat
->
status
);
$status_title
=
$status_title
;
$attachDat
->
status_title
=
$status_title
;
$attachDat
->
scope
=
"校内"
;
if
(
$attachDat
->
include_social_user
)
{
...
...
src/user/if/ajax_social_user_register1.php
View file @
4dc0d064
...
...
@@ -7,6 +7,7 @@ ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....Start.", 0);
//获取参数
$name
=
ParamUtil
::
getRequestString
(
"name"
);
//用户填写的用户名称
$mobile
=
ParamUtil
::
getRequestNumber
(
"mobile"
);
$organizationTitle
=
ParamUtil
::
getRequestString
(
"organizationTitle"
);
$legalPerson
=
ParamUtil
::
getRequestString
(
"legalPerson"
);
$organizationContact
=
ParamUtil
::
getRequestString
(
"organizationContact"
);
$headerImg
=
ParamUtil
::
getRequestString
(
"headerImg"
);
...
...
@@ -15,10 +16,7 @@ $unionId = ParamUtil::getRequestString("unionId");
$longitude
=
ParamUtil
::
getRequestString
(
"longitude"
);
//用户位置的经度
$latitude
=
ParamUtil
::
getRequestString
(
"latitude"
);
//用户位置的纬度
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register1.php....name="
.
$name
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register1.php....mobile="
.
$mobile
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register1.php....openId="
.
$openId
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register1.php....unionId="
.
$unionId
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register1.php....organizationTitle="
.
$organizationTitle
,
0
);
//参数验证
...
...
@@ -74,6 +72,7 @@ $userMst->unionid = $unionId;
$userMst
->
name
=
$name
;
$userMst
->
mobile
=
$mobile
;
$userMst
->
header_img
=
$headerImg
;
$userMst
->
organization_title
=
$organizationTitle
;
$userMst
->
legal_person
=
$legalPerson
;
$userMst
->
organization_contact
=
$organizationContact
;
$userMst
->
save
();
...
...
src/user/if/ajax_user_join_circle.php
View file @
4dc0d064
...
...
@@ -60,6 +60,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
->
save
();
$result
[
"message"
]
=
"申请成功,请等待圈主审核!"
;
responseOK
(
$result
);
...
...
src/wx/app.wxss
View file @
4dc0d064
...
...
@@ -152,7 +152,7 @@ video, live-player, live-pusher, open-data, web-view {
border-bottom: 1px solid #ccc;
font-size: 13px;
text-align: center;
color: #
f0f0f0
;
color: #
4f4f4f
;
}
.button button{
padding: 20px 90px;
...
...
src/wx/pages/index/index.js
View file @
4dc0d064
...
...
@@ -94,6 +94,7 @@ Page({
wx
.
redirectTo
({
url
:
'../socialUserRegister/socialUserRegister'
,
});
return
;
}
that
.
setData
({
roleTitle
:
res
.
data
.
result
.
name
,
...
...
@@ -191,6 +192,12 @@ Page({
isvolunteerEventList
:
res
.
data
.
result
.
volunteerEventList
.
length
>
0
?
true
:
false
,
ismediaList
:
res
.
data
.
result
.
mediaList
.
length
>
0
?
true
:
false
})
//是否显示志愿者活动
if
(
res
.
data
.
result
.
volunteerEventList
&&
res
.
data
.
result
.
volunteerEventList
.
length
>
0
)
{
that
.
setData
({
isvolunteerEventList
:
true
,
})
}
console
.
log
(
res
)
},
fail
:
function
(
res
)
{
},
...
...
src/wx/pages/myNewsDetail/myNewsDetail.wxml
View file @
4dc0d064
...
...
@@ -2,7 +2,7 @@
<view class='myNewsDetail'>
<view class='firstpage' wx:if="{{attach_dat_type=='ORGNAZATION'}}">
<view class='title_firstpage'>{{messageDat.title}}</view>
<
view class='content_firstpage'>{{messageDat.comment}}</view
>
<
text class='content_firstpage'>{{messageDat.comment}}</text
>
<!-- <view class='btn_firstpage'>
<view>取消</view>
<view style='background:#698FBB'>确认</view>
...
...
src/wx/pages/myNewsDetail/myNewsDetail.wxss
View file @
4dc0d064
...
...
@@ -5,20 +5,21 @@
left: 0;
bottom: 0;
right: 0;
margin: auto;
width:
250px
;
margin:
20px
auto;
width:
90%
;
height: 400px;
}
.title_firstpage{
width: 100%;
text-align: center;
font-size: 18px;
font-size: 16px;
height:40px;
font-weight: 600;
}
.content_firstpage{
width: 100%;
box-sizing: border-box;
padding: 10px
;
text-align: left
;
}
/* .btn_firstpage{
position: absolute;
...
...
src/wx/pages/newCircleEvent/newCircleEvent.js
View file @
4dc0d064
...
...
@@ -227,7 +227,7 @@ Page({
//活动时长
if
(
that
.
data
.
timeLength
==
null
||
that
.
data
.
timeLength
.
trim
()
==
""
)
{
Notify
(
'请输入
活动
时长'
)
Notify
(
'请输入时长'
)
return
}
...
...
src/wx/pages/socialUserRegister/socialUserRegister.js
View file @
4dc0d064
// pages/
jigouRegistered/jigouRegistered
.js
// pages/
socialUserRegister/socialUserRegister
.js
import
Notify
from
'../../dist/notify/notify'
;
var
app
=
getApp
()
Page
({
...
...
@@ -224,6 +224,7 @@ Page({
openId
:
config
.
openId
,
name
:
that
.
data
.
name
,
mobile
:
that
.
data
.
mobile
,
organizationTitle
:
that
.
data
.
organizationTitle
,
legalPerson
:
that
.
data
.
legalPerson
,
organizationContact
:
that
.
data
.
organizationContact
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
...
...
src/wx/pages/socialUserRegister/socialUserRegister.json
View file @
4dc0d064
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"注册"
}
\ No newline at end of file
src/wx/pages/socialUserRegister/socialUserRegister.wxml
View file @
4dc0d064
<!--pages/
jigouRegistered/jigouRegistered
.wxml-->
<!--pages/
socialUserRegister/socialUserRegister
.wxml-->
<view class='jigouRegistered'>
<image src='../../img/2.jpg'></image>
<view class='formtable'>
...
...
src/wx/pages/socialUserRegister/socialUserRegister.wxss
View file @
4dc0d064
/* pages/
jigouRegistered/jigouRegistered
.wxss */
/* pages/
socialUserRegister/socialUserRegister
.wxss */
.jigouRegistered{
width: 100%;
position: relative;
...
...
@@ -94,7 +94,7 @@
.mainUpload>view>view>text{
display: block;
font-size: 14px;
color: #
666
;
color: #
4F4F4F
;
height: 120px;
}
.uploadPic>view{
...
...
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