123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297 |
- @extends('admin/site/side_layout')
- @section('header_extend')
- <link rel="stylesheet" href="{{asset('css/plugins/chosen/chosen.css')}}">
- <link rel="stylesheet" href="{{asset('css/plugins/switchery/switchery.css')}}">
- <link rel="stylesheet"
- href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">
- <style>
- .for_area {
- display: inline-block;
- width: 200px;
- }
- /* .upload_img {
- height: 150px;
- }*/
- .tabs-container .tab-content .lists {
- height: 0;
- overflow: hidden;
- }
- .tabs-container .tab-content .lists.active {
- height: auto;
- }
- .wrapper-content .col-sm-2.control-label {
- padding-top: 7px;
- }
- .search-choice span {
- color: grey !important;
- }
- .form-control:focus, .single-line:focus {
- border-color: #009688 !important;
- }
- .span {
- color: #009688 !important;
- }
- .tabs-left ul li.active {
- background: #009688 !important;
- }
- .btn-primary, .btn-info {
- background: #f3f3f3 !important;
- border-color: #e6e6e6 !important;
- color: #656565 !important;
- outline: none;
- }
- .btn-primary:hover, .btn-info:hover {
- background: #009688 !important;
- border-color: #009688 !important;
- color: #fff !important;
- }
- .tabs-left {
- position: fixed;
- width: 16.6666%;
- left: 0;
- top: 0;
- }
- .nav-tabs {
- border-color: #009688 !important;
- padding-bottom: 16px;
- position: relative;
- min-height: 57px;
- padding-left: 7%;
- overflow: hidden;
- }
- .nav-tabs:before {
- content: '';
- display: block;
- width: 20px;
- height: 1px;
- background: #009688;
- position: absolute;
- left: -20px;
- bottom: -1px;
- clear: both;
- }
- .nav-tabs:after {
- content: '';
- display: block;
- width: 20px;
- height: 1px;
- background: #009688;
- position: absolute;
- right: -20px;
- bottom: -1px;
- clear: both;
- }
- .nav-tabs > li > a {
- padding: 7px 6px;
- border: none !important;
- }
- .nav.nav-tabs li {
- border-top: 1px solid #c7c7c7;
- border-bottom: 1px solid #c7c7c7;
- margin: 0 24px 10px;
- position: relative;
- }
- .nav.nav-tabs li:before {
- content: '';
- width: 17px;
- height: 25px;
- border-left: 1px solid #c7c7c7;
- border-top: 1px solid #c7c7c7;
- position: absolute;
- left: -17px;
- top: -1px;
- z-index: 66;
- }
- .nav.nav-tabs li:after {
- content: '';
- width: 17px;
- height: 26px;
- border-right: 1px solid #c7c7c7;
- border-bottom: 1px solid #c7c7c7;
- position: absolute;
- right: -16px;
- bottom: -1px;
- z-index: 66;
- }
- .nav.nav-tabs li a {
- margin: 0 !important;
- color: #363636;
- }
- .nav.nav-tabs li a:before {
- content: '';
- display: block;
- width: 20px;
- height: 1px;
- background: #c7c7c7;
- -webkit-transform: rotate(30deg);
- -moz-transform: rotate(30deg);
- -ms-transform: rotate(30deg);
- -o-transform: rotate(30deg);
- transform: rotate(30deg);
- position: absolute;
- left: -18px;
- top: 28px;
- }
- .nav.nav-tabs li a:after {
- content: '';
- display: block;
- width: 20px;
- height: 1px;
- background: #c7c7c7;
- -webkit-transform: rotate(30deg);
- -moz-transform: rotate(30deg);
- -ms-transform: rotate(30deg);
- -o-transform: rotate(30deg);
- transform: rotate(30deg);
- position: absolute;
- right: -17px;
- bottom: 29px;
- }
- .nav.nav-tabs li.active {
- background: #009688 !important;
- border: none;
- }
- .nav.nav-tabs li.active:before, .nav.nav-tabs li.active:after {
- height: 34px;
- background: #009688 !important;
- border-color: #009688 !important;
- top: -1px;
- }
- .nav.nav-tabs li.active a {
- color: #fff !important;
- background: #009688 !important;
- }
- .nav.nav-tabs li.active a:before {
- width: 18px;
- height: 8px;
- border-color: none;
- background: #fff !important;
- left: -20px;
- top: 28px;
- z-index: 100;
- }
- .nav.nav-tabs li.active a:after {
- width: 18px;
- height: 8px;
- border-color: none;
- background: #fff !important;
- right: -20px;
- bottom: 28px;
- z-index: 100;
- }
- .red {
- color: #f99631 !important;
- }
- .o-h4 {
- padding-right: 77%;
- text-align: right;
- color: #009688 !important;
- }
- .radio-label,
- .radio-check {
- display: inline-block;
- position: relative;
- }
- .radio-label input[type="radio"] {
- appearance: none; /*清楚默认样式*/
- -webkit-appearance: none;
- /* opacity: 0; */
- outline: none;
- position: absolute;
- z-index: 2;
- width: 6px;
- height: 6px;
- top: 10px;
- left: 10px;
- border-radius: 50%;
- background: #b4b4b4;
- }
- .radio-label label {
- display: inline-block;
- min-width: 50px;
- height: 30px;
- line-height: 30px;
- text-align: center;
- padding-right: 10px;
- border-radius: 5px;
- padding-left: 25px;
- color: #fff;
- background-color: #c9c9c9;
- }
- .radio-label input[type="radio"]:checked {
- opacity: 0;
- }
- .radio-label input[type="radio"]:checked + label {
- color: #fff;
- background-color: #009688;
- }
- .radio-label input[type="radio"]:checked + label::after {
- content: "";
- position: absolute;
- left: 12px;
- top: 5px;
- width: 5px;
- height: 12px;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- transform: rotate(45deg);
- }
- .checkbox-label,
- .checkbox-check {
- display: inline-block;
- position: relative;
- }
- .checkbox-label input[type="checkbox"] {
- appearance: none; /*清楚默认样式*/
- -webkit-appearance: none;
- /* opacity: 0; */
- outline: none;
- position: absolute;
- z-index: 2;
- width: 6px;
- height: 6px;
- top: 10px;
- left: 10px;
- border-radius: 50%;
- background: #b4b4b4;
- }
- .checkbox-label label {
- display: inline-block;
- min-width: 50px;
- height: 30px;
- line-height: 30px;
- text-align: center;
- padding-right: 10px;
- border-radius: 5px;
- padding-left: 25px;
- color: #fff;
- background-color: #c9c9c9;
- }
- .checkbox-label input[type="checkbox"]:checked {
- opacity: 0;
- }
- .checkbox-label input[type="checkbox"]:checked + label {
- color: #fff;
- background-color: #009688;
- }
- .checkbox-label input[type="checkbox"]:checked + label::after {
- content: "";
- position: absolute;
- left: 12px;
- top: 5px;
- width: 5px;
- height: 12px;
- border-right: 1px solid #fff;
- border-bottom: 1px solid #fff;
- transform: rotate(45deg);
- }
- </style>
- @endsection
- @section('right')
- <div class="tabs-container">
- <ul class="nav nav-tabs">
- @php $basePermission=false; @endphp
- @php $baseEdit=1; @endphp
- @hasAuth('site-base-view')
- @php $basePermission=true; @endphp
- <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a></li>
- @endHasAuth
- @hasAuth('site-detail-view')
- @php $detailPermission=true; @endphp
- <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">详细信息</a></li>
- @endHasAuth
- <li class=""><a data-toggle="tab" href="#tab-21" aria-expanded="false">人员配置</a>
- </li>
- <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">社交授权</a>
- </li>
- <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">重点优化</a>
- </li>
- <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">账号管理</a>
- </li>
- <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">时间节点与评分</a>
- </li>
- <li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">服务器及配置</a>
- </li>
- </ul>
- <div class="tab-content">
- @if(!empty($basePermission))
- @php $baseEdit=0; @endphp
- @hasAuth('site-base-edit')
- @php $baseEdit=1; @endphp
- @endHasAuth
- <div id="tab-1" class="lists active">
- <form class="form-horizontal" id="basic" style="padding-top: 20px">
- <div class="form-group">
- <label class="col-sm-2 control-label">项目编号:</label>
- <div class="col-sm-8" style="padding-top: 7px;">
- {{$data->identifier ?? ''}}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">项目原始Id:</label>
- <label class="col-sm-2 control-label" style="text-align: left;margin-left: 15px">
- {{$data->old_id ?? ''}}
- </label>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="domain_us_buy">是否百千计划:</label>
- <div class="col-sm-2">
- <input type="checkbox" id="is_bq" name="is_bq"
- class="js-switch-bq"
- @if($data->is_bq??0) checked @endif onchange="units.changeIsBq()">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="domain_us_buy">是否案例:</label>
- <div class="col-sm-2" style="width: 50px">
- <input type="checkbox" id="is_case" name="is_case"
- class="js-switch-case"
- @if($data->is_case??0) checked @endif onchange="units.changeCaseStatus()">
- </div>
- <div class="col-sm-3 example">
- <input type="text" class="form-control" id="example_url" name="example_url"
- value="{{$data->example_url ?? ''}}" placeholder="案例Id:{{$data->id ?? ''}}">
- </div>
- </div>
- <div class="form-group case">
- <label class="col-sm-2 control-label" for="case_ids"><span
- class="red">* </span>案例板块:</label>
- <div class="checkbox-label">
- <input type="checkbox" id="color21" name="case_ids" value="21"
- @if (in_array("21",$case_ids)) checked="checked" @endif>
- <label for="color21">结构化数据呈现</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color22" name="case_ids" value="22"
- @if (in_array("22",$case_ids)) checked="checked" @endif>
- <label for="color22">关键词分析</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color23" name="case_ids" value="23"
- @if (in_array("23",$case_ids)) checked="checked" @endif>
- <label for="color23">软文优化</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color24" name="case_ids" value="24"
- @if (in_array("24",$case_ids)) checked="checked" @endif>
- <label for="color24">维基百科</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color25" name="case_ids" value="25"
- @if (in_array("25",$case_ids)) checked="checked" @endif>
- <label for="color25">知识图谱</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color26" name="case_ids" value="26"
- @if (in_array("26",$case_ids)) checked="checked" @endif>
- <label for="color26">竞价</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color27" name="case_ids" value="27"
- @if (in_array("27",$case_ids)) checked="checked" @endif>
- <label for="color27">付费外链</label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="contract_ids"><span
- class="red">* </span>企业性质:</label>
- <div class="checkbox-label">
- <input type="checkbox" id="color11" name="enterprise_nature" value="1"
- @if (in_array("1",$enterpriseNature)) checked="checked" @endif>
- <label for="color11">500强</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color12" name="enterprise_nature" value="2"
- @if (in_array("2",$enterpriseNature)) checked="checked" @endif>
- <label for="color12">上市公司</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color13" name="enterprise_nature" value="3"
- @if (in_array("3",$enterpriseNature)) checked="checked" @endif>
- <label for="color13">国企</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color14" name="enterprise_nature" value="4"
- @if (in_array("4",$enterpriseNature)) checked="checked" @endif>
- <label for="color14">行业龙头</label>
- </div>
- <div class="checkbox-label">
- <input type="checkbox" id="color15" name="enterprise_nature" value="5"
- @if (in_array("5",$enterpriseNature)) checked="checked" @endif>
- <label for="color15">保密</label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="cn_title"><span
- class="red">* </span>项目名称(中文):</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="cn_title" name="cn_title"
- @if(!$baseEdit) disabled @endif
- value="{{$data->cn_title ?? ''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="title"><span
- class="red">* </span>项目名称(英文):</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="en_title" name="en_title"
- @if(!$baseEdit) disabled @endif
- value="{{$data->en_title ?? ''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="brand"><span
- class="red">* </span>项目品牌名:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="brand" name="brand"
- @if(!$baseEdit) disabled @endif
- value="{{$data->brand ?? ''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="password"><span class="red">* </span>域名:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="domain" name="domain"
- @if(!$baseEdit) disabled @endif
- value="{{$data->domain??''}}">
- <span class="span" style="font-size: 12px;">如果有直接填写进去,如果无,请填写意向域名。请填写主域<span
- style="color: red">不要填写中文,不要包含www</span>,例:baidu.com</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="password"></label>
- <div class="col-sm-8" style="display: flex;justify-content: space-between;max-width: 500px">
- <div class="col-sm-12" style="margin: 0 -10px">
- <label>站点logo:</label>
- <button type="button" class="btn btn-primary" name="file_upload"
- @if(!$baseEdit) disabled @endif>文件上传
- </button>
- <input type="file" value="" style="display: none" name="uploadFile"
- data-for="logo_img">
- <input type="hidden" id="site_logo" name="site_logo"
- value="{{$data->site_logo??''}}">
- <img id="logo_img" class="upload_img" src="{{$data->site_logo??''}}"
- style="width: 100%;object-fit: cover;margin-top: 5px">
- </div>
- <div class="col-sm-12" style="margin: 0 -10px">
- <label>营业执照:</label>
- <button type="button" class="btn btn-primary" name="file_upload"
- @if(!$baseEdit) disabled @endif>文件上传
- </button>
- <input type="file" value="" style="display: none" name="uploadFile"
- data-for="business_license_business_scope_img">
- <input type="hidden" id="business_license_business_scope"
- name="business_license_business_scope"
- value="{{$data->business_license_business_scope??''}}">
- <img id="business_license_business_scope_img" class="upload_img"
- src="{{$data->business_license_business_scope??''}}"
- style="width: 100%;object-fit: cover;margin-top: 5px">
- </div>
- </div>
- </div>
- {{-- <div class="form-group">
- <label class="col-sm-2 control-label">站点logo:</label>
- <div class="col-sm-4">
- <button type="button" class="btn btn-primary" name="file_upload"
- @if(!$baseEdit) disabled @endif>文件上传
- </button>
- <input type="file" value="" style="display: none" name="uploadFile"
- data-for="logo_img">
- <input type="hidden" id="site_logo" name="site_logo" value="{{$data->site_logo??''}}">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-8 col-sm-offset-2">
- <img id="logo_img" class="upload_img" src="{{$data->site_logo??''}}">
- </div>
- </div>--}}
- {{-- <div class="form-group">
- <label class="col-sm-2 control-label">营业执照:</label>
- <div class="col-sm-4">
- <button type="button" class="btn btn-primary" name="file_upload"
- @if(!$baseEdit) disabled @endif>文件上传
- </button>
- <input type="file" value="" style="display: none" name="uploadFile"
- data-for="business_license_business_scope_img">
- <input type="hidden" id="business_license_business_scope"
- name="business_license_business_scope"
- value="{{$data->business_license_business_scope??''}}">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-8 col-sm-offset-2">
- <img id="business_license_business_scope_img" class="upload_img"
- src="{{$data->business_license_business_scope??''}}">
- </div>
- </div>--}}
- <div class="form-group">
- <label class="col-sm-2 control-label" for="site_type"><span
- class="red">* </span>项目类型:</label>
- <div class="col-sm-8">
- <select class="form-control" id="site_type" name="site_type" style="width:350px;">
- <option value="">请选择</option>
- <option value="1" @if(($data->site_type??'')==1) selected @endif>企业网站</option>
- <option value="2" @if(($data->site_type??'')==2) selected @endif>电商网站</option>
- <option value="3" @if(($data->site_type??'')==3) selected @endif>特殊项目</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="nature_type"><span
- class="red">* </span>公司性质:</label>
- <div class="col-sm-8">
- <select class="form-control" style="width:350px;"
- id="nature_type" name="nature_type" @if(!$baseEdit) disabled @endif>
- <option value="">请选择公司性质</option>
- @foreach($natures as $nature)
- <option value="{{$nature['inx']}}"
- @if(($data->nature_type??null)==$nature['inx']) selected @endif>{{$nature['val']}}</option>
- @endforeach
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="business_id"><span
- class="red">* </span>所属行业:</label>
- <div class="col-sm-4">
- <select class="form-control"
- id="business_id" name="business_id" data-live-search="true"
- title="请选择行业" autocomplete="off">
- @foreach ($businesses as $business)
- <option value="{{$business->id}}"
- @if(($data->business_id??null)==$business->id) selected @endif>{{$business->title}}</option>
- @endforeach
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="core_product">核心产品:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="core_product" name="core_product"
- value="{{$data->core_product ?? ''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label"><span class="red">* </span>地区:</label>
- <div class="col-sm-8" data-toggle="distpicker" id="distpicker">
- <select class="form-control for_area" data-province="{{$data->area_text[0]??''}}"
- name="area_text" @if(!$baseEdit) disabled @endif></select>
- <select class="form-control for_area" data-city="{{$data->area_text[1]??''}}"
- name="area_text" @if(!$baseEdit) disabled @endif ></select>
- <select class="form-control for_area" data-district="{{$data->area_text[2]??''}}"
- name="area_text" @if(!$baseEdit) disabled @endif></select>
- </div>
- </div>
- <div class="form-group contacts">
- <div class="col-sm-12">
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ 姓名:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block"
- name="contact_name" value="{{$data->contacts[0]['name']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ邮箱:</label>
- <input type="email" class="form-control" style="width: 300px;display: inline-block;"
- @if(!$baseEdit) disabled @endif
- name="contact_email" value="{{$data->contacts[0]['email']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ手机:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block;" name="contact_mobile"
- value="{{$data->contacts[0]['mobile']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅰ职位:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block;" name="contact_position"
- value="{{$data->contacts[0]['position']??''}}">
- </div>
- </div>
- </div>
- <div class="form-group contacts">
- <div class="col-sm-12">
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ 姓名:</label>
- <input type="text" class="form-control"
- style="width: 300px;display: inline-block"
- @if(!$baseEdit) disabled @endif
- name="contact_name" value="{{$data->contacts[1]['name']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ邮箱:</label>
- <input type="email" class="form-control" style="width: 300px;display: inline-block;"
- @if(!$baseEdit) disabled @endif
- name="contact_email" value="{{$data->contacts[1]['email']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ手机:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block;" name="contact_mobile"
- value="{{$data->contacts[1]['mobile']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅱ职位:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block;" name="contact_position"
- value="{{$data->contacts[1]['position']??''}}">
- </div>
- </div>
- </div>
- <div class="form-group contacts">
- <div class="col-sm-12">
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ 姓名:</label>
- <input type="text" class="form-control"
- style="width: 300px;display: inline-block"
- @if(!$baseEdit) disabled @endif
- name="contact_name" value="{{$data->contacts[2]['name']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ邮箱:</label>
- <input type="email" class="form-control" style="width: 300px;display: inline-block;"
- @if(!$baseEdit) disabled @endif
- name="contact_email" value="{{$data->contacts[2]['email']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ手机:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block;" name="contact_mobile"
- value="{{$data->contacts[2]['mobile']??''}}">
- </div>
- <div class="col-sm-6" style="margin-top: 10px">
- <label for="contact_ids" class="col-sm-4 control-label">客户联系人Ⅲ职位:</label>
- <input type="text" class="form-control" @if(!$baseEdit) disabled @endif
- style="width: 300px;display: inline-block;" name="contact_position"
- value="{{$data->contacts[2]['position']??''}}">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="customer_demand_type"><span
- class="red">* </span>客户需求:</label>
- <div class="col-sm-8">
- <select class="form-control" id="customer_demand_type" name="customer_demand_type">
- <option value="">请选择</option>
- <option value="1" @if(($data->customer_demand_type??'')==1) selected @endif>客户询盘
- </option>
- <option value="2" @if(($data->customer_demand_type??'')==2) selected @endif>营销推广
- </option>
- <option value="3" @if(($data->customer_demand_type??'')==3) selected @endif>两者兼有
- </option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="sign_amount"><span
- class="red">* </span>签单价格:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="sign_amount" name="sign_amount"
- @if(!$baseEdit) disabled @endif
- value="{{$data->sign_amount??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="sign_amount"><span
- class="red">* </span>套餐类型: </label>
- <div class="radio-label">
- <input type="radio" id="color1" value="1" name="package_type"
- @if ($data->package_type==1) checked @endif>
- <label for="color1">老套餐</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color2" value="2" name="package_type"
- @if ($data->package_type==2) checked @endif>
- <label for="color2">2019标准版</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color3" value="3" name="package_type"
- @if ($data->package_type==3) checked @endif>
- <label for="color3">2019升级版</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color4" value="4" name="package_type"
- @if ($data->package_type==4) checked @endif>
- <label for="color4">2019高级版</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color5" value="5" name="package_type"
- @if ($data->package_type==5) checked @endif>
- <label for="color5">2020标准版</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color6" value="6" name="package_type"
- @if ($data->package_type==6) checked @endif>
- <label for="color6">2020升级版</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color7" value="7" name="package_type"
- @if ($data->package_type==7) checked @endif>
- <label for="color7">2020高级版</label>
- </div>
- <div class="radio-label">
- <input type="radio" id="color8" value="8" name="package_type"
- @if ($data->package_type==8) checked @endif>
- <label for="color8">定制版</label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="pay_way"><span class="red">* </span>付款方式:</label>
- <div class="col-sm-8">
- <select class="form-control" id="pay_way" name="pay_way">
- <option value="">请选择</option>
- <option value="1" @if(($data->pay_way??'')==1) selected @endif>分期</option>
- <option value="2" @if(($data->pay_way??'')==2) selected @endif>全款</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="remark">合同备注:</label>
- <div class="col-sm-8">
- <textarea class="form-control" id="remark" @if(!$baseEdit) disabled @endif
- name="remark">{{$data->remark??''}}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="contract_ids"><span
- class="red">* </span>服务项目:</label>
- <div class="col-sm-8 ">
- <select class="form-control" style="width:350px;" @if(!$baseEdit) disabled @endif
- id="contract_ids" name="contract_ids" multiple size="6">
- <option value="">请选择合同版本</option>
- @foreach ($contracts as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$data->contract_ids??[])) selected @endif>{{$item->title}}</option>
- @endforeach
- </select>
- <span class="span" style="font-size: 12px">ctrl+鼠标点击/shift+鼠标点击 多选</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="keyword_goal"><span
- class="red">* </span>关键词达标数:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="keyword_goal" name="keyword_goal"
- @if(!$baseEdit) disabled @endif
- value="{{$data->keyword_goal??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="link_goal"><span
- class="red">* </span>外链平台数:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="link_goal" name="link_goal"
- @if(!$baseEdit) disabled @endif
- value="{{$data->link_goal??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="article_goal"><span
- class="red">* </span>软文达标数:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="article_goal" name="article_goal"
- @if(!$baseEdit) disabled @endif
- value="{{$data->article_goal??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="article_difference">软文扣除数:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="article_difference"
- name="article_difference"
- @if(!$baseEdit) disabled @endif
- value="{{$data->article_difference??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="other_demand">其他需求:</label>
- <div class="col-sm-8">
- <textarea class="form-control" id="other_demand" @if(!$baseEdit) disabled @endif
- name="other_demand">{{$data->other_demand??''}}</textarea>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- @if($baseEdit)
- <button class="btn btn-primary " type="button" data-id="{{$data->id??0}}"
- onclick="units.save(1)">
- 保存
- </button>
- @endif
- {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
- </div>
- </div>
- </form>
- </div>
- @endif
- @php $detailEdit=0; @endphp
- @hasAuth('site-detail-edit')
- @php $detailEdit=1; @endphp
- @endHasAuth
- @if(!empty($detailPermission))
- <div id="tab-2" class="lists">
- {{--<div id="tab-2" class="ibox-content">--}}
- <form class="form-horizontal" id="detail" style="margin-top: 20px">
- <div class="form-group">
- <label class="col-sm-2 control-label" for="contract_total_fee">合同总金额:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="contract_total_fee"
- @if(!$detailEdit) disabled @endif
- name="contract_total_fee"
- value="{{$payment->contract_total_fee??''}}" style="max-width: 350px">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="google_optimize_fee">谷歌优化费用:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="google_optimize_fee"
- @if(!$detailEdit) disabled @endif
- name="google_optimize_fee"
- value="{{$payment->google_optimize_fee??''}}" style="max-width: 350px">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="refund">退款:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="refund"
- @if(!$detailEdit) disabled @endif
- name="refund"
- value="{{$payment->refund??''}}" style="max-width: 350px">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="refund_reason">终止/退款原因:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="refund_reason"
- @if(!$detailEdit) disabled @endif
- name="refund_reason"
- value="{{$payment->refund_reason??''}}" style="max-width: 350px">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="refund_reason_analyze">终止/退款原因分析:</label>
- <div class="col-sm-8">
- <select name="refund_reason_analyze" id="refund_reason_analyze" class="form-control"
- @if(!$baseEdit) disabled @endif>
- <option value="0" @if($payment->refund_reason_analyze==0) selected @endif>请选择
- </option>
- <option value="1" @if($payment->refund_reason_analyze==1) selected @endif>建站期太长
- </option>
- <option value="2" @if($payment->refund_reason_analyze==2) selected @endif>客户原因
- </option>
- <option value="3" @if($payment->refund_reason_analyze==3) selected @endif>客户原因/未启动
- </option>
- <option value="4" @if($payment->refund_reason_analyze==4) selected @endif>实施期中止
- </option>
- <option value="5" @if($payment->refund_reason_analyze==5) selected @endif>主动终止
- </option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="not_renewed_reason">未续费原因:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="not_renewed_reason"
- name="not_renewed_reason"
- @if(!$baseEdit) disabled @endif
- value="{{$payment->not_renewed_reason}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="not_renewed_reason_analyze">未续费原因分析:</label>
- <div class="col-sm-8">
- <select name="not_renewed_reason_analyze" id="not_renewed_reason_analyze"
- class="form-control" @if(!$baseEdit) disabled @endif>
- <option value="0" @if($payment->not_renewed_reason_analyze==0) selected @endif>请选择
- </option>
- <option value="1" @if($payment->not_renewed_reason_analyze==1) selected @endif>
- 效果不好
- </option>
- <option value="2" @if($payment->not_renewed_reason_analyze==2) selected @endif>
- 疫情影响
- </option>
- <option value="3" @if($payment->not_renewed_reason_analyze==3) selected @endif>
- 业务转型
- </option>
- <option value="4" @if($payment->not_renewed_reason_analyze==4) selected @endif>价格高
- </option>
- <option value="5" @if($payment->not_renewed_reason_analyze==5) selected @endif>
- 服务器不在引擎力
- </option>
- </select>
- </div>
- </div>
- <div id="google_bid_chunk">
- <div class="form-group">
- <label class="col-sm-2 control-label">赠送竞价费用:</label>
- <div class="col-sm-8">
- <label>费用:</label>
- <input type="text" class="form-control"
- name="bid_give_fee" id="bid_give_fee"
- style="width: 150px;display: inline-block"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->bid_give_fee??''}}"
- onchange="units.computeGoogleBidTotalFee()">
- </div>
- </div>
- @php
- $google_bid=$payment->google_bid??[];
- $totalFee=0;
- foreach ($google_bid as $item){
- $totalFee+= intval(($item['google_bid_fee']??0));
- }
- @endphp
- <div class="form-group">
- <label class="col-sm-2 control-label">充值竞价费用:</label>
- <div class="col-sm-8">
- <label>费用:</label>
- <input type="text" class="form-control"
- name="google_bid_fee" style="width: 150px;display: inline-block"
- @if(!$detailEdit) disabled @endif
- value="{{$google_bid[0]['google_bid_fee']??''}}"
- onchange="units.computeGoogleBidTotalFee()">
- <label style="margin-left: 15px">时间:</label>
- <input type="text" class="form-control"
- name="google_bid_time" style="width: 250px;display: inline-block"
- @if(!$detailEdit) disabled @endif
- id="google_bid_time" value="{{$google_bid[0]['google_bid_time']??''}}">
- <button type="button" class="btn btn-info" onclick="units.addGoogleBid()">+</button>
- </div>
- </div>
- @foreach($google_bid as $key=>$item)
- @if($key>0)
- <div class="form-group">
- <label class="col-sm-2 control-label"></label>
- <div class="col-sm-8">
- <label>费用:</label>
- <input type="text" class="form-control"
- name="google_bid_fee" style="width: 150px;display: inline-block"
- value="{{$item['google_bid_fee']??''}}"
- >
- <label style="margin-left: 15px">时间:</label>
- <input type="text" class="form-control"
- name="google_bid_time" style="width: 250px;display: inline-block"
- value="{{$item['google_bid_time']??''}}"
- >
- <button type="button" class="btn btn-info"
- onclick="units.removeGoogleBid(this)">-
- </button>
- </div>
- </div>
- @endif
- @endforeach
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">竞价总费用:</label>
- <div class="col-sm-8" style="padding-top: 7px">
- <label>(赠送竞价+充值竞价) 费用:</label>
- <label id="googleBidFeeTotal">{{$totalFee??0 + $payment->bid_give_fee??0}}</label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">竞价客户评分:</label>
- <input type="number" class="form-control"
- name="bid_score" id="bid_score" style="width: 150px;display: inline-block"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->bid_score??''}}"
- >
- <label style="margin-left: 15px">时间:</label>
- <input type="text" class="form-control" id="bid_score_time"
- name="bid_score_time" style="width: 250px;display: inline-block"
- value="{{$payment['bid_score_time']??''}}"
- >
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="bid_login_account"> 客户竞价登录账号:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="bid_login_account" name="bid_login_account"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->bid_login_account??''}}"
- >
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">竞价账户:</label>
- <div class="col-sm-8">
- <label>上线日期:</label>
- <input type="text" class="form-control"
- name="bid_account_online_time" id="bid_account_online_time"
- style="width: 250px;display: inline-block"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->bid_account_online_time??''}}"
- >
- <label style="margin-left: 15px">暂停日期:</label>
- <input type="text" class="form-control"
- name="bid_account_pause_time" id="bid_account_pause_time"
- style="width: 250px;display: inline-block"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->bid_account_pause_time??''}}"
- >
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="wiki_fee"> 维基百科费用:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="wiki_fee" name="wiki_fee"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->wiki_fee??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="other_fee"> 其他费用:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="other_fee" name="other_fee"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->other_fee??''}}">
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="head">首付:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="head" name="head" @if(!$detailEdit) disabled
- @endif
- value="{{$payment->head??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="head_type">收款状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="head_type" name="head_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->head_type??'')==1) selected @endif>未收</option>
- <option value="2" @if(($payment->head_type??'')==2) selected @endif>已收</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="head_invoicing_type">开票状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="head_invoicing_type" name="head_invoicing_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->head_invoicing_type??'')==1) selected @endif>未开票
- </option>
- <option value="2" @if(($payment->head_invoicing_type??'')==2) selected @endif>已开票
- </option>
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="done">建站收款:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="done" name="done"
- value="{{$payment->done??''}}" @if(!$detailEdit) disabled @endif>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="done_type">收款状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="done_type" name="done_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->done_type??'')==1) selected @endif>已收</option>
- <option value="2" @if(($payment->done_type??'')==2) selected @endif>未收</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="done_invoicing_type">开票状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="done_invoicing_type" name="done_invoicing_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->done_invoicing_type??'')==1) selected @endif>未开票
- </option>
- <option value="2" @if(($payment->done_invoicing_type??'')==2) selected @endif>已开票
- </option>
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="reach">达标尾款:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="reach" name="reach"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->reach??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="reach_type">收款状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="reach_type" name="reach_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->reach_type??'')==1) selected @endif>已收</option>
- <option value="2" @if(($payment->reach_type??'')==2) selected @endif>未收</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="reach_invoicing_type">开票状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="reach_invoicing_type" name="reach_invoicing_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->reach_invoicing_type??'')==1) selected @endif>未开票
- </option>
- <option value="2" @if(($payment->reach_invoicing_type??'')==2) selected @endif>已开票
- </option>
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="service_final_payment">服务期尾款:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="service_final_payment"
- name="service_final_payment"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->service_final_payment??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="service_final_payment_type">收款状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="service_final_payment_type"
- name="service_final_payment_type">
- <option value="0">请选择</option>
- <option value="1"
- @if(($payment->service_final_payment_type??'')==1) selected @endif>已收
- </option>
- <option value="2"
- @if(($payment->service_final_payment_type??'')==2) selected @endif>未收
- </option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label"
- for="service_final_payment_invoicing_type">开票状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="service_final_payment_invoicing_type"
- name="service_final_payment_invoicing_type">
- <option value="0">请选择</option>
- <option value="1"
- @if(($payment->service_final_payment_invoicing_type??'')==1) selected @endif>
- 未开票
- </option>
- <option value="2"
- @if(($payment->service_final_payment_invoicing_type??'')==2) selected @endif>
- 已开票
- </option>
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="renewal">续费:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="renewal" name="renewal"
- @if(!$detailEdit) disabled @endif
- value="{{$payment->renewal??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="renewal_type">收款状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="renewal_type" name="renewal_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->renewal_type??'')==1) selected @endif>已收</option>
- <option value="2" @if(($payment->renewal_type??'')==2) selected @endif>未收</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="renewal_invoicing_type">开票状态:</label>
- <div class="col-sm-8">
- <select class="form-control" id="renewal_invoicing_type" name="renewal_invoicing_type">
- <option value="0">请选择</option>
- <option value="1" @if(($payment->renewal_invoicing_type??'')==1) selected @endif>
- 未开票
- </option>
- <option value="2" @if(($payment->renewal_invoicing_type??'')==2) selected @endif>
- 已开票
- </option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- @if($detailEdit)
- <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
- onclick="units.save(2)">
- 保存
- </button>
- @endif
- {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
- </div>
- </div>
- </form>
- </div>
- @endif
- <div id="tab-21" class="lists">
- <form class="form-horizontal" id="people" style="margin-top: 20px;padding-bottom: 250px;">
- <div class="form-group">
- <label class="col-sm-2 control-label" for="manager_ids">项目总监:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择项目总监..." multiple class="chosen-select"
- style="width:350px;"
- id="manager_ids" name="manager_ids">
- <option value="">请选择项目总监</option>
- @if(!empty($managers))
- @foreach ($managers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasMangerIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="manage_helper_ids">项目经理:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择项目经理..." multiple class="chosen-select"
- style="width:350px;"
- id="manage_helper_ids" name="manage_helper_ids">
- <option value="">请选择项目经理</option>
- @if(!empty($managerHelpers))
- @foreach ($managerHelpers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasMangeHelpIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="editor_ids">建站采编:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择建站采编..." multiple class="chosen-select"
- style="width:350px;"
- id="editor_ids" name="editor_ids">
- <option value="">请选择建站采编</option>
- @if(!empty($editors))
- @foreach ($editors as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasEditorIds)) selected
- @endif @if(!$detailEdit) disabled @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="optimizer_ids">优化组长:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择优化组长..." multiple class="chosen-select"
- style="width:350px;"
- id="optimizer_ids" name="optimizer_ids">
- <option value="">请选择优化组长</option>
- @if(!empty($optimizers))
- @foreach ($optimizers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasOptimizerIds)) selected
- @endif >{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="optimization_editing_ids">优化师/优化采编:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择优化师/优化采编..." multiple class="chosen-select"
- style="width:350px;"
- id="optimization_editing_ids" name="optimization_editing_ids">
- <option value="">请选择优化师/优化采编</option>
- @if(!empty($optimizationEditing))
- @foreach ($optimizationEditing as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasOptimizationEditing)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- @if( in_array(\App\Http\Models\Contract::GOOGLE_BID,$data->contract_ids??[]))
- <div class="form-group">
- <label class="col-sm-2 control-label" for="bid_user_id">竞价人员:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择竞价人员..." class="chosen-select"
- style="width:350px;z-index: 99999"
- id="bid_user_ids" name="bid_user_ids" multiple>
- <option value="">请选择竞价人员</option>
- @if(!empty($bidUsers))
- @foreach ($bidUsers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasBidIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- 是否属于竞价:
- <input type="checkbox" id="bid_status" name="bid_status"
- class="js-switch-bid"
- @if($data->bid_status) checked @endif title=""
- onchange="units.changeBidStatus()">
- </div>
- </div>
- @endif
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="article_edit_ids">软文查找人员:</label>
- <div class="col-sm-10">
- <select data-placeholder="请软文查找人员..." multiple class="chosen-select"
- style="width:350px;"
- id="article_edit_ids" name="article_edit_ids">
- <option value="">请选择软文查找人员</option>
- @if(!empty($propaganda))
- @foreach ($propaganda as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasPropagandaIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- 是否特殊软文:
- <input type="checkbox" id="spec_article" name="spec_article"
- class="js-switch-spec"
- @if($data->spec_article??false) checked @endif
- title=""
- onchange="units.changeSpecArticle()">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="article_ids">软文更新人员:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择软文更新人员..." multiple class="chosen-select"
- style="width:350px;"
- id="article_ids" name="article_ids">
- <option value="">请选择软文更新人员</option>
- @if(!empty($article))
- @foreach ($article as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasArticleIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="external_link_ids">社交外链人员:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择社交外链人员..." multiple class="chosen-select"
- style="width:350px;"
- id="external_link_ids" name="external_link_ids">
- <option value="">请选择社交外链人员</option>
- @if(!empty($externalLink))
- @foreach ($externalLink as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasExternalLinkIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="chongqing_link_ids">重庆外链人员:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择重庆外链人员..." multiple class="chosen-select"
- style="width:350px;"
- id="chongqing_link_ids" name="chongqing_link_ids">
- <option value="">请选择重庆外链人员</option>
- @if(!empty($chongqingLink))
- @foreach ($chongqingLink as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasChongqingLinkIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="designer_ids">设计:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择设计..." multiple class="chosen-select"
- style="width:350px;"
- id="designer_ids" name="designer_ids">
- <option value="">请选择设计</option>
- @if(!empty($designers))
- @foreach ($designers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasDesignerIds)) selected
- @endif >{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="web_ids">前端:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择前端..." multiple class="chosen-select"
- style="width:350px;"
- id="web_ids" name="web_ids">
- <option value="">请选择前端</option>
- @if(!empty($webUsers))
- @foreach ($webUsers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasWebIds)) selected
- @endif >{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="server_ids">客服:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择客服人员..." multiple class="chosen-select"
- style="width:350px;"
- id="server_ids" name="server_ids">
- <option value="">请选择客服人员</option>
- @if(!empty($services))
- @foreach ($services as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasServerIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="seller_ids">销售:</label>
- <div class="col-sm-10">
- <select data-placeholder="选择销售..." multiple class="chosen-select"
- style="width:350px"
- id="seller_ids" name="seller_ids">
- <option value="">请选择销售</option>
- @if(!empty($sellerUsers))
- @foreach ($sellerUsers as $item)
- <option value="{{$item->id}}"
- @if(in_array($item->id,$hasSellerIds)) selected
- @endif>{{$item->nickname}}</option>
- @endforeach
- @endif
- </select>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
- onclick="units.save(3)">
- 保存
- </button>
- </div>
- </div>
- </form>
- </div>
- <div id="tab-3" class="lists">
- <h4 class="o-h4" style="margin-top: 20px">pinterest配置</h4>
- <form class="form-horizontal" id="pin">
- <div class="form-group">
- <label class="col-sm-3 control-label">client_id:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" name="app_id" placeholder=""
- value="{{$pin['app_id']??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">client_secret:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" name="app_secret" placeholder=""
- value="{{$pin['app_secret']??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">跳转url:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" name="redirect_url" placeholder=""
- value="{{$pin['redirect_url']??''}}">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3">
- <button class="btn btn-primary" type="button"
- onclick="units.socialSave('pin')">
- 保存
- </button>
- {{--<button class="btn btn-info" type="button">去授权</button>--}}
- <a class="btn btn-info"
- href="{{sprintf('https://wall.yinqingli.com/admin/socials/oauth?which=pinterest&siteId=%s',$siteId)}}"
- target="_blank">去授权</a>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">token:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" placeholder="" disabled
- value="{{$pin['token']??''}}">
- </div>
- </div>
- </form>
- <hr>
- <h4 class="o-h4">twitter配置</h4>
- <form class="form-horizontal " id="twitter">
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3">
- {{--<button class="btn btn-primary" type="button"--}}
- {{--onclick="units.socialSave('twitter')">--}}
- {{--保存--}}
- {{--</button>--}}
- <a class="btn btn-info"
- href="https://wall.yinqingli.com/admin/socials/oauth?which=twitter&siteId={{$siteId}}"
- target="_blank">去绑定</a>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">access token:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" placeholder="" disabled
- value="{{$twitter['token']??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">accesstoken secret:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" placeholder="" disabled
- value="{{$twitter['token_secret']??''}}">
- </div>
- </div>
- </form>
- <hr>
- <h4 class="o-h4">facebook配置</h4>
- <form class="form-horizontal " id="facebook">
- <div class="form-group">
- <label class="col-sm-3 control-label" for="facebook_page">facebook公司主页:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" name="facebook_page"
- value="{{$data->facebook_page??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label" for="facebook_page">facebook page token:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" name="facebook_page_token"
- value="{{$data->facebook_page_token??''}}" disabled>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3">
- <button class="btn btn-primary" type="button"
- onclick="units.socialSave('facebook')">
- 保存
- </button>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">过期时间:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" placeholder=""
- value="{{$facebookSocial['page_token_expired_at']??''}}" disabled>
- </div>
- </div>
- </form>
- <hr>
- <h4 class="o-h4">linkedIn 配置</h4>
- <form class="form-horizontal " id="linkedIn">
- <div class="form-group">
- <label class="col-sm-3 control-label">企业组织ID:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" name="linkedin_orgid" placeholder=""
- value="{{$linkedIn['linkedin_orgid']??''}}">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3">
- <button class="btn btn-primary" type="button"
- onclick="units.socialSave('linkedIn')">
- 保存
- </button>
- {{--<a class="btn btn-info"--}}
- {{--href="{{url('admin/socials/oauth?which=linkedIn&siteId='.$siteId)}}"--}}
- {{--target="_blank">去授权</a>--}}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">token:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" placeholder=""
- value="{{$linkedBaseInfo['token']??''}}" disabled>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">过期时间:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" placeholder=""
- value="{{$linkedBaseInfo['token_expired_at']??''}}" disabled>
- </div>
- </div>
- </form>
- </div>
- <div id="tab-4" class="lists">
- <form class="form-horizontal" id="optimize" style="margin-top: 20px">
- <div id="optimize_page">
- <div style="padding: 5px 0">
- <button type="button" class="btn btn-info" onclick="units.import()">
- 导入关键词
- </button>
- <button type="button" class="btn btn-success" onclick="units.export()">
- 导出
- </button>
- <button type="button" class="btn btn-danger" onclick="units.clearOptimize()">
- 一键删除
- </button>
- </div>
- @forelse($optimizePage as $inx=>$item)
- <div class="form-group">
- {{--<label class="col-sm-2 control-label" for="google_bid">布局关键字:</label>--}}
- <div class="col-sm-offset-1 col-sm-8">
- <label>布局关键字:</label>
- <input type="text" class="form-control" style="width: 250px;display: inline-block"
- name="optimize_page_keyword" value="{{$item['keyword']}}">
- <label style="margin-left: 15px">url地址:</label>
- <input type="text" class="form-control" style="width: 250px;display: inline-block"
- name="optimize_page_url" value="{{$item['url']}}">
- <label style="margin-left: 15px">已优化:</label>
- <input type="checkbox" class="js-switch" name="optimize_page_is_optimize"
- @if(!empty($item['is_optimize'])) checked @endif>
- <input type="hidden" name="optimize_page_id" value="{{$item['id']}}">
- @if($inx==0)
- <button type="button" class="btn btn-info" onclick="units.addOptimizePage()">+
- </button>
- @else
- <button type="button" class="btn btn-info"
- onclick="units.removeOptimizePage(this)">-
- </button>
- @endif
- </div>
- </div>
- @empty
- <div class="form-group">
- <div class="col-sm-offset-1 col-sm-8">
- <label>布局关键字:</label>
- <input type="text" class="form-control"
- style="width: 250px;display: inline-block"
- name="optimize_page_keyword" value="">
- <label style="margin-left: 15px">url地址:</label>
- <input type="text" class="form-control"
- style="width: 250px;display: inline-block"
- name="optimize_page_url" value="">
- <label style="margin-left: 15px">已优化:</label>
- <input type="checkbox" class="js-switch" name="optimize_page_is_optimize">
- <input type="hidden" name="optimize_page_id" value="0">
- <button type="button" class="btn btn-info" onclick="units.addOptimizePage()">+
- </button>
- </div>
- </div>
- @endforelse
- </div>
- <div class="form-group">
- <div class="col-sm-9" style="text-align: center">
- <button class="btn btn-success" type="button" data-id="{{$data->id??0}}"
- onclick="units.optimizePageSave()">
- 保存
- </button>
- </div>
- </div>
- </form>
- </div>
- <div id="tab-5" class="lists">
- <form class="form-horizontal" id="account" style="margin-top: 20px">
- <div class="form-group">
- <label class="col-sm-2 control-label">管理员账号:</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="adminAccount"
- value="{{$siteInfo->admin_account??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">管理员密码:</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="adminPass"
- value="{{$siteInfo->admin_pass??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">用户账号:</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="userAccount"
- value="{{$siteInfo->user_account??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">用户密码:</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="userPass"
- value="{{$siteInfo->user_pass??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">app账号:</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="appAccount"
- value="{{$siteInfo->app_account??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">app密码:</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="appPass"
- value="{{$siteInfo->app_pass??''}}">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-9" style="text-align: center">
- <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
- onclick="units.accountSave()">
- 保存
- </button>
- </div>
- </div>
- </form>
- </div>
- <div id="tab-6" class="lists">
- <form class="form-horizontal" id="time" style="margin-top: 20px;padding-bottom: 250px;">
- <div class="form-group">
- <label class="col-sm-2 control-label" for="sign_at">合同签订时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="sign_at" name="sign_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->sign_at??''}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="task_at"><span
- class="red">* </span>建站任务起始时间:<br>(首付款时间)</label>
- <div class="col-sm-4">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="task_at" name="task_at" style="width: 200px"
- @if(!$baseEdit) disabled @endif
- value="{{$data->task_at}}" autocomplete="off">
- @if(!empty($roles->is_super))
- <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
- onclick="units.delSitesTaskFlow()">
- 清空建站流程
- </button>
- @endif
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="order_at"><span
- class="red">* </span>下单时间:<br>(分配到项目部门)</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="order_at" name="order_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->order_at}}" autocomplete="off">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="design_score">设计评分:</label>
- <div class="col-sm-2">
- <input type="text" class="form-control" id="design_score" name="design_score"
- @if(!$baseEdit) disabled @endif
- value="{{$data->design_score}}" autocomplete="off">
- </div>
- </div>
- {{-- <div class="form-group">
- <label class="col-sm-2 control-label" for="assign_at">分配时间:</label>
- <div class="col-sm-4">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="assign_at" name="assign_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->assign_at}}">
- </div>
- </div>
- </div>--}}
- <div class="form-group">
- <label class="col-sm-2 control-label" for="online_at">上线时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="online_at" name="online_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->online_at}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="online_score">上线评分:</label>
- <div class="col-sm-2">
- <input type="text" class="form-control" id="online_score" name="online_score"
- @if(!$baseEdit) disabled @endif
- value="{{$data->online_score}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="reach_at">达标时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="reach_at" name="reach_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->reach_at}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="reach_mail_at">达标邮件确认时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="reach_mail_at" name="reach_mail_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->reach_mail_at}}">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="expired_at">到期时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="expired_at" name="expired_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->expired_at}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="reach_pay_at">达标款支付时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="reach_pay_at" name="reach_pay_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->reach_pay_at}}">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="bq_at">百千约访时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="bq_at" name="bq_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->bq_at}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="bq_score">百千客户评分:</label>
- <div class="col-sm-2">
- <input type="text" class="form-control" id="bq_score" name="bq_score"
- @if(!$baseEdit) disabled @endif
- value="{{$data->bq_score}}" autocomplete="off">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="status">项目状态:</label>
- <div class="col-sm-2">
- <select name="status" id="status" class="form-control" @if(!$baseEdit) disabled
- @endif style="width: 200px">
- <option value="">请选择</option>
- @foreach(\App\Http\Models\Site::STATUS_MAP as $inx=>$val)
- @if(!in_array($inx,[5,6]))
- <option value="{{$inx}}"
- @if($inx==($data->status)) selected @endif>{{$val}}</option>
- @endif
- @endforeach
- </select>
- </div>
- <label class="col-sm-2 control-label" for="on_score">达标评分:</label>
- <div class="col-sm-2">
- <input type="text" class="form-control" id="reach_score" name="reach_score"
- @if(!$baseEdit) disabled @endif
- value="{{$data->reach_score}}" autocomplete="off">
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="renewal_times">续费次数:</label>
- <div class="col-sm-2">
- <div class="input-group m-b" style="margin-left: 10px">
- <select class="form-control" name="renewal_times" id="renewal_times"
- style="width: 200px;">
- <option value="">请选择</option>
- @for($rTimes=1;$rTimes<=10;$rTimes++)
- <option value="{{$rTimes}}"
- @if(($data->renewal_times??'')==$rTimes) selected @endif>{{$rTimes}}次
- </option>
- @endfor
- </select>
- </div>
- </div>
- <label class="col-sm-2 control-label" for="renewal_amount">续费金额:</label>
- <div class="col-sm-2">
- <div class="input-group m-b" style="margin-left: 10px">
- <input type="number" class="form-control" id="renewal_amount" name="renewal_amount"
- style="width: 200px"
- @if(!$baseEdit) disabled @endif
- value="{{$data->renewal_amount??''}}">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="renewal_at">续费时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="renewal_at" name="renewal_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->renewal_at}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="renew_years">最近一次续费年限:</label>
- <div class="col-sm-2">
- <div class="input-group m-b" style="margin-left: 10px">
- <select class="form-control" name="renew_years" id="renew_years"
- style="width: 200px;">
- <option value="0">请选择</option>
- <option value="1"
- @if(!empty($data->renew_years) && $data->renew_years==1) selected @endif>1年
- </option>
- <option value="2"
- @if(!empty($data->renew_years) && $data->renew_years==2) selected @endif>2年
- </option>
- <option value="3"
- @if(!empty($data->renew_years) && $data->renew_years==3) selected @endif>3年
- </option>
- </select>
- </div>
- </div>
- {{-- <label class="col-sm-2 control-label" for="is_renew">是否网站续费:</label>
- <div class="col-sm-1">
- <input type="checkbox" id="is_renew" name="is_renew"
- class="js-switch-renew"
- @if($data->is_renew??0) checked
- @endif onchange="units.changeRenewStatus()">
- </div>--}}
- {{-- <label class="col-sm-2 control-label" for="is_current_month_online">当月上线目标:</label>
- <div class="col-sm-1">
- <input type="checkbox" id="is_current_month_online" name="is_current_month_online"
- class="js-switch-online"
- @if($data->is_current_month_online) checked
- @endif onchange="units.changeCurrentMonthOnline()">
- </div>--}}
- </div>
- {{-- <div class="form-group">
- <label class="col-sm-2 control-label" for="renewal_end_at">续费结束时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="renewal_end_at" name="renewal_end_at"
- @if(!$baseEdit) disabled @endif
- value="{{$data->renewal_end_at??""}}">
- </div>
- </div>
- </div>--}}
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="refund_date">退款时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="refund_date"
- @if(!$baseEdit) disabled @endif
- name="refund_date"
- value="{{$data->refund_date}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="is_refund">是否退款:</label>
- <div class="col-sm-2">
- <input type="checkbox" id="is_refund" name="is_refund"
- class="js-switch-refund"
- @if($data->is_refund??0) checked
- @endif onchange="units.changeRefundStatus()">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="domain_expired_date">域名到期时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="domain_expired_date"
- @if(!$baseEdit) disabled @endif
- name="domain_expired_date"
- value="{{$data->domain_expired_date}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="domain_us_buy">域名是否我们购买:</label>
- <div class="col-sm-2">
- <input type="checkbox" id="domain_us_buy" name="domain_us_buy"
- class="js-switch-domain"
- @if($data->domain_us_buy??0) checked
- @endif onchange="units.changeDomainStatus()">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="cdn_expired_date">cdn到期时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="cdn_expired_date"
- name="cdn_expired_date"
- value="{{$data->cdn_expired_date}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="is_cdn">是否cdn:</label>
- <div class="col-sm-2">
- <input type="checkbox" id="is_cdn" name="is_cdn"
- class="js-switch-cdn"
- @if($data->is_cdn) checked @endif onchange="units.changeCDNStatus()">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="cert_expired_date">证书到期时间:</label>
- <div class="col-sm-2">
- <div class="input-group m-b">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input type="text" class="form-control" id="cert_expired_date"
- @if(!$baseEdit) disabled @endif
- name="cert_expired_date"
- value="{{$data->cert_expired_date}}">
- </div>
- </div>
- <label class="col-sm-2 control-label" for="cert_us_buy">证书是否我们购买:</label>
- <div class="col-sm-2">
- <input type="checkbox" id="cert_us_buy" name="cert_us_buy"
- class="js-switch-cert"
- @if($data->cert_us_buy) checked @endif onchange="units.changeCertStatus()">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
- onclick="units.save(4)">
- 保存
- </button>
- {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
- </div>
- </div>
- </form>
- </div>
- <div id="tab-7" class="lists">
- <form class="form-horizontal" id="server" style="margin-top: 20px;padding-bottom: 250px;">
- <div class="form-group">
- <label class="col-sm-2 control-label" for="server_id">服务器所在地:</label>
- <div class="col-sm-8">
- <select name="server_id" id="server_id" class="form-control"
- @if(!$baseEdit) disabled @endif>
- <option value="">请选择ip所在地</option>
- @foreach($servers as $server)
- <option value="{{$server->server_id}}"
- @if($server->server_id==($data->server_id??null)) selected @endif>{{$server->server_ip}}</option>
- @endforeach
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="self_support">是否是引擎力服务器:</label>
- <div class="col-sm-8">
- <select name="self_support" id="self_support" class="form-control">
- <option value="0" @if($data->self_support==0) selected @endif>是</option>
- <option value="1" @if($data->self_support==1) selected @endif>否</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="is_stencil">是否是模版站:</label>
- <div class="col-sm-8">
- <select name="is_stencil" id="is_stencil" class="form-control">
- <option value="0" @if($data->is_stencil==0) selected @endif>否</option>
- <option value="1" @if($data->is_stencil==1) selected @endif>是</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="api_url">api地址:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="api_url" name="api_url"
- @if(!$baseEdit) disabled @endif
- value="{{$data->api_url??''}}">
- <span class="span" style="font-size: 12px;">填写正式域名加/openapi/ 例:http://www.baidu.com/openapi/ (注意https)</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="webmaster_domain">webmaster域名:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="webmaster_domain" name="webmaster_domain"
- @if(!$baseEdit) disabled @endif
- value="{{$data->webmaster_domain??''}}">
- <span class="span" style="font-size: 12px;">填写webmaster上填写的域名(一定要一模一样,注意https和斜杠) 例:http://www.baidu.com/</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="database">项目数据库名:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="database" name="database"
- @if(!$baseEdit) disabled @endif
- value="{{$data->database??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="code_dir">项目代码目录:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="code_dir" name="code_dir"
- @if(!$baseEdit) disabled @endif
- value="{{$data->code_dir??''}}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="cname_host_record_value">CNAME主机记录:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="cname_host_record_value"
- name="cname_host_record_value"
- @if(!$baseEdit) disabled @endif
- value="{{$data->cname_host_record_value??''}}"
- @if(in_array($data->status,[2,3])) disabled @endif>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label" for="cname_record_value">CNAME记录值:</label>
- <div class="col-sm-8">
- <input type="text" class="form-control" id="cname_record_value" name="cname_record_value"
- @if(!$baseEdit) disabled @endif
- value="{{$data->cname_record_value??''}}"
- @if(in_array($data->status,[2,3])) disabled @endif>
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary" type="button" data-id="{{$data->id??0}}"
- onclick="units.save(5)">
- 保存
- </button>
- {{--<button class="btn btn-white closeLayer" type="button">取消</button>--}}
- </div>
- </div>
- </form>
- </div>
- @if (empty($basePermission)&&empty($detailPermission))
- <h1>无权限</h1>
- @endif
- </div>
- </div>
- <div id="add_google_bid_str" style="display: none">
- <div class="form-group">
- <label class="col-sm-2 control-label"></label>
- <div class="col-sm-8">
- <label>费用:</label>
- <input type="text" class="form-control"
- name="google_bid_fee" style="width: 150px;display: inline-block"
- onchange="units.computeGoogleBidTotalFee()">
- <label style="margin-left: 15px">时间:</label>
- <input type="text" class="form-control"
- name="google_bid_time" style="width: 250px;display: inline-block">
- <button type="button" class="btn btn-info" onclick="units.removeGoogleBid(this)">-</button>
- </div>
- </div>
- </div>
- <div id="optimize_page_str" style="display: none">
- <div class="form-group">
- <div class="col-sm-offset-1 col-sm-8">
- <label>布局关键字:</label>
- <input type="text" class="form-control" style="width: 250px;display: inline-block"
- name="optimize_page_keyword">
- <label style="margin-left: 15px">url地址:</label>
- <input type="text" class="form-control" style="width: 250px;display: inline-block"
- name="optimize_page_url">
- <label style="margin-left: 15px">已优化:</label>
- <input type="checkbox" class="js-switch" name="optimize_page_is_optimize">
- <input type="hidden" name="optimize_page_id" value="0">
- <button type="button" class="btn btn-info" onclick="units.removeOptimizePage(this)">-</button>
- </div>
- </div>
- </div>
- @endsection
- @section('footer_extend')
- <script src="{{asset('js/plugins/chosen/chosen.jquery.js')}}"></script>
- <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>
- <script src="{{asset('js/plugins/switchery/switchery.js?v=1')}}"></script>
- <script src="{{asset('js/plugins/distpicker-master/dist/distpicker.js?v=1')}}"></script>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/js/bootstrap-select.min.js"></script>
- <script>
- var RefundJsSwitch = document.querySelector(".js-switch-refund");
- new Switchery(RefundJsSwitch, {color: "#1AB394", size: 'small'});
- var BidJsSwitch = document.querySelector(".js-switch-bid");
- new Switchery(BidJsSwitch, {color: "#1AB394", size: 'small'});
- var SpecJsSwitch = document.querySelector(".js-switch-spec");//是否特殊软文
- new Switchery(SpecJsSwitch, {color: "#1AB394", size: 'small'});
- var CDBJsSwitch = document.querySelector(".js-switch-cdn");
- new Switchery(CDBJsSwitch, {color: "#1AB394", size: 'small'});
- var RenewJsSwitch = document.querySelector(".js-switch-renew");
- new Switchery(RenewJsSwitch, {color: "#1AB394", size: 'small'});
- var DomainJsSwitch = document.querySelector(".js-switch-domain");
- new Switchery(DomainJsSwitch, {color: "#1AB394", size: 'small'});
- var OnlineSwitch = document.querySelector(".js-switch-online");
- new Switchery(OnlineSwitch, {color: "#1AB394", size: 'small'});
- var CertJsSwitch = document.querySelector(".js-switch-cert");
- new Switchery(CertJsSwitch, {color: "#1AB394", size: 'small'});
- var CaseJsSwitch = document.querySelector(".js-switch-case");
- new Switchery(CaseJsSwitch, {color: "#1AB394", size: 'small'});
- var checked = CaseJsSwitch.checked ? 1 : 0;
- if (checked === 0) {
- $('.example').hide();
- $('.case').hide();
- } else {
- $('.example').show();
- $('.case').show();
- }
- var BqJsSwitch = document.querySelector(".js-switch-bq");
- new Switchery(BqJsSwitch, {color: "#1AB394", size: 'small'});
- $(".tabs-container .nav ul li").click(function () {
- var i = $(this).index();
- $(this).addClass("active").siblings().removeClass("active");
- $(".tabs-container .tab-content .lists").eq(i).addClass("active").siblings().removeClass("active");
- });
- $(function () {
- 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'];
- for (var item in needDateTime) {
- laydate.render({
- elem: needDateTime[item], //指定元素
- type: 'datetime'
- });
- }
- var needDate = ['#cert_expired_date', '#domain_expired_date', '#cdn_expired_date', '#refund_date'];
- for (var val in needDate) {
- laydate.render({
- elem: needDate[val], //指定元素
- type: 'date'
- });
- }
- var ele = $('[name="google_bid_time"]');
- var total = 0;
- ele.each(function () {
- total += 1;
- });
- ele.each(function (inx, item) {
- if ((total - 1) !== (inx)) {
- // console.log(total, ele.length);
- laydate.render({
- elem: $(this)[0],
- type: 'datetime'
- });
- }
- });
- laydate.render({
- elem: '#google_bid_time', //指定元素
- type: 'datetime'
- });
- $(".js-switch").each(function (inx, val) {
- new Switchery(val, {color: "#1AB394", size: 'small'});
- });
- });
- var config = {".chosen-select": {}};
- for (var selector in config) $(selector).chosen(config[selector]);
- var units = {
- import: function () {
- var str = '<div class="ibox-content" id="importLayer">' +
- '<form class="form-horizontal">' +
- '<div class="form-group">' +
- '<label class="col-sm-3 control-label">请选择excel文件:</label>' +
- '<div class="col-sm-6">' +
- '<input type="file" id="excel_file" class="form-control">' +
- '<input type="hidden" id="excel_path">' +
- '</div>' +
- '<div class="col-sm-2"><button class="btn btn-info" type="button" onclick="units.fileUpload()">上传</button></div>' +
- '</div>' +
- ' <div class="form-group">' +
- '<div class="col-sm-6 col-sm-offset-3">' +
- '<a href="{{asset('tpl/optimize_page.xlsx')}}">请下载导入模板</a>' +
- '</div>' +
- '</div>' +
- '</form>' +
- '</div>';
- openIndex = layer.open({
- type: 1,
- content: str,
- area: ['60%', '30%'],
- title: '导入关键词',
- });
- },
- export: function () {
- window.open('/admin/sites/optimize-page/export?siteId={{$siteId}}');
- },
- clearOptimize: function () {
- layer.confirm('您确定要删除吗?', {icon: 3, title: '删除信息'}, function (index, layero) {
- layer.close(index);
- $("#optimize_page").find(".form-group").each(function (inx) {
- if (inx != 0) {
- $(this).remove()
- }
- })
- });
- },
- fileUpload: function () {
- var config = {
- url: '/admin/tool/excel-upload'
- };
- config.success = function (result) {
- var data = {excel_path: result.data.file_url, siteId: "{{$siteId}}"};
- var config = {
- url: '/admin/sites/optimize-page/import',
- type: 'post',
- data: data,
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1500}, function () {
- layer.close(openIndex);
- window.location.reload();
- });
- }
- };
- tips.ajax(config);
- };
- tips.fileUpload($("#excel_file"), config);
- },
- addOptimizePage: function () {
- if ($("#optimize_page").find(":checkbox").length >= 20) {
- layer.alert("最多只能添加20个", {icon: 5});
- return;
- }
- $("#optimize_page").append($("#optimize_page_str").html());
- },
- removeOptimizePage: function (_this) {
- $(_this).parent().parent().remove();
- },
- optimizePageSave: function () {
- var groupData = [], optimize_page_keyword, optimize_page_url;
- $("#optimize_page").find(".form-group").each(function () {
- //console.log($(this).find("[name=optimize_page_keyword]").val());
- optimize_page_keyword = $.trim($(this).find("[name=optimize_page_keyword]").val());
- optimize_page_url = $.trim($(this).find("[name=optimize_page_url]").val());
- if (optimize_page_keyword != "" || optimize_page_url != "") {
- groupData.push({
- keyword: optimize_page_keyword,
- url: optimize_page_url,
- is_optimize: $(this).find("[name=optimize_page_is_optimize]").prop("checked") ? 1 : 0,
- id: $(this).find("[name=optimize_page_id]").val()
- });
- }
- });
- console.log(groupData);
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/optimize-page',
- type: 'put',
- data: {groupData: groupData},
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1000}, function () {
- // tips.closeParentLayer();
- // window.parent.tips.tableRefresh('#table');
- });
- }
- };
- tips.ajax(ajaxConfig);
- },
- computeGoogleBidTotalFee: function () {
- var total = 0;
- var val;
- $('[name="google_bid_fee"]').each(function (inx, item) {
- val = parseInt($(this).val());
- if (!isNaN(val)) {
- total += val
- }
- });
- var bid_give_fee = $("[name=bid_give_fee]").val();
- bid_give_fee = parseInt(bid_give_fee);
- if (!isNaN(bid_give_fee)) {
- total += bid_give_fee
- }
- $("#googleBidFeeTotal").text(total)
- },
- addGoogleBid: function () {
- $("#google_bid_chunk").append($("#add_google_bid_str").html());
- var ele = $('[name="google_bid_time"]');
- var total = 0;
- ele.each(function () {
- total += 1;
- });
- console.log('total=' + total);
- ele.each(function (inx, item) {
- if ((total - 2) === (inx)) { //倒数第二个
- console.log(total, ele.length);
- laydate.render({
- elem: $(this)[0],
- type: 'datetime'
- });
- }
- });
- },
- removeGoogleBid: function (_this) {
- $(_this).parent().parent().remove();
- units.computeGoogleBidTotalFee()
- },
- changeBidStatus: function () {
- var isChecked = BidJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/bid-status',
- type: 'put',
- data: {bidStatus: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeSpecArticle: function () {
- var isChecked = SpecJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/spec-article',
- type: 'put',
- data: {spec_article: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeCDNStatus: function () {
- var isChecked = CDBJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/cdn-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeRefundStatus: function () {
- var isChecked = RefundJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/refund-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeDomainStatus: function () {
- var isChecked = DomainJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/domain-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeRenewStatus: function () {
- var isChecked = RenewJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/renew-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeCurrentMonthOnline: function () {
- var isChecked = OnlineSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/online-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeCertStatus: function () {
- var isChecked = CertJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/cert-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeCaseStatus: function () {
- var isChecked = CaseJsSwitch.checked ? 1 : 0;
- if (isChecked === 0) {
- $('.example').hide();
- $('.case').hide();
- } else {
- $('.example').show();
- $('.case').show();
- }
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/case-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- changeIsBq: function () {
- var isChecked = BqJsSwitch.checked ? 1 : 0;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/bq-status',
- type: 'put',
- data: {status: isChecked},
- success: function () {
- }
- };
- tips.ajax(ajaxConfig);
- },
- socialSave: function (type) {
- var formValues = tips.getFormValues('#' + type);
- var data = {};
- data[type] = formValues;
- data.type = type;
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/social',
- type: 'post',
- data: data,
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1000}, function () {
- // tips.closeParentLayer();
- // window.parent.tips.tableRefresh('#table');
- });
- }
- };
- tips.ajax(ajaxConfig);
- },
- accountSave: function (type) {
- var formValues = tips.getFormValues('#account');
- var ajaxConfig = {
- url: '/admin/sites/' + "{{$siteId}}" + '/account',
- type: 'post',
- data: formValues,
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1000}, function () {
- // tips.closeParentLayer();
- // window.parent.tips.tableRefresh('#table');
- });
- }
- };
- tips.ajax(ajaxConfig);
- },
- save: function (type) {
- var data, url = '/admin/sites/' + "{{$siteId}}" + '/overview';
- if (type === 1) {
- data = units.basic(type);
- } else if (type === 2) {
- data = units.detail(type);
- } else if (type === 3) {
- data = units.people(type);
- } else if (type === 4) {
- data = units.timeFrame(type);
- } else if (type === 5) {
- data = units.server(type);
- }
- var ajaxConfig = {
- url: url,
- type: 'put',
- data: data,
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1000}, function () {
- // tips.closeParentLayer();
- // window.parent.tips.tableRefresh('#table');
- });
- }
- };
- tips.ajax(ajaxConfig);
- },
- basic: function (type) {
- var contacts = [];
- $(".contacts").each(function () { //客户联系人
- contacts.push({
- name: $(this).find("[name=contact_name]").val(),
- email: $(this).find("[name=contact_email]").val(),
- mobile: $(this).find("[name=contact_mobile]").val(),
- position: $(this).find("[name=contact_position]").val()
- });
- });
- var areaText = [];
- $("[name=area_text]").each(function () { //地区
- if ($(this).val().length !== 0) {
- areaText.push($(this).val());
- }
- });
- var site = tips.getFormValues('#basic');
- if (site.report_day) {
- site.report_day = parseInt(site.report_day);
- }
- site.contacts = contacts;
- site.area_text = areaText;
- site.contract_ids = $("#contract_ids").val();
- var infoList = [];
- $('input[name="enterprise_nature"]:checked').each(function () {
- infoList.push($(this).val());
- });
- site.enterprise_nature = infoList.toString();
- var caseList = [];
- $('input[name="case_ids"]:checked').each(function () {
- caseList.push($(this).val());
- });
- site.case_ids = caseList.toString();
- return {type: type, site: site};
- },
- detail: function (type) {
- var googleBid = [];
- $("[name=google_bid_fee]").each(function () {
- googleBid.push({
- google_bid_fee: $(this).val(),
- google_bid_time: $(this).siblings("input").val()
- });
- });
- googleBid.pop();
- var payment = {
- head: $("#head").val(),
- head_type: $("#head_type").val(),
- head_invoicing_type: $("#head_invoicing_type").val(),
- done: $("#done").val(),
- done_type: $("#done_type").val(),
- done_invoicing_type: $("#done_invoicing_type").val(),
- reach: $("#reach").val(),
- reach_type: $("#reach_type").val(),
- reach_invoicing_type: $("#reach_invoicing_type").val(),
- service_final_payment: $("#service_final_payment").val(),
- service_final_payment_type: $("#service_final_payment_type").val(),
- service_final_payment_invoicing_type: $("#service_final_payment_invoicing_type").val(),
- renewal: $("#renewal").val(),
- renewal_type: $("#renewal_type").val(),
- renewal_invoicing_type: $("#renewal_invoicing_type").val(),
- contract_total_fee: $("#contract_total_fee").val(),
- google_optimize_fee: $("#google_optimize_fee").val(),
- refund: $("#refund").val(),
- refund_reason: $("#refund_reason").val(),
- refund_reason_analyze: $("#refund_reason_analyze").val(),
- not_renewed_reason: $("#not_renewed_reason").val(),
- not_renewed_reason_analyze: $("#not_renewed_reason_analyze").val(),
- remarks: $("#remarks").val(),
- bid_give_fee: $("#bid_give_fee").val(),
- google_bid: googleBid,
- bid_score: $("#bid_score").val(),
- bid_score_time: $("#bid_score_time").val(),
- bid_login_account: $("#bid_login_account").val(),
- bid_account_online_time: $("#bid_account_online_time").val(),
- bid_account_pause_time: $("#bid_account_pause_time").val(),
- wiki_fee: $("#wiki_fee").val(),
- other_fee: $("#other_fee").val()
- };
- return {type: type, payment: payment};
- },
- people: function (type) {
- var allot = {
- manager_ids: $("#manager_ids").val(),
- manage_helper_ids: $("#manage_helper_ids").val(),
- designer_ids: $("#designer_ids").val(),
- web_ids: $("#web_ids").val(),
- optimizer_ids: $("#optimizer_ids").val(),
- editor_ids: $("#editor_ids").val(),
- server_ids: $("#server_ids").val(),
- article_ids: $("#article_ids").val(),
- bid_user_ids: $("#bid_user_ids").val(),
- seller_ids: $("#seller_ids").val(),
- article_edit_ids: $("#article_edit_ids").val(),
- external_link_ids: $("#external_link_ids").val(),
- chongqing_link_ids: $("#chongqing_link_ids").val(),
- optimization_editing_ids: $("#optimization_editing_ids").val()
- };
- return {type: type, allot: allot};
- },
- timeFrame: function (type) {
- var site = tips.getFormValues('#time');
- if (site.report_day) {
- site.report_day = parseInt(site.report_day);
- }
- return {type: type, site: site};
- },
- server: function (type) {
- var site = tips.getFormValues('#server');
- if (site.report_day) {
- site.report_day = parseInt(site.report_day);
- }
- return {type: type, site: site};
- },
- delSitesTaskFlow: function () {
- layer.confirm('您确定要清空建站流程吗?', {icon: 3, title: '清空建站流程'}, function (index, layero) {
- layer.close(index);
- var url = '/admin/flow/delSitesTaskFlow/{{$siteId}}';
- var ajaxConfig = {
- url: url,
- type: 'put',
- data: {},
- success: function (result) {
- layer.msg(result.message, {icon: 6, time: 1000}, function () {
- });
- }
- };
- tips.ajax(ajaxConfig);
- });
- }
- };
- $(document).on('click', '[name=file_upload]', function () {
- $(this).next().trigger('click');
- });
- $(document).on('change', '[name=uploadFile]', function () {
- var _this = this;
- if (!$(this)[0].files[0]) {
- return;
- }
- var formData = new FormData();
- formData.append('files[]', $(this)[0].files[0]);
- formData.append('siteId', "{{$siteId}}");
- var maxSize = 4096;//文件上传大小限制
- var size = $(this)[0].files[0].size;
- var fileSize = (size / 1024).toFixed(2);
- if (fileSize > maxSize) {
- layer.alert("上传文件不许超过4MB", {icon: 5});
- return;
- }
- var ln;
- $.ajax({
- url: '/admin/stencil/bulkUpload',
- type: 'POST',
- cache: false,
- data: formData,
- processData: false,
- contentType: false,
- beforeSend: function () {
- ln = layer.load();
- },
- complete: function () {
- layer.close(ln);
- },
- success: function (result) {
- var data = result.data[0];
- $('#' + $(_this).data('for')).attr('src', data.file_url);
- $(_this).next().val(data.file_url);
- },
- error: function (XMLHttpRequest) {
- if (XMLHttpRequest.status === 500) {
- layer.alert("异步请求失败", {icon: 5});
- return;
- }
- layer.alert(JSON.parse(XMLHttpRequest.responseText).message, {icon: 0});
- }
- });
- });
- </script>
- @endsection
|