task_detail_for_site.blade.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/chosen/chosen.css')}}" rel="stylesheet">
  4. {{--<link href="{{asset('css/plugins/switchery/switchery.css')}}" rel="stylesheet">--}}
  5. <link href="{{asset('css/plugins/iCheck/custom.css')}}" rel="stylesheet">
  6. <style>
  7. .textAlignLeft {
  8. text-align: left !important;
  9. font-weight: normal;
  10. }
  11. .demo {
  12. text-align: center;
  13. /*position: fixed;*/
  14. }
  15. body {
  16. position: relative;
  17. }
  18. .ibox-title {
  19. background: #f3f3f4;
  20. }
  21. .ibox-title.ons {
  22. width: 100%;
  23. position: fixed;
  24. right: 0px;
  25. top: 0;
  26. z-index: 2000;
  27. padding: 20px 20px 0;
  28. }
  29. .ibox-title .boxss {
  30. width: 100%;
  31. }
  32. </style>
  33. @endsection
  34. @section('content')
  35. <body class="gray-bg">
  36. <div class="row">
  37. <div class="col-sm-12" style="height: 64px;">
  38. <div class="ibox-title demo" id="ibox-title-boxs" style="padding-bottom: 2px;">
  39. <div class="boxss">
  40. @notCustomer
  41. @if(($data->status??null)==3) {{--待审核 --}}
  42. <button class="btn btn-success" type="button" onclick="units.pass()">审核通过</button>
  43. <button class="btn btn-info" type="button" onclick="units.doScore()">打分</button>
  44. <button class="btn btn-warning" type="button" onclick="units.passFail()">审核失败</button>
  45. <button class="btn btn-info" type="button" onclick="units.check404()">404检查</button>
  46. {{--<label><input type="checkbox" onclick="units.chkToggle(this)" class="i-checks"--}}
  47. {{--id="showCHkToggle">演示地址全选反选</label>--}}
  48. &nbsp;
  49. <label><input type="checkbox" class="i-checks" id="showCHkToggle">演示地址全选反选</label>
  50. <button class="btn btn-success" type="button" onclick="units.urlPass()">链接审核通过</button>
  51. <button class="btn btn-warning" type="button" onclick="units.urlPassFail()">链接审核失败</button>
  52. @endif
  53. <button class="btn btn-primary" type="button" onclick="units.openUrl()">打开链接</button>
  54. @endNotCustomer
  55. <button class="btn btn-default closeLayer" type="button">关闭页面</button>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="wrapper wrapper-content animated fadeInRight" style="padding-top: 0px;">
  61. <div class="row">
  62. <div class="col-sm-12">
  63. <div class="ibox float-e-margins" style="padding-top: 0;margin-top: 0;">
  64. <div class="ibox-content">
  65. <form method="get" class="form-horizontal" id="form">
  66. <div class="form-group">
  67. <label class="col-sm-2 control-label">标题:</label>
  68. <label class="col-sm-10 control-label textAlignLeft">{{$data->title??''}}</label>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-sm-2 control-label">兼职人员:</label>
  72. <label
  73. class="col-sm-10 control-label textAlignLeft">{{$data->worker->username??''}}</label>
  74. </div>
  75. <div class="form-group">
  76. <label class="col-sm-2 control-label">站点名称:</label>
  77. <label
  78. class="col-sm-10 control-label textAlignLeft">{{$data->site->cn_title??''}}</label>
  79. </div>
  80. <div class="form-group">
  81. <label class="col-sm-2 control-label">状态:</label>
  82. <label class="col-sm-10 control-label textAlignLeft">{{$data->status_text}}</label>
  83. </div>
  84. <div class="form-group">
  85. <label class="col-sm-2 control-label">需求:</label>
  86. <div class="col-sm-10 textAlignLeft">
  87. {!! $data->demand??'' !!}
  88. </div>
  89. </div>
  90. @foreach($data->links as $link)
  91. <div class="hr-line-dashed"></div>
  92. <div class="form-group">
  93. <label class="col-sm-2 control-label">外链库地址:</label>
  94. <label class="col-sm-10 control-label textAlignLeft">
  95. {{$link->url??''}}
  96. </label>
  97. </div>
  98. <div class="form-group">
  99. <label class="col-sm-2 control-label">用户名:</label>
  100. <label class="col-sm-10 control-label textAlignLeft">
  101. {{$link->pivot->username??''}}
  102. </label>
  103. </div>
  104. <div class="form-group">
  105. <label class="col-sm-2 control-label">密码:</label>
  106. <label class="col-sm-10 control-label textAlignLeft">
  107. {{$link->pivot->password??''}}
  108. </label>
  109. </div>
  110. <div class="form-group">
  111. <label class="col-sm-2 control-label">邮箱:</label>
  112. <label class="col-sm-10 control-label textAlignLeft">
  113. {{$link->pivot->email??''}}
  114. </label>
  115. </div>
  116. <div class="form-group">
  117. <label class="col-sm-2 control-label">profile演示地址:</label>
  118. <label class="col-sm-10 control-label textAlignLeft">
  119. {{--<input type="checkbox" class="i-checks">--}}
  120. {{$link->pivot->url??''}}
  121. </label>
  122. </div>
  123. <div class="form-group">
  124. <label class="col-sm-2 control-label">备注:</label>
  125. <label class="col-sm-10 control-label textAlignLeft">
  126. {{$link->pivot->remark??''}}
  127. </label>
  128. </div>
  129. <div class="form-group">
  130. <label class="col-sm-2 control-label">外链备注:</label>
  131. <label class="col-sm-10 control-label textAlignLeft">
  132. {{$link->remark??''}}
  133. </label>
  134. </div>
  135. @php $showUrls =$idMapUrls[$link->pivot->id]??[]; @endphp
  136. <div class="url-check">
  137. @foreach($showUrls as $key=>$item)
  138. <div class="form-group">
  139. @if($key==0)
  140. <label class="col-sm-2 control-label" for="url">
  141. <input type="checkbox" class="i-checks" name="localToggle">
  142. 演示地址:
  143. </label>
  144. @endif
  145. <div
  146. class="col-sm-10 control-label textAlignLeft @if($key!=0) col-sm-offset-2 @endif">
  147. <input type="checkbox" name="show_url" value="{{$item['id']}}"
  148. class="i-checks" data-href="{{$item['url']??''}}">
  149. {{--<span>网址:{{$item['url']??''}}</span>--}}
  150. <span>网址:<input type="text" value="{{$item['url']??''}}"
  151. class="form-control"
  152. style="width:320px;display: inline-block"> <button
  153. class="btn btn-info" type="button"
  154. onclick='units.urlSave("{{$item['id']}}",this)'>保存</button> </span>
  155. <span
  156. style="margin-left: 15px;font-weight: bold">网址状态:
  157. {{\App\Http\Models\LinkTaskUrl::VALID_STATUS_TITLE[$item['valid_status']]??''}}
  158. </span>
  159. <span style="margin-left: 5px;font-weight: bold">
  160. 审核状态:
  161. @if(($item['status']??'')==4) {{--未通过--}}
  162. <b style="color: red">{{\App\Http\Models\LinkTaskUrl::STATUS_TITLE[$item['status']]??''}}</b>
  163. @elseif(($item['status']??'')==5) {{--已通过--}}
  164. <b style="color: #2A94E0">{{\App\Http\Models\LinkTaskUrl::STATUS_TITLE[$item['status']]??''}}</b>
  165. @else
  166. <b>{{\App\Http\Models\LinkTaskUrl::STATUS_TITLE[$item['status']]??''}}</b>
  167. @endif
  168. </span>
  169. @if($item['status']==4)
  170. <span>审核原因:{{$item['audit_reason']}}</span>@endif
  171. </div>
  172. </div>
  173. @endforeach
  174. </div>
  175. @endforeach
  176. <div class="form-group">
  177. <div class="col-sm-4 col-sm-offset-2">
  178. @if(($data->status??null)==3)
  179. <button class="btn btn-primary" type="button"
  180. onclick="units.save({{$data->id??0}})">
  181. 保存
  182. </button>
  183. @endif
  184. <button class="btn btn-white closeLayer" type="button">取消</button>
  185. </div>
  186. </div>
  187. </form>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </body>
  194. <div class="ibox-content" id="no-pass" style="display: none">
  195. <form class="form-horizontal">
  196. <div class="form-group">
  197. <div class="col-sm-12">
  198. <select class="form-control" onchange="units.fillReason(this)">
  199. <option value="">请选择</option>
  200. <option value="非常满意">非常满意</option>
  201. <option value="满意">满意</option>
  202. <option value="不满意">不满意</option>
  203. </select>
  204. </div>
  205. </div>
  206. <div class="form-group">
  207. <div class="col-sm-12">
  208. <textarea class="form-control" style="height: 200px" title=""></textarea>
  209. </div>
  210. </div>
  211. </form>
  212. </div>
  213. <div class="ibox-content" id="scoreDiv" style="display: none">
  214. <table class="table">
  215. <thead>
  216. <tr>
  217. <td>考核指标12</td>
  218. <td>分数</td>
  219. <td>操作</td>
  220. </tr>
  221. </thead>
  222. <tbody>
  223. <tr>
  224. <td>头像是否处理</td>
  225. <td data-max="3">{{$taskScore->avatar??3}}</td>
  226. <td>
  227. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  228. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  229. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,3)">-3</button>
  230. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  231. class="glyphicon glyphicon-repeat"></span></button>
  232. </td>
  233. </tr>
  234. <tr>
  235. <td>用户名是否用客户域名</td>
  236. <td data-max="2">{{$taskScore->custom_domain??2}}</td>
  237. <td>
  238. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  239. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  240. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  241. class="glyphicon glyphicon-repeat"></span></button>
  242. </td>
  243. </tr>
  244. <tr>
  245. <td>是否填写客户公开联系方式</td>
  246. <td data-max="2">{{$taskScore->custom_link??2}}</td>
  247. <td>
  248. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  249. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  250. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  251. class="glyphicon glyphicon-repeat"></span></button>
  252. </td>
  253. </tr>
  254. <tr>
  255. <td>简介是否上传完整</td>
  256. <td data-max="2">{{$taskScore->intro??2}}</td>
  257. <td>
  258. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  259. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  260. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  261. class="glyphicon glyphicon-repeat"></span></button>
  262. </td>
  263. </tr>
  264. <tr>
  265. <td>锚文本正确率</td>
  266. <td data-max="8">{{$taskScore->anchor??8}}</td>
  267. <td>
  268. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  269. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  270. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,3)">-3</button>
  271. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  272. class="glyphicon glyphicon-repeat"></span></button>
  273. </td>
  274. </tr>
  275. <tr>
  276. <td>官网链接是否填写</td>
  277. <td data-max="4">{{$taskScore->official_website??4}}</td>
  278. <td>
  279. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  280. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  281. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,3)">-3</button>
  282. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  283. class="glyphicon glyphicon-repeat"></span></button>
  284. </td>
  285. </tr>
  286. <tr>
  287. <td>产品图片是否上传,是否清晰</td>
  288. <td data-max="4">{{$taskScore->product_img??4}}</td>
  289. <td>
  290. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  291. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  292. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,3)">-3</button>
  293. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  294. class="glyphicon glyphicon-repeat"></span></button>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td>备注是否有按要求填写</td>
  299. <td data-max="2">{{$taskScore->note??2}}</td>
  300. <td>
  301. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  302. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  303. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  304. class="glyphicon glyphicon-repeat"></span></button>
  305. </td>
  306. </tr>
  307. <tr>
  308. <td>除预发布以外产品演示地址是否正确</td>
  309. <td data-max="3">{{$taskScore->show_url??3}}</td>
  310. <td>
  311. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,1)">-1</button>
  312. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,2)">-2</button>
  313. <button type="button" class="btn btn-warning" onclick="units.cutScore(this,3)">-3</button>
  314. <button type="button" class="btn btn-success" onclick="units.resetScore(this)"><span
  315. class="glyphicon glyphicon-repeat"></span></button>
  316. </td>
  317. </tr>
  318. </tbody>
  319. <tfoot>
  320. <tr>
  321. <td colspan="3" style="text-align: center"><h3>{{$taskScore->total??30}}</h3></td>
  322. </tr>
  323. </tfoot>
  324. </table>
  325. </div>
  326. @endsection
  327. @section('footer')
  328. <script src="{{asset('js/plugins/iCheck/icheck.min.js')}}"></script>
  329. <script>
  330. $(function () {
  331. $(".i-checks").iCheck({checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green"});
  332. });
  333. $("#showCHkToggle").on('ifChecked', function (event) {
  334. $("[name=show_url]").iCheck('check');
  335. }).on('ifUnchecked', function () {
  336. $("[name=show_url]").iCheck('uncheck');
  337. });
  338. //演示地址 局部全选反选
  339. $("[name=localToggle]").on('ifChecked', function (event) {
  340. $(this).parentsUntil(".url-check").parent().iCheck('check');
  341. }).on('ifUnchecked', function () {
  342. $(this).parentsUntil(".url-check").parent().find("[name=show_url]").iCheck('uncheck');
  343. });
  344. var units = {
  345. urlSave: function (urlId, _this) {
  346. var urlVal = $(_this).prev().val();
  347. console.log(urlId);
  348. if (urlVal == "") {
  349. layer.alert("地址不能为空", {icon: 5});
  350. return;
  351. }
  352. var ajaxConfig = {
  353. url: '/admin/link/url/' + urlId,
  354. type: 'put',
  355. data: {url: urlVal},
  356. success: function (result) {
  357. layer.msg(result.message, {icon: 6, time: 750})
  358. }
  359. };
  360. tips.ajax(ajaxConfig);
  361. },
  362. getCheckBoxUrl: function () {
  363. var data = [];
  364. $("[name=show_url]:checked").each(function () {
  365. data.push($(this).data('href'));
  366. });
  367. return data;
  368. },
  369. getCheckBox: function () {
  370. var data = [];
  371. $("[name=show_url]:checked").each(function () {
  372. data.push($(this).val());
  373. });
  374. return data;
  375. },
  376. check404: function () {
  377. var url = '/admin/link/check404/' + "{{$data->id??''}}";
  378. var ajaxConfig = {
  379. url: url,
  380. type: 'get',
  381. success: function (result) {
  382. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  383. window.location.reload();
  384. });
  385. }
  386. };
  387. tips.ajax(ajaxConfig);
  388. },
  389. openUrl: function () {
  390. var urlList = units.getCheckBoxUrl();
  391. $.each(urlList, function (inx, val) {
  392. if (val.indexOf('http') === -1) {
  393. window.open('http://' + val);
  394. } else {
  395. window.open(val);
  396. }
  397. });
  398. },
  399. urlPass: function () {
  400. var chk = units.getCheckBox();
  401. if (chk.length === 0) {
  402. layer.alert('请先选择您所要操作的对象', {icon: 0});
  403. return;
  404. }
  405. layer.confirm('您确定要审核通过吗?', {icon: 3, title: '审核操作'}, function () {
  406. var ajaxConfig = {
  407. url: '/admin/link/task/url-pass',
  408. type: 'put',
  409. data: {urlIds: chk},
  410. success: function (result) {
  411. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  412. window.location.reload();
  413. });
  414. }
  415. };
  416. tips.ajax(ajaxConfig);
  417. });
  418. },
  419. doScore: function () {
  420. var inx = layer.open({
  421. type: 1,
  422. content: $('#scoreDiv'),
  423. title: '打分',
  424. area: ['500px', '650px'],
  425. btn: ['确认', '取消'],
  426. yes: function (index, layero) {
  427. var total = 0, tempVal, data = {};
  428. var inxMap = ['avatar', 'custom_domain', 'custom_link', 'intro', 'anchor', 'official_website', 'product_img', 'note', 'show_url'];
  429. $(layero).find("tbody td:nth-child(2)").each(function (inx, item) {
  430. tempVal = parseInt($(item).text());
  431. total += tempVal;
  432. data[inxMap[inx]] = tempVal;
  433. });
  434. data.total = total;
  435. var ajaxConfig = {
  436. url: '/admin/link/tasks/score/{{$data->id}}',
  437. type: 'post',
  438. data: data,
  439. success: function (result) {
  440. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  441. layer.close(inx);
  442. });
  443. }
  444. };
  445. tips.ajax(ajaxConfig);
  446. }
  447. });
  448. },
  449. countTotalScore: function (_this) {
  450. var total = 0;
  451. var tBodyObj = $(_this).parent().parent().parent();
  452. tBodyObj.find("td:nth-child(2)").each(function (inx, item) {
  453. total += parseInt($(item).text());
  454. });
  455. tBodyObj.next().find("h3").text(total);
  456. },
  457. cutScore: function (_this, val) {
  458. var scoreObj = $(_this).parent().prev();
  459. var score = scoreObj.text();
  460. if (score > 0) {
  461. var result = score - val;
  462. scoreObj.text(result > 0 ? result : 0);
  463. units.countTotalScore(_this);
  464. }
  465. },
  466. resetScore: function (_this) {
  467. var scoreObj = $(_this).parent().prev();
  468. var maxScore = scoreObj.data('max');
  469. scoreObj.text(maxScore);
  470. units.countTotalScore(_this);
  471. },
  472. pass: function () {
  473. layer.confirm('您确定要审核通过吗?', {icon: 3, title: '审核操作'}, function () {
  474. var ajaxConfig = {
  475. url: '/admin/link/tasks/pass',
  476. type: 'put',
  477. data: {taskId: "{{$data->id??''}}"},
  478. success: function (result) {
  479. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  480. parent.window.tips.tableRefresh('#table');
  481. tips.closeParentLayer();
  482. });
  483. }
  484. };
  485. tips.ajax(ajaxConfig);
  486. });
  487. },
  488. passFail: function () {
  489. layer.open({
  490. type: 1,
  491. content: $('#no-pass'),
  492. title: '审核操作',
  493. area: ['400px', '400px'],
  494. btn: ['确认', '取消'],
  495. yes: function (index, layero) {
  496. var fail_reason = $(layero).find("textarea").val();
  497. var ajaxConfig = {
  498. url: '/admin/link/tasks/pass-fail',
  499. type: 'put',
  500. data: {taskId: "{{$data->id??''}}", audit_reason: fail_reason, status: status},
  501. success: function (result) {
  502. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  503. parent.window.tips.tableRefresh('#table');
  504. layer.close(index);
  505. });
  506. }
  507. };
  508. tips.ajax(ajaxConfig);
  509. }
  510. });
  511. },
  512. urlPassFail: function () {
  513. var chk = units.getCheckBox();
  514. if (chk.length === 0) {
  515. layer.alert('请先选择您所要操作的对象', {icon: 0});
  516. return;
  517. }
  518. layer.open({
  519. type: 1,
  520. content: $('#no-pass'),
  521. title: '审核操作',
  522. area: ['400px', '400px'],
  523. btn: ['确认', '取消'],
  524. yes: function (index, layero) {
  525. var fail_reason = $(layero).find("textarea").val();
  526. var ajaxConfig = {
  527. url: '/admin/link/task/url-pass-fail',
  528. type: 'put',
  529. data: {urlIds: chk, audit_reason: fail_reason},
  530. success: function (result) {
  531. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  532. // parent.window.tips.tableRefresh('#table');
  533. layer.close(index);
  534. window.location.reload();
  535. });
  536. }
  537. };
  538. tips.ajax(ajaxConfig);
  539. }
  540. });
  541. },
  542. release: function () {
  543. layer.confirm('您确定要释放该任务吗?', {icon: 3, title: '释放任务'}, function () {
  544. var url = '/admin/link/task/' + "{{$data->id??''}}" + '/release';
  545. var ajaxConfig = {
  546. url: url,
  547. type: 'put',
  548. success: function (result) {
  549. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  550. });
  551. }
  552. };
  553. tips.ajax(ajaxConfig);
  554. });
  555. },
  556. fillReason: function (_this) {
  557. $(_this).parent().parent().next().find("textarea").val($(_this).val())
  558. }
  559. };
  560. $(window).scrollTop(0);
  561. $(window).scroll(function () {
  562. var scrollHeight = 160;
  563. if ($(window).scrollTop() > scrollHeight) {
  564. $("#ibox-title-boxs").addClass("ons");
  565. } else {
  566. $("#ibox-title-boxs").removeClass("ons");
  567. }
  568. });
  569. </script>
  570. @endsection