diff --git a/css/heathspecial.css b/css/heathspecial.css index e125efde0e62c5983283eb925d0cd74659a74153..4146bf521f03639dbce26926625a00d2e5d62f3b 100644 --- a/css/heathspecial.css +++ b/css/heathspecial.css @@ -9,7 +9,7 @@ body{background-color: #EBEFF3;} width: 100%; height: 125px; border-radius: 10px; - background-color: #fff; + background-color: #EBEFF3; margin-bottom: 20px; } .special-banner{ diff --git a/html/collections.html b/html/collections.html index 3b85cf962dc9dcab3b80115ababfc3bde7d56780..94de97aa830f002a09da10f6562c231ab3564f92 100644 --- a/html/collections.html +++ b/html/collections.html @@ -32,7 +32,7 @@ @@ -97,14 +97,15 @@ function userData (obj){ + $('#list1').empty(); mui.ajax({ header:{token:token}, type:'post', url:ip+'/collection/pageQueryMyCollectionByCreateUserAndType', data:obj, success:function(res){ + if(res.code == 200){ - var li='' if(res.data.list.length > 0 ){ mui.each(res.data.list,function(index,item){ @@ -113,7 +114,7 @@ ''+ ''+ ''+ - ''+ + ''+ '
'+item.title+'

'+item.subTitle+'

'+ '
'+ @@ -155,6 +156,7 @@ mui('header').on('tap','.edit',function(){ var _type=this.getAttribute('data-type'); + console.log(_type) if(_type == '0'){ $(this).html('取消') this.setAttribute("data-type", "1"); @@ -194,6 +196,31 @@ } }) + //删除 + mui("nav").on('tap','#del',function(){ + ids=(getVals()) + if(ids){ + $.ajax({ + type:'post', + data:{dataIds:JSON.stringify(ids),username:username,dataType:1,status:0}, + url:ip+'/collection/addOrCancelCollectionByUsernameEtc', + success:function(res){ + if(res.code == 200){ + //重新渲染列表 + userData (searchObj) + + }else{ + mui.toast('操作失败'); + } + }, + error:function(){ + mui.toast('系统错误'); + } + }); + } + }) + + function getVals() { var res = getCheckBoxRes('rds'); diff --git a/html/collections2.html b/html/collections2.html index d104ff665097d39c241caa9817fc12b3893b0f01..cb5888851450e58c8e95c86367ae593668b18643 100644 --- a/html/collections2.html +++ b/html/collections2.html @@ -39,7 +39,7 @@ @@ -111,6 +111,7 @@ },500) } function userData (obj){ + $('#list2').empty(); mui.ajax({ header:{'token':token}, type:'post', @@ -225,7 +226,31 @@ }); } }) - + mui("nav").on('tap','#del',function(){ + ids=(getVals()) + console.log(ids) + if(ids){ + $.ajax({ + type:'post', + data:{dataIds:JSON.stringify(ids),username:username,dataType:3,status:0}, + url:ip+'/collection/addOrCancelCollectionByUsernameEtc', + success:function(res){ + if(res.code == 200){ + //重新渲染列表 + userData (searchObj) + $('.collect-btn').hide(); + $('.edit').html('编辑'); + }else{ + mui.toast('操作失败'); + } + }, + error:function(){ + mui.toast('系统错误'); + } + }); + } + }) + function getVals() { var res = getCheckBoxRes('rds'); diff --git a/html/detail1.html b/html/detail1.html index 0abe3e3038364adb683c5a8ce2bdb1d6923752cc..0d9d3ee261f35a358f2bb174e37e5caeb342463c 100644 --- a/html/detail1.html +++ b/html/detail1.html @@ -10,6 +10,15 @@ +
@@ -19,6 +28,10 @@
+ 附件: +
+ +
收藏
@@ -29,6 +42,9 @@ diff --git a/html/heathspecial.html b/html/heathspecial.html index 09c08671d8ba19127ef15a441a4c59767fa569f6..6972fa5b70322c987661902e76eb96f458df94e6 100644 --- a/html/heathspecial.html +++ b/html/heathspecial.html @@ -1,111 +1,113 @@ - - - - - - - - - - - - - -
- -

健康专题

-
-
-
-
- -
- -
-
- - - - - - + + + + + + + + + + + + + + +
+ +

健康专题

+
+
+
+
+ +
+
+ + + + + + diff --git a/html/heathspecial_list.html b/html/heathspecial_list.html index b46a533a6461ede944e8264e8d86718cc75fa6d3..70f51710b5b4a4ad3bfe5621fa735ffbb61f644d 100644 --- a/html/heathspecial_list.html +++ b/html/heathspecial_list.html @@ -75,7 +75,7 @@ url:ip+'/article/findAllByBelongColumn', data:obj, success:function(res){ - console.log(JSON.stringify(res)) + console.log(res) if(res.code == 200){ $('.special-banner').css('background-image','url("'+res.headImgPath+'")') $('.mui-title').html(res.title) diff --git a/html/home.html b/html/home.html index d919cf0648fa7df25dcc3b6fa8e0641746f32bfd..caf3a2440f5a2fca13fec6f0eca169b3e76e76ba 100644 --- a/html/home.html +++ b/html/home.html @@ -174,7 +174,8 @@ return; }else{ - tpl1 +='
'+item.title+'
' + var path="'"+item.mainPath+"'" + tpl1 +='
'+item.title+'
' } }); } diff --git a/html/login.html b/html/login.html index 98627d69316b3b366a408227b1ed775bfa5fc90f..4925063bf77f7ff9394d3c1d879acce2260db746 100644 --- a/html/login.html +++ b/html/login.html @@ -19,7 +19,7 @@
- +
diff --git a/html/message.html b/html/message.html index 4d17a17bf43840db01dd7ade733156aba1293b17..4674231d4c39441740369ef3bc801cfd4ded49fb 100644 --- a/html/message.html +++ b/html/message.html @@ -47,7 +47,7 @@ id:4, size:10,//请求条数 page:1,//当前页码 - memberId:1 + memberId:memberId } var isOver = false; //是否加载完 mui('#refreshContainer').pullRefresh({ diff --git a/html/myask.html b/html/myask.html index d6aeb872d9391bcef0d5e2f5d6bb00c071d4ce19..dbf2d8c0cd1dbe67cb77547532c8ed2afbd89472 100644 --- a/html/myask.html +++ b/html/myask.html @@ -49,7 +49,11 @@ username:username,//调试用 memberId:memberId, } - + //点击跳转 + var back = document.getElementById('back'); + + var list1 = document.getElementById('list1'); + let isOver = false; //是否加载完 mui('#refreshContainer').pullRefresh({ up: { @@ -60,6 +64,7 @@ callback: userPullupRefresh } }); + function userPullupRefresh() { setTimeout(function(){ mui('#refreshContainer').pullRefresh().endPullupToRefresh((isOver)); //参数为true代表没有更多数据了。 @@ -71,11 +76,10 @@ mui.ajax({ header:{'token':token}, type:'post', - url:ip+'/question/getQuestionByCreateUser', + url:ip+'/faqQuestion/getQuestionByCreateUser', data:obj, success:function(res){ if(res.code == 200){ - var li='' mui.each(res.data.list,function(index,item){ li +='
  • '+ diff --git a/html/myask_detail.html b/html/myask_detail.html index e574de4a2d41ba87dca65e3ca1698864d774837e..f6bc91e41eee17eb519853c52a9e86961f7ac5e9 100644 --- a/html/myask_detail.html +++ b/html/myask_detail.html @@ -52,7 +52,7 @@ $.ajax({ header:{'token':token}, type:'post', - url:ip+'/question/getQuestionById', + url:ip+'/faqQuestion/getQuestionById', data:searchObj, success:function(res){ if(res.code == 200){ @@ -64,12 +64,22 @@ var div='' $('#num').html(data.length) $.each(data,function(index,item){ + var name='' + var unit='' + var dutyTitle='' + var photoPath='' + if(item.doctorUser){ + name=item.doctorUser.name; + unit=item.doctorUser.unit; + dutyTitle=item.doctorUser.dutyTitle; + photoPath=item.doctorUser.getPhoto(); + } div +='
    '+ '
    '+ - ''+ + ''+ '
    '+ - '

    '+item.doctorUser.name+'

    '+ - '

    '+item.doctorUser.unit+'-'+item.doctorUser.dutyTitle+'

    '+ + '

    '+name+'

    '+ + '

    '+unit+'-'+dutyTitle+'

    '+ '
    '+ '
    '+ '
    '+ diff --git a/html/test_evaluating.html b/html/test_evaluating.html index 553ac3d2bf53d8dcb76527702e576bf0c460de1c..e2f786c945eded4c0a0603af6e6a83d065610551 100644 --- a/html/test_evaluating.html +++ b/html/test_evaluating.html @@ -42,9 +42,6 @@ let token=plus.storage.getItem('token'); let username=plus.storage.getItem('username'); let memberId=plus.storage.getItem('memberId'); - console.log(11111111111) - console.log(memberId) - console.log(username) mui("header").on('tap','#back',function(){ mui.back();