D-Day 관리기능 적용-2

dev_bert
jonghwan76 3 years ago
parent 770081f133
commit 83ab89cfe5

@ -11,11 +11,13 @@
<component name="ChangeListManager">
<list default="true" id="4099ff18-820b-4e43-a4c5-6159d58dccc4" name="변경" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/backoffice/m/member_env/M_Member_envBO.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/backoffice/m/member_env/M_Member_envBO.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/backoffice/m/member_env/M_Member_envBOImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/backoffice/m/member_env/M_Member_envBOImpl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/backoffice/m/index/M_IndexController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/backoffice/m/index/M_IndexController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/backoffice/m/member_env/M_Member_envController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/backoffice/m/member_env/M_Member_envController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/backoffice/m/util/M_Util.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/backoffice/m/util/M_Util.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/sqlmap/m/bf_family_baby/com.backoffice.m.bf_family_baby.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/sqlmap/m/bf_family_baby/com.backoffice.m.bf_family_baby.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/sqlmap/m/member_env/com.backoffice.m.member_env.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/sqlmap/m/member_env/com.backoffice.m.member_env.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/member_env/view_d_day.ftl" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/member_env/view_d_day.ftl" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/index/index.ftl" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/index/index.ftl" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/index/index_20220305.ftl" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/index/index_20220409.ftl" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -61,7 +63,7 @@
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/memory" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ftl/m/index" />
<property name="project.structure.last.edited" value="프로젝트" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
@ -70,11 +72,11 @@
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\MSI\IdeaProjects\bf\src\main\webapp\WEB-INF\views\ftl\m\index" />
<recent name="C:\project\bf\src\main\webapp\WEB-INF\views\ftl\m\memory" />
<recent name="C:\project\bf\src\main\webapp\WEB-INF\views\ftl\m\member_env" />
<recent name="C:\project\bf\src\main\webapp\WEB-INF\views\ftl\m\login" />
<recent name="C:\project\bf\src\main\webapp\WEB-INF\views\ftl\m\include" />
<recent name="C:\project\bf\src\main\webapp\m\js" />
</key>
</component>
<component name="RunManager">
@ -344,7 +346,14 @@
<option name="project" value="LOCAL" />
<updated>1649339670142</updated>
</task>
<option name="localTasksCounter" value="21" />
<task id="LOCAL-00021" summary="D-Day 관리기능 적용">
<created>1649494087226</created>
<option name="number" value="00021" />
<option name="presentableId" value="LOCAL-00021" />
<option name="project" value="LOCAL" />
<updated>1649494087226</updated>
</task>
<option name="localTasksCounter" value="22" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -385,6 +394,7 @@
<MESSAGE value="퍼블리싱 기능 적용&#10;1. 설정하기&#10; - 인증코드 확인&#10; - 계정연동 하기&#10; - 기록 카테고리 수정&#10; - 자주쓰는 표현 수정&#10; &#10;2. 로그인화면" />
<MESSAGE value="index_bottom 공유관련 html 스크립트 분리" />
<MESSAGE value="index_bottom 공유관련 html 스크립트 분리-2" />
<option name="LAST_COMMIT_MESSAGE" value="index_bottom 공유관련 html 스크립트 분리-2" />
<MESSAGE value="D-Day 관리기능 적용" />
<option name="LAST_COMMIT_MESSAGE" value="D-Day 관리기능 적용" />
</component>
</project>

