|
@@ -1,58 +1,70 @@
|
|
function qiuzhu_init() {
|
|
function qiuzhu_init() {
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-function shValue(v) {
|
|
|
|
- $('#qzHS').append($('<a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">\n' +
|
|
|
|
- ' <div class="weui-media-box__bd">\n' +
|
|
|
|
- ' <div style="display: flex; flex-direction: row; justify-content: space-between;">\n' +
|
|
|
|
- ' <p class="weui-media-box__desc">业主1号</p>\n' +
|
|
|
|
- ' <p class="weui-media-box__desc">' + timestampToTime(v.timeUpdate) + '</p>\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' <div class="weui-cell ">\n' +
|
|
|
|
- ' <div class="weui-cell__bd">\n' +
|
|
|
|
- ' <textarea class="weui-textarea" rows="1" readonly >' + v.replyContent + '</textarea>\n' +
|
|
|
|
- ' <div class="weui-textarea-counter"></div>\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' </div>\n' +
|
|
|
|
- ' </a>\n<br />'));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-function timestampToTime(timestamp) {
|
|
|
|
- var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
|
|
|
|
- var Y = date.getFullYear() + '/';
|
|
|
|
- var M = ((date.getMonth() + 1) < 10) ? ('0' + (date.getMonth() + 1) + '/') : ((date.getMonth() + 1) + '/');
|
|
|
|
- var D = (date.getDate() < 10) ? ('0' + date.getDate() + ' ') : (date.getDate() + ' ');
|
|
|
|
- var h = (date.getHours() < 10) ? ('0' + date.getHours() + ':') : (date.getHours() + ':');
|
|
|
|
- var m = (date.getMinutes() < 10) ? ('0' + date.getMinutes() + ':') : (date.getMinutes() + ':');
|
|
|
|
- var s = (date.getSeconds() < 10) ? ('0' + date.getSeconds()) : (date.getSeconds());
|
|
|
|
- return Y + M + D + h + m + s;
|
|
|
|
|
|
+ analyData();
|
|
}
|
|
}
|
|
|
|
|
|
-function family_init() {
|
|
|
|
- /*$('#family').on('click',function () {
|
|
|
|
- $('#familyDisplay')[0].style.display == '';
|
|
|
|
- alert($('#familyDisplay')[0].style.display == 'none')
|
|
|
|
- if($('#familyDisplay')[0].style.display == 'none'){
|
|
|
|
- $('#notPlay').toggle();
|
|
|
|
|
|
+function analyData() {
|
|
|
|
+ $('#userHelpAnaly').empty();//清除节点
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: '/wuye/userHelpAnaly',
|
|
|
|
+ data: {queryDate: '2020-02-05'},
|
|
|
|
+ type: 'GET',
|
|
|
|
+ success: function (data) {
|
|
|
|
+ console.log(data);
|
|
|
|
+ if (data.data != null && data.data != undefined) {
|
|
|
|
+ hasData = true;
|
|
|
|
+ getHelpData(data.data);
|
|
|
|
+ } else {
|
|
|
|
|
|
- }else{
|
|
|
|
- $('#familyDisplay')[0].style.display == '';
|
|
|
|
- $('#notPlay')[0].style.display == 'none';
|
|
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error: function () {
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
- })*/
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
-function submit_back() {
|
|
|
|
- $('#back').on('click', function () {
|
|
|
|
- if ($('#notPlay')[0].style.display = 'none') {
|
|
|
|
- $('#notPlay')[0].style.display = '';
|
|
|
|
- $('#play').toggle();
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+function getHelpData(data) {
|
|
|
|
+ $('#userHelpAnaly').append($('<div class="weui-flex"> \n' +
|
|
|
|
+ ' <div class="weui-flex__item">\n' +
|
|
|
|
+ ' <div class="placeholder">今日新增</div>\n' +
|
|
|
|
+ ' <div>' + data.todayAdd + '</div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' <div class="weui-flex__item">\n' +
|
|
|
|
+ ' <div class="placeholder">今日已处理</div>\n' +
|
|
|
|
+ ' <div>' + data.todayDo + '</div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' <div class="weui-flex__item">\n' +
|
|
|
|
+ ' <div class="placeholder">今日未处理</div>\n' +
|
|
|
|
+ ' <div>' + data.todayDonot + '</div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' <div class="weui-flex"> \n' +
|
|
|
|
+ ' <div class="weui-flex__item">\n' +
|
|
|
|
+ ' <div class="placeholder">近30天新增</div>\n' +
|
|
|
|
+ ' <div>' + data.monthAdd + '</div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' <div class="weui-flex__item">\n' +
|
|
|
|
+ ' <div class="placeholder">近30天已处理</div>\n' +
|
|
|
|
+ ' <div>' + data.monthDo + '</div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' <div class="weui-flex__item">\n' +
|
|
|
|
+ ' <div class="placeholder">近30天未处理</div>\n' +
|
|
|
|
+ ' <div>' + data.monthDonot + '</div>\n' +
|
|
|
|
+ ' </div>\n' +
|
|
|
|
+ ' </div>'));
|
|
|
|
+}
|
|
|
|
|
|
- })
|
|
|
|
|
|
+//我的求助的页面展示
|
|
|
|
+function dateSelect() {
|
|
|
|
+ weui.datePicker({
|
|
|
|
+ start: 1990,
|
|
|
|
+ end: 2000,
|
|
|
|
+ defaultValue: [1991, 6, 9],
|
|
|
|
+ onChange: function (result) {
|
|
|
|
+ console.log(result);
|
|
|
|
+ },
|
|
|
|
+ onConfirm: function (result) {
|
|
|
|
+ console.log(result);
|
|
|
|
+ },
|
|
|
|
+ id: 'datePicker'
|
|
|
|
+ });
|
|
}
|
|
}
|