save_keyword.blade.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. @extends('admin/layout')
  2. @section('header')
  3. <link href="{{asset('css/plugins/chosen/chosen.css?v=1')}}" rel="stylesheet">
  4. <link href="{{asset('css/plugins/switchery/switchery.css?v=1')}}" rel="stylesheet">
  5. <link href="{{asset('js/plugins/bootstrap-select-1.13.5/css/bootstrap-select.min.css')}}" rel="stylesheet">
  6. @endsection
  7. @section('content')
  8. <body class="gray-bg">
  9. <div class="wrapper wrapper-content animated fadeInRight">
  10. <div class="row">
  11. <div class="col-sm-12">
  12. <div class="ibox float-e-margins">
  13. <div class="ibox-content">
  14. <form method="get" class="form-horizontal" id="form">
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label" for="keyword">关键词:</label>
  17. <div class="col-sm-8">
  18. <input type="text" class="form-control" id="keyword" name="keyword"
  19. value="{{$info->keyword??''}}">
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label" for="enable">行业难点分析:</label>
  24. <div class="col-sm-8">
  25. <select name="enable" id="enable" class="form-control">
  26. <option value="0"
  27. @if(!empty($info->enable) && $info->enable==0) selected @endif>启用
  28. </option>
  29. <option value="1"
  30. @if(!empty($info->enable) && $info->enable==1) selected @endif>禁用
  31. </option>
  32. </select>
  33. </div>
  34. </div>
  35. <div class="form-group" id="remarks_status" style="display: none">
  36. <label class="col-sm-2 control-label" for="remarks">不接单原因:</label>
  37. <div class="col-sm-8">
  38. <input type="text" class="form-control" id="remarks"
  39. name="remarks"
  40. value="{{$info->remarks??''}}">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-sm-2 control-label" for="website">客户网站:</label>
  45. <div class="col-sm-8">
  46. <input type="text" class="form-control" id="website"
  47. name="website"
  48. value="{{$info->website??''}}">
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="col-sm-2 control-label" for="monthly_searches">每月搜索量:</label>
  53. <div class="col-sm-8">
  54. <input type="text" class="form-control" id="monthly_searches"
  55. name="monthly_searches"
  56. value="{{$info->monthly_searches??''}}">
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="col-sm-2 control-label" for="mumber_of_search_results">搜索结果数:</label>
  61. <div class="col-sm-8">
  62. <input type="text" class="form-control" id="mumber_of_search_results"
  63. name="mumber_of_search_results"
  64. value="{{$info->mumber_of_search_results??''}}">
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <label class="col-sm-2 control-label" for="competition_index">竞争指数:</label>
  69. <div class="col-sm-8">
  70. <input type="text" class="form-control" id="competition_index"
  71. name="competition_index"
  72. value="{{$info->competition_index??''}}">
  73. </div>
  74. </div>
  75. <div class="form-group">
  76. <label class="col-sm-2 control-label" for="natural_ranking_percentage">自然排名点击占比:</label>
  77. <div class="col-sm-8">
  78. <input type="text" class="form-control" id="natural_ranking_percentage"
  79. name="natural_ranking_percentage"
  80. value="{{$info->natural_ranking_percentage??''}}">
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label class="col-sm-2 control-label" for="proportion_of_bidding">竞价点击占比:</label>
  85. <div class="col-sm-8">
  86. <input type="text" class="form-control" id="proportion_of_bidding"
  87. name="proportion_of_bidding"
  88. value="{{$info->proportion_of_bidding??''}}">
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <label class="col-sm-2 control-label" for="simultaneous_proportion">同时点击占比:</label>
  93. <div class="col-sm-8">
  94. <input type="text" class="form-control" id="simultaneous_proportion"
  95. name="simultaneous_proportion"
  96. value="{{$info->simultaneous_proportion??''}}">
  97. </div>
  98. </div>
  99. <div class="form-group">
  100. <label class="col-sm-2 control-label" for="proportion_not_clicked">未点击占比:</label>
  101. <div class="col-sm-8">
  102. <input type="text" class="form-control" id="proportion_not_clicked"
  103. name="proportion_not_clicked"
  104. value="{{$info->proportion_not_clicked??''}}">
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="col-sm-2 control-label" for="mobile_devices">移动设备占比:</label>
  109. <div class="col-sm-8">
  110. <input type="text" class="form-control" id="mobile_devices" name="mobile_devices"
  111. value="{{$info->mobile_devices??''}}">
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="col-sm-2 control-label" for="tablet_pc">平板电脑占比:</label>
  116. <div class="col-sm-8">
  117. <input type="text" class="form-control" id="tablet_pc" name="tablet_pc"
  118. value="{{$info->tablet_pc??''}}">
  119. </div>
  120. </div>
  121. <div class="form-group">
  122. <label class="col-sm-2 control-label" for="desktop_device">桌面设备占比:</label>
  123. <div class="col-sm-8">
  124. <input type="text" class="form-control" id="desktop_device" name="desktop_device"
  125. value="{{$info->desktop_device??''}}">
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="col-sm-2 control-label" for="order_conditions">接单条件:</label>
  130. <div class="col-sm-8">
  131. <input type="text" class="form-control" id="order_conditions"
  132. name="order_conditions"
  133. value="{{$info->order_conditions??''}}">
  134. </div>
  135. </div>
  136. <div class="form-group">
  137. <label class="col-sm-2 control-label" for="industry_difficulty">行业难度:</label>
  138. <div class="col-sm-8">
  139. <input type="text" class="form-control" id="industry_difficulty"
  140. name="industry_difficulty"
  141. value="{{$info->industry_difficulty??''}}">
  142. </div>
  143. </div>
  144. <div class="form-group">
  145. <label class="col-sm-2 control-label" for="package_suggestion">套餐建议:</label>
  146. <div class="col-sm-8">
  147. <input type="text" class="form-control" id="package_suggestion"
  148. name="package_suggestion"
  149. value="{{$info->package_suggestion??''}}">
  150. </div>
  151. </div>
  152. <div class="form-group">
  153. <label class="col-sm-2 control-label" for="product_main_dimension">产品主维度:</label>
  154. <div class="col-sm-8">
  155. <div id="product_main_dimension" class="text">
  156. </div>
  157. </div>
  158. </div>
  159. <div class="form-group">
  160. <label class="col-sm-2 control-label" for="product_secondary_dimension">产品次级维度:</label>
  161. <div class="col-sm-8">
  162. <div id="product_secondary_dimension" class="text">
  163. </div>
  164. </div>
  165. </div>
  166. <div class="form-group">
  167. <label class="col-sm-2 control-label" for="website_function">网站功能:</label>
  168. <div class="col-sm-8">
  169. <div id="website_function" class="text">
  170. </div>
  171. </div>
  172. </div>
  173. <div class="form-group">
  174. <label class="col-sm-2 control-label" for="seo_code_optimization">seo代码优化:</label>
  175. <div class="col-sm-8">
  176. <div id="seo_code_optimization" class="text">
  177. </div>
  178. </div>
  179. </div>
  180. <div class="form-group">
  181. <label class="col-sm-2 control-label"
  182. for="keyword_screening_suggestions">关键词筛选建议:</label>
  183. <div class="col-sm-8">
  184. <div id="keyword_screening_suggestions" class="text">
  185. </div>
  186. </div>
  187. </div>
  188. <div class="form-group">
  189. <label class="col-sm-2 control-label" for="keyword_layout_suggestions">关键词布局建议:</label>
  190. <div class="col-sm-8">
  191. <div id="keyword_layout_suggestions" class="text">
  192. </div>
  193. </div>
  194. </div>
  195. <div class="form-group">
  196. <label class="col-sm-2 control-label" for="img">图片:</label>
  197. <div class="col-sm-8">
  198. <div id="img" class="text">
  199. </div>
  200. </div>
  201. </div>
  202. <div class="form-group">
  203. <label class="col-sm-2 control-label" for="parameter_table">参数表格:</label>
  204. <div class="col-sm-8">
  205. <div id="parameter_table" class="text">
  206. </div>
  207. </div>
  208. </div>
  209. <div class="form-group">
  210. <label class="col-sm-2 control-label" for="product_copywriting">产品文案:</label>
  211. <div class="col-sm-8">
  212. <div id="product_copywriting" class="text">
  213. </div>
  214. </div>
  215. </div>
  216. <div class="form-group">
  217. <label class="col-sm-2 control-label" for="pdf_resources">PDF资源:</label>
  218. <div class="col-sm-8">
  219. <div id="pdf_resources" class="text">
  220. </div>
  221. </div>
  222. </div>
  223. <div class="form-group">
  224. <label class="col-sm-2 control-label" for="video_resources">视频资源:</label>
  225. <div class="col-sm-8">
  226. <div id="video_resources" class="text">
  227. </div>
  228. </div>
  229. </div>
  230. <div class="form-group">
  231. <label class="col-sm-2 control-label" for="external_link_assessment">外链评估:</label>
  232. <div class="col-sm-8">
  233. <div id="external_link_assessment" class="text">
  234. </div>
  235. </div>
  236. </div>
  237. <div class="form-group">
  238. <label class="col-sm-2 control-label" for="social_promotion">社交推广:</label>
  239. <div class="col-sm-8">
  240. <div id="social_promotion" class="text">
  241. </div>
  242. </div>
  243. </div>
  244. <div class="form-group">
  245. <label class="col-sm-2 control-label"
  246. for="industry_difficulties_analysis">行业难点分析:</label>
  247. <div class="col-sm-8">
  248. <div id="industry_difficulties_analysis" class="text">
  249. </div>
  250. </div>
  251. </div>
  252. <div class="form-group">
  253. <div class="col-sm-4 col-sm-offset-2">
  254. <button class="btn btn-primary" type="button"
  255. onclick="units.save({{$info->id??0}})">
  256. 保存
  257. </button>
  258. <button class="btn btn-white closeLayer" type="button">取消</button>
  259. </div>
  260. </div>
  261. </form>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. </body>
  268. @endsection
  269. @section('footer')
  270. <!-- 引入 wangEditor.min.js -->
  271. <script src="{{asset('js/plugins/wangEditor/wangEditor.min.js')}}"></script>
  272. <script>
  273. $(function () {
  274. var object = $('#enable');
  275. var windows = $('#remarks_status');
  276. if (object.val() === "1") {
  277. windows.show();
  278. }
  279. object.change(function () {
  280. if (object.val() === "1") {
  281. windows.show();
  282. }else{
  283. windows.hide();
  284. }
  285. });
  286. });
  287. var EditorWang = window.wangEditor;
  288. var product_main_dimension = new EditorWang('#product_main_dimension');
  289. product_main_dimension.config.menus = [
  290. 'head',
  291. 'bold',
  292. 'fontSize',
  293. 'fontName',
  294. 'italic',
  295. 'underline',
  296. 'strikeThrough',
  297. 'indent',
  298. 'lineHeight',
  299. 'foreColor',
  300. 'backColor',
  301. 'link',
  302. 'list',
  303. 'todo',
  304. 'justify',
  305. 'quote',
  306. 'splitLine',
  307. 'undo',
  308. 'redo'
  309. ];
  310. product_main_dimension.create();
  311. product_main_dimension.txt.html('{!!$info->product_main_dimension??''!!}');
  312. var product_secondary_dimension = new EditorWang('#product_secondary_dimension');
  313. product_secondary_dimension.config.menus = [
  314. 'head',
  315. 'bold',
  316. 'fontSize',
  317. 'fontName',
  318. 'italic',
  319. 'underline',
  320. 'strikeThrough',
  321. 'indent',
  322. 'lineHeight',
  323. 'foreColor',
  324. 'backColor',
  325. 'link',
  326. 'list',
  327. 'todo',
  328. 'justify',
  329. 'quote',
  330. 'splitLine',
  331. 'undo',
  332. 'redo'
  333. ];
  334. product_secondary_dimension.create();
  335. product_secondary_dimension.txt.html('{!! $info->product_secondary_dimension??'' !!}');
  336. var website_function = new EditorWang('#website_function');
  337. website_function.config.menus = [
  338. 'head',
  339. 'bold',
  340. 'fontSize',
  341. 'fontName',
  342. 'italic',
  343. 'underline',
  344. 'strikeThrough',
  345. 'indent',
  346. 'lineHeight',
  347. 'foreColor',
  348. 'backColor',
  349. 'link',
  350. 'list',
  351. 'todo',
  352. 'justify',
  353. 'quote',
  354. 'splitLine',
  355. 'undo',
  356. 'redo'
  357. ];
  358. website_function.create();
  359. website_function.txt.html('{!! $info->website_function??'' !!}');
  360. var seo_code_optimization = new EditorWang('#seo_code_optimization');
  361. seo_code_optimization.config.menus = [
  362. 'head',
  363. 'bold',
  364. 'fontSize',
  365. 'fontName',
  366. 'italic',
  367. 'underline',
  368. 'strikeThrough',
  369. 'indent',
  370. 'lineHeight',
  371. 'foreColor',
  372. 'backColor',
  373. 'link',
  374. 'list',
  375. 'todo',
  376. 'justify',
  377. 'quote',
  378. 'splitLine',
  379. 'undo',
  380. 'redo'
  381. ];
  382. seo_code_optimization.create();
  383. seo_code_optimization.txt.html('{!! $info->seo_code_optimization??'' !!}');
  384. var keyword_screening_suggestions = new EditorWang('#keyword_screening_suggestions');
  385. keyword_screening_suggestions.config.menus = [
  386. 'head',
  387. 'bold',
  388. 'fontSize',
  389. 'fontName',
  390. 'italic',
  391. 'underline',
  392. 'strikeThrough',
  393. 'indent',
  394. 'lineHeight',
  395. 'foreColor',
  396. 'backColor',
  397. 'link',
  398. 'list',
  399. 'todo',
  400. 'justify',
  401. 'quote',
  402. 'splitLine',
  403. 'undo',
  404. 'redo'
  405. ];
  406. keyword_screening_suggestions.create();
  407. keyword_screening_suggestions.txt.html('{!! $info->keyword_screening_suggestions??'' !!}');
  408. var keyword_layout_suggestions = new EditorWang('#keyword_layout_suggestions');
  409. keyword_layout_suggestions.config.menus = [
  410. 'head',
  411. 'bold',
  412. 'fontSize',
  413. 'fontName',
  414. 'italic',
  415. 'underline',
  416. 'strikeThrough',
  417. 'indent',
  418. 'lineHeight',
  419. 'foreColor',
  420. 'backColor',
  421. 'link',
  422. 'list',
  423. 'todo',
  424. 'justify',
  425. 'quote',
  426. 'splitLine',
  427. 'undo',
  428. 'redo'
  429. ];
  430. keyword_layout_suggestions.create();
  431. keyword_layout_suggestions.txt.html('{!! $info->keyword_layout_suggestions??'' !!}');
  432. var img = new EditorWang('#img');
  433. img.config.menus = [
  434. 'head',
  435. 'bold',
  436. 'fontSize',
  437. 'fontName',
  438. 'italic',
  439. 'underline',
  440. 'strikeThrough',
  441. 'indent',
  442. 'lineHeight',
  443. 'foreColor',
  444. 'backColor',
  445. 'link',
  446. 'list',
  447. 'todo',
  448. 'justify',
  449. 'quote',
  450. 'splitLine',
  451. 'undo',
  452. 'redo'
  453. ];
  454. img.create();
  455. img.txt.html('{!! $info->img??'' !!}');
  456. var parameter_table = new EditorWang('#parameter_table');
  457. parameter_table.config.menus = [
  458. 'head',
  459. 'bold',
  460. 'fontSize',
  461. 'fontName',
  462. 'italic',
  463. 'underline',
  464. 'strikeThrough',
  465. 'indent',
  466. 'lineHeight',
  467. 'foreColor',
  468. 'backColor',
  469. 'link',
  470. 'list',
  471. 'todo',
  472. 'justify',
  473. 'quote',
  474. 'splitLine',
  475. 'undo',
  476. 'redo'
  477. ];
  478. parameter_table.create();
  479. parameter_table.txt.html('{!! $info->parameter_table??'' !!}');
  480. var product_copywriting = new EditorWang('#product_copywriting');
  481. product_copywriting.config.menus = [
  482. 'head',
  483. 'bold',
  484. 'fontSize',
  485. 'fontName',
  486. 'italic',
  487. 'underline',
  488. 'strikeThrough',
  489. 'indent',
  490. 'lineHeight',
  491. 'foreColor',
  492. 'backColor',
  493. 'link',
  494. 'list',
  495. 'todo',
  496. 'justify',
  497. 'quote',
  498. 'splitLine',
  499. 'undo',
  500. 'redo'
  501. ];
  502. product_copywriting.create();
  503. product_copywriting.txt.html('{!! $info->product_copywriting??'' !!}');
  504. var pdf_resources = new EditorWang('#pdf_resources');
  505. pdf_resources.config.menus = [
  506. 'head',
  507. 'bold',
  508. 'fontSize',
  509. 'fontName',
  510. 'italic',
  511. 'underline',
  512. 'strikeThrough',
  513. 'indent',
  514. 'lineHeight',
  515. 'foreColor',
  516. 'backColor',
  517. 'link',
  518. 'list',
  519. 'todo',
  520. 'justify',
  521. 'quote',
  522. 'splitLine',
  523. 'undo',
  524. 'redo'
  525. ];
  526. pdf_resources.create();
  527. pdf_resources.txt.html('{!! $info->pdf_resources??'' !!}');
  528. var video_resources = new EditorWang('#video_resources');
  529. video_resources.config.menus = [
  530. 'head',
  531. 'bold',
  532. 'fontSize',
  533. 'fontName',
  534. 'italic',
  535. 'underline',
  536. 'strikeThrough',
  537. 'indent',
  538. 'lineHeight',
  539. 'foreColor',
  540. 'backColor',
  541. 'link',
  542. 'list',
  543. 'todo',
  544. 'justify',
  545. 'quote',
  546. 'splitLine',
  547. 'undo',
  548. 'redo'
  549. ];
  550. video_resources.create();
  551. video_resources.txt.html('{!! $info->video_resources??'' !!}');
  552. var external_link_assessment = new EditorWang('#external_link_assessment');
  553. external_link_assessment.config.menus = [
  554. 'head',
  555. 'bold',
  556. 'fontSize',
  557. 'fontName',
  558. 'italic',
  559. 'underline',
  560. 'strikeThrough',
  561. 'indent',
  562. 'lineHeight',
  563. 'foreColor',
  564. 'backColor',
  565. 'link',
  566. 'list',
  567. 'todo',
  568. 'justify',
  569. 'quote',
  570. 'splitLine',
  571. 'undo',
  572. 'redo'
  573. ];
  574. external_link_assessment.create();
  575. external_link_assessment.txt.html('{!! $info->external_link_assessment??'' !!}');
  576. var social_promotion = new EditorWang('#social_promotion');
  577. social_promotion.config.menus = [
  578. 'head',
  579. 'bold',
  580. 'fontSize',
  581. 'fontName',
  582. 'italic',
  583. 'underline',
  584. 'strikeThrough',
  585. 'indent',
  586. 'lineHeight',
  587. 'foreColor',
  588. 'backColor',
  589. 'link',
  590. 'list',
  591. 'todo',
  592. 'justify',
  593. 'quote',
  594. 'splitLine',
  595. 'undo',
  596. 'redo'
  597. ];
  598. social_promotion.create();
  599. social_promotion.txt.html('{!! $info->social_promotion??'' !!}');
  600. var industry_difficulties_analysis = new EditorWang('#industry_difficulties_analysis');
  601. industry_difficulties_analysis.config.menus = [
  602. 'head',
  603. 'bold',
  604. 'fontSize',
  605. 'fontName',
  606. 'italic',
  607. 'underline',
  608. 'strikeThrough',
  609. 'indent',
  610. 'lineHeight',
  611. 'foreColor',
  612. 'backColor',
  613. 'link',
  614. 'list',
  615. 'todo',
  616. 'justify',
  617. 'quote',
  618. 'splitLine',
  619. 'undo',
  620. 'redo'
  621. ];
  622. industry_difficulties_analysis.create();
  623. industry_difficulties_analysis.txt.html('{!! $info->industry_difficulties_analysis??'' !!}');
  624. var units = {
  625. save: function (id) {
  626. var url = '/admin/googleTrends/keywordSave/' + id;
  627. var data = tips.getFormValues('#form');
  628. data.product_main_dimension = product_main_dimension.txt.html();
  629. data.product_secondary_dimension = product_secondary_dimension.txt.html();
  630. data.website_function = website_function.txt.html();
  631. data.seo_code_optimization = seo_code_optimization.txt.html();
  632. data.keyword_screening_suggestions = keyword_screening_suggestions.txt.html();
  633. data.keyword_layout_suggestions = keyword_layout_suggestions.txt.html();
  634. data.img = img.txt.html();
  635. data.parameter_table = parameter_table.txt.html();
  636. data.product_copywriting = product_copywriting.txt.html();
  637. data.pdf_resources = pdf_resources.txt.html();
  638. data.video_resources = video_resources.txt.html();
  639. data.external_link_assessment = external_link_assessment.txt.html();
  640. data.social_promotion = social_promotion.txt.html();
  641. data.industry_difficulties_analysis = industry_difficulties_analysis.txt.html();
  642. var ajaxConfig = {
  643. url: url,
  644. type: 'post',
  645. data: data,
  646. success: function (result) {
  647. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  648. tips.closeParentLayer();
  649. window.parent.tips.tableRefresh('#table');
  650. });
  651. }
  652. };
  653. tips.ajax(ajaxConfig);
  654. }
  655. };
  656. </script>
  657. @endsection