@ -288,7 +288,7 @@ public class M_IndexController extends AbstractControllerManager{
}
// 디폴트 요청한 아이가 없고 현재 세션에 저장된 아이가 없다면 첫번째 아이로 세션 저장
if(RenaStringUtil.isNullOrEmpty(smc_no) == true && rm_child == null && lm_child.size() > 0) {
if((RenaStringUtil.isNullOrEmpty(smc_no) == true || rm_child == null)&& lm_child.size() > 0) {
rm_child = lm_child.get(0);
DataMap.putToModel(model, "rm_child", rm_child);
session.setAttribute(ConstantSystem.SESSION_RM_CHILD, rm_child);

@ -747,6 +747,11 @@ public class M_Member_envController extends AbstractControllerManager{
HttpSession session = request.getSession(false);
DataMap paramMap = (DataMap) session.getAttribute(M_Util.SESSION_RM_MEMBER);
DataMap rm_child = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_CHILD);
if(rm_child != null) {
paramMap.put("smc_no", rm_child.get("smc_no"));
}
try{
List<DataMap> dday_list = member_envBO.select_dday_list(paramMap);
@ -769,7 +774,7 @@ public class M_Member_envController extends AbstractControllerManager{
*/
@RequestMapping(value="ajax_insert_dday")
@ResponseBody
public HashMap<String, Object> ajax_insert_dday(@ModelAttribute("model") ModelMap model, HttpServletRequest request, HttpServletResponse response) {
public HashMap<String, Object> ajax_insert_dday(@ModelAttribute("model") ModelMap model, HttpServletRequest request) {
DataMap paramMap = gmUtil.getDataMapFromRequest(request);
HashMap<String, Object> result = new HashMap<String, Object>();
result.put("RESULT", ConstantResultCode.RESULT_INIT);
@ -781,9 +786,15 @@ public class M_Member_envController extends AbstractControllerManager{
}else{
HttpSession session = request.getSession(false);
DataMap rm_mem = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_MEMBER);
DataMap rm_child = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_CHILD);
paramMap.put("member_id", rm_mem.get("member_id"));
if(rm_child != null) {
paramMap.put("smc_no", rm_child.get("smc_no"));
}
int iResult = member_envBO.insert_dday(paramMap);
// DataMap rm_child_init = init_child(model, request, paramMap);
}
} catch (Exception ex1) {
ex1.printStackTrace();
@ -815,6 +826,16 @@ public class M_Member_envController extends AbstractControllerManager{
HttpSession session = request.getSession(false);
DataMap rm_mem = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_MEMBER);
int iResult = member_envBO.update_dday(paramMap);
DataMap rm_child = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_CHILD);
paramMap.put("member_id", rm_mem.get("member_id"));
if(rm_child != null) {
paramMap.put("smc_no", rm_child.get("smc_no"));
}
// DataMap rm_child_init = init_child(model, request, paramMap);
// session.setAttribute(ConstantSystem.SESSION_RM_CHILD, rm_child_init);
}
} catch (Exception ex1) {
ex1.printStackTrace();
@ -844,7 +865,17 @@ public class M_Member_envController extends AbstractControllerManager{
result.put("RESULT", ConstantResultCode.RESULT_SESSION_OUT);
}else{
HttpSession session = request.getSession(false);
DataMap rm_mem = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_MEMBER);
int iResult = member_envBO.delete_dday(paramMap);
DataMap rm_child = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_CHILD);
paramMap.put("member_id", rm_mem.get("member_id"));
if(rm_child != null) {
paramMap.put("smc_no", rm_child.get("smc_no"));
}
// DataMap rm_child_init = init_child(model, request, paramMap);
}
} catch (Exception ex1) {
ex1.printStackTrace();

@ -282,7 +282,6 @@ public class M_Util {
public void redirectParam(RedirectAttributes redirectAttributes, DataMap paramMap){
// 4. return request parameters
Iterator<String> itKey = paramMap.keySet().iterator();
while(itKey.hasNext()){
String key = String.valueOf(itKey.next());

@ -103,6 +103,8 @@
,REPLACE(append_src_img_file.mt_file_nm, '/cdn001/', '') AS append_src_img_file_nm
,REPLACE(append_300_img_file.mt_file_local_url, '/cdn001/', '') AS append_300_img_file_url
,REPLACE(append_300_img_file.mt_file_nm, '/cdn001/', '') AS append_300_img_file_nm
,ifnull(datediff(d_day, now()), -1) as diff_d_day
FROM
(
SELECT
@ -133,6 +135,9 @@
,x.reg_dt
,x.mod_dt
,y.member_id
,(select date_format(d_day,'%Y-%m-%d') from tbl_d_day td where td.smc_no = x.smc_no and date_format(d_day, '%Y-%m-%d') >= date_format(now(), '%Y-%m-%d') order by td.d_day limit 1) as d_day
,(select d_title from tbl_d_day td where td.smc_no = x.smc_no and date_format(d_day, '%Y-%m-%d') >= date_format(now(), '%Y-%m-%d') order by td.d_day limit 1) as d_title
FROM tbl_bf_family_baby x
INNER JOIN tbl_bf_family_match y on x.smc_no = y.smc_no
WHERE 1 =1

@ -111,7 +111,7 @@
date_format(a.reg_dt, '%Y-%m-%d') as reg_dt
FROM tbl_d_day a
WHERE 1=1
and member_id = #member_id#
and smc_no = #smc_no#
ORDER BY a.idx
</select>
@ -123,6 +123,7 @@
d_memo,
d_day,
member_id,
smc_no,
reg_dt
)
values
@ -131,6 +132,7 @@
#d_memo#,
#d_day#,
#member_id#,
#smc_no#,
now()
)
</insert>

@ -84,13 +84,29 @@
<p>${(item['past_day'])!}일 (${(item['past_day']?number/7)!}주 ${(item['past_day']?number%7)!}일/${item['past_month']!}개월 ${(item['past_day']?number%7)!}일)</p>
<p class="d_day">
<#if item['day100'] gt 0>
100일 D-${(item['day100'])!}일,${item['day100date']!}
<#if item['diff_d_day'] gt item['day100'] || item['diff_d_day'] lt 0>
100일 D-${(item['day100'])!}일,${item['day100date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
<#elseif item['day200'] gt 0>
200일 D-${(item['day200'])!}일,${item['day200date']!}
<#if item['diff_d_day'] gt item['day200'] || item['diff_d_day'] lt 0>
200일 D-${(item['day200'])!}일,${item['day200date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
<#elseif item['day300'] gt 0>
300일 D-${(item['day300'])!}일,${item['day300date']!}
<#if item['diff_d_day'] gt item['day300'] || item['diff_d_day'] lt 0>
300일 D-${(item['day300'])!}일,${item['day300date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
<#elseif item['day365'] gt 0>
첫돌 D-${(item['day365'])!}일,${item['day365date']!}
<#if item['diff_d_day'] gt item['day360'] || item['diff_d_day'] lt 0>
첫돌 D-${(item['day365'])!}일,${item['day365date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
</#if>
</p>
@ -442,88 +458,6 @@
</#if>
];
var ajax_child_info = function(idx){
let smc_no = arr_smc_no[idx];
console.log('ajax_child_info:smc_no:' + smc_no);
$.ajax({
url:'${URL_ROOT}/m/index/ajax_child_info.do',
type:'get',
data: {
"smc_no" : smc_no
},
dataType:'json',
}).done(function(result) {
console.log(result)
if (result === undefined){
Swal.fire({text: '오류가 발생했습니다.'})
}else{
if(result.rm_child){
$('#smc_no').val(result.rm_child.smc_no)
$("span[name=child_nm]").text(result.rm_child.name)
$("li[name=li_img_preview]").remove();
}else{
$("span[name=child_nm]").text('')
}
if(result.rm_last_h){
$('#base_dt_max_h').text(result.rm_last_h.base_dt_max)
$('#last_h').text(result.rm_last_h.height)
}else{
$('#base_dt_max_h').text(not_h)
$('#last_h').text( '-')
}
if(result.rm_last_w){
$('#base_dt_max_w').text(result.rm_last_w.base_dt_max)
$('#last_w').text(result.rm_last_w.height)
}else{
$('#base_dt_max_w').text(not_w)
$('#last_w').text('-')
}
var html = '';
$('#ul_photo').empty();
$('#last_ago').text("");
if(result.lm_nutrition != null && result.lm_nutrition.length > 0) {
for(var i=0;i<result.lm_nutrition.length;i++) {
var dn_no = result.lm_nutrition[i].dn_no;
var append_300_img_file = result.lm_nutrition[i].append_300_img_file;
var nutirition_cd_no_title = result.lm_nutrition[i].nutirition_cd_no_title;
html +='<li name="li_img_preview" onclick="location.href=\'${URL_ROOT}/m/bf_daily_nutrition/view_bf_daily_nutrition.do?dn_no=' + dn_no + '\'" >';
html +=' <div class="img_preview">';
html +=' <span class="img_title">' + nutirition_cd_no_title + '</span>'
html +=' <img src="${URL_ROOT}/file/get_img.do?mt_file_seq=' + append_300_img_file + '" alt="사진영역">';
html +=' </div>';
html +='</li>';
}
var nutirition_cd_no_title = result.lm_nutrition[result.lm_nutrition.length -1].nutirition_cd_no_title;
var ago = result.lm_nutrition[result.lm_nutrition.length -1].ago;
$('#last_ago').text(nutirition_cd_no_title + "(" + ago + ")");
}
html +='<li>';
html +=' <div class="img_preview">';
html +=' <p><label for="append_src_img_file"><img id="img_preview" src="${URL_STATIC_ROOT}/m/img/main/main_cont_img_camera.png" alt="사진영역"></label></p>';
html +=' </div>';
html +=' <input type="file" id="append_src_img_file" name="append_src_img_file">';
html +='</li> ';
$('#ul_photo').append(html);
init();
if(result.RESULT == 7){
Swal.fire({text: '로그인 세션이 만료되었습니다.'}).then((result)=>{ window.location.href = '${URL_ROOT}/m/index.do' })
}
}
}.bind(this))
}
$(document).ready(function(){
//if(arr_smc_no.length > 0) ajax_child_info(0);
});

@ -1,20 +1,31 @@
<#include "/m/include/index_top.ftl">
<script src="${URL_STATIC_ROOT}/m/js/jquery.bxslider.js"></script>
<script type="text/javascript" src="${URL_STATIC_ROOT}/m/js/masonry.pkgd.min.js"></script>
<#--<script src="${URL_STATIC_ROOT}/m/js/jquery.bxslider.js"></script>-->
<link rel="stylesheet" href="${URL_STATIC_ROOT}/m/css/swiper.min.css">
<script src="${URL_STATIC_ROOT}/m/js/swiper.min.js"></script>
<link href="../css/custom.css?2" rel="stylesheet" type="text/css" >
<script src="../js/jquery.bxslider.js"></script>
<script type="text/javascript" src="../js/masonry.pkgd.min.js"></script>
<!-- <#--<script src="../js/jquery.bxslider.js"></script>--> -->
<link rel="stylesheet" href="../css/swiper.min.css">
<script src="../js/swiper.min.js"></script>
<style>
/* main_cont_camera 이미지 불러오기 */
.main_cont_camera { padding-top:50px; background: url(../img/main/main_cont_img_camera_bg01.png)no-repeat top center/18px auto; }
.main_cont_camera li { width:100%; padding-bottom:40px; text-align:center; background: url(../img/main/main_cont_img_camera_bg02.png)no-repeat bottom center/18px auto; }
.main_cont_camera li:last-child { padding-bottom:50px; background: url(../img/main/main_cont_img_camera_bg03.png)no-repeat bottom center/18px auto; }
/* .main_cont_camera { padding-top:50px; background: url(../img/main/main_cont_img_camera_bg01.png)no-repeat top center/18px auto; } */
/* .main_cont_camera li { width:100%; padding-bottom:40px; text-align:center; background: url(../img/main/main_cont_img_camera_bg02.png)no-repeat bottom center/18px auto; } */
/* .main_cont_camera li:last-child { padding-bottom:50px; background: url(../img/main/main_cont_img_camera_bg03.png)no-repeat bottom center/18px auto; } */
.main_cont_camera input { display:none; }
.main_cont_camera .img_preview { position:relative; overflow:hidden; width:180px; height:170px; margin:0 auto; background:#fff; border:5px solid #fff; border-radius:20px; box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); }
/* .main_cont_camera .img_preview { position:relative; overflow:hidden; width:180px; height:170px; margin:0 auto; background:#fff; border:5px solid #fff; border-radius:20px; box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); } */
.main_cont_camera .img_preview label { display:block; width:100%; height:auto; }
.main_cont_camera .img_preview img { position: absolute; width:100%; height:100%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
/* 퍼블리싱 수정 css */
.main_cont_camera { padding-top:50px; background: none; }
.main_cont_camera li { position:relative; width:100%; padding-bottom:200px; text-align:center; background: none; display: flex; }
.main_cont_camera li:last-child { padding-bottom:50px; background: none; }
.main_cont_camera .img_preview { position:relative; overflow:hidden; width: 70px; height: 70px; margin: 0 43px 0 20px; background:#fff; border:5px solid #fff; border-radius:20px; box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); }
.main_cont_camera .img_preview:after {
content: "";
display: block;
padding-bottom: 100%;
}
</style>
<body>
@ -69,23 +80,41 @@
<#list model['lm_child'] as item>
<li>
<div class="main_pofile_txt">
<h2><span name="child_nm">${item['name']!}</span></h2>
<p>${(item['m']?number/12)!}세 ${(item['m']?number%12)!}개월 (${item['gender_ko']!})</p>
<p>${(item['past_day'])!}일(${(item['past_day']?number/7)!}주 ${(item['past_day']?number%7)!}일) / (${item['past_month']!}개월 ${(item['past_day']?number%7)!}일)</p>
<#if item['day100'] gt 0>
<p>100일 D-${(item['day100'])!}일</p>
<#elseif item['day200'] gt 0>
<p>200일 D-${(item['day200'])!}일</p>
<#elseif item['day300'] gt 0>
<p>300일 D-${(item['day300'])!}일</p>
<#elseif item['day365'] gt 0>
<p>첫돌 D-${(item['day365'])!}일</p>
</#if>
<h2>${item['name']!} (${item['gender_ko']!})</h2>
<p>${(item['past_day'])!}일 (${(item['past_day']?number/7)!}주 ${(item['past_day']?number%7)!}일/${item['past_month']!}개월 ${(item['past_day']?number%7)!}일)</p>
<p class="d_day">
<#if item['day100'] gt 0>
<#if item['diff_d_day'] gt item['day100'] || item['diff_d_day'] lt 0>
100일 D-${(item['day100'])!}일,${item['day100date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
<#elseif item['day200'] gt 0>
<#if item['diff_d_day'] gt item['day200'] || item['diff_d_day'] lt 0>
200일 D-${(item['day200'])!}일,${item['day200date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
<#elseif item['day300'] gt 0>
<#if item['diff_d_day'] gt item['day300'] || item['diff_d_day'] lt 0>
300일 D-${(item['day300'])!}일,${item['day300date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
<#elseif item['day365'] gt 0>
<#if item['diff_d_day'] gt item['day360'] || item['diff_d_day'] lt 0>
첫돌 D-${(item['day365'])!}일,${item['day365date']!}
<#elseif item['diff_d_day'] gt 0>
${(item['d_title'])!} D-${(item['diff_d_day'])!}일,${item['d_day']!}
</#if>
</#if>
</p>
</div>
<div class="main_pofile_img">
<p><a href ="${URL_ROOT}/m/bf_family_baby/view_bf_family_baby.do?smc_no=${item['smc_no']!}" ><img src="<#if item['append_300_img_file']?exists>${URL_ROOT}/file/get_img.do?mt_file_seq=${item['append_300_img_file']}<#else>${URL_STATIC_ROOT}/m/img/main/main_profile_img02.png</#if>" alt="프로필 사진" /></a></p>
<p>
<a href ="${URL_ROOT}/m/bf_family_baby/view_bf_family_baby.do?smc_no=${item['smc_no']!}" ><img src="<#if item['append_300_img_file']?exists>${URL_ROOT}/file/get_img.do?mt_file_seq=${item['append_300_img_file']}<#else>${URL_STATIC_ROOT}/m/img/main/main_profile_img02.png</#if>" alt="프로필 사진" /></a>
</p>
</div>
</li>
</#list>
@ -99,30 +128,22 @@
<!-- main_pofile_info -->
<div class="main_pofile_info main_pofile_info01">
<div class="main_pofile_info_tit">
<span class="p_a">cm</span>
<span class="p_b">kg</span>
</div>
<!-- main_pofile_info_txt -->
<div class="main_pofile_info_txt txt01 active">
<div class="main_pofile_info_txt01"><img src="${URL_STATIC_ROOT}/m/img/main/main_pofile_info_ico01.png" alt="기린 아이콘" /></div>
<div class="main_pofile_info_txt02"><strong><#if model['rm_last_h']['height']?exists>${model['rm_last_h']['height']!}cm<#else>-</#if></strong></div>
<div class="main_pofile_info_txt02"><strong><#if model['rm_last_h']['height']?exists>${model['rm_last_h']['height']!}<#else>-</#if></strong>cm</div>
</div>
<!-- main_pofile_info_txt -->
<#if model['rm_last_w']?exists == true>
<!-- main_pofile_info_txt -->
<div class="main_pofile_info_txt txt02">
<div class="main_pofile_info_txt01"><img src="${URL_STATIC_ROOT}/m/img/main/main_pofile_info_ico01.png" alt="기린 아이콘" /></div>
<div class="main_pofile_info_txt02"><strong><#if model['rm_last_w']['weight']?exists>${model['rm_last_w']['weight']!}kg<#else>-</#if></strong></div>
</div>
<div class="main_pofile_info_txt txt02">
<div class="main_pofile_info_txt02">
<strong><#if model['rm_last_w']['weight']?exists>${model['rm_last_w']['weight']!}kg<#else>-</#if></strong></div>
</div>
</#if>
<div class="main_pofile_info_tit">
<span class="txt01 active">cm</span>
<span class="txt02">kg</span>
</div>
</div>
<!-- main_pofile_info -->
@ -130,25 +151,88 @@
<!-- main_pofile_info_txt -->
<div class="main_pofile_info_txt txt01 active">
<div class="main_pofile_info_txt01"><img src="${URL_STATIC_ROOT}/m/img/main/main_pofile_info_ico02.png" alt="영양 아이콘" /></div>
<div class="main_pofile_info_txt02"><strong>-</strong></div>
<div class="main_pofile_info_txt02">
<#if model['rm_child']['totalNutrition']?exists == true>
<strong>${model['rm_child']['totalNutrition']}</strong>점
</#if>
<#if model['rm_child']['totalNutrition']?exists == false>
<strong>-</strong>
</#if>
</div>
</div>
<!-- main_pofile_info_txt -->
<div class="main_pofile_info_txt txt02">
<div class="main_pofile_info_txt01"><img src="${URL_STATIC_ROOT}/m/img/main/main_pofile_info_ico02.png" alt="영양 아이콘" /></div>
<div class="main_pofile_info_txt02"><strong>-</strong></div>
<div class="main_pofile_info_txt02">
<#if model['rm_child']['totalFood']?exists == true>
<strong>${model['rm_child']['totalFood']}</strong>%
</#if>
<#if model['rm_child']['totalFood']?exists == false>
<strong>-</strong>
</#if>
</div>
</div>
<div class="main_pofile_info_tit">
<span class="txt01 active">영양</span>
<span class="txt02">DQI</span>
<span class="txt02">식품</span>
</div>
</div>
</div>
<!-- //main_pofile_info_wrap -->
<!-- main_cont_kinds -->
<!-- class명 active 를 넣으면 display:block 처리, 빼면 none 처리입니다. -->
<div class="main_cont_kinds active">
<div class="swiper-container">
<div class="swiper-wrapper">
<#list model['category_list'] as item>
<div class="swiper-slide">
<a href="javascript:void(0);" style="background-color:${item['color_cd']}" key="${item['val_1']!}"><span>${item['title']!}</span></a>
</div>
</#list>
<div class="swiper-slide">
<a href="${URL_ROOT}/m/member_env/setting_env_viewnm.do?return_url=setting&view_nm=view_set_record_order"><span>수정<br>설정</span></a>
</div>
</div>
</div>
</div>
<!-- //main_cont_kinds -->
<!-- main_cont_last_status -->
<div class="main_cont_last_status">
<div>
<p>마지막 식사</p>
<#if (model['lm_last_meal'])?has_content>
<span>${model['lm_last_meal']['ago']!} / ${model['lm_last_meal']['time_val']!}</span>
</#if>
<#if (model['lm_last_meal'])?has_content == false>
-
</#if>
</div>
<div>
<p>마지막 수면</p>
<#if (model['lm_last_sleep'])?has_content>
<span>${model['lm_last_sleep']['ago']!} / ${model['lm_last_sleep']['time_val']!}</span>
</#if>
<#if (model['lm_last_sleep'])?has_content == false>
-
</#if>
</div>
<div>
<p>마지막 대소변</p>
<#if (model['lm_last_bedpan'])?has_content>
<span>${model['lm_last_bedpan']['ago']!} / ${model['lm_last_bedpan']['time_val']!}</span>
</#if>
<#if (model['lm_last_bedpan'])?has_content == false>
-
</#if>
</div>
</div>
<!-- //main_cont_last_status -->
</div>
<!-- //main_pofile -->
@ -165,59 +249,56 @@
</style>
<!-- main_cont -->
<div class="main_cont">
<!-- main_cont_kinds -->
<!-- class명 active 를 넣으면 display:block 처리, 빼면 none 처리입니다. -->
<div class="main_cont_kinds active">
<div class="swiper-container">
<div class="swiper-wrapper">
<#list model['category_list'] as item>
<div class="swiper-slide">
<a href="javascript:void(0);" key="${item['val_1']!}"><span>${item['title']!}</span></a>
</div>
</#list>
<div class="swiper-slide">
<a href="${URL_ROOT}/m/member_env/setting_env_viewnm.do?return_url=setting&view_nm=view_set_record_order"><span>수정<br>설정</span></a>
</div>
</div>
</div>
</div>
<!-- //main_cont_kinds -->
<!-- 타임라인 line -->
<div class="main_cont_line"></div>
<!-- 이미지 업로드 main_cont_camera -->
<ul id="ul_photo" class="main_cont_camera">
<#assign nutirition_cd_no_title = ''>
<#assign ago = ''>
<#if (model['lm_nutrition'])?has_content>
<#list model['lm_nutrition'] as item>
<#assign nutirition_cd_no_title = ''>
<#assign ago = item['ago']>
<li name="li_img_preview" onclick="location.href='${URL_ROOT}/m/bf_daily_nutrition/view_bf_daily_nutrition.do?dn_no=${item['dn_no']}'" >
<div class="img_preview">
<#if (item['nutirition_cd_no_title'])?has_content>
<#assign nutirition_cd_no_title = item['nutirition_cd_no_title']>
<#assign memo = item['memo']!>
<#assign time_text = item['time_val']!>
</#if>
<img src="<#if item['append_300_img_file']?exists>${URL_ROOT}/file/get_img.do?mt_file_seq=${item['append_300_img_file']}<#else>${URL_STATIC_ROOT}/m/img/child/child_pic_02.png</#if>" alt="사진영역">
</div>
<div class="main_cont_circle" style="border-color: ${item['color_cd']};"></div>
<div class="main_cont_info">
<div class="info_title">
<p style="color: ${item['color_cd']};"><#if (model['lm_nutrition'])?has_content>${nutirition_cd_no_title}</#if></p>
<span class="info_time">${ago}</span>
</div>
<div class="info_amount">
<p>${time_text}</p>
</div>
<div class="info_recode" style="border-color: ${item['color_cd']};" onclick="location.href='${URL_ROOT}/m/bf_daily_nutrition/view_bf_daily_nutrition.do?dn_no=${item['dn_no']}'">
<p style="color: ${item['color_cd']};">순간의 기록</p>
<span>
${memo}<br/>
</span>
</div>
</div>
</li>
</#list>
</#if>
<li>
<div class="img_preview">
<p><label for="append_src_img_file"><img id="img_preview" src="${URL_STATIC_ROOT}/m/img/main/main_cont_img_camera.png" alt="사진영역"></label></p>
<p><label for="append_src_img_file"><img id="img_preview" src="../img/main/main_cont_img_camera.png" alt="사진영역"></label></p>
</div>
<input type="file" id="append_src_img_file" name="append_src_img_file">
</li>
</ul>
<!-- //main_cont_camera -->
<!-- main_cont_result -->
<div class="main_cont_result">
<p id="base_dt" class="txt">${model['base_dt']!}<br><span id="last_ago"><#if (model['lm_nutrition'])?has_content>${nutirition_cd_no_title}(${ago})</#if></span></p>
<p class="btn"><span name="child_nm">${model['rm_child']['name']!}</span> 의 하루</p>
</div>
<!-- //main_cont_result -->
</div>
<!-- //main_cont -->
</form>
@ -225,19 +306,24 @@
</div>
<!-- //main -->
<!-- float chatbot -->
<#if model[ 'rm_child']? has_content>
<a href="http://devops.lookylooks.ai:42110/browser_common_index.html?site_id=7973031d-157e-4140-914e-8f39059098d2&cb_id=31ef0fe4-3c2d-4d5a-b73b-76f7213b1737&ch_id=null&in=test_in_id&phone_num=${model['rm_mem']['phone_num']!}&name=${model['rm_child']['name']}&month=${(model['rm_child']['past_month'])}">
<div class="float_chatbot">
<img src="https://ccbot.hanaw.com/img/hana_icon.JPG">
</div>
</a>
<#else>
<a href="http://devops.lookylooks.ai:42110/browser_common_index.html?site_id=7973031d-157e-4140-914e-8f39059098d2&cb_id=31ef0fe4-3c2d-4d5a-b73b-76f7213b1737&ch_id=null&in=test_in_id&phone_num=${model['rm_mem']['phone_num']!}&name=null&month=null">
<div class="float_chatbot">
<img src="https://ccbot.hanaw.com/img/hana_icon.JPG">
</div>
</a>
</#if>
</div>
<!-- //wrap -->
<!-- 하단 네비 iyu_nav -->
<#include "/m/include/index_bottom_menu.ftl">
<!-- //iyu_nav -->
<script>
window.scrollTo(0,document.body.scrollHeight);
</script>
<script>
// main_pofile_slider 프로필 슬라이드
$(document).ready(function(){
@ -256,11 +342,9 @@
$('.bxslider-wrapper').css('visibility', 'visible').animate({opacity: 1});
},
onSlideAfter: function($slideElement, oldIndex, newIndex) {
$(".main_cont_kinds").hide();
//$(".#main_cont_kinds active").attr('class','main_cont_kinds');
ajax_child_info(newIndex);
// ajax_child_info(newIndex);
location.href = "${URL_ROOT}/m/index/index.do?smc_no=" + arr_smc_no[newIndex];
}
});
@ -362,7 +446,6 @@
</script>
<#--<script src="${URL_STATIC_ROOT}/m/js/vue.js"></script>-->
<script>
let not_h = '아이 키 성장 기록이 없습니다';
let not_w = '아이 체중 성장 기록이 없습니다';
@ -407,7 +490,7 @@
$('#base_dt_max_h').text(not_h)
$('#last_h').text( '-')
}
if(result.rm_last_w){
$('#base_dt_max_w').text(result.rm_last_w.base_dt_max)
$('#last_w').text(result.rm_last_w.height)
@ -462,4 +545,8 @@
});
</script>
<!-- 하단 네비 iyu_nav -->
<#include "/m/include/index_bottom_menu.ftl">
<!-- //iyu_nav -->
<#include "/m/include/index_bottom.ftl">
Loading…
Cancel
Save