Commit 05903a98 by biao

1

parent 2565ec76
亲子活动:
可以评论发帖?
社会实践:是不是就是图文混编?从别的平台过来的数据??
社会人士机构,还是需要年龄段选择。
领导注册也需要选择年龄段
社会人士哇按成情况单独页面。。
志愿者活动是只有指南针单独有。志愿者活动还是需要单独添加和编辑。
志愿者活动所有账号账号都可以发布。但是需要系统运营端审核。
系统账号可以发布 社会实践/亲子活动/志愿者活动,并且可以指定参与范围(是否包含社会人士)
家校账户可以发布 面向本校的志愿者活动,社会实践活动只能通过家校平台同步过来。
家园账户可以发布本校的志愿者活动,亲子活动活动只能通过家校平台同步过来。
哪些人可以发布慈善活动呢?只在后台发布?还是?
用户领取证书需要消耗积分吗?
//关于区域领导的内容显示
1.后端生成区域领导二维码,领导扫码后,自主选择年龄段。根据年龄段确认内容(亲子活动?社会实践)
2.前端我的页面增加社会实践、亲子活动完成情况统计,
领导-观看区域内学校完成情况,选择(推送的社会实践、亲子活动期数进行查看),
学校校长\园所所长,可看本校班级完成情况,其中统计模块分为“家校家园情况统计”“社会人士情况统计”。
志愿者能力分:完成社会实践或亲子活动次数。
志愿者服务分:服务分:志愿者活动
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
1. 小程序开发者账号
1. 小程序开发者账号
2.小程序开发者后台开通地图插件
3.腾讯lbs账号
4.阿里云oss key
5.小程序绑定对应公众号
\ No newline at end of file
......@@ -69,9 +69,9 @@ a:hover{
<span>信息设定</span>
</template>
<el-menu-item-group>
<el-menu-item index="1-1" @click="fn1()">学校管理</el-menu-item>
<el-menu-item index="1-2" @click="fn2()">年级设定</el-menu-item>
<el-menu-item index="1-3" @click="fn3()">班级设定</el-menu-item>
<el-menu-item index="1-1" @click="fn11()">学校管理</el-menu-item>
<el-menu-item index="1-2" @click="fn12()">年级设定</el-menu-item>
<el-menu-item index="1-3" @click="fn13()">班级设定</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu index="2">
......@@ -80,7 +80,7 @@ a:hover{
<span>审核管理</span>
</template>
<el-menu-item-group>
<el-menu-item index="2-1" @click="fn4()">机构认证</el-menu-item>
<el-menu-item index="2-1" @click="fn21()">机构认证</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu index="3">
......@@ -89,22 +89,34 @@ a:hover{
<span>活动管理</span>
</template>
<el-menu-item-group>
<el-menu-item index="3-1" @click="fn5()">活动列表</el-menu-item>
<el-menu-item index="3-2" @click="fn6()">活动发布</el-menu-item>
<el-menu-item index="3-3" v-if="checkAuthority2" @click="fn7()">活动审核</el-menu-item>
<el-menu-item index="3-1" @click="fn31()">活动列表</el-menu-item>
<el-menu-item index="3-2" @click="fn32()">活动发布</el-menu-item>
<el-menu-item index="3-3" v-if="checkAuthority2" @click="fn33()">活动审核</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu index="4">
<template slot="title">
<i class="el-icon-menu"></i>
<span>视频管理</span>
</template>
<el-menu-item-group>
<el-menu-item index="4-1" v-if="checkAuthority1" @click="fn41()">合集视频</el-menu-item>
<el-menu-item index="4-2" v-if="checkAuthority2" @click="fn42()">视频列表</el-menu-item>
<el-menu-item index="4-3" v-if="checkAuthority2" @click="fn43()">公益收益</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu index="5">
<template slot="title">
<i class="el-icon-menu"></i>
<span>系统设定</span>
</template>
<el-menu-item-group>
<el-menu-item index="4-1" v-if="checkAuthority1" @click="fn8()">账户管理</el-menu-item>
<el-menu-item index="4-2" v-if="checkAuthority2" @click="fn9()">领导机构</el-menu-item>
<el-menu-item index="4-3" v-if="checkAuthority2" @click="fn10()">常量设定</el-menu-item>
<el-menu-item index="5-1" v-if="checkAuthority1" @click="fn51()">账户管理</el-menu-item>
<el-menu-item index="5-2" v-if="checkAuthority2" @click="fn52()">领导机构</el-menu-item>
<el-menu-item index="5-3" v-if="checkAuthority2" @click="fn53()">常量设定</el-menu-item>
</el-menu-item-group>
</el-submenu>
</el-menu>
</div>
<script type="text/javascript">
......@@ -113,18 +125,18 @@ a:hover{
data:{
default_active:'1-1',
checkAuthority1:<?=checkAuthority("1")?'true':'false'?>,
checkAuthority2:<?=checkAuthority("2")?'true':'false'?>,
checkAuthority3:<?=checkAuthority("3")?'true':'false'?>,
checkAuthority4:<?=checkAuthority("4")?'true':'false'?>,
checkAuthority5:<?=checkAuthority("5")?'true':'false'?>,
checkAuthority6:<?=checkAuthority("6")?'true':'false'?>,
checkAuthority7:<?=checkAuthority("7")?'true':'false'?>,
checkAuthority8:<?=checkAuthority("8")?'true':'false'?>,
checkAuthority9:<?=checkAuthority("9")?'true':'false'?>,
checkAuthority10:<?=checkAuthority("10")?'true':'false'?>,
checkAuthority11:<?=checkAuthority("11")?'true':'false'?>,
checkAuthority12:<?=checkAuthority("12")?'true':'false'?>,
checkAuthority13:<?=checkAuthority("13")?'true':'false'?>
checkAuthority2:<?=checkAuthority("2")?'true':'false'?>,
checkAuthority3:<?=checkAuthority("3")?'true':'false'?>,
checkAuthority4:<?=checkAuthority("4")?'true':'false'?>,
checkAuthority5:<?=checkAuthority("5")?'true':'false'?>,
checkAuthority6:<?=checkAuthority("6")?'true':'false'?>,
checkAuthority7:<?=checkAuthority("7")?'true':'false'?>,
checkAuthority8:<?=checkAuthority("8")?'true':'false'?>,
checkAuthority9:<?=checkAuthority("9")?'true':'false'?>,
checkAuthority10:<?=checkAuthority("10")?'true':'false'?>,
checkAuthority11:<?=checkAuthority("11")?'true':'false'?>,
checkAuthority12:<?=checkAuthority("12")?'true':'false'?>,
checkAuthority13:<?=checkAuthority("13")?'true':'false'?>
},
methods:{
handleOpen(key, keyPath) {
......@@ -133,34 +145,43 @@ a:hover{
handleClose(key, keyPath) {
console.log(key, keyPath);
},
fn1(){
fn11(){
window.location.href='#nogo'
},
fn2(){
fn12(){
window.location.href='grade_list.php'
},
fn3(){
fn13(){
window.location.href='class_list.php'
},
fn4(){
fn21(){
window.location.href='class_list.php'
},
fn5(){
fn31(){
window.location.href='class_list.php'
},
fn6(){
fn32(){
window.location.href='class_list.php'
},
fn7(){
fn33(){
window.location.href='class_list.php'
},
fn8(){
fn41(){
window.location.href='account_list.php'
},
fn42(){
window.location.href='account_list.php'
},
fn43(){
window.location.href='account_list.php'
},
fn51(){
window.location.href='account_list.php'
},
fn9(){
fn52(){
window.location.href='government_list.php'
},
fn10(){
fn53(){
window.location.href='system_const_list.php'
}
}
......
<?php
// 使用代金券
require_once ("../user_include.inc");
ErrorLogger::doOutput("Compass...ajax_check_user_registed.php....Start.", 0);
//根据常量获取定义的值
$jsCode = ParamUtil::getRequestString("code", "");
$openId = ParamUtil::getRequestString("openId", "");
ErrorLogger::doOutput("Compass...ajax_check_user_registed.php....code=" . $jsCode, 0);
ErrorLogger::doOutput("Compass...ajax_check_user_registed.php....openId=" . $openId, 0);
$result = array();
//如果都为空说明调用错误
if(empty($code) && empty($openId)) {
$result["message"] = "参数错误!";
responseNG($result);
}
//有openId的情况下
if(!empty($openId)) {
//检索数据库
$param['openid'] = $openId;
$param['delete_flg'] = false;
$tmpUserMst = UserMst::getList($param,'id','desc', 0, 1);
if(empty($tmpUserMst)) {
$result["message"] = "未注册!";
responseOK($result);
} else {
$result["message"] = "已注册!";
responseNG($result);
}
}
//有code的情况下
if(!empty($js_code)) {
$appId = WECHAT_APP_ID;
$appSecret = WECHAT_APP_SECRET;
//调用微信接口获取用户的openId和unionId
//调用服务器查询并插入数据
$ch = curl_init();
$url = "https://api.weixin.qq.com/sns/jscode2session?appid=" . $appId . "&secret=" . $appSecret . "&js_code=" . $jsCode . "&grant_type=authorization_code";
//通过code换取网页授权access_token
$weixin = file_get_contents($url);
$weixinJson = json_decode($weixin); //对JSON格式的字符串进行编码
$weixinArray = get_object_vars($weixinJson);//转换成数组
$openId = $weixinArray["openid"];
if(!empty($openId)) {
//检索数据库
$param['openid'] = $openId;
$param['delete_flg'] = false;
$tmpUserMst = UserMst::getList($param,'id','desc', 0, 1);
if(empty($tmpUserMst)) {
$result["openId"] = $openId;
$result["message"] = "未注册!";
responseOK($result);
} else {
$result["openId"] = $openId;
$result["message"] = "已注册!";
responseNG($result);
}
} else {
$result["message"] = "参数错误!";
responseNG($result);
}
}
function responseNG($result) {
$result = array("status"=>"NG", "result"=>$result);
print json_encode($result);
exit;
}
function responseOK($result) {
$result = array("status"=>"OK", "result"=>$result);
print json_encode($result);
exit;
}
?>
\ No newline at end of file
<?php
// 使用代金券
require_once ("../user_include.inc");
ErrorLogger::doOutput("Compass...ajax_get_organization_rule_text.php....Start.", 0);
//根据常量获取定义的值
$constName = "ORGNAZATION_RULE";
$constValue = "";
//检索数据库
$param['name'] = $constName;
$param['delete_flg'] = false;
$systemConstantDatList = SystemConstantDat::getList($param,'id','desc', 0, 1);
if(!empty($systemConstantDatList)) {
$constValue = $systemConstantDatList[0]->constant_value;
}
ErrorLogger::doOutput("Compass...ajax_get_organization_rule_text.php....constValue=" . $constValue, 0);
ErrorLogger::doOutput("Compass...ajax_get_organization_rule_text.php....End.", 0);
//如果为空说明未设定该参数的值
if(empty($constValue)) {
responseNG("系统设定错误!");
}
//返回结果
responseOK($constValue);
function responseNG($result) {
$result = array("status"=>"NG", "result"=>$result);
print json_encode($result);
exit;
}
function responseOK($result) {
$result = array("status"=>"OK", "result"=>$result);
print json_encode($result);
exit;
}
?>
\ No newline at end of file
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