Commit 4dc0d064 by biao

1111

parent 2974db59
No preview for this file type
...@@ -743,7 +743,7 @@ class CompassHandler{ ...@@ -743,7 +743,7 @@ class CompassHandler{
*/ */
public static function getOrgAccreditedListCount($param) { public static function getOrgAccreditedListCount($param) {
$from = "select count(*) count from user_mst"; $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"])) { if (isset($param["title"]) && !empty($param["title"])) {
$sql_where .= " and organization_title like '%" . $param["title"] . "%'"; $sql_where .= " and organization_title like '%" . $param["title"] . "%'";
} }
......
...@@ -27,11 +27,11 @@ if (!checkAuthority("13")) { ...@@ -27,11 +27,11 @@ if (!checkAuthority("13")) {
$id = ParamUtil::getRequestString("id"); $id = ParamUtil::getRequestString("id");
$action_type = ParamUtil::getRequestString("action_type"); $action_type = ParamUtil::getRequestString("action_type");
if($action_type == "new"){ if($action_type == "new"){
$account_mst = new AccountMst(); $accountMst = new AccountMst();
} }
if($action_type == "edit"){ if($action_type == "edit"){
$account_mst = AccountMst::getById($id); $accountMst = AccountMst::getById($id);
if ($account_mst == null) { if ($accountMst == null) {
// エラー表示 // エラー表示
$layout_pages = array(); $layout_pages = array();
$layout_pages["left"] = "menu.inc"; $layout_pages["left"] = "menu.inc";
...@@ -51,8 +51,8 @@ $uid = ParamUtil::getRequestNumber("uid"); ...@@ -51,8 +51,8 @@ $uid = ParamUtil::getRequestNumber("uid");
$param = array(); $param = array();
$param["delete_flg"] = false; $param["delete_flg"] = false;
$param["login"] = $login; $param["login"] = $login;
$account_list = AccountMst::getList($param); $accountList = AccountMst::getList($param);
if (count($account_list) > 1) { if (count($accountList) > 1) {
$error_message = "登陆帐号已经被使用,请换一个。"; $error_message = "登陆帐号已经被使用,请换一个。";
$_SCRIPT_FILE = array("scripts/validators.js"); $_SCRIPT_FILE = array("scripts/validators.js");
// 页面表示 // 页面表示
...@@ -65,17 +65,26 @@ if (count($account_list) > 1) { ...@@ -65,17 +65,26 @@ if (count($account_list) > 1) {
} }
// 数据库更新 // 数据库更新
$account_mst->login = $login; $accountMst->login = $login;
$account_mst->password = $password; $accountMst->password = $password;
$account_mst->name = $name; $accountMst->name = $name;
$account_mst->contact = $contact; $accountMst->contact = $contact;
$account_mst->comment = $comment; $accountMst->comment = $comment;
$account_mst->user_id = $uid; $accountMst->user_id = $uid;
$account_mst->modules = "14"; $accountMst->modules = "14";
$account_mst->role = 9; $accountMst->role = 9;
$account_mst->save(); $accountMst->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 = array();
$layout_pages["left"] = "menu.inc"; $layout_pages["left"] = "menu.inc";
......
...@@ -52,7 +52,7 @@ if ($search_flg) { ...@@ -52,7 +52,7 @@ if ($search_flg) {
$page_num = $param["page_num"]; $page_num = $param["page_num"];
} }
} else { } else {
// 検索条件を作成してsessionに設定 // 把检索条件放入session
$param = array(); $param = array();
if (!empty($status)) { if (!empty($status)) {
$param["status"] = $status; $param["status"] = $status;
......
...@@ -13,14 +13,21 @@ ...@@ -13,14 +13,21 @@
<div class="list_title"> <div class="list_title">
机构账号管理 机构账号管理
<div style="float: right;"> <div style="float: right;">
<!-机构只有一个账号->
<?
if($account_count < 1) {
?>
<el-button type="primary" style="margin-right: 10px;" @click="addAccount()">新建账号</el-button> <el-button type="primary" style="margin-right: 10px;" @click="addAccount()">新建账号</el-button>
<?
}
?>
</div> </div>
</div> </div>
<br /> <br />
<div class="result_list"> <div class="result_list">
<el-table :data="tableData" border> <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="login" label="账号" width=""></el-table-column>
<el-table-column prop="password" 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> <el-table-column prop="comment" label="账号备注" width=""></el-table-column>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<br /> <br />
<div class="result_list"> <div class="result_list">
<el-table :data="tableData" border> <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="organization_title" label="机构名称" width="200"></el-table-column>
<el-table-column prop="legal_person" 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> <el-table-column prop="organization_contact" label="联系方式" width="200"></el-table-column>
......
...@@ -18,6 +18,7 @@ define("SERVICE_NAME", "指南针"); ...@@ -18,6 +18,7 @@ define("SERVICE_NAME", "指南针");
define("DOMAIN_NAME", "compass.koala-online.cn"); define("DOMAIN_NAME", "compass.koala-online.cn");
define("HOST_NAME", "compass.koala-online.cn"); define("HOST_NAME", "compass.koala-online.cn");
define("SSL_PATH", "www.koala-online.cn/compass"); define("SSL_PATH", "www.koala-online.cn/compass");
define("MANAGER_PATH", "http://compass.koala-online.cn/manager");
// 数据库配置 // 数据库配置
define("COMPASS_DB", "compass_develop_db"); define("COMPASS_DB", "compass_develop_db");
......
...@@ -92,6 +92,7 @@ if(!empty($tmpCircleMemberList)) { ...@@ -92,6 +92,7 @@ if(!empty($tmpCircleMemberList)) {
$userMessageDat->attach_dat_type = "VOLUNTEER"; $userMessageDat->attach_dat_type = "VOLUNTEER";
$userMessageDat->attach_dat_id = $circleDat->id; $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}";
$userMessageDat->save();
} }
} }
......
...@@ -46,10 +46,8 @@ $userMessageDat = $userMessageList[0]; ...@@ -46,10 +46,8 @@ $userMessageDat = $userMessageList[0];
if($userMessageDat->attach_dat_type == "VOLUNTEER") { if($userMessageDat->attach_dat_type == "VOLUNTEER") {
$attachDat = VolunteerEventDat::getById($userMessageDat->attach_dat_id); $attachDat = VolunteerEventDat::getById($userMessageDat->attach_dat_id);
//数据加工 //数据加工
$status_title = "征集中"; $status_title = EventStatus::getTitleByName($attachDat->status);
if($attachDat->status == "FINISH") { $status_title = $status_title;
$status_title = "活动结束";
}
$attachDat->status_title = $status_title; $attachDat->status_title = $status_title;
$attachDat->scope = "校内"; $attachDat->scope = "校内";
if($attachDat->include_social_user) { if($attachDat->include_social_user) {
......
...@@ -7,6 +7,7 @@ ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....Start.", 0); ...@@ -7,6 +7,7 @@ ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....Start.", 0);
//获取参数 //获取参数
$name = ParamUtil::getRequestString("name");//用户填写的用户名称 $name = ParamUtil::getRequestString("name");//用户填写的用户名称
$mobile = ParamUtil::getRequestNumber("mobile"); $mobile = ParamUtil::getRequestNumber("mobile");
$organizationTitle = ParamUtil::getRequestString("organizationTitle");
$legalPerson = ParamUtil::getRequestString("legalPerson"); $legalPerson = ParamUtil::getRequestString("legalPerson");
$organizationContact = ParamUtil::getRequestString("organizationContact"); $organizationContact = ParamUtil::getRequestString("organizationContact");
$headerImg = ParamUtil::getRequestString("headerImg"); $headerImg = ParamUtil::getRequestString("headerImg");
...@@ -15,10 +16,7 @@ $unionId = ParamUtil::getRequestString("unionId"); ...@@ -15,10 +16,7 @@ $unionId = ParamUtil::getRequestString("unionId");
$longitude = ParamUtil::getRequestString("longitude");//用户位置的经度 $longitude = ParamUtil::getRequestString("longitude");//用户位置的经度
$latitude = ParamUtil::getRequestString("latitude");//用户位置的纬度 $latitude = ParamUtil::getRequestString("latitude");//用户位置的纬度
ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....name=" . $name, 0); ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....organizationTitle=" . $organizationTitle, 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);
//参数验证 //参数验证
...@@ -74,6 +72,7 @@ $userMst->unionid = $unionId; ...@@ -74,6 +72,7 @@ $userMst->unionid = $unionId;
$userMst->name = $name; $userMst->name = $name;
$userMst->mobile = $mobile; $userMst->mobile = $mobile;
$userMst->header_img = $headerImg; $userMst->header_img = $headerImg;
$userMst->organization_title = $organizationTitle;
$userMst->legal_person = $legalPerson; $userMst->legal_person = $legalPerson;
$userMst->organization_contact = $organizationContact; $userMst->organization_contact = $organizationContact;
$userMst->save(); $userMst->save();
......
...@@ -60,6 +60,7 @@ if($circleDat->need_check) { ...@@ -60,6 +60,7 @@ if($circleDat->need_check) {
$userMessageDat->attach_dat_type = "CIRCLE"; $userMessageDat->attach_dat_type = "CIRCLE";
$userMessageDat->attach_dat_id = $circleDat->id; $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}";
$userMessageDat->save();
$result["message"] = "申请成功,请等待圈主审核!"; $result["message"] = "申请成功,请等待圈主审核!";
responseOK($result); responseOK($result);
......
...@@ -152,7 +152,7 @@ video, live-player, live-pusher, open-data, web-view { ...@@ -152,7 +152,7 @@ video, live-player, live-pusher, open-data, web-view {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
font-size: 13px; font-size: 13px;
text-align: center; text-align: center;
color: #f0f0f0; color: #4f4f4f;
} }
.button button{ .button button{
padding: 20px 90px; padding: 20px 90px;
......
...@@ -94,6 +94,7 @@ Page({ ...@@ -94,6 +94,7 @@ Page({
wx.redirectTo({ wx.redirectTo({
url: '../socialUserRegister/socialUserRegister', url: '../socialUserRegister/socialUserRegister',
}); });
return;
} }
that.setData({ that.setData({
roleTitle: res.data.result.name, roleTitle: res.data.result.name,
...@@ -191,6 +192,12 @@ Page({ ...@@ -191,6 +192,12 @@ Page({
isvolunteerEventList: res.data.result.volunteerEventList.length>0?true:false, isvolunteerEventList: res.data.result.volunteerEventList.length>0?true:false,
ismediaList: res.data.result.mediaList.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) console.log(res)
}, },
fail: function (res) { }, fail: function (res) { },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class='myNewsDetail'> <view class='myNewsDetail'>
<view class='firstpage' wx:if="{{attach_dat_type=='ORGNAZATION'}}"> <view class='firstpage' wx:if="{{attach_dat_type=='ORGNAZATION'}}">
<view class='title_firstpage'>{{messageDat.title}}</view> <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 class='btn_firstpage'>
<view>取消</view> <view>取消</view>
<view style='background:#698FBB'>确认</view> <view style='background:#698FBB'>确认</view>
......
...@@ -5,20 +5,21 @@ ...@@ -5,20 +5,21 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
margin: auto; margin: 20px auto;
width: 250px; width: 90%;
height: 400px; height: 400px;
} }
.title_firstpage{ .title_firstpage{
width: 100%; width: 100%;
text-align: center; text-align: center;
font-size: 18px; font-size: 16px;
height:40px;
font-weight: 600; font-weight: 600;
} }
.content_firstpage{ .content_firstpage{
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 10px; text-align: left;
} }
/* .btn_firstpage{ /* .btn_firstpage{
position: absolute; position: absolute;
......
...@@ -227,7 +227,7 @@ Page({ ...@@ -227,7 +227,7 @@ Page({
//活动时长 //活动时长
if (that.data.timeLength == null || that.data.timeLength.trim() == "") { if (that.data.timeLength == null || that.data.timeLength.trim() == "") {
Notify('请输入活动时长') Notify('请输入时长')
return return
} }
......
// pages/jigouRegistered/jigouRegistered.js // pages/socialUserRegister/socialUserRegister.js
import Notify from '../../dist/notify/notify'; import Notify from '../../dist/notify/notify';
var app = getApp() var app = getApp()
Page({ Page({
...@@ -224,6 +224,7 @@ Page({ ...@@ -224,6 +224,7 @@ Page({
openId: config.openId, openId: config.openId,
name: that.data.name, name: that.data.name,
mobile: that.data.mobile, mobile: that.data.mobile,
organizationTitle: that.data.organizationTitle,
legalPerson: that.data.legalPerson, legalPerson: that.data.legalPerson,
organizationContact: that.data.organizationContact, organizationContact: that.data.organizationContact,
headerImg: app.globalData.userInfo.avatarUrl, headerImg: app.globalData.userInfo.avatarUrl,
......
{ {
"usingComponents": {} "usingComponents": {},
"navigationBarTitleText": "注册"
} }
\ No newline at end of file
<!--pages/jigouRegistered/jigouRegistered.wxml--> <!--pages/socialUserRegister/socialUserRegister.wxml-->
<view class='jigouRegistered'> <view class='jigouRegistered'>
<image src='../../img/2.jpg'></image> <image src='../../img/2.jpg'></image>
<view class='formtable'> <view class='formtable'>
......
/* pages/jigouRegistered/jigouRegistered.wxss */ /* pages/socialUserRegister/socialUserRegister.wxss */
.jigouRegistered{ .jigouRegistered{
width: 100%; width: 100%;
position: relative; position: relative;
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
.mainUpload>view>view>text{ .mainUpload>view>view>text{
display: block; display: block;
font-size: 14px; font-size: 14px;
color: #666; color: #4F4F4F;
height: 120px; height: 120px;
} }
.uploadPic>view{ .uploadPic>view{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment