overview.blade.php 159 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297
  1. @extends('admin/site/side_layout')
  2. @section('header_extend')
  3. <link rel="stylesheet" href="{{asset('css/plugins/chosen/chosen.css')}}">
  4. <link rel="stylesheet" href="{{asset('css/plugins/switchery/switchery.css')}}">
  5. <link rel="stylesheet"
  6. href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">
  7. <style>
  8. .for_area {
  9. display: inline-block;
  10. width: 200px;
  11. }
  12. /* .upload_img {
  13. height: 150px;
  14. }*/
  15. .tabs-container .tab-content .lists {
  16. height: 0;
  17. overflow: hidden;
  18. }
  19. .tabs-container .tab-content .lists.active {
  20. height: auto;
  21. }
  22. .wrapper-content .col-sm-2.control-label {
  23. padding-top: 7px;
  24. }
  25. .search-choice span {
  26. color: grey !important;
  27. }
  28. .form-control:focus, .single-line:focus {
  29. border-color: #009688 !important;
  30. }
  31. .span {
  32. color: #009688 !important;
  33. }
  34. .tabs-left ul li.active {
  35. background: #009688 !important;
  36. }
  37. .btn-primary, .btn-info {
  38. background: #f3f3f3 !important;
  39. border-color: #e6e6e6 !important;
  40. color: #656565 !important;
  41. outline: none;
  42. }
  43. .btn-primary:hover, .btn-info:hover {
  44. background: #009688 !important;
  45. border-color: #009688 !important;
  46. color: #fff !important;
  47. }
  48. .tabs-left {
  49. position: fixed;
  50. width: 16.6666%;
  51. left: 0;
  52. top: 0;
  53. }
  54. .nav-tabs {
  55. border-color: #009688 !important;
  56. padding-bottom: 16px;
  57. position: relative;
  58. min-height: 57px;
  59. padding-left: 7%;
  60. overflow: hidden;
  61. }
  62. .nav-tabs:before {
  63. content: '';
  64. display: block;
  65. width: 20px;
  66. height: 1px;
  67. background: #009688;
  68. position: absolute;
  69. left: -20px;
  70. bottom: -1px;
  71. clear: both;
  72. }
  73. .nav-tabs:after {
  74. content: '';
  75. display: block;
  76. width: 20px;
  77. height: 1px;
  78. background: #009688;
  79. position: absolute;
  80. right: -20px;
  81. bottom: -1px;
  82. clear: both;
  83. }
  84. .nav-tabs > li > a {
  85. padding: 7px 6px;
  86. border: none !important;
  87. }
  88. .nav.nav-tabs li {
  89. border-top: 1px solid #c7c7c7;
  90. border-bottom: 1px solid #c7c7c7;
  91. margin: 0 24px 10px;
  92. position: relative;
  93. }
  94. .nav.nav-tabs li:before {
  95. content: '';
  96. width: 17px;
  97. height: 25px;
  98. border-left: 1px solid #c7c7c7;
  99. border-top: 1px solid #c7c7c7;
  100. position: absolute;
  101. left: -17px;
  102. top: -1px;
  103. z-index: 66;
  104. }
  105. .nav.nav-tabs li:after {
  106. content: '';
  107. width: 17px;
  108. height: 26px;
  109. border-right: 1px solid #c7c7c7;
  110. border-bottom: 1px solid #c7c7c7;
  111. position: absolute;
  112. right: -16px;
  113. bottom: -1px;
  114. z-index: 66;
  115. }
  116. .nav.nav-tabs li a {
  117. margin: 0 !important;
  118. color: #363636;
  119. }
  120. .nav.nav-tabs li a:before {
  121. content: '';
  122. display: block;
  123. width: 20px;
  124. height: 1px;
  125. background: #c7c7c7;
  126. -webkit-transform: rotate(30deg);
  127. -moz-transform: rotate(30deg);
  128. -ms-transform: rotate(30deg);
  129. -o-transform: rotate(30deg);
  130. transform: rotate(30deg);
  131. position: absolute;
  132. left: -18px;
  133. top: 28px;
  134. }
  135. .nav.nav-tabs li a:after {
  136. content: '';
  137. display: block;
  138. width: 20px;
  139. height: 1px;
  140. background: #c7c7c7;
  141. -webkit-transform: rotate(30deg);
  142. -moz-transform: rotate(30deg);
  143. -ms-transform: rotate(30deg);
  144. -o-transform: rotate(30deg);
  145. transform: rotate(30deg);
  146. position: absolute;
  147. right: -17px;
  148. bottom: 29px;
  149. }
  150. .nav.nav-tabs li.active {
  151. background: #009688 !important;
  152. border: none;
  153. }
  154. .nav.nav-tabs li.active:before, .nav.nav-tabs li.active:after {
  155. height: 34px;
  156. background: #009688 !important;
  157. border-color: #009688 !important;
  158. top: -1px;
  159. }
  160. .nav.nav-tabs li.active a {
  161. color: #fff !important;
  162. background: #009688 !important;
  163. }
  164. .nav.nav-tabs li.active a:before {
  165. width: 18px;
  166. height: 8px;
  167. border-color: none;
  168. background: #fff !important;
  169. left: -20px;
  170. top: 28px;
  171. z-index: 100;
  172. }
  173. .nav.nav-tabs li.active a:after {
  174. width: 18px;
  175. height: 8px;
  176. border-color: none;
  177. background: #fff !important;
  178. right: -20px;
  179. bottom: 28px;
  180. z-index: 100;
  181. }
  182. .red {
  183. color: #f99631 !important;
  184. }
  185. .o-h4 {
  186. padding-right: 77%;
  187. text-align: right;
  188. color: #009688 !important;
  189. }
  190. .radio-label,
  191. .radio-check {
  192. display: inline-block;
  193. position: relative;
  194. }
  195. .radio-label input[type="radio"] {
  196. appearance: none; /*清楚默认样式*/
  197. -webkit-appearance: none;
  198. /* opacity: 0; */
  199. outline: none;
  200. position: absolute;
  201. z-index: 2;
  202. width: 6px;
  203. height: 6px;
  204. top: 10px;
  205. left: 10px;
  206. border-radius: 50%;
  207. background: #b4b4b4;
  208. }
  209. .radio-label label {
  210. display: inline-block;
  211. min-width: 50px;
  212. height: 30px;
  213. line-height: 30px;
  214. text-align: center;
  215. padding-right: 10px;
  216. border-radius: 5px;
  217. padding-left: 25px;
  218. color: #fff;
  219. background-color: #c9c9c9;
  220. }
  221. .radio-label input[type="radio"]:checked {
  222. opacity: 0;
  223. }
  224. .radio-label input[type="radio"]:checked + label {
  225. color: #fff;
  226. background-color: #009688;
  227. }
  228. .radio-label input[type="radio"]:checked + label::after {
  229. content: "";
  230. position: absolute;
  231. left: 12px;
  232. top: 5px;
  233. width: 5px;
  234. height: 12px;
  235. border-right: 1px solid #fff;
  236. border-bottom: 1px solid #fff;
  237. transform: rotate(45deg);
  238. }
  239. .checkbox-label,
  240. .checkbox-check {
  241. display: inline-block;
  242. position: relative;
  243. }
  244. .checkbox-label input[type="checkbox"] {
  245. appearance: none; /*清楚默认样式*/
  246. -webkit-appearance: none;
  247. /* opacity: 0; */
  248. outline: none;
  249. position: absolute;
  250. z-index: 2;
  251. width: 6px;
  252. height: 6px;
  253. top: 10px;
  254. left: 10px;
  255. border-radius: 50%;
  256. background: #b4b4b4;
  257. }
  258. .checkbox-label label {
  259. display: inline-block;
  260. min-width: 50px;
  261. height: 30px;
  262. line-height: 30px;
  263. text-align: center;
  264. padding-right: 10px;
  265. border-radius: 5px;
  266. padding-left: 25px;
  267. color: #fff;
  268. background-color: #c9c9c9;
  269. }
  270. .checkbox-label input[type="checkbox"]:checked {
  271. opacity: 0;
  272. }
  273. .checkbox-label input[type="checkbox"]:checked + label {
  274. color: #fff;
  275. background-color: #009688;
  276. }
  277. .checkbox-label input[type="checkbox"]:checked + label::after {
  278. content: "";
  279. position: absolute;
  280. left: 12px;
  281. top: 5px;
  282. width: 5px;
  283. height: 12px;
  284. border-right: 1px solid #fff;
  285. border-bottom: 1px solid #fff;
  286. transform: rotate(45deg);
  287. }
  288. </style>
  289. @endsection
  290. @section('right')
  291. <div class="tabs-container">
  292. <ul class="nav nav-tabs">
  293. @php $basePermission=false; @endphp
  294. @php $baseEdit=1; @endphp
  295. @hasAuth('site-base-view')
  296. @php $basePermission=true; @endphp
  297. <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a></li>
  298. @endHasAuth
  299. @hasAuth('site-detail-view')
  300. @php $detailPermission=true; @endphp
  301. <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">详细信息</a></li>
  302. @endHasAuth
  303. <li class=""><a data-toggle="tab" href="#tab-21" aria-expanded="false">人员配置</a>
  304. </li>
  305. <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">社交授权</a>
  306. </li>
  307. <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">重点优化</a>
  308. </li>
  309. <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">账号管理</a>
  310. </li>
  311. <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">时间节点与评分</a>
  312. </li>
  313. <li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">服务器及配置</a>
  314. </li>
  315. </ul>
  316. <div class="tab-content">
  317. @if(!empty($basePermission))
  318. @php $baseEdit=0; @endphp
  319. @hasAuth('site-base-edit')
  320. @php $baseEdit=1; @endphp
  321. @endHasAuth
  322. <div id="tab-1" class="lists active">
  323. <form class="form-horizontal" id="basic" style="padding-top: 20px">
  324. <div class="form-group">
  325. <label class="col-sm-2 control-label">项目编号:</label>
  326. <div class="col-sm-8" style="padding-top: 7px;">
  327. {{$data->identifier ?? ''}}
  328. </div>
  329. </div>
  330. <div class="form-group">
  331. <label class="col-sm-2 control-label">项目原始Id:</label>
  332. <label class="col-sm-2 control-label" style="text-align: left;margin-left: 15px">
  333. {{$data->old_id ?? ''}}
  334. </label>
  335. </div>
  336. <div class="form-group">
  337. <label class="col-sm-2 control-label" for="domain_us_buy">是否百千计划:</label>
  338. <div class="col-sm-2">
  339. <input type="checkbox" id="is_bq" name="is_bq"
  340. class="js-switch-bq"
  341. @if($data->is_bq??0) checked @endif onchange="units.changeIsBq()">
  342. </div>
  343. </div>
  344. <div class="form-group">
  345. <label class="col-sm-2 control-label" for="domain_us_buy">是否案例:</label>
  346. <div class="col-sm-2" style="width: 50px">
  347. <input type="checkbox" id="is_case" name="is_case"
  348. class="js-switch-case"
  349. @if($data->is_case??0) checked @endif onchange="units.changeCaseStatus()">
  350. </div>
  351. <div class="col-sm-3 example">
  352. <input type="text" class="form-control" id="example_url" name="example_url"
  353. value="{{$data->example_url ?? ''}}" placeholder="案例Id:{{$data->id ?? ''}}">
  354. </div>
  355. </div>
  356. <div class="form-group case">
  357. <label class="col-sm-2 control-label" for="case_ids"><span
  358. class="red">* </span>案例板块:</label>&nbsp;&nbsp;&nbsp;
  359. <div class="checkbox-label">
  360. <input type="checkbox" id="color21" name="case_ids" value="21"
  361. @if (in_array("21",$case_ids)) checked="checked" @endif>
  362. <label for="color21">结构化数据呈现</label>
  363. </div>
  364. <div class="checkbox-label">
  365. <input type="checkbox" id="color22" name="case_ids" value="22"
  366. @if (in_array("22",$case_ids)) checked="checked" @endif>
  367. <label for="color22">关键词分析</label>
  368. </div>
  369. <div class="checkbox-label">
  370. <input type="checkbox" id="color23" name="case_ids" value="23"
  371. @if (in_array("23",$case_ids)) checked="checked" @endif>
  372. <label for="color23">软文优化</label>
  373. </div>
  374. <div class="checkbox-label">
  375. <input type="checkbox" id="color24" name="case_ids" value="24"
  376. @if (in_array("24",$case_ids)) checked="checked" @endif>
  377. <label for="color24">维基百科</label>
  378. </div>
  379. <div class="checkbox-label">
  380. <input type="checkbox" id="color25" name="case_ids" value="25"
  381. @if (in_array("25",$case_ids)) checked="checked" @endif>
  382. <label for="color25">知识图谱</label>
  383. </div>
  384. <div class="checkbox-label">
  385. <input type="checkbox" id="color26" name="case_ids" value="26"
  386. @if (in_array("26",$case_ids)) checked="checked" @endif>
  387. <label for="color26">竞价</label>
  388. </div>
  389. <div class="checkbox-label">
  390. <input type="checkbox" id="color27" name="case_ids" value="27"
  391. @if (in_array("27",$case_ids)) checked="checked" @endif>
  392. <label for="color27">付费外链</label>
  393. </div>
  394. </div>
  395. <div class="form-group">
  396. <label class="col-sm-2 control-label" for="contract_ids"><span
  397. class="red">* </span>企业性质:</label>&nbsp;&nbsp;&nbsp;
  398. <div class="checkbox-label">
  399. <input type="checkbox" id="color11" name="enterprise_nature" value="1"
  400. @if (in_array("1",$enterpriseNature)) checked="checked" @endif>
  401. <label for="color11">500强</label>
  402. </div>
  403. <div class="checkbox-label">
  404. <input type="checkbox" id="color12" name="enterprise_nature" value="2"
  405. @if (in_array("2",$enterpriseNature)) checked="checked" @endif>
  406. <label for="color12">上市公司</label>
  407. </div>
  408. <div class="checkbox-label">
  409. <input type="checkbox" id="color13" name="enterprise_nature" value="3"
  410. @if (in_array("3",$enterpriseNature)) checked="checked" @endif>
  411. <label for="color13">国企</label>
  412. </div>
  413. <div class="checkbox-label">
  414. <input type="checkbox" id="color14" name="enterprise_nature" value="4"
  415. @if (in_array("4",$enterpriseNature)) checked="checked" @endif>
  416. <label for="color14">行业龙头</label>
  417. </div>
  418. <div class="checkbox-label">
  419. <input type="checkbox" id="color15" name="enterprise_nature" value="5"
  420. @if (in_array("5",$enterpriseNature)) checked="checked" @endif>
  421. <label for="color15">保密</label>
  422. </div>
  423. </div>
  424. <div class="form-group">
  425. <label class="col-sm-2 control-label" for="cn_title"><span
  426. class="red">* </span>项目名称(中文):</label>
  427. <div class="col-sm-8">
  428. <input type="text" class="form-control" id="cn_title" name="cn_title"
  429. @if(!$baseEdit) disabled @endif
  430. value="{{$data->cn_title ?? ''}}">
  431. </div>
  432. </div>
  433. <div class="form-group">
  434. <label class="col-sm-2 control-label" for="title"><span
  435. class="red">* </span>项目名称(英文):</label>
  436. <div class="col-sm-8">
  437. <input type="text" class="form-control" id="en_title" name="en_title"
  438. @if(!$baseEdit) disabled @endif
  439. value="{{$data->en_title ?? ''}}">
  440. </div>
  441. </div>
  442. <div class="form-group">
  443. <label class="col-sm-2 control-label" for="brand"><span
  444. class="red">* </span>项目品牌名:</label>
  445. <div class="col-sm-8">
  446. <input type="text" class="form-control" id="brand" name="brand"
  447. @if(!$baseEdit) disabled @endif
  448. value="{{$data->brand ?? ''}}">
  449. </div>
  450. </div>
  451. <div class="form-group">
  452. <label class="col-sm-2 control-label" for="password"><span class="red">* </span>域名:</label>
  453. <div class="col-sm-8">
  454. <input type="text" class="form-control" id="domain" name="domain"
  455. @if(!$baseEdit) disabled @endif
  456. value="{{$data->domain??''}}">
  457. <span class="span" style="font-size: 12px;">如果有直接填写进去,如果无,请填写意向域名。请填写主域<span
  458. style="color: red">不要填写中文,不要包含www</span>,例:baidu.com</span>
  459. </div>
  460. </div>
  461. <div class="form-group">
  462. <label class="col-sm-2 control-label" for="password"></label>
  463. <div class="col-sm-8" style="display: flex;justify-content: space-between;max-width: 500px">
  464. <div class="col-sm-12" style="margin: 0 -10px">
  465. <label>站点logo:</label>
  466. <button type="button" class="btn btn-primary" name="file_upload"
  467. @if(!$baseEdit) disabled @endif>文件上传
  468. </button>
  469. <input type="file" value="" style="display: none" name="uploadFile"
  470. data-for="logo_img">
  471. <input type="hidden" id="site_logo" name="site_logo"
  472. value="{{$data->site_logo??''}}">
  473. <img id="logo_img" class="upload_img" src="{{$data->site_logo??''}}"
  474. style="width: 100%;object-fit: cover;margin-top: 5px">
  475. </div>
  476. <div class="col-sm-12" style="margin: 0 -10px">
  477. <label>营业执照:</label>
  478. <button type="button" class="btn btn-primary" name="file_upload"
  479. @if(!$baseEdit) disabled @endif>文件上传
  480. </button>
  481. <input type="file" value="" style="display: none" name="uploadFile"
  482. data-for="business_license_business_scope_img">
  483. <input type="hidden" id="business_license_business_scope"
  484. name="business_license_business_scope"
  485. value="{{$data->business_license_business_scope??''}}">
  486. <img id="business_license_business_scope_img" class="upload_img"
  487. src="{{$data->business_license_business_scope??''}}"
  488. style="width: 100%;object-fit: cover;margin-top: 5px">
  489. </div>
  490. </div>
  491. </div>
  492. {{-- <div class="form-group">
  493. <label class="col-sm-2 control-label">站点logo:</label>
  494. <div class="col-sm-4">
  495. <button type="button" class="btn btn-primary" name="file_upload"
  496. @if(!$baseEdit) disabled @endif>文件上传
  497. </button>
  498. <input type="file" value="" style="display: none" name="uploadFile"
  499. data-for="logo_img">
  500. <input type="hidden" id="site_logo" name="site_logo" value="{{$data->site_logo??''}}">
  501. </div>
  502. </div>
  503. <div class="form-group">
  504. <div class="col-sm-8 col-sm-offset-2">
  505. <img id="logo_img" class="upload_img" src="{{$data->site_logo??''}}">
  506. </div>
  507. </div>--}}
  508. {{-- <div class="form-group">
  509. <label class="col-sm-2 control-label">营业执照:</label>
  510. <div class="col-sm-4">
  511. <button type="button" class="btn btn-primary" name="file_upload"
  512. @if(!$baseEdit) disabled @endif>文件上传
  513. </button>
  514. <input type="file" value="" style="display: none" name="uploadFile"
  515. data-for="business_license_business_scope_img">
  516. <input type="hidden" id="business_license_business_scope"
  517. name="business_license_business_scope"
  518. value="{{$data->business_license_business_scope??''}}">
  519. </div>
  520. </div>
  521. <div class="form-group">
  522. <div class="col-sm-8 col-sm-offset-2">
  523. <img id="business_license_business_scope_img" class="upload_img"
  524. src="{{$data->business_license_business_scope??''}}">
  525. </div>
  526. </div>--}}
  527. <div class="form-group">
  528. <label class="col-sm-2 control-label" for="site_type"><span
  529. class="red">* </span>项目类型:</label>
  530. <div class="col-sm-8">
  531. <select class="form-control" id="site_type" name="site_type" style="width:350px;">
  532. <option value="">请选择</option>
  533. <option value="1" @if(($data->site_type??'')==1) selected @endif>企业网站</option>
  534. <option value="2" @if(($data->site_type??'')==2) selected @endif>电商网站</option>
  535. <option value="3" @if(($data->site_type??'')==3) selected @endif>特殊项目</option>
  536. </select>
  537. </div>
  538. </div>
  539. <div class="form-group">
  540. <label class="col-sm-2 control-label" for="nature_type"><span
  541. class="red">* </span>公司性质:</label>
  542. <div class="col-sm-8">
  543. <select class="form-control" style="width:350px;"
  544. id="nature_type" name="nature_type" @if(!$baseEdit) disabled @endif>
  545. <option value="">请选择公司性质</option>
  546. @foreach($natures as $nature)
  547. <option value="{{$nature['inx']}}"
  548. @if(($data->nature_type??null)==$nature['inx']) selected @endif>{{$nature['val']}}</option>
  549. @endforeach
  550. </select>
  551. </div>
  552. </div>
  553. <div class="form-group">
  554. <label class="col-sm-2 control-label" for="business_id"><span
  555. class="red">* </span>所属行业:</label>
  556. <div class="col-sm-4">
  557. <select class="form-control"
  558. id="business_id" name="business_id" data-live-search="true"
  559. title="请选择行业" autocomplete="off">
  560. @foreach ($businesses as $business)
  561. <option value="{{$business->id}}"
  562. @if(($data->business_id??null)==$business->id) selected @endif>{{$business->title}}</option>
  563. @endforeach
  564. </select>
  565. </div>
  566. </div>
  567. <div class="form-group">
  568. <label class="col-sm-2 control-label" for="core_product">核心产品:</label>
  569. <div class="col-sm-8">
  570. <input type="text" class="form-control" id="core_product" name="core_product"
  571. value="{{$data->core_product ?? ''}}">
  572. </div>
  573. </div>
  574. <div class="form-group">
  575. <label class="col-sm-2 control-label"><span class="red">* </span>地区:</label>
  576. <div class="col-sm-8" data-toggle="distpicker" id="distpicker">
  577. <select class="form-control for_area" data-province="{{$data->area_text[0]??''}}"
  578. name="area_text" @if(!$baseEdit) disabled @endif></select>
  579. <select class="form-control for_area" data-city="{{$data->area_text[1]??''}}"
  580. name="area_text" @if(!$baseEdit) disabled @endif ></select>
  581. <select class="form-control for_area" data-district="{{$data->area_text[2]??''}}"
  582. name="area_text" @if(!$baseEdit) disabled @endif></select>
  583. </div>
  584. </div>
  585. <div class="form-group contacts">
  586. <div class="col-sm-12">
  587. <div class="col-sm-6" style="margin-top: 10px">
  588. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ&nbsp;姓名:</label>
  589. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  590. style="width: 300px;display: inline-block"
  591. name="contact_name" value="{{$data->contacts[0]['name']??''}}">
  592. </div>
  593. <div class="col-sm-6" style="margin-top: 10px">
  594. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ邮箱:</label>
  595. <input type="email" class="form-control" style="width: 300px;display: inline-block;"
  596. @if(!$baseEdit) disabled @endif
  597. name="contact_email" value="{{$data->contacts[0]['email']??''}}">
  598. </div>
  599. <div class="col-sm-6" style="margin-top: 10px">
  600. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ手机:</label>
  601. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  602. style="width: 300px;display: inline-block;" name="contact_mobile"
  603. value="{{$data->contacts[0]['mobile']??''}}">
  604. </div>
  605. <div class="col-sm-6" style="margin-top: 10px">
  606. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ职位:</label>
  607. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  608. style="width: 300px;display: inline-block;" name="contact_position"
  609. value="{{$data->contacts[0]['position']??''}}">
  610. </div>
  611. </div>
  612. </div>
  613. <div class="form-group contacts">
  614. <div class="col-sm-12">
  615. <div class="col-sm-6" style="margin-top: 10px">
  616. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ&nbsp;姓名:</label>
  617. <input type="text" class="form-control"
  618. style="width: 300px;display: inline-block"
  619. @if(!$baseEdit) disabled @endif
  620. name="contact_name" value="{{$data->contacts[1]['name']??''}}">
  621. </div>
  622. <div class="col-sm-6" style="margin-top: 10px">
  623. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ邮箱:</label>
  624. <input type="email" class="form-control" style="width: 300px;display: inline-block;"
  625. @if(!$baseEdit) disabled @endif
  626. name="contact_email" value="{{$data->contacts[1]['email']??''}}">
  627. </div>
  628. <div class="col-sm-6" style="margin-top: 10px">
  629. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ手机:</label>
  630. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  631. style="width: 300px;display: inline-block;" name="contact_mobile"
  632. value="{{$data->contacts[1]['mobile']??''}}">
  633. </div>
  634. <div class="col-sm-6" style="margin-top: 10px">
  635. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ职位:</label>
  636. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  637. style="width: 300px;display: inline-block;" name="contact_position"
  638. value="{{$data->contacts[1]['position']??''}}">
  639. </div>
  640. </div>
  641. </div>
  642. <div class="form-group contacts">
  643. <div class="col-sm-12">
  644. <div class="col-sm-6" style="margin-top: 10px">
  645. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ&nbsp;姓名:</label>
  646. <input type="text" class="form-control"
  647. style="width: 300px;display: inline-block"
  648. @if(!$baseEdit) disabled @endif
  649. name="contact_name" value="{{$data->contacts[2]['name']??''}}">
  650. </div>
  651. <div class="col-sm-6" style="margin-top: 10px">
  652. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ邮箱:</label>
  653. <input type="email" class="form-control" style="width: 300px;display: inline-block;"
  654. @if(!$baseEdit) disabled @endif
  655. name="contact_email" value="{{$data->contacts[2]['email']??''}}">
  656. </div>
  657. <div class="col-sm-6" style="margin-top: 10px">
  658. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ手机:</label>
  659. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  660. style="width: 300px;display: inline-block;" name="contact_mobile"
  661. value="{{$data->contacts[2]['mobile']??''}}">
  662. </div>
  663. <div class="col-sm-6" style="margin-top: 10px">
  664. <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ职位:</label>
  665. <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
  666. style="width: 300px;display: inline-block;" name="contact_position"
  667. value="{{$data->contacts[2]['position']??''}}">
  668. </div>
  669. </div>
  670. </div>
  671. <div class="form-group">
  672. <label class="col-sm-2 control-label" for="customer_demand_type"><span
  673. class="red">* </span>客户需求:</label>
  674. <div class="col-sm-8">
  675. <select class="form-control" id="customer_demand_type" name="customer_demand_type">
  676. <option value="">请选择</option>
  677. <option value="1" @if(($data->customer_demand_type??'')==1) selected @endif>客户询盘
  678. </option>
  679. <option value="2" @if(($data->customer_demand_type??'')==2) selected @endif>营销推广
  680. </option>
  681. <option value="3" @if(($data->customer_demand_type??'')==3) selected @endif>两者兼有
  682. </option>
  683. </select>
  684. </div>
  685. </div>
  686. <div class="form-group">
  687. <label class="col-sm-2 control-label" for="sign_amount"><span
  688. class="red">* </span>签单价格:</label>
  689. <div class="col-sm-8">
  690. <input type="text" class="form-control" id="sign_amount" name="sign_amount"
  691. @if(!$baseEdit) disabled @endif
  692. value="{{$data->sign_amount??''}}">
  693. </div>
  694. </div>
  695. <div class="form-group">
  696. <label class="col-sm-2 control-label" for="sign_amount"><span
  697. class="red">* </span>套餐类型: </label>&nbsp;&nbsp;&nbsp;
  698. <div class="radio-label">
  699. <input type="radio" id="color1" value="1" name="package_type"
  700. @if ($data->package_type==1) checked @endif>
  701. <label for="color1">老套餐</label>
  702. </div>
  703. <div class="radio-label">
  704. <input type="radio" id="color2" value="2" name="package_type"
  705. @if ($data->package_type==2) checked @endif>
  706. <label for="color2">2019标准版</label>
  707. </div>
  708. <div class="radio-label">
  709. <input type="radio" id="color3" value="3" name="package_type"
  710. @if ($data->package_type==3) checked @endif>
  711. <label for="color3">2019升级版</label>
  712. </div>
  713. <div class="radio-label">
  714. <input type="radio" id="color4" value="4" name="package_type"
  715. @if ($data->package_type==4) checked @endif>
  716. <label for="color4">2019高级版</label>
  717. </div>
  718. <div class="radio-label">
  719. <input type="radio" id="color5" value="5" name="package_type"
  720. @if ($data->package_type==5) checked @endif>
  721. <label for="color5">2020标准版</label>
  722. </div>
  723. <div class="radio-label">
  724. <input type="radio" id="color6" value="6" name="package_type"
  725. @if ($data->package_type==6) checked @endif>
  726. <label for="color6">2020升级版</label>
  727. </div>
  728. <div class="radio-label">
  729. <input type="radio" id="color7" value="7" name="package_type"
  730. @if ($data->package_type==7) checked @endif>
  731. <label for="color7">2020高级版</label>
  732. </div>
  733. <div class="radio-label">
  734. <input type="radio" id="color8" value="8" name="package_type"
  735. @if ($data->package_type==8) checked @endif>
  736. <label for="color8">定制版</label>
  737. </div>
  738. </div>
  739. <div class="form-group">
  740. <label class="col-sm-2 control-label" for="pay_way"><span class="red">* </span>付款方式:</label>
  741. <div class="col-sm-8">
  742. <select class="form-control" id="pay_way" name="pay_way">
  743. <option value="">请选择</option>
  744. <option value="1" @if(($data->pay_way??'')==1) selected @endif>分期</option>
  745. <option value="2" @if(($data->pay_way??'')==2) selected @endif>全款</option>
  746. </select>
  747. </div>
  748. </div>
  749. <div class="form-group">
  750. <label class="col-sm-2 control-label" for="remark">合同备注:</label>
  751. <div class="col-sm-8">
  752. <textarea class="form-control" id="remark" @if(!$baseEdit) disabled @endif
  753. name="remark">{{$data->remark??''}}</textarea>
  754. </div>
  755. </div>
  756. <div class="form-group">
  757. <label class="col-sm-2 control-label" for="contract_ids"><span
  758. class="red">* </span>服务项目:</label>
  759. <div class="col-sm-8 ">
  760. <select class="form-control" style="width:350px;" @if(!$baseEdit) disabled @endif
  761. id="contract_ids" name="contract_ids" multiple size="6">
  762. <option value="">请选择合同版本</option>
  763. @foreach ($contracts as $item)
  764. <option value="{{$item->id}}"
  765. @if(in_array($item->id,$data->contract_ids??[])) selected @endif>{{$item->title}}</option>
  766. @endforeach
  767. </select>
  768. <span class="span" style="font-size: 12px">ctrl+鼠标点击/shift+鼠标点击 多选</span>
  769. </div>
  770. </div>
  771. <div class="form-group">
  772. <label class="col-sm-2 control-label" for="keyword_goal"><span
  773. class="red">* </span>关键词达标数:</label>
  774. <div class="col-sm-8">
  775. <input type="text" class="form-control" id="keyword_goal" name="keyword_goal"
  776. @if(!$baseEdit) disabled @endif
  777. value="{{$data->keyword_goal??''}}">
  778. </div>
  779. </div>
  780. <div class="form-group">
  781. <label class="col-sm-2 control-label" for="link_goal"><span
  782. class="red">* </span>外链平台数:</label>
  783. <div class="col-sm-8">
  784. <input type="text" class="form-control" id="link_goal" name="link_goal"
  785. @if(!$baseEdit) disabled @endif
  786. value="{{$data->link_goal??''}}">
  787. </div>
  788. </div>
  789. <div class="form-group">
  790. <label class="col-sm-2 control-label" for="article_goal"><span
  791. class="red">* </span>软文达标数:</label>
  792. <div class="col-sm-8">
  793. <input type="text" class="form-control" id="article_goal" name="article_goal"
  794. @if(!$baseEdit) disabled @endif
  795. value="{{$data->article_goal??''}}">
  796. </div>
  797. </div>
  798. <div class="form-group">
  799. <label class="col-sm-2 control-label" for="article_difference">软文扣除数:</label>
  800. <div class="col-sm-8">
  801. <input type="text" class="form-control" id="article_difference"
  802. name="article_difference"
  803. @if(!$baseEdit) disabled @endif
  804. value="{{$data->article_difference??''}}">
  805. </div>
  806. </div>
  807. <div class="form-group">
  808. <label class="col-sm-2 control-label" for="other_demand">其他需求:</label>
  809. <div class="col-sm-8">
  810. <textarea class="form-control" id="other_demand" @if(!$baseEdit) disabled @endif
  811. name="other_demand">{{$data->other_demand??''}}</textarea>
  812. </div>
  813. </div>
  814. <div class="hr-line-dashed"></div>
  815. <div class="form-group">
  816. <div class="col-sm-4 col-sm-offset-2">
  817. @if($baseEdit)
  818. <button class="btn btn-primary " type="button" data-id="{{$data->id??0}}"
  819. onclick="units.save(1)">
  820. 保存
  821. </button>
  822. @endif
  823. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  824. </div>
  825. </div>
  826. </form>
  827. </div>
  828. @endif
  829. @php $detailEdit=0; @endphp
  830. @hasAuth('site-detail-edit')
  831. @php $detailEdit=1; @endphp
  832. @endHasAuth
  833. @if(!empty($detailPermission))
  834. <div id="tab-2" class="lists">
  835. {{--<div id="tab-2" class="ibox-content">--}}
  836. <form class="form-horizontal" id="detail" style="margin-top: 20px">
  837. <div class="form-group">
  838. <label class="col-sm-2 control-label" for="contract_total_fee">合同总金额:</label>
  839. <div class="col-sm-8">
  840. <input type="text" class="form-control" id="contract_total_fee"
  841. @if(!$detailEdit) disabled @endif
  842. name="contract_total_fee"
  843. value="{{$payment->contract_total_fee??''}}" style="max-width: 350px">
  844. </div>
  845. </div>
  846. <div class="form-group">
  847. <label class="col-sm-2 control-label" for="google_optimize_fee">谷歌优化费用:</label>
  848. <div class="col-sm-8">
  849. <input type="text" class="form-control" id="google_optimize_fee"
  850. @if(!$detailEdit) disabled @endif
  851. name="google_optimize_fee"
  852. value="{{$payment->google_optimize_fee??''}}" style="max-width: 350px">
  853. </div>
  854. </div>
  855. <div class="form-group">
  856. <label class="col-sm-2 control-label" for="refund">退款:</label>
  857. <div class="col-sm-8">
  858. <input type="text" class="form-control" id="refund"
  859. @if(!$detailEdit) disabled @endif
  860. name="refund"
  861. value="{{$payment->refund??''}}" style="max-width: 350px">
  862. </div>
  863. </div>
  864. <div class="form-group">
  865. <label class="col-sm-2 control-label" for="refund_reason">终止/退款原因:</label>
  866. <div class="col-sm-8">
  867. <input type="text" class="form-control" id="refund_reason"
  868. @if(!$detailEdit) disabled @endif
  869. name="refund_reason"
  870. value="{{$payment->refund_reason??''}}" style="max-width: 350px">
  871. </div>
  872. </div>
  873. <div class="form-group">
  874. <label class="col-sm-2 control-label" for="refund_reason_analyze">终止/退款原因分析:</label>
  875. <div class="col-sm-8">
  876. <select name="refund_reason_analyze" id="refund_reason_analyze" class="form-control"
  877. @if(!$baseEdit) disabled @endif>
  878. <option value="0" @if($payment->refund_reason_analyze==0) selected @endif>请选择
  879. </option>
  880. <option value="1" @if($payment->refund_reason_analyze==1) selected @endif>建站期太长
  881. </option>
  882. <option value="2" @if($payment->refund_reason_analyze==2) selected @endif>客户原因
  883. </option>
  884. <option value="3" @if($payment->refund_reason_analyze==3) selected @endif>客户原因/未启动
  885. </option>
  886. <option value="4" @if($payment->refund_reason_analyze==4) selected @endif>实施期中止
  887. </option>
  888. <option value="5" @if($payment->refund_reason_analyze==5) selected @endif>主动终止
  889. </option>
  890. </select>
  891. </div>
  892. </div>
  893. <div class="form-group">
  894. <label class="col-sm-2 control-label" for="not_renewed_reason">未续费原因:</label>
  895. <div class="col-sm-8">
  896. <input type="text" class="form-control" id="not_renewed_reason"
  897. name="not_renewed_reason"
  898. @if(!$baseEdit) disabled @endif
  899. value="{{$payment->not_renewed_reason}}" autocomplete="off">
  900. </div>
  901. </div>
  902. <div class="form-group">
  903. <label class="col-sm-2 control-label" for="not_renewed_reason_analyze">未续费原因分析:</label>
  904. <div class="col-sm-8">
  905. <select name="not_renewed_reason_analyze" id="not_renewed_reason_analyze"
  906. class="form-control" @if(!$baseEdit) disabled @endif>
  907. <option value="0" @if($payment->not_renewed_reason_analyze==0) selected @endif>请选择
  908. </option>
  909. <option value="1" @if($payment->not_renewed_reason_analyze==1) selected @endif>
  910. 效果不好
  911. </option>
  912. <option value="2" @if($payment->not_renewed_reason_analyze==2) selected @endif>
  913. 疫情影响
  914. </option>
  915. <option value="3" @if($payment->not_renewed_reason_analyze==3) selected @endif>
  916. 业务转型
  917. </option>
  918. <option value="4" @if($payment->not_renewed_reason_analyze==4) selected @endif>价格高
  919. </option>
  920. <option value="5" @if($payment->not_renewed_reason_analyze==5) selected @endif>
  921. 服务器不在引擎力
  922. </option>
  923. </select>
  924. </div>
  925. </div>
  926. <div id="google_bid_chunk">
  927. <div class="form-group">
  928. <label class="col-sm-2 control-label">赠送竞价费用:</label>
  929. <div class="col-sm-8">
  930. <label>费用:</label>
  931. <input type="text" class="form-control"
  932. name="bid_give_fee" id="bid_give_fee"
  933. style="width: 150px;display: inline-block"
  934. @if(!$detailEdit) disabled @endif
  935. value="{{$payment->bid_give_fee??''}}"
  936. onchange="units.computeGoogleBidTotalFee()">
  937. </div>
  938. </div>
  939. @php
  940. $google_bid=$payment->google_bid??[];
  941. $totalFee=0;
  942. foreach ($google_bid as $item){
  943. $totalFee+= intval(($item['google_bid_fee']??0));
  944. }
  945. @endphp
  946. <div class="form-group">
  947. <label class="col-sm-2 control-label">充值竞价费用:</label>
  948. <div class="col-sm-8">
  949. <label>费用:</label>
  950. <input type="text" class="form-control"
  951. name="google_bid_fee" style="width: 150px;display: inline-block"
  952. @if(!$detailEdit) disabled @endif
  953. value="{{$google_bid[0]['google_bid_fee']??''}}"
  954. onchange="units.computeGoogleBidTotalFee()">
  955. <label style="margin-left: 15px">时间:</label>
  956. <input type="text" class="form-control"
  957. name="google_bid_time" style="width: 250px;display: inline-block"
  958. @if(!$detailEdit) disabled @endif
  959. id="google_bid_time" value="{{$google_bid[0]['google_bid_time']??''}}">
  960. <button type="button" class="btn btn-info" onclick="units.addGoogleBid()">+</button>
  961. </div>
  962. </div>
  963. @foreach($google_bid as $key=>$item)
  964. @if($key>0)
  965. <div class="form-group">
  966. <label class="col-sm-2 control-label"></label>
  967. <div class="col-sm-8">
  968. <label>费用:</label>
  969. <input type="text" class="form-control"
  970. name="google_bid_fee" style="width: 150px;display: inline-block"
  971. value="{{$item['google_bid_fee']??''}}"
  972. >
  973. <label style="margin-left: 15px">时间:</label>
  974. <input type="text" class="form-control"
  975. name="google_bid_time" style="width: 250px;display: inline-block"
  976. value="{{$item['google_bid_time']??''}}"
  977. >
  978. <button type="button" class="btn btn-info"
  979. onclick="units.removeGoogleBid(this)">-
  980. </button>
  981. </div>
  982. </div>
  983. @endif
  984. @endforeach
  985. </div>
  986. <div class="form-group">
  987. <label class="col-sm-2 control-label">竞价总费用:</label>
  988. <div class="col-sm-8" style="padding-top: 7px">
  989. <label>(赠送竞价+充值竞价) 费用:</label>
  990. <label id="googleBidFeeTotal">{{$totalFee??0 + $payment->bid_give_fee??0}}</label>
  991. </div>
  992. </div>
  993. <div class="form-group">
  994. <label class="col-sm-2 control-label">竞价客户评分:</label>
  995. <input type="number" class="form-control"
  996. name="bid_score" id="bid_score" style="width: 150px;display: inline-block"
  997. @if(!$detailEdit) disabled @endif
  998. value="{{$payment->bid_score??''}}"
  999. >
  1000. <label style="margin-left: 15px">时间:</label>
  1001. <input type="text" class="form-control" id="bid_score_time"
  1002. name="bid_score_time" style="width: 250px;display: inline-block"
  1003. value="{{$payment['bid_score_time']??''}}"
  1004. >
  1005. </div>
  1006. <div class="form-group">
  1007. <label class="col-sm-2 control-label" for="bid_login_account"> 客户竞价登录账号:</label>
  1008. <div class="col-sm-8">
  1009. <input type="text" class="form-control" id="bid_login_account" name="bid_login_account"
  1010. @if(!$detailEdit) disabled @endif
  1011. value="{{$payment->bid_login_account??''}}"
  1012. >
  1013. </div>
  1014. </div>
  1015. <div class="form-group">
  1016. <label class="col-sm-2 control-label">竞价账户:</label>
  1017. <div class="col-sm-8">
  1018. <label>上线日期:</label>
  1019. <input type="text" class="form-control"
  1020. name="bid_account_online_time" id="bid_account_online_time"
  1021. style="width: 250px;display: inline-block"
  1022. @if(!$detailEdit) disabled @endif
  1023. value="{{$payment->bid_account_online_time??''}}"
  1024. >
  1025. <label style="margin-left: 15px">暂停日期:</label>
  1026. <input type="text" class="form-control"
  1027. name="bid_account_pause_time" id="bid_account_pause_time"
  1028. style="width: 250px;display: inline-block"
  1029. @if(!$detailEdit) disabled @endif
  1030. value="{{$payment->bid_account_pause_time??''}}"
  1031. >
  1032. </div>
  1033. </div>
  1034. <div class="form-group">
  1035. <label class="col-sm-2 control-label" for="wiki_fee"> 维基百科费用:</label>
  1036. <div class="col-sm-8">
  1037. <input type="text" class="form-control" id="wiki_fee" name="wiki_fee"
  1038. @if(!$detailEdit) disabled @endif
  1039. value="{{$payment->wiki_fee??''}}">
  1040. </div>
  1041. </div>
  1042. <div class="form-group">
  1043. <label class="col-sm-2 control-label" for="other_fee"> 其他费用:</label>
  1044. <div class="col-sm-8">
  1045. <input type="text" class="form-control" id="other_fee" name="other_fee"
  1046. @if(!$detailEdit) disabled @endif
  1047. value="{{$payment->other_fee??''}}">
  1048. </div>
  1049. </div>
  1050. <div class="hr-line-dashed"></div>
  1051. <div class="form-group">
  1052. <label class="col-sm-2 control-label" for="head">首付:</label>
  1053. <div class="col-sm-8">
  1054. <input type="text" class="form-control" id="head" name="head" @if(!$detailEdit) disabled
  1055. @endif
  1056. value="{{$payment->head??''}}">
  1057. </div>
  1058. </div>
  1059. <div class="form-group">
  1060. <label class="col-sm-2 control-label" for="head_type">收款状态:</label>
  1061. <div class="col-sm-8">
  1062. <select class="form-control" id="head_type" name="head_type">
  1063. <option value="0">请选择</option>
  1064. <option value="1" @if(($payment->head_type??'')==1) selected @endif>未收</option>
  1065. <option value="2" @if(($payment->head_type??'')==2) selected @endif>已收</option>
  1066. </select>
  1067. </div>
  1068. </div>
  1069. <div class="form-group">
  1070. <label class="col-sm-2 control-label" for="head_invoicing_type">开票状态:</label>
  1071. <div class="col-sm-8">
  1072. <select class="form-control" id="head_invoicing_type" name="head_invoicing_type">
  1073. <option value="0">请选择</option>
  1074. <option value="1" @if(($payment->head_invoicing_type??'')==1) selected @endif>未开票
  1075. </option>
  1076. <option value="2" @if(($payment->head_invoicing_type??'')==2) selected @endif>已开票
  1077. </option>
  1078. </select>
  1079. </div>
  1080. </div>
  1081. <div class="hr-line-dashed"></div>
  1082. <div class="form-group">
  1083. <label class="col-sm-2 control-label" for="done">建站收款:</label>
  1084. <div class="col-sm-8">
  1085. <input type="text" class="form-control" id="done" name="done"
  1086. value="{{$payment->done??''}}" @if(!$detailEdit) disabled @endif>
  1087. </div>
  1088. </div>
  1089. <div class="form-group">
  1090. <label class="col-sm-2 control-label" for="done_type">收款状态:</label>
  1091. <div class="col-sm-8">
  1092. <select class="form-control" id="done_type" name="done_type">
  1093. <option value="0">请选择</option>
  1094. <option value="1" @if(($payment->done_type??'')==1) selected @endif>已收</option>
  1095. <option value="2" @if(($payment->done_type??'')==2) selected @endif>未收</option>
  1096. </select>
  1097. </div>
  1098. </div>
  1099. <div class="form-group">
  1100. <label class="col-sm-2 control-label" for="done_invoicing_type">开票状态:</label>
  1101. <div class="col-sm-8">
  1102. <select class="form-control" id="done_invoicing_type" name="done_invoicing_type">
  1103. <option value="0">请选择</option>
  1104. <option value="1" @if(($payment->done_invoicing_type??'')==1) selected @endif>未开票
  1105. </option>
  1106. <option value="2" @if(($payment->done_invoicing_type??'')==2) selected @endif>已开票
  1107. </option>
  1108. </select>
  1109. </div>
  1110. </div>
  1111. <div class="hr-line-dashed"></div>
  1112. <div class="form-group">
  1113. <label class="col-sm-2 control-label" for="reach">达标尾款:</label>
  1114. <div class="col-sm-8">
  1115. <input type="text" class="form-control" id="reach" name="reach"
  1116. @if(!$detailEdit) disabled @endif
  1117. value="{{$payment->reach??''}}">
  1118. </div>
  1119. </div>
  1120. <div class="form-group">
  1121. <label class="col-sm-2 control-label" for="reach_type">收款状态:</label>
  1122. <div class="col-sm-8">
  1123. <select class="form-control" id="reach_type" name="reach_type">
  1124. <option value="0">请选择</option>
  1125. <option value="1" @if(($payment->reach_type??'')==1) selected @endif>已收</option>
  1126. <option value="2" @if(($payment->reach_type??'')==2) selected @endif>未收</option>
  1127. </select>
  1128. </div>
  1129. </div>
  1130. <div class="form-group">
  1131. <label class="col-sm-2 control-label" for="reach_invoicing_type">开票状态:</label>
  1132. <div class="col-sm-8">
  1133. <select class="form-control" id="reach_invoicing_type" name="reach_invoicing_type">
  1134. <option value="0">请选择</option>
  1135. <option value="1" @if(($payment->reach_invoicing_type??'')==1) selected @endif>未开票
  1136. </option>
  1137. <option value="2" @if(($payment->reach_invoicing_type??'')==2) selected @endif>已开票
  1138. </option>
  1139. </select>
  1140. </div>
  1141. </div>
  1142. <div class="hr-line-dashed"></div>
  1143. <div class="form-group">
  1144. <label class="col-sm-2 control-label" for="service_final_payment">服务期尾款:</label>
  1145. <div class="col-sm-8">
  1146. <input type="text" class="form-control" id="service_final_payment"
  1147. name="service_final_payment"
  1148. @if(!$detailEdit) disabled @endif
  1149. value="{{$payment->service_final_payment??''}}">
  1150. </div>
  1151. </div>
  1152. <div class="form-group">
  1153. <label class="col-sm-2 control-label" for="service_final_payment_type">收款状态:</label>
  1154. <div class="col-sm-8">
  1155. <select class="form-control" id="service_final_payment_type"
  1156. name="service_final_payment_type">
  1157. <option value="0">请选择</option>
  1158. <option value="1"
  1159. @if(($payment->service_final_payment_type??'')==1) selected @endif>已收
  1160. </option>
  1161. <option value="2"
  1162. @if(($payment->service_final_payment_type??'')==2) selected @endif>未收
  1163. </option>
  1164. </select>
  1165. </div>
  1166. </div>
  1167. <div class="form-group">
  1168. <label class="col-sm-2 control-label"
  1169. for="service_final_payment_invoicing_type">开票状态:</label>
  1170. <div class="col-sm-8">
  1171. <select class="form-control" id="service_final_payment_invoicing_type"
  1172. name="service_final_payment_invoicing_type">
  1173. <option value="0">请选择</option>
  1174. <option value="1"
  1175. @if(($payment->service_final_payment_invoicing_type??'')==1) selected @endif>
  1176. 未开票
  1177. </option>
  1178. <option value="2"
  1179. @if(($payment->service_final_payment_invoicing_type??'')==2) selected @endif>
  1180. 已开票
  1181. </option>
  1182. </select>
  1183. </div>
  1184. </div>
  1185. <div class="hr-line-dashed"></div>
  1186. <div class="form-group">
  1187. <label class="col-sm-2 control-label" for="renewal">续费:</label>
  1188. <div class="col-sm-8">
  1189. <input type="text" class="form-control" id="renewal" name="renewal"
  1190. @if(!$detailEdit) disabled @endif
  1191. value="{{$payment->renewal??''}}">
  1192. </div>
  1193. </div>
  1194. <div class="form-group">
  1195. <label class="col-sm-2 control-label" for="renewal_type">收款状态:</label>
  1196. <div class="col-sm-8">
  1197. <select class="form-control" id="renewal_type" name="renewal_type">
  1198. <option value="0">请选择</option>
  1199. <option value="1" @if(($payment->renewal_type??'')==1) selected @endif>已收</option>
  1200. <option value="2" @if(($payment->renewal_type??'')==2) selected @endif>未收</option>
  1201. </select>
  1202. </div>
  1203. </div>
  1204. <div class="form-group">
  1205. <label class="col-sm-2 control-label" for="renewal_invoicing_type">开票状态:</label>
  1206. <div class="col-sm-8">
  1207. <select class="form-control" id="renewal_invoicing_type" name="renewal_invoicing_type">
  1208. <option value="0">请选择</option>
  1209. <option value="1" @if(($payment->renewal_invoicing_type??'')==1) selected @endif>
  1210. 未开票
  1211. </option>
  1212. <option value="2" @if(($payment->renewal_invoicing_type??'')==2) selected @endif>
  1213. 已开票
  1214. </option>
  1215. </select>
  1216. </div>
  1217. </div>
  1218. <div class="form-group">
  1219. <div class="col-sm-4 col-sm-offset-2">
  1220. @if($detailEdit)
  1221. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1222. onclick="units.save(2)">
  1223. 保存
  1224. </button>
  1225. @endif
  1226. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  1227. </div>
  1228. </div>
  1229. </form>
  1230. </div>
  1231. @endif
  1232. <div id="tab-21" class="lists">
  1233. <form class="form-horizontal" id="people" style="margin-top: 20px;padding-bottom: 250px;">
  1234. <div class="form-group">
  1235. <label class="col-sm-2 control-label" for="manager_ids">项目总监:</label>
  1236. <div class="col-sm-10">
  1237. <select data-placeholder="选择项目总监..." multiple class="chosen-select"
  1238. style="width:350px;"
  1239. id="manager_ids" name="manager_ids">
  1240. <option value="">请选择项目总监</option>
  1241. @if(!empty($managers))
  1242. @foreach ($managers as $item)
  1243. <option value="{{$item->id}}"
  1244. @if(in_array($item->id,$hasMangerIds)) selected
  1245. @endif>{{$item->nickname}}</option>
  1246. @endforeach
  1247. @endif
  1248. </select>
  1249. </div>
  1250. </div>
  1251. <div class="hr-line-dashed"></div>
  1252. <div class="form-group">
  1253. <label class="col-sm-2 control-label" for="manage_helper_ids">项目经理:</label>
  1254. <div class="col-sm-10">
  1255. <select data-placeholder="选择项目经理..." multiple class="chosen-select"
  1256. style="width:350px;"
  1257. id="manage_helper_ids" name="manage_helper_ids">
  1258. <option value="">请选择项目经理</option>
  1259. @if(!empty($managerHelpers))
  1260. @foreach ($managerHelpers as $item)
  1261. <option value="{{$item->id}}"
  1262. @if(in_array($item->id,$hasMangeHelpIds)) selected
  1263. @endif>{{$item->nickname}}</option>
  1264. @endforeach
  1265. @endif
  1266. </select>
  1267. </div>
  1268. </div>
  1269. <div class="form-group">
  1270. <label class="col-sm-2 control-label" for="editor_ids">建站采编:</label>
  1271. <div class="col-sm-10">
  1272. <select data-placeholder="选择建站采编..." multiple class="chosen-select"
  1273. style="width:350px;"
  1274. id="editor_ids" name="editor_ids">
  1275. <option value="">请选择建站采编</option>
  1276. @if(!empty($editors))
  1277. @foreach ($editors as $item)
  1278. <option value="{{$item->id}}"
  1279. @if(in_array($item->id,$hasEditorIds)) selected
  1280. @endif @if(!$detailEdit) disabled @endif>{{$item->nickname}}</option>
  1281. @endforeach
  1282. @endif
  1283. </select>
  1284. </div>
  1285. </div>
  1286. <div class="hr-line-dashed"></div>
  1287. <div class="form-group">
  1288. <label class="col-sm-2 control-label" for="optimizer_ids">优化组长:</label>
  1289. <div class="col-sm-10">
  1290. <select data-placeholder="选择优化组长..." multiple class="chosen-select"
  1291. style="width:350px;"
  1292. id="optimizer_ids" name="optimizer_ids">
  1293. <option value="">请选择优化组长</option>
  1294. @if(!empty($optimizers))
  1295. @foreach ($optimizers as $item)
  1296. <option value="{{$item->id}}"
  1297. @if(in_array($item->id,$hasOptimizerIds)) selected
  1298. @endif >{{$item->nickname}}</option>
  1299. @endforeach
  1300. @endif
  1301. </select>
  1302. </div>
  1303. </div>
  1304. <div class="form-group">
  1305. <label class="col-sm-2 control-label" for="optimization_editing_ids">优化师/优化采编:</label>
  1306. <div class="col-sm-10">
  1307. <select data-placeholder="选择优化师/优化采编..." multiple class="chosen-select"
  1308. style="width:350px;"
  1309. id="optimization_editing_ids" name="optimization_editing_ids">
  1310. <option value="">请选择优化师/优化采编</option>
  1311. @if(!empty($optimizationEditing))
  1312. @foreach ($optimizationEditing as $item)
  1313. <option value="{{$item->id}}"
  1314. @if(in_array($item->id,$hasOptimizationEditing)) selected
  1315. @endif>{{$item->nickname}}</option>
  1316. @endforeach
  1317. @endif
  1318. </select>
  1319. </div>
  1320. </div>
  1321. @if( in_array(\App\Http\Models\Contract::GOOGLE_BID,$data->contract_ids??[]))
  1322. <div class="form-group">
  1323. <label class="col-sm-2 control-label" for="bid_user_id">竞价人员:</label>
  1324. <div class="col-sm-10">
  1325. <select data-placeholder="选择竞价人员..." class="chosen-select"
  1326. style="width:350px;z-index: 99999"
  1327. id="bid_user_ids" name="bid_user_ids" multiple>
  1328. <option value="">请选择竞价人员</option>
  1329. @if(!empty($bidUsers))
  1330. @foreach ($bidUsers as $item)
  1331. <option value="{{$item->id}}"
  1332. @if(in_array($item->id,$hasBidIds)) selected
  1333. @endif>{{$item->nickname}}</option>
  1334. @endforeach
  1335. @endif
  1336. </select>
  1337. 是否属于竞价:
  1338. <input type="checkbox" id="bid_status" name="bid_status"
  1339. class="js-switch-bid"
  1340. @if($data->bid_status) checked @endif title=""
  1341. onchange="units.changeBidStatus()">
  1342. </div>
  1343. </div>
  1344. @endif
  1345. <div class="hr-line-dashed"></div>
  1346. <div class="form-group">
  1347. <label class="col-sm-2 control-label" for="article_edit_ids">软文查找人员:</label>
  1348. <div class="col-sm-10">
  1349. <select data-placeholder="请软文查找人员..." multiple class="chosen-select"
  1350. style="width:350px;"
  1351. id="article_edit_ids" name="article_edit_ids">
  1352. <option value="">请选择软文查找人员</option>
  1353. @if(!empty($propaganda))
  1354. @foreach ($propaganda as $item)
  1355. <option value="{{$item->id}}"
  1356. @if(in_array($item->id,$hasPropagandaIds)) selected
  1357. @endif>{{$item->nickname}}</option>
  1358. @endforeach
  1359. @endif
  1360. </select>
  1361. 是否特殊软文:
  1362. <input type="checkbox" id="spec_article" name="spec_article"
  1363. class="js-switch-spec"
  1364. @if($data->spec_article??false) checked @endif
  1365. title=""
  1366. onchange="units.changeSpecArticle()">
  1367. </div>
  1368. </div>
  1369. <div class="form-group">
  1370. <label class="col-sm-2 control-label" for="article_ids">软文更新人员:</label>
  1371. <div class="col-sm-10">
  1372. <select data-placeholder="选择软文更新人员..." multiple class="chosen-select"
  1373. style="width:350px;"
  1374. id="article_ids" name="article_ids">
  1375. <option value="">请选择软文更新人员</option>
  1376. @if(!empty($article))
  1377. @foreach ($article as $item)
  1378. <option value="{{$item->id}}"
  1379. @if(in_array($item->id,$hasArticleIds)) selected
  1380. @endif>{{$item->nickname}}</option>
  1381. @endforeach
  1382. @endif
  1383. </select>
  1384. </div>
  1385. </div>
  1386. <div class="hr-line-dashed"></div>
  1387. <div class="form-group">
  1388. <label class="col-sm-2 control-label" for="external_link_ids">社交外链人员:</label>
  1389. <div class="col-sm-10">
  1390. <select data-placeholder="选择社交外链人员..." multiple class="chosen-select"
  1391. style="width:350px;"
  1392. id="external_link_ids" name="external_link_ids">
  1393. <option value="">请选择社交外链人员</option>
  1394. @if(!empty($externalLink))
  1395. @foreach ($externalLink as $item)
  1396. <option value="{{$item->id}}"
  1397. @if(in_array($item->id,$hasExternalLinkIds)) selected
  1398. @endif>{{$item->nickname}}</option>
  1399. @endforeach
  1400. @endif
  1401. </select>
  1402. </div>
  1403. </div>
  1404. <div class="form-group">
  1405. <label class="col-sm-2 control-label" for="chongqing_link_ids">重庆外链人员:</label>
  1406. <div class="col-sm-10">
  1407. <select data-placeholder="选择重庆外链人员..." multiple class="chosen-select"
  1408. style="width:350px;"
  1409. id="chongqing_link_ids" name="chongqing_link_ids">
  1410. <option value="">请选择重庆外链人员</option>
  1411. @if(!empty($chongqingLink))
  1412. @foreach ($chongqingLink as $item)
  1413. <option value="{{$item->id}}"
  1414. @if(in_array($item->id,$hasChongqingLinkIds)) selected
  1415. @endif>{{$item->nickname}}</option>
  1416. @endforeach
  1417. @endif
  1418. </select>
  1419. </div>
  1420. </div>
  1421. <div class="hr-line-dashed"></div>
  1422. <div class="form-group">
  1423. <label class="col-sm-2 control-label" for="designer_ids">设计:</label>
  1424. <div class="col-sm-10">
  1425. <select data-placeholder="选择设计..." multiple class="chosen-select"
  1426. style="width:350px;"
  1427. id="designer_ids" name="designer_ids">
  1428. <option value="">请选择设计</option>
  1429. @if(!empty($designers))
  1430. @foreach ($designers as $item)
  1431. <option value="{{$item->id}}"
  1432. @if(in_array($item->id,$hasDesignerIds)) selected
  1433. @endif >{{$item->nickname}}</option>
  1434. @endforeach
  1435. @endif
  1436. </select>
  1437. </div>
  1438. </div>
  1439. <div class="form-group">
  1440. <label class="col-sm-2 control-label" for="web_ids">前端:</label>
  1441. <div class="col-sm-10">
  1442. <select data-placeholder="选择前端..." multiple class="chosen-select"
  1443. style="width:350px;"
  1444. id="web_ids" name="web_ids">
  1445. <option value="">请选择前端</option>
  1446. @if(!empty($webUsers))
  1447. @foreach ($webUsers as $item)
  1448. <option value="{{$item->id}}"
  1449. @if(in_array($item->id,$hasWebIds)) selected
  1450. @endif >{{$item->nickname}}</option>
  1451. @endforeach
  1452. @endif
  1453. </select>
  1454. </div>
  1455. </div>
  1456. <div class="hr-line-dashed"></div>
  1457. <div class="form-group">
  1458. <label class="col-sm-2 control-label" for="server_ids">客服:</label>
  1459. <div class="col-sm-10">
  1460. <select data-placeholder="选择客服人员..." multiple class="chosen-select"
  1461. style="width:350px;"
  1462. id="server_ids" name="server_ids">
  1463. <option value="">请选择客服人员</option>
  1464. @if(!empty($services))
  1465. @foreach ($services as $item)
  1466. <option value="{{$item->id}}"
  1467. @if(in_array($item->id,$hasServerIds)) selected
  1468. @endif>{{$item->nickname}}</option>
  1469. @endforeach
  1470. @endif
  1471. </select>
  1472. </div>
  1473. </div>
  1474. <div class="form-group">
  1475. <label class="col-sm-2 control-label" for="seller_ids">销售:</label>
  1476. <div class="col-sm-10">
  1477. <select data-placeholder="选择销售..." multiple class="chosen-select"
  1478. style="width:350px"
  1479. id="seller_ids" name="seller_ids">
  1480. <option value="">请选择销售</option>
  1481. @if(!empty($sellerUsers))
  1482. @foreach ($sellerUsers as $item)
  1483. <option value="{{$item->id}}"
  1484. @if(in_array($item->id,$hasSellerIds)) selected
  1485. @endif>{{$item->nickname}}</option>
  1486. @endforeach
  1487. @endif
  1488. </select>
  1489. </div>
  1490. </div>
  1491. <div class="form-group">
  1492. <div class="col-sm-4 col-sm-offset-2">
  1493. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1494. onclick="units.save(3)">
  1495. 保存
  1496. </button>
  1497. </div>
  1498. </div>
  1499. </form>
  1500. </div>
  1501. <div id="tab-3" class="lists">
  1502. <h4 class="o-h4" style="margin-top: 20px">pinterest配置</h4>
  1503. <form class="form-horizontal" id="pin">
  1504. <div class="form-group">
  1505. <label class="col-sm-3 control-label">client_id:</label>
  1506. <div class="col-sm-8">
  1507. <input type="text" class="form-control" name="app_id" placeholder=""
  1508. value="{{$pin['app_id']??''}}">
  1509. </div>
  1510. </div>
  1511. <div class="form-group">
  1512. <label class="col-sm-3 control-label">client_secret:</label>
  1513. <div class="col-sm-8">
  1514. <input type="text" class="form-control" name="app_secret" placeholder=""
  1515. value="{{$pin['app_secret']??''}}">
  1516. </div>
  1517. </div>
  1518. <div class="form-group">
  1519. <label class="col-sm-3 control-label">跳转url:</label>
  1520. <div class="col-sm-8">
  1521. <input type="text" class="form-control" name="redirect_url" placeholder=""
  1522. value="{{$pin['redirect_url']??''}}">
  1523. </div>
  1524. </div>
  1525. <div class="form-group">
  1526. <div class="col-sm-4 col-sm-offset-3">
  1527. <button class="btn btn-primary" type="button"
  1528. onclick="units.socialSave('pin')">
  1529. 保存
  1530. </button>
  1531. {{--<button class="btn btn-info" type="button">去授权</button>--}}
  1532. <a class="btn btn-info"
  1533. href="{{sprintf('https://wall.yinqingli.com/admin/socials/oauth?which=pinterest&siteId=%s',$siteId)}}"
  1534. target="_blank">去授权</a>
  1535. </div>
  1536. </div>
  1537. <div class="form-group">
  1538. <label class="col-sm-3 control-label">token:</label>
  1539. <div class="col-sm-8">
  1540. <input type="text" class="form-control" placeholder="" disabled
  1541. value="{{$pin['token']??''}}">
  1542. </div>
  1543. </div>
  1544. </form>
  1545. <hr>
  1546. <h4 class="o-h4">twitter配置</h4>
  1547. <form class="form-horizontal " id="twitter">
  1548. <div class="form-group">
  1549. <div class="col-sm-4 col-sm-offset-3">
  1550. {{--<button class="btn btn-primary" type="button"--}}
  1551. {{--onclick="units.socialSave('twitter')">--}}
  1552. {{--保存--}}
  1553. {{--</button>--}}
  1554. <a class="btn btn-info"
  1555. href="https://wall.yinqingli.com/admin/socials/oauth?which=twitter&siteId={{$siteId}}"
  1556. target="_blank">去绑定</a>
  1557. </div>
  1558. </div>
  1559. <div class="form-group">
  1560. <label class="col-sm-3 control-label">access token:</label>
  1561. <div class="col-sm-8">
  1562. <input type="text" class="form-control" placeholder="" disabled
  1563. value="{{$twitter['token']??''}}">
  1564. </div>
  1565. </div>
  1566. <div class="form-group">
  1567. <label class="col-sm-3 control-label">accesstoken secret:</label>
  1568. <div class="col-sm-8">
  1569. <input type="text" class="form-control" placeholder="" disabled
  1570. value="{{$twitter['token_secret']??''}}">
  1571. </div>
  1572. </div>
  1573. </form>
  1574. <hr>
  1575. <h4 class="o-h4">facebook配置</h4>
  1576. <form class="form-horizontal " id="facebook">
  1577. <div class="form-group">
  1578. <label class="col-sm-3 control-label" for="facebook_page">facebook公司主页:</label>
  1579. <div class="col-sm-8">
  1580. <input type="text" class="form-control" name="facebook_page"
  1581. value="{{$data->facebook_page??''}}">
  1582. </div>
  1583. </div>
  1584. <div class="form-group">
  1585. <label class="col-sm-3 control-label" for="facebook_page">facebook page token:</label>
  1586. <div class="col-sm-8">
  1587. <input type="text" class="form-control" name="facebook_page_token"
  1588. value="{{$data->facebook_page_token??''}}" disabled>
  1589. </div>
  1590. </div>
  1591. <div class="form-group">
  1592. <div class="col-sm-4 col-sm-offset-3">
  1593. <button class="btn btn-primary" type="button"
  1594. onclick="units.socialSave('facebook')">
  1595. 保存
  1596. </button>
  1597. </div>
  1598. </div>
  1599. <div class="form-group">
  1600. <label class="col-sm-3 control-label">过期时间:</label>
  1601. <div class="col-sm-8">
  1602. <input type="text" class="form-control" placeholder=""
  1603. value="{{$facebookSocial['page_token_expired_at']??''}}" disabled>
  1604. </div>
  1605. </div>
  1606. </form>
  1607. <hr>
  1608. <h4 class="o-h4">linkedIn 配置</h4>
  1609. <form class="form-horizontal " id="linkedIn">
  1610. <div class="form-group">
  1611. <label class="col-sm-3 control-label">企业组织ID:</label>
  1612. <div class="col-sm-8">
  1613. <input type="text" class="form-control" name="linkedin_orgid" placeholder=""
  1614. value="{{$linkedIn['linkedin_orgid']??''}}">
  1615. </div>
  1616. </div>
  1617. <div class="form-group">
  1618. <div class="col-sm-4 col-sm-offset-3">
  1619. <button class="btn btn-primary" type="button"
  1620. onclick="units.socialSave('linkedIn')">
  1621. 保存
  1622. </button>
  1623. {{--<a class="btn btn-info"--}}
  1624. {{--href="{{url('admin/socials/oauth?which=linkedIn&siteId='.$siteId)}}"--}}
  1625. {{--target="_blank">去授权</a>--}}
  1626. </div>
  1627. </div>
  1628. <div class="form-group">
  1629. <label class="col-sm-3 control-label">token:</label>
  1630. <div class="col-sm-8">
  1631. <input type="text" class="form-control" placeholder=""
  1632. value="{{$linkedBaseInfo['token']??''}}" disabled>
  1633. </div>
  1634. </div>
  1635. <div class="form-group">
  1636. <label class="col-sm-3 control-label">过期时间:</label>
  1637. <div class="col-sm-8">
  1638. <input type="text" class="form-control" placeholder=""
  1639. value="{{$linkedBaseInfo['token_expired_at']??''}}" disabled>
  1640. </div>
  1641. </div>
  1642. </form>
  1643. </div>
  1644. <div id="tab-4" class="lists">
  1645. <form class="form-horizontal" id="optimize" style="margin-top: 20px">
  1646. <div id="optimize_page">
  1647. <div style="padding: 5px 0">
  1648. <button type="button" class="btn btn-info" onclick="units.import()">
  1649. 导入关键词
  1650. </button>
  1651. <button type="button" class="btn btn-success" onclick="units.export()">
  1652. 导出
  1653. </button>
  1654. <button type="button" class="btn btn-danger" onclick="units.clearOptimize()">
  1655. 一键删除
  1656. </button>
  1657. </div>
  1658. @forelse($optimizePage as $inx=>$item)
  1659. <div class="form-group">
  1660. {{--<label class="col-sm-2 control-label" for="google_bid">布局关键字:</label>--}}
  1661. <div class="col-sm-offset-1 col-sm-8">
  1662. <label>布局关键字:</label>
  1663. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  1664. name="optimize_page_keyword" value="{{$item['keyword']}}">
  1665. <label style="margin-left: 15px">url地址:</label>
  1666. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  1667. name="optimize_page_url" value="{{$item['url']}}">
  1668. <label style="margin-left: 15px">已优化:</label>
  1669. <input type="checkbox" class="js-switch" name="optimize_page_is_optimize"
  1670. @if(!empty($item['is_optimize'])) checked @endif>
  1671. <input type="hidden" name="optimize_page_id" value="{{$item['id']}}">
  1672. @if($inx==0)
  1673. <button type="button" class="btn btn-info" onclick="units.addOptimizePage()">+
  1674. </button>
  1675. @else
  1676. <button type="button" class="btn btn-info"
  1677. onclick="units.removeOptimizePage(this)">-
  1678. </button>
  1679. @endif
  1680. </div>
  1681. </div>
  1682. @empty
  1683. <div class="form-group">
  1684. <div class="col-sm-offset-1 col-sm-8">
  1685. <label>布局关键字:</label>
  1686. <input type="text" class="form-control"
  1687. style="width: 250px;display: inline-block"
  1688. name="optimize_page_keyword" value="">
  1689. <label style="margin-left: 15px">url地址:</label>
  1690. <input type="text" class="form-control"
  1691. style="width: 250px;display: inline-block"
  1692. name="optimize_page_url" value="">
  1693. <label style="margin-left: 15px">已优化:</label>
  1694. <input type="checkbox" class="js-switch" name="optimize_page_is_optimize">
  1695. <input type="hidden" name="optimize_page_id" value="0">
  1696. <button type="button" class="btn btn-info" onclick="units.addOptimizePage()">+
  1697. </button>
  1698. </div>
  1699. </div>
  1700. @endforelse
  1701. </div>
  1702. <div class="form-group">
  1703. <div class="col-sm-9" style="text-align: center">
  1704. <button class="btn btn-success" type="button" data-id="{{$data->id??0}}"
  1705. onclick="units.optimizePageSave()">
  1706. 保存
  1707. </button>
  1708. </div>
  1709. </div>
  1710. </form>
  1711. </div>
  1712. <div id="tab-5" class="lists">
  1713. <form class="form-horizontal" id="account" style="margin-top: 20px">
  1714. <div class="form-group">
  1715. <label class="col-sm-2 control-label">管理员账号:</label>
  1716. <div class="col-sm-10">
  1717. <input type="text" class="form-control" name="adminAccount"
  1718. value="{{$siteInfo->admin_account??''}}">
  1719. </div>
  1720. </div>
  1721. <div class="form-group">
  1722. <label class="col-sm-2 control-label">管理员密码:</label>
  1723. <div class="col-sm-10">
  1724. <input type="text" class="form-control" name="adminPass"
  1725. value="{{$siteInfo->admin_pass??''}}">
  1726. </div>
  1727. </div>
  1728. <div class="form-group">
  1729. <label class="col-sm-2 control-label">用户账号:</label>
  1730. <div class="col-sm-10">
  1731. <input type="text" class="form-control" name="userAccount"
  1732. value="{{$siteInfo->user_account??''}}">
  1733. </div>
  1734. </div>
  1735. <div class="form-group">
  1736. <label class="col-sm-2 control-label">用户密码:</label>
  1737. <div class="col-sm-10">
  1738. <input type="text" class="form-control" name="userPass"
  1739. value="{{$siteInfo->user_pass??''}}">
  1740. </div>
  1741. </div>
  1742. <div class="form-group">
  1743. <label class="col-sm-2 control-label">app账号:</label>
  1744. <div class="col-sm-10">
  1745. <input type="text" class="form-control" name="appAccount"
  1746. value="{{$siteInfo->app_account??''}}">
  1747. </div>
  1748. </div>
  1749. <div class="form-group">
  1750. <label class="col-sm-2 control-label">app密码:</label>
  1751. <div class="col-sm-10">
  1752. <input type="text" class="form-control" name="appPass"
  1753. value="{{$siteInfo->app_pass??''}}">
  1754. </div>
  1755. </div>
  1756. <div class="form-group">
  1757. <div class="col-sm-9" style="text-align: center">
  1758. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1759. onclick="units.accountSave()">
  1760. 保存
  1761. </button>
  1762. </div>
  1763. </div>
  1764. </form>
  1765. </div>
  1766. <div id="tab-6" class="lists">
  1767. <form class="form-horizontal" id="time" style="margin-top: 20px;padding-bottom: 250px;">
  1768. <div class="form-group">
  1769. <label class="col-sm-2 control-label" for="sign_at">合同签订时间:</label>
  1770. <div class="col-sm-2">
  1771. <div class="input-group m-b">
  1772. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1773. <input type="text" class="form-control" id="sign_at" name="sign_at"
  1774. @if(!$baseEdit) disabled @endif
  1775. value="{{$data->sign_at??''}}">
  1776. </div>
  1777. </div>
  1778. <label class="col-sm-2 control-label" for="task_at"><span
  1779. class="red">* </span>建站任务起始时间:<br>(首付款时间)</label>
  1780. <div class="col-sm-4">
  1781. <div class="input-group m-b">
  1782. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1783. <input type="text" class="form-control" id="task_at" name="task_at" style="width: 200px"
  1784. @if(!$baseEdit) disabled @endif
  1785. value="{{$data->task_at}}" autocomplete="off">
  1786. @if(!empty($roles->is_super))
  1787. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  1788. onclick="units.delSitesTaskFlow()">
  1789. 清空建站流程
  1790. </button>
  1791. @endif
  1792. </div>
  1793. </div>
  1794. </div>
  1795. <div class="form-group">
  1796. <label class="col-sm-2 control-label" for="order_at"><span
  1797. class="red">* </span>下单时间:<br>(分配到项目部门)</label>
  1798. <div class="col-sm-2">
  1799. <div class="input-group m-b">
  1800. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1801. <input type="text" class="form-control" id="order_at" name="order_at"
  1802. @if(!$baseEdit) disabled @endif
  1803. value="{{$data->order_at}}" autocomplete="off">
  1804. </div>
  1805. </div>
  1806. <label class="col-sm-2 control-label" for="design_score">设计评分:</label>
  1807. <div class="col-sm-2">
  1808. <input type="text" class="form-control" id="design_score" name="design_score"
  1809. @if(!$baseEdit) disabled @endif
  1810. value="{{$data->design_score}}" autocomplete="off">
  1811. </div>
  1812. </div>
  1813. {{-- <div class="form-group">
  1814. <label class="col-sm-2 control-label" for="assign_at">分配时间:</label>
  1815. <div class="col-sm-4">
  1816. <div class="input-group m-b">
  1817. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1818. <input type="text" class="form-control" id="assign_at" name="assign_at"
  1819. @if(!$baseEdit) disabled @endif
  1820. value="{{$data->assign_at}}">
  1821. </div>
  1822. </div>
  1823. </div>--}}
  1824. <div class="form-group">
  1825. <label class="col-sm-2 control-label" for="online_at">上线时间:</label>
  1826. <div class="col-sm-2">
  1827. <div class="input-group m-b">
  1828. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1829. <input type="text" class="form-control" id="online_at" name="online_at"
  1830. @if(!$baseEdit) disabled @endif
  1831. value="{{$data->online_at}}">
  1832. </div>
  1833. </div>
  1834. <label class="col-sm-2 control-label" for="online_score">上线评分:</label>
  1835. <div class="col-sm-2">
  1836. <input type="text" class="form-control" id="online_score" name="online_score"
  1837. @if(!$baseEdit) disabled @endif
  1838. value="{{$data->online_score}}" autocomplete="off">
  1839. </div>
  1840. </div>
  1841. <div class="form-group">
  1842. <label class="col-sm-2 control-label" for="reach_at">达标时间:</label>
  1843. <div class="col-sm-2">
  1844. <div class="input-group m-b">
  1845. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1846. <input type="text" class="form-control" id="reach_at" name="reach_at"
  1847. @if(!$baseEdit) disabled @endif
  1848. value="{{$data->reach_at}}">
  1849. </div>
  1850. </div>
  1851. <label class="col-sm-2 control-label" for="reach_mail_at">达标邮件确认时间:</label>
  1852. <div class="col-sm-2">
  1853. <div class="input-group m-b">
  1854. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1855. <input type="text" class="form-control" id="reach_mail_at" name="reach_mail_at"
  1856. @if(!$baseEdit) disabled @endif
  1857. value="{{$data->reach_mail_at}}">
  1858. </div>
  1859. </div>
  1860. </div>
  1861. <div class="form-group">
  1862. <label class="col-sm-2 control-label" for="expired_at">到期时间:</label>
  1863. <div class="col-sm-2">
  1864. <div class="input-group m-b">
  1865. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1866. <input type="text" class="form-control" id="expired_at" name="expired_at"
  1867. @if(!$baseEdit) disabled @endif
  1868. value="{{$data->expired_at}}">
  1869. </div>
  1870. </div>
  1871. <label class="col-sm-2 control-label" for="reach_pay_at">达标款支付时间:</label>
  1872. <div class="col-sm-2">
  1873. <div class="input-group m-b">
  1874. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1875. <input type="text" class="form-control" id="reach_pay_at" name="reach_pay_at"
  1876. @if(!$baseEdit) disabled @endif
  1877. value="{{$data->reach_pay_at}}">
  1878. </div>
  1879. </div>
  1880. </div>
  1881. <div class="form-group">
  1882. <label class="col-sm-2 control-label" for="bq_at">百千约访时间:</label>
  1883. <div class="col-sm-2">
  1884. <div class="input-group m-b">
  1885. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1886. <input type="text" class="form-control" id="bq_at" name="bq_at"
  1887. @if(!$baseEdit) disabled @endif
  1888. value="{{$data->bq_at}}">
  1889. </div>
  1890. </div>
  1891. <label class="col-sm-2 control-label" for="bq_score">百千客户评分:</label>
  1892. <div class="col-sm-2">
  1893. <input type="text" class="form-control" id="bq_score" name="bq_score"
  1894. @if(!$baseEdit) disabled @endif
  1895. value="{{$data->bq_score}}" autocomplete="off">
  1896. </div>
  1897. </div>
  1898. <div class="form-group">
  1899. <label class="col-sm-2 control-label" for="status">项目状态:</label>
  1900. <div class="col-sm-2">
  1901. <select name="status" id="status" class="form-control" @if(!$baseEdit) disabled
  1902. @endif style="width: 200px">
  1903. <option value="">请选择</option>
  1904. @foreach(\App\Http\Models\Site::STATUS_MAP as $inx=>$val)
  1905. @if(!in_array($inx,[5,6]))
  1906. <option value="{{$inx}}"
  1907. @if($inx==($data->status)) selected @endif>{{$val}}</option>
  1908. @endif
  1909. @endforeach
  1910. </select>
  1911. </div>
  1912. <label class="col-sm-2 control-label" for="on_score">达标评分:</label>
  1913. <div class="col-sm-2">
  1914. <input type="text" class="form-control" id="reach_score" name="reach_score"
  1915. @if(!$baseEdit) disabled @endif
  1916. value="{{$data->reach_score}}" autocomplete="off">
  1917. </div>
  1918. </div>
  1919. <div class="hr-line-dashed"></div>
  1920. <div class="form-group">
  1921. <label class="col-sm-2 control-label" for="renewal_times">续费次数:</label>
  1922. <div class="col-sm-2">
  1923. <div class="input-group m-b" style="margin-left: 10px">
  1924. <select class="form-control" name="renewal_times" id="renewal_times"
  1925. style="width: 200px;">
  1926. <option value="">请选择</option>
  1927. @for($rTimes=1;$rTimes<=10;$rTimes++)
  1928. <option value="{{$rTimes}}"
  1929. @if(($data->renewal_times??'')==$rTimes) selected @endif>{{$rTimes}}次
  1930. </option>
  1931. @endfor
  1932. </select>
  1933. </div>
  1934. </div>
  1935. <label class="col-sm-2 control-label" for="renewal_amount">续费金额:</label>
  1936. <div class="col-sm-2">
  1937. <div class="input-group m-b" style="margin-left: 10px">
  1938. <input type="number" class="form-control" id="renewal_amount" name="renewal_amount"
  1939. style="width: 200px"
  1940. @if(!$baseEdit) disabled @endif
  1941. value="{{$data->renewal_amount??''}}">
  1942. </div>
  1943. </div>
  1944. </div>
  1945. <div class="form-group">
  1946. <label class="col-sm-2 control-label" for="renewal_at">续费时间:</label>
  1947. <div class="col-sm-2">
  1948. <div class="input-group m-b">
  1949. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1950. <input type="text" class="form-control" id="renewal_at" name="renewal_at"
  1951. @if(!$baseEdit) disabled @endif
  1952. value="{{$data->renewal_at}}">
  1953. </div>
  1954. </div>
  1955. <label class="col-sm-2 control-label" for="renew_years">最近一次续费年限:</label>
  1956. <div class="col-sm-2">
  1957. <div class="input-group m-b" style="margin-left: 10px">
  1958. <select class="form-control" name="renew_years" id="renew_years"
  1959. style="width: 200px;">
  1960. <option value="0">请选择</option>
  1961. <option value="1"
  1962. @if(!empty($data->renew_years) && $data->renew_years==1) selected @endif>1年
  1963. </option>
  1964. <option value="2"
  1965. @if(!empty($data->renew_years) && $data->renew_years==2) selected @endif>2年
  1966. </option>
  1967. <option value="3"
  1968. @if(!empty($data->renew_years) && $data->renew_years==3) selected @endif>3年
  1969. </option>
  1970. </select>
  1971. </div>
  1972. </div>
  1973. {{-- <label class="col-sm-2 control-label" for="is_renew">是否网站续费:</label>
  1974. <div class="col-sm-1">
  1975. <input type="checkbox" id="is_renew" name="is_renew"
  1976. class="js-switch-renew"
  1977. @if($data->is_renew??0) checked
  1978. @endif onchange="units.changeRenewStatus()">
  1979. </div>--}}
  1980. {{-- <label class="col-sm-2 control-label" for="is_current_month_online">当月上线目标:</label>
  1981. <div class="col-sm-1">
  1982. <input type="checkbox" id="is_current_month_online" name="is_current_month_online"
  1983. class="js-switch-online"
  1984. @if($data->is_current_month_online) checked
  1985. @endif onchange="units.changeCurrentMonthOnline()">
  1986. </div>--}}
  1987. </div>
  1988. {{-- <div class="form-group">
  1989. <label class="col-sm-2 control-label" for="renewal_end_at">续费结束时间:</label>
  1990. <div class="col-sm-2">
  1991. <div class="input-group m-b">
  1992. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  1993. <input type="text" class="form-control" id="renewal_end_at" name="renewal_end_at"
  1994. @if(!$baseEdit) disabled @endif
  1995. value="{{$data->renewal_end_at??""}}">
  1996. </div>
  1997. </div>
  1998. </div>--}}
  1999. <div class="hr-line-dashed"></div>
  2000. <div class="form-group">
  2001. <label class="col-sm-2 control-label" for="refund_date">退款时间:</label>
  2002. <div class="col-sm-2">
  2003. <div class="input-group m-b">
  2004. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2005. <input type="text" class="form-control" id="refund_date"
  2006. @if(!$baseEdit) disabled @endif
  2007. name="refund_date"
  2008. value="{{$data->refund_date}}">
  2009. </div>
  2010. </div>
  2011. <label class="col-sm-2 control-label" for="is_refund">是否退款:</label>
  2012. <div class="col-sm-2">
  2013. <input type="checkbox" id="is_refund" name="is_refund"
  2014. class="js-switch-refund"
  2015. @if($data->is_refund??0) checked
  2016. @endif onchange="units.changeRefundStatus()">
  2017. </div>
  2018. </div>
  2019. <div class="form-group">
  2020. <label class="col-sm-2 control-label" for="domain_expired_date">域名到期时间:</label>
  2021. <div class="col-sm-2">
  2022. <div class="input-group m-b">
  2023. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2024. <input type="text" class="form-control" id="domain_expired_date"
  2025. @if(!$baseEdit) disabled @endif
  2026. name="domain_expired_date"
  2027. value="{{$data->domain_expired_date}}">
  2028. </div>
  2029. </div>
  2030. <label class="col-sm-2 control-label" for="domain_us_buy">域名是否我们购买:</label>
  2031. <div class="col-sm-2">
  2032. <input type="checkbox" id="domain_us_buy" name="domain_us_buy"
  2033. class="js-switch-domain"
  2034. @if($data->domain_us_buy??0) checked
  2035. @endif onchange="units.changeDomainStatus()">
  2036. </div>
  2037. </div>
  2038. <div class="form-group">
  2039. <label class="col-sm-2 control-label" for="cdn_expired_date">cdn到期时间:</label>
  2040. <div class="col-sm-2">
  2041. <div class="input-group m-b">
  2042. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2043. <input type="text" class="form-control" id="cdn_expired_date"
  2044. name="cdn_expired_date"
  2045. value="{{$data->cdn_expired_date}}">
  2046. </div>
  2047. </div>
  2048. <label class="col-sm-2 control-label" for="is_cdn">是否cdn:</label>
  2049. <div class="col-sm-2">
  2050. <input type="checkbox" id="is_cdn" name="is_cdn"
  2051. class="js-switch-cdn"
  2052. @if($data->is_cdn) checked @endif onchange="units.changeCDNStatus()">
  2053. </div>
  2054. </div>
  2055. <div class="form-group">
  2056. <label class="col-sm-2 control-label" for="cert_expired_date">证书到期时间:</label>
  2057. <div class="col-sm-2">
  2058. <div class="input-group m-b">
  2059. <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  2060. <input type="text" class="form-control" id="cert_expired_date"
  2061. @if(!$baseEdit) disabled @endif
  2062. name="cert_expired_date"
  2063. value="{{$data->cert_expired_date}}">
  2064. </div>
  2065. </div>
  2066. <label class="col-sm-2 control-label" for="cert_us_buy">证书是否我们购买:</label>
  2067. <div class="col-sm-2">
  2068. <input type="checkbox" id="cert_us_buy" name="cert_us_buy"
  2069. class="js-switch-cert"
  2070. @if($data->cert_us_buy) checked @endif onchange="units.changeCertStatus()">
  2071. </div>
  2072. </div>
  2073. <div class="form-group">
  2074. <div class="col-sm-4 col-sm-offset-2">
  2075. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  2076. onclick="units.save(4)">
  2077. 保存
  2078. </button>
  2079. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  2080. </div>
  2081. </div>
  2082. </form>
  2083. </div>
  2084. <div id="tab-7" class="lists">
  2085. <form class="form-horizontal" id="server" style="margin-top: 20px;padding-bottom: 250px;">
  2086. <div class="form-group">
  2087. <label class="col-sm-2 control-label" for="server_id">服务器所在地:</label>
  2088. <div class="col-sm-8">
  2089. <select name="server_id" id="server_id" class="form-control"
  2090. @if(!$baseEdit) disabled @endif>
  2091. <option value="">请选择ip所在地</option>
  2092. @foreach($servers as $server)
  2093. <option value="{{$server->server_id}}"
  2094. @if($server->server_id==($data->server_id??null)) selected @endif>{{$server->server_ip}}</option>
  2095. @endforeach
  2096. </select>
  2097. </div>
  2098. </div>
  2099. <div class="form-group">
  2100. <label class="col-sm-2 control-label" for="self_support">是否是引擎力服务器:</label>
  2101. <div class="col-sm-8">
  2102. <select name="self_support" id="self_support" class="form-control">
  2103. <option value="0" @if($data->self_support==0) selected @endif>是</option>
  2104. <option value="1" @if($data->self_support==1) selected @endif>否</option>
  2105. </select>
  2106. </div>
  2107. </div>
  2108. <div class="form-group">
  2109. <label class="col-sm-2 control-label" for="is_stencil">是否是模版站:</label>
  2110. <div class="col-sm-8">
  2111. <select name="is_stencil" id="is_stencil" class="form-control">
  2112. <option value="0" @if($data->is_stencil==0) selected @endif>否</option>
  2113. <option value="1" @if($data->is_stencil==1) selected @endif>是</option>
  2114. </select>
  2115. </div>
  2116. </div>
  2117. <div class="form-group">
  2118. <label class="col-sm-2 control-label" for="api_url">api地址:</label>
  2119. <div class="col-sm-8">
  2120. <input type="text" class="form-control" id="api_url" name="api_url"
  2121. @if(!$baseEdit) disabled @endif
  2122. value="{{$data->api_url??''}}">
  2123. <span class="span" style="font-size: 12px;">填写正式域名加/openapi/ 例:http://www.baidu.com/openapi/ (注意https)</span>
  2124. </div>
  2125. </div>
  2126. <div class="form-group">
  2127. <label class="col-sm-2 control-label" for="webmaster_domain">webmaster域名:</label>
  2128. <div class="col-sm-8">
  2129. <input type="text" class="form-control" id="webmaster_domain" name="webmaster_domain"
  2130. @if(!$baseEdit) disabled @endif
  2131. value="{{$data->webmaster_domain??''}}">
  2132. <span class="span" style="font-size: 12px;">填写webmaster上填写的域名(一定要一模一样,注意https和斜杠) 例:http://www.baidu.com/</span>
  2133. </div>
  2134. </div>
  2135. <div class="form-group">
  2136. <label class="col-sm-2 control-label" for="database">项目数据库名:</label>
  2137. <div class="col-sm-8">
  2138. <input type="text" class="form-control" id="database" name="database"
  2139. @if(!$baseEdit) disabled @endif
  2140. value="{{$data->database??''}}">
  2141. </div>
  2142. </div>
  2143. <div class="form-group">
  2144. <label class="col-sm-2 control-label" for="code_dir">项目代码目录:</label>
  2145. <div class="col-sm-8">
  2146. <input type="text" class="form-control" id="code_dir" name="code_dir"
  2147. @if(!$baseEdit) disabled @endif
  2148. value="{{$data->code_dir??''}}">
  2149. </div>
  2150. </div>
  2151. <div class="form-group">
  2152. <label class="col-sm-2 control-label" for="cname_host_record_value">CNAME主机记录:</label>
  2153. <div class="col-sm-8">
  2154. <input type="text" class="form-control" id="cname_host_record_value"
  2155. name="cname_host_record_value"
  2156. @if(!$baseEdit) disabled @endif
  2157. value="{{$data->cname_host_record_value??''}}"
  2158. @if(in_array($data->status,[2,3])) disabled @endif>
  2159. </div>
  2160. </div>
  2161. <div class="form-group">
  2162. <label class="col-sm-2 control-label" for="cname_record_value">CNAME记录值:</label>
  2163. <div class="col-sm-8">
  2164. <input type="text" class="form-control" id="cname_record_value" name="cname_record_value"
  2165. @if(!$baseEdit) disabled @endif
  2166. value="{{$data->cname_record_value??''}}"
  2167. @if(in_array($data->status,[2,3])) disabled @endif>
  2168. </div>
  2169. </div>
  2170. <div class="form-group">
  2171. <div class="col-sm-4 col-sm-offset-2">
  2172. <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
  2173. onclick="units.save(5)">
  2174. 保存
  2175. </button>
  2176. {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
  2177. </div>
  2178. </div>
  2179. </form>
  2180. </div>
  2181. @if (empty($basePermission)&&empty($detailPermission))
  2182. <h1>无权限</h1>
  2183. @endif
  2184. </div>
  2185. </div>
  2186. <div id="add_google_bid_str" style="display: none">
  2187. <div class="form-group">
  2188. <label class="col-sm-2 control-label"></label>
  2189. <div class="col-sm-8">
  2190. <label>费用:</label>
  2191. <input type="text" class="form-control"
  2192. name="google_bid_fee" style="width: 150px;display: inline-block"
  2193. onchange="units.computeGoogleBidTotalFee()">
  2194. <label style="margin-left: 15px">时间:</label>
  2195. <input type="text" class="form-control"
  2196. name="google_bid_time" style="width: 250px;display: inline-block">
  2197. <button type="button" class="btn btn-info" onclick="units.removeGoogleBid(this)">-</button>
  2198. </div>
  2199. </div>
  2200. </div>
  2201. <div id="optimize_page_str" style="display: none">
  2202. <div class="form-group">
  2203. <div class="col-sm-offset-1 col-sm-8">
  2204. <label>布局关键字:</label>
  2205. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  2206. name="optimize_page_keyword">
  2207. <label style="margin-left: 15px">url地址:</label>
  2208. <input type="text" class="form-control" style="width: 250px;display: inline-block"
  2209. name="optimize_page_url">
  2210. <label style="margin-left: 15px">已优化:</label>
  2211. <input type="checkbox" class="js-switch" name="optimize_page_is_optimize">
  2212. <input type="hidden" name="optimize_page_id" value="0">
  2213. <button type="button" class="btn btn-info" onclick="units.removeOptimizePage(this)">-</button>
  2214. </div>
  2215. </div>
  2216. </div>
  2217. @endsection
  2218. @section('footer_extend')
  2219. <script src="{{asset('js/plugins/chosen/chosen.jquery.js')}}"></script>
  2220. <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
  2221. <script src="{{asset('js/plugins/switchery/switchery.js?v=1')}}"></script>
  2222. <script src="{{asset('js/plugins/distpicker-master/dist/distpicker.js?v=1')}}"></script>
  2223. <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/js/bootstrap-select.min.js"></script>
  2224. <script>
  2225. var RefundJsSwitch = document.querySelector(".js-switch-refund");
  2226. new Switchery(RefundJsSwitch, {color: "#1AB394", size: 'small'});
  2227. var BidJsSwitch = document.querySelector(".js-switch-bid");
  2228. new Switchery(BidJsSwitch, {color: "#1AB394", size: 'small'});
  2229. var SpecJsSwitch = document.querySelector(".js-switch-spec");//是否特殊软文
  2230. new Switchery(SpecJsSwitch, {color: "#1AB394", size: 'small'});
  2231. var CDBJsSwitch = document.querySelector(".js-switch-cdn");
  2232. new Switchery(CDBJsSwitch, {color: "#1AB394", size: 'small'});
  2233. var RenewJsSwitch = document.querySelector(".js-switch-renew");
  2234. new Switchery(RenewJsSwitch, {color: "#1AB394", size: 'small'});
  2235. var DomainJsSwitch = document.querySelector(".js-switch-domain");
  2236. new Switchery(DomainJsSwitch, {color: "#1AB394", size: 'small'});
  2237. var OnlineSwitch = document.querySelector(".js-switch-online");
  2238. new Switchery(OnlineSwitch, {color: "#1AB394", size: 'small'});
  2239. var CertJsSwitch = document.querySelector(".js-switch-cert");
  2240. new Switchery(CertJsSwitch, {color: "#1AB394", size: 'small'});
  2241. var CaseJsSwitch = document.querySelector(".js-switch-case");
  2242. new Switchery(CaseJsSwitch, {color: "#1AB394", size: 'small'});
  2243. var checked = CaseJsSwitch.checked ? 1 : 0;
  2244. if (checked === 0) {
  2245. $('.example').hide();
  2246. $('.case').hide();
  2247. } else {
  2248. $('.example').show();
  2249. $('.case').show();
  2250. }
  2251. var BqJsSwitch = document.querySelector(".js-switch-bq");
  2252. new Switchery(BqJsSwitch, {color: "#1AB394", size: 'small'});
  2253. $(".tabs-container .nav ul li").click(function () {
  2254. var i = $(this).index();
  2255. $(this).addClass("active").siblings().removeClass("active");
  2256. $(".tabs-container .tab-content .lists").eq(i).addClass("active").siblings().removeClass("active");
  2257. });
  2258. $(function () {
  2259. var needDateTime = ['#reach_pay_at', '#reach_mail_at', '#order_at', '#bq_at', '#online_at', '#reach_at', '#expired_at', '#sign_at', '#renewal_at', '#renewal_end_at', '#assign_at', '#bid_account_online_time', '#bid_account_pause_time', '#bid_score_time', '#task_at'];
  2260. for (var item in needDateTime) {
  2261. laydate.render({
  2262. elem: needDateTime[item], //指定元素
  2263. type: 'datetime'
  2264. });
  2265. }
  2266. var needDate = ['#cert_expired_date', '#domain_expired_date', '#cdn_expired_date', '#refund_date'];
  2267. for (var val in needDate) {
  2268. laydate.render({
  2269. elem: needDate[val], //指定元素
  2270. type: 'date'
  2271. });
  2272. }
  2273. var ele = $('[name="google_bid_time"]');
  2274. var total = 0;
  2275. ele.each(function () {
  2276. total += 1;
  2277. });
  2278. ele.each(function (inx, item) {
  2279. if ((total - 1) !== (inx)) {
  2280. // console.log(total, ele.length);
  2281. laydate.render({
  2282. elem: $(this)[0],
  2283. type: 'datetime'
  2284. });
  2285. }
  2286. });
  2287. laydate.render({
  2288. elem: '#google_bid_time', //指定元素
  2289. type: 'datetime'
  2290. });
  2291. $(".js-switch").each(function (inx, val) {
  2292. new Switchery(val, {color: "#1AB394", size: 'small'});
  2293. });
  2294. });
  2295. var config = {".chosen-select": {}};
  2296. for (var selector in config) $(selector).chosen(config[selector]);
  2297. var units = {
  2298. import: function () {
  2299. var str = '<div class="ibox-content" id="importLayer">' +
  2300. '<form class="form-horizontal">' +
  2301. '<div class="form-group">' +
  2302. '<label class="col-sm-3 control-label">请选择excel文件:</label>' +
  2303. '<div class="col-sm-6">' +
  2304. '<input type="file" id="excel_file" class="form-control">' +
  2305. '<input type="hidden" id="excel_path">' +
  2306. '</div>' +
  2307. '<div class="col-sm-2"><button class="btn btn-info" type="button" onclick="units.fileUpload()">上传</button></div>' +
  2308. '</div>' +
  2309. ' <div class="form-group">' +
  2310. '<div class="col-sm-6 col-sm-offset-3">' +
  2311. '<a href="{{asset('tpl/optimize_page.xlsx')}}">请下载导入模板</a>' +
  2312. '</div>' +
  2313. '</div>' +
  2314. '</form>' +
  2315. '</div>';
  2316. openIndex = layer.open({
  2317. type: 1,
  2318. content: str,
  2319. area: ['60%', '30%'],
  2320. title: '导入关键词',
  2321. });
  2322. },
  2323. export: function () {
  2324. window.open('/admin/sites/optimize-page/export?siteId={{$siteId}}');
  2325. },
  2326. clearOptimize: function () {
  2327. layer.confirm('您确定要删除吗?', {icon: 3, title: '删除信息'}, function (index, layero) {
  2328. layer.close(index);
  2329. $("#optimize_page").find(".form-group").each(function (inx) {
  2330. if (inx != 0) {
  2331. $(this).remove()
  2332. }
  2333. })
  2334. });
  2335. },
  2336. fileUpload: function () {
  2337. var config = {
  2338. url: '/admin/tool/excel-upload'
  2339. };
  2340. config.success = function (result) {
  2341. var data = {excel_path: result.data.file_url, siteId: "{{$siteId}}"};
  2342. var config = {
  2343. url: '/admin/sites/optimize-page/import',
  2344. type: 'post',
  2345. data: data,
  2346. success: function (result) {
  2347. layer.msg(result.message, {icon: 6, time: 1500}, function () {
  2348. layer.close(openIndex);
  2349. window.location.reload();
  2350. });
  2351. }
  2352. };
  2353. tips.ajax(config);
  2354. };
  2355. tips.fileUpload($("#excel_file"), config);
  2356. },
  2357. addOptimizePage: function () {
  2358. if ($("#optimize_page").find(":checkbox").length >= 20) {
  2359. layer.alert("最多只能添加20个", {icon: 5});
  2360. return;
  2361. }
  2362. $("#optimize_page").append($("#optimize_page_str").html());
  2363. },
  2364. removeOptimizePage: function (_this) {
  2365. $(_this).parent().parent().remove();
  2366. },
  2367. optimizePageSave: function () {
  2368. var groupData = [], optimize_page_keyword, optimize_page_url;
  2369. $("#optimize_page").find(".form-group").each(function () {
  2370. //console.log($(this).find("[name=optimize_page_keyword]").val());
  2371. optimize_page_keyword = $.trim($(this).find("[name=optimize_page_keyword]").val());
  2372. optimize_page_url = $.trim($(this).find("[name=optimize_page_url]").val());
  2373. if (optimize_page_keyword != "" || optimize_page_url != "") {
  2374. groupData.push({
  2375. keyword: optimize_page_keyword,
  2376. url: optimize_page_url,
  2377. is_optimize: $(this).find("[name=optimize_page_is_optimize]").prop("checked") ? 1 : 0,
  2378. id: $(this).find("[name=optimize_page_id]").val()
  2379. });
  2380. }
  2381. });
  2382. console.log(groupData);
  2383. var ajaxConfig = {
  2384. url: '/admin/sites/' + "{{$siteId}}" + '/optimize-page',
  2385. type: 'put',
  2386. data: {groupData: groupData},
  2387. success: function (result) {
  2388. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2389. // tips.closeParentLayer();
  2390. // window.parent.tips.tableRefresh('#table');
  2391. });
  2392. }
  2393. };
  2394. tips.ajax(ajaxConfig);
  2395. },
  2396. computeGoogleBidTotalFee: function () {
  2397. var total = 0;
  2398. var val;
  2399. $('[name="google_bid_fee"]').each(function (inx, item) {
  2400. val = parseInt($(this).val());
  2401. if (!isNaN(val)) {
  2402. total += val
  2403. }
  2404. });
  2405. var bid_give_fee = $("[name=bid_give_fee]").val();
  2406. bid_give_fee = parseInt(bid_give_fee);
  2407. if (!isNaN(bid_give_fee)) {
  2408. total += bid_give_fee
  2409. }
  2410. $("#googleBidFeeTotal").text(total)
  2411. },
  2412. addGoogleBid: function () {
  2413. $("#google_bid_chunk").append($("#add_google_bid_str").html());
  2414. var ele = $('[name="google_bid_time"]');
  2415. var total = 0;
  2416. ele.each(function () {
  2417. total += 1;
  2418. });
  2419. console.log('total=' + total);
  2420. ele.each(function (inx, item) {
  2421. if ((total - 2) === (inx)) { //倒数第二个
  2422. console.log(total, ele.length);
  2423. laydate.render({
  2424. elem: $(this)[0],
  2425. type: 'datetime'
  2426. });
  2427. }
  2428. });
  2429. },
  2430. removeGoogleBid: function (_this) {
  2431. $(_this).parent().parent().remove();
  2432. units.computeGoogleBidTotalFee()
  2433. },
  2434. changeBidStatus: function () {
  2435. var isChecked = BidJsSwitch.checked ? 1 : 0;
  2436. var ajaxConfig = {
  2437. url: '/admin/sites/' + "{{$siteId}}" + '/bid-status',
  2438. type: 'put',
  2439. data: {bidStatus: isChecked},
  2440. success: function () {
  2441. }
  2442. };
  2443. tips.ajax(ajaxConfig);
  2444. },
  2445. changeSpecArticle: function () {
  2446. var isChecked = SpecJsSwitch.checked ? 1 : 0;
  2447. var ajaxConfig = {
  2448. url: '/admin/sites/' + "{{$siteId}}" + '/spec-article',
  2449. type: 'put',
  2450. data: {spec_article: isChecked},
  2451. success: function () {
  2452. }
  2453. };
  2454. tips.ajax(ajaxConfig);
  2455. },
  2456. changeCDNStatus: function () {
  2457. var isChecked = CDBJsSwitch.checked ? 1 : 0;
  2458. var ajaxConfig = {
  2459. url: '/admin/sites/' + "{{$siteId}}" + '/cdn-status',
  2460. type: 'put',
  2461. data: {status: isChecked},
  2462. success: function () {
  2463. }
  2464. };
  2465. tips.ajax(ajaxConfig);
  2466. },
  2467. changeRefundStatus: function () {
  2468. var isChecked = RefundJsSwitch.checked ? 1 : 0;
  2469. var ajaxConfig = {
  2470. url: '/admin/sites/' + "{{$siteId}}" + '/refund-status',
  2471. type: 'put',
  2472. data: {status: isChecked},
  2473. success: function () {
  2474. }
  2475. };
  2476. tips.ajax(ajaxConfig);
  2477. },
  2478. changeDomainStatus: function () {
  2479. var isChecked = DomainJsSwitch.checked ? 1 : 0;
  2480. var ajaxConfig = {
  2481. url: '/admin/sites/' + "{{$siteId}}" + '/domain-status',
  2482. type: 'put',
  2483. data: {status: isChecked},
  2484. success: function () {
  2485. }
  2486. };
  2487. tips.ajax(ajaxConfig);
  2488. },
  2489. changeRenewStatus: function () {
  2490. var isChecked = RenewJsSwitch.checked ? 1 : 0;
  2491. var ajaxConfig = {
  2492. url: '/admin/sites/' + "{{$siteId}}" + '/renew-status',
  2493. type: 'put',
  2494. data: {status: isChecked},
  2495. success: function () {
  2496. }
  2497. };
  2498. tips.ajax(ajaxConfig);
  2499. },
  2500. changeCurrentMonthOnline: function () {
  2501. var isChecked = OnlineSwitch.checked ? 1 : 0;
  2502. var ajaxConfig = {
  2503. url: '/admin/sites/' + "{{$siteId}}" + '/online-status',
  2504. type: 'put',
  2505. data: {status: isChecked},
  2506. success: function () {
  2507. }
  2508. };
  2509. tips.ajax(ajaxConfig);
  2510. },
  2511. changeCertStatus: function () {
  2512. var isChecked = CertJsSwitch.checked ? 1 : 0;
  2513. var ajaxConfig = {
  2514. url: '/admin/sites/' + "{{$siteId}}" + '/cert-status',
  2515. type: 'put',
  2516. data: {status: isChecked},
  2517. success: function () {
  2518. }
  2519. };
  2520. tips.ajax(ajaxConfig);
  2521. },
  2522. changeCaseStatus: function () {
  2523. var isChecked = CaseJsSwitch.checked ? 1 : 0;
  2524. if (isChecked === 0) {
  2525. $('.example').hide();
  2526. $('.case').hide();
  2527. } else {
  2528. $('.example').show();
  2529. $('.case').show();
  2530. }
  2531. var ajaxConfig = {
  2532. url: '/admin/sites/' + "{{$siteId}}" + '/case-status',
  2533. type: 'put',
  2534. data: {status: isChecked},
  2535. success: function () {
  2536. }
  2537. };
  2538. tips.ajax(ajaxConfig);
  2539. },
  2540. changeIsBq: function () {
  2541. var isChecked = BqJsSwitch.checked ? 1 : 0;
  2542. var ajaxConfig = {
  2543. url: '/admin/sites/' + "{{$siteId}}" + '/bq-status',
  2544. type: 'put',
  2545. data: {status: isChecked},
  2546. success: function () {
  2547. }
  2548. };
  2549. tips.ajax(ajaxConfig);
  2550. },
  2551. socialSave: function (type) {
  2552. var formValues = tips.getFormValues('#' + type);
  2553. var data = {};
  2554. data[type] = formValues;
  2555. data.type = type;
  2556. var ajaxConfig = {
  2557. url: '/admin/sites/' + "{{$siteId}}" + '/social',
  2558. type: 'post',
  2559. data: data,
  2560. success: function (result) {
  2561. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2562. // tips.closeParentLayer();
  2563. // window.parent.tips.tableRefresh('#table');
  2564. });
  2565. }
  2566. };
  2567. tips.ajax(ajaxConfig);
  2568. },
  2569. accountSave: function (type) {
  2570. var formValues = tips.getFormValues('#account');
  2571. var ajaxConfig = {
  2572. url: '/admin/sites/' + "{{$siteId}}" + '/account',
  2573. type: 'post',
  2574. data: formValues,
  2575. success: function (result) {
  2576. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2577. // tips.closeParentLayer();
  2578. // window.parent.tips.tableRefresh('#table');
  2579. });
  2580. }
  2581. };
  2582. tips.ajax(ajaxConfig);
  2583. },
  2584. save: function (type) {
  2585. var data, url = '/admin/sites/' + "{{$siteId}}" + '/overview';
  2586. if (type === 1) {
  2587. data = units.basic(type);
  2588. } else if (type === 2) {
  2589. data = units.detail(type);
  2590. } else if (type === 3) {
  2591. data = units.people(type);
  2592. } else if (type === 4) {
  2593. data = units.timeFrame(type);
  2594. } else if (type === 5) {
  2595. data = units.server(type);
  2596. }
  2597. var ajaxConfig = {
  2598. url: url,
  2599. type: 'put',
  2600. data: data,
  2601. success: function (result) {
  2602. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2603. // tips.closeParentLayer();
  2604. // window.parent.tips.tableRefresh('#table');
  2605. });
  2606. }
  2607. };
  2608. tips.ajax(ajaxConfig);
  2609. },
  2610. basic: function (type) {
  2611. var contacts = [];
  2612. $(".contacts").each(function () { //客户联系人
  2613. contacts.push({
  2614. name: $(this).find("[name=contact_name]").val(),
  2615. email: $(this).find("[name=contact_email]").val(),
  2616. mobile: $(this).find("[name=contact_mobile]").val(),
  2617. position: $(this).find("[name=contact_position]").val()
  2618. });
  2619. });
  2620. var areaText = [];
  2621. $("[name=area_text]").each(function () { //地区
  2622. if ($(this).val().length !== 0) {
  2623. areaText.push($(this).val());
  2624. }
  2625. });
  2626. var site = tips.getFormValues('#basic');
  2627. if (site.report_day) {
  2628. site.report_day = parseInt(site.report_day);
  2629. }
  2630. site.contacts = contacts;
  2631. site.area_text = areaText;
  2632. site.contract_ids = $("#contract_ids").val();
  2633. var infoList = [];
  2634. $('input[name="enterprise_nature"]:checked').each(function () {
  2635. infoList.push($(this).val());
  2636. });
  2637. site.enterprise_nature = infoList.toString();
  2638. var caseList = [];
  2639. $('input[name="case_ids"]:checked').each(function () {
  2640. caseList.push($(this).val());
  2641. });
  2642. site.case_ids = caseList.toString();
  2643. return {type: type, site: site};
  2644. },
  2645. detail: function (type) {
  2646. var googleBid = [];
  2647. $("[name=google_bid_fee]").each(function () {
  2648. googleBid.push({
  2649. google_bid_fee: $(this).val(),
  2650. google_bid_time: $(this).siblings("input").val()
  2651. });
  2652. });
  2653. googleBid.pop();
  2654. var payment = {
  2655. head: $("#head").val(),
  2656. head_type: $("#head_type").val(),
  2657. head_invoicing_type: $("#head_invoicing_type").val(),
  2658. done: $("#done").val(),
  2659. done_type: $("#done_type").val(),
  2660. done_invoicing_type: $("#done_invoicing_type").val(),
  2661. reach: $("#reach").val(),
  2662. reach_type: $("#reach_type").val(),
  2663. reach_invoicing_type: $("#reach_invoicing_type").val(),
  2664. service_final_payment: $("#service_final_payment").val(),
  2665. service_final_payment_type: $("#service_final_payment_type").val(),
  2666. service_final_payment_invoicing_type: $("#service_final_payment_invoicing_type").val(),
  2667. renewal: $("#renewal").val(),
  2668. renewal_type: $("#renewal_type").val(),
  2669. renewal_invoicing_type: $("#renewal_invoicing_type").val(),
  2670. contract_total_fee: $("#contract_total_fee").val(),
  2671. google_optimize_fee: $("#google_optimize_fee").val(),
  2672. refund: $("#refund").val(),
  2673. refund_reason: $("#refund_reason").val(),
  2674. refund_reason_analyze: $("#refund_reason_analyze").val(),
  2675. not_renewed_reason: $("#not_renewed_reason").val(),
  2676. not_renewed_reason_analyze: $("#not_renewed_reason_analyze").val(),
  2677. remarks: $("#remarks").val(),
  2678. bid_give_fee: $("#bid_give_fee").val(),
  2679. google_bid: googleBid,
  2680. bid_score: $("#bid_score").val(),
  2681. bid_score_time: $("#bid_score_time").val(),
  2682. bid_login_account: $("#bid_login_account").val(),
  2683. bid_account_online_time: $("#bid_account_online_time").val(),
  2684. bid_account_pause_time: $("#bid_account_pause_time").val(),
  2685. wiki_fee: $("#wiki_fee").val(),
  2686. other_fee: $("#other_fee").val()
  2687. };
  2688. return {type: type, payment: payment};
  2689. },
  2690. people: function (type) {
  2691. var allot = {
  2692. manager_ids: $("#manager_ids").val(),
  2693. manage_helper_ids: $("#manage_helper_ids").val(),
  2694. designer_ids: $("#designer_ids").val(),
  2695. web_ids: $("#web_ids").val(),
  2696. optimizer_ids: $("#optimizer_ids").val(),
  2697. editor_ids: $("#editor_ids").val(),
  2698. server_ids: $("#server_ids").val(),
  2699. article_ids: $("#article_ids").val(),
  2700. bid_user_ids: $("#bid_user_ids").val(),
  2701. seller_ids: $("#seller_ids").val(),
  2702. article_edit_ids: $("#article_edit_ids").val(),
  2703. external_link_ids: $("#external_link_ids").val(),
  2704. chongqing_link_ids: $("#chongqing_link_ids").val(),
  2705. optimization_editing_ids: $("#optimization_editing_ids").val()
  2706. };
  2707. return {type: type, allot: allot};
  2708. },
  2709. timeFrame: function (type) {
  2710. var site = tips.getFormValues('#time');
  2711. if (site.report_day) {
  2712. site.report_day = parseInt(site.report_day);
  2713. }
  2714. return {type: type, site: site};
  2715. },
  2716. server: function (type) {
  2717. var site = tips.getFormValues('#server');
  2718. if (site.report_day) {
  2719. site.report_day = parseInt(site.report_day);
  2720. }
  2721. return {type: type, site: site};
  2722. },
  2723. delSitesTaskFlow: function () {
  2724. layer.confirm('您确定要清空建站流程吗?', {icon: 3, title: '清空建站流程'}, function (index, layero) {
  2725. layer.close(index);
  2726. var url = '/admin/flow/delSitesTaskFlow/{{$siteId}}';
  2727. var ajaxConfig = {
  2728. url: url,
  2729. type: 'put',
  2730. data: {},
  2731. success: function (result) {
  2732. layer.msg(result.message, {icon: 6, time: 1000}, function () {
  2733. });
  2734. }
  2735. };
  2736. tips.ajax(ajaxConfig);
  2737. });
  2738. }
  2739. };
  2740. $(document).on('click', '[name=file_upload]', function () {
  2741. $(this).next().trigger('click');
  2742. });
  2743. $(document).on('change', '[name=uploadFile]', function () {
  2744. var _this = this;
  2745. if (!$(this)[0].files[0]) {
  2746. return;
  2747. }
  2748. var formData = new FormData();
  2749. formData.append('files[]', $(this)[0].files[0]);
  2750. formData.append('siteId', "{{$siteId}}");
  2751. var maxSize = 4096;//文件上传大小限制
  2752. var size = $(this)[0].files[0].size;
  2753. var fileSize = (size / 1024).toFixed(2);
  2754. if (fileSize > maxSize) {
  2755. layer.alert("上传文件不许超过4MB", {icon: 5});
  2756. return;
  2757. }
  2758. var ln;
  2759. $.ajax({
  2760. url: '/admin/stencil/bulkUpload',
  2761. type: 'POST',
  2762. cache: false,
  2763. data: formData,
  2764. processData: false,
  2765. contentType: false,
  2766. beforeSend: function () {
  2767. ln = layer.load();
  2768. },
  2769. complete: function () {
  2770. layer.close(ln);
  2771. },
  2772. success: function (result) {
  2773. var data = result.data[0];
  2774. $('#' + $(_this).data('for')).attr('src', data.file_url);
  2775. $(_this).next().val(data.file_url);
  2776. },
  2777. error: function (XMLHttpRequest) {
  2778. if (XMLHttpRequest.status === 500) {
  2779. layer.alert("异步请求失败", {icon: 5});
  2780. return;
  2781. }
  2782. layer.alert(JSON.parse(XMLHttpRequest.responseText).message, {icon: 0});
  2783. }
  2784. });
  2785. });
  2786. </script>
  2787. @endsection