goods.vue 126 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556
  1. <template>
  2. <view>
  3. <!-- 展示蒙层 显示推广画报 -->
  4. <view class="poster" v-if="myqr_show">
  5. <view class="title">
  6. <text>推广文案</text>
  7. </view>
  8. <view class="ads">
  9. <view style="width: 480rpx">{{ myqr_ads }}</view>
  10. </view>
  11. <image :src="myqr_url" mode="widthFix" style="width: 480rpx" :show-menu-by-longpress="true"></image>
  12. <view class="tool">
  13. <view @tap="posterCopy" style="text-align: right">
  14. <image class="img" style="width: 110rpx; height: 130rpx" src="/static/images/share/p_copy.png"></image>
  15. </view>
  16. <button open-type="share" class="share-btn">
  17. <image class="img" style="width: 85rpx; height: 127rpx" src="/static/images/share/p_dy.png"></image>
  18. </button>
  19. <view style="text-align: left">
  20. <image class="img" @tap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  21. </view>
  22. </view>
  23. <view style="text-align: center">
  24. <image class="closeImg" @tap="hidePoster" src="/static/images/share/close.png"></image>
  25. </view>
  26. </view>
  27. <view class="container" :style="'filter:brightness(' + myqr_blur + '%)'">
  28. <image src="/static/images/new/isnew.png" v-if="goods.isNew" class="isNew"></image>
  29. <swiper
  30. class="goodsimgs"
  31. :indicator-dots="goods.gallery.length > 1 ? true : false"
  32. :autoplay="true"
  33. interval="3000"
  34. duration="1000"
  35. indicator-color="rgba(0, 192, 255, .2)"
  36. indicator-active-color="rgba(0, 192, 255)"
  37. >
  38. <swiper-item v-for="(item, index) in goods.gallery" :key="index">
  39. <image :src="item" mode="aspectFill"></image>
  40. </swiper-item>
  41. </swiper>
  42. <!-- 分享
  43. <view class='goods_name'>
  44. <view class='goods_name_left'>{{goods.name}}</view>
  45. <view hidden="{{!canShare}}" class="goods_name_right" bindtap="shareFriendOrCircle">
  46. <image class="img" src="/static/images/share.png" />
  47. </view>
  48. </view>-->
  49. <view class="share-pop-box" v-if="openShare">
  50. <view class="share-pop">
  51. <view class="close" @tap="closeShare">
  52. <!-- <van-icon class="icon" name="cross" /> -->
  53. </view>
  54. <!-- <view class='share-info'>
  55. <button class="sharebtn" open-type="share" wx:if="{{!isGroupon}}">
  56. <image class='sharebtn_image' src='/static/images/wechat.png'></image>
  57. <view class='sharebtn_text'>分享给好友</view>
  58. </button>
  59. <button class="savesharebtn" open-type="openSetting" bindopensetting="handleSetting" wx:if="{{(!isGroupon) && (!canWrite)}}">
  60. <image class='sharebtn_image' src='/static/images/friend.png'></image>
  61. <view class='sharebtn_text'>发朋友圈1</view>
  62. </button>
  63. <button class="savesharebtn" bindtap="saveShare" wx:if="{{!isGroupon && canWrite}}">
  64. <image class='sharebtn_image' src='/static/images/friend.png'></image>
  65. <view class='sharebtn_text'>发朋友圈</view>
  66. </button>
  67. </view>-->
  68. </view>
  69. </view>
  70. <!-- <view class="goods-info">
  71. <view wx:if="{{activited}}" class="activity">
  72. <view style="display: flex;flex-direction: row;justify-content: space-between;">
  73. <view class="img">限时活动</view>
  74. <view class="activityDay">
  75. <image src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/clock.png">
  76. </image>
  77. <text>距离活动仅剩{{activityDay}}天</text>
  78. </view>
  79. </view>
  80. <view style="display: flex;justify-content: space-between;">
  81. <view style="display: flex;">
  82. <view class="activityPrice">¥<text>{{activityPrice}}</text></view>
  83. <view class="activityCounterPrice">原价¥<text>{{goods.counterPrice}}</text></view>
  84. </view>
  85. <view class="activityTime">
  86. <view>{{activityHour}}</view><text>:</text>
  87. <view>{{activityMinute}}</view><text>:</text>
  88. <view>{{activitySecond}}</view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="c">
  93. <view style="display: flex;flex-direction: column;">
  94. <view wx:if="{{!activited}}" class="price">
  95. <view class="retailPrice">¥<text class="checked-price">{{goods.retailPrice}}</text> </view>
  96. <view wx:if="{{goods.counterPrice!=goods.retailPrice}}" class="counterPrice">
  97. 原价¥<text>{{goods.counterPrice}}</text></view>
  98. </view>
  99. <view class='goods_name'>
  100. <view class='goods_name_left'>{{goods.name}}</view>
  101. </view>
  102. <text class="desc sub-color" wx:if="{{goods.brief}}">{{goods.brief}}</text>
  103. </view>
  104. </view>
  105. </view> -->
  106. <!-- 商品价格 销量 -->
  107. <view class="goods-info-new">
  108. <view class="price-line">
  109. <!-- <view class="real-price">到手价 ¥ <text>{{goods.retailPrice}}</text></view> -->
  110. <view class="real-price">
  111. <text style="padding-bottom: 4rpx">到手价</text>
  112. <text style="font-weight: bold">¥</text>
  113. <text class="bold-price">{{ finallyPrice }}</text>
  114. </view>
  115. <view class="sale-price">原价¥{{ goods.counterPrice }}</view>
  116. <view class="sale-num">已售{{ countSalesNumber }}件</view>
  117. </view>
  118. <view class="goods-coupon" v-if="couponVoList.length > 0">
  119. <view class="goupon-tag" v-for="(item, index) in couponVoList" :key="index">{{ item.tag }}</view>
  120. </view>
  121. </view>
  122. <!-- 购买提醒 -->
  123. <!-- wx:if="{{buyToastShow}}" -->
  124. <view class="buy-toast" v-if="buyToastShow">
  125. <swiper :autoplay="true" :circular="true" interval="3000" duration="1000" :vertical="true" class="toast-swiper">
  126. <swiper-item class="toast-swiper-item" v-for="(item, index) in goodsBuyTime" :key="index">
  127. <view class="toast-item">
  128. <image :src="item.cusHeadImg + '?w=20'" mode="aspectFill"></image>
  129. <view>{{ item.comment }}</view>
  130. </view>
  131. </swiper-item>
  132. </swiper>
  133. </view>
  134. <!-- 服务 须知 门店 -->
  135. <view class="other-info">
  136. <view class="name">
  137. {{ goods.name }}
  138. </view>
  139. <view class="common-info">
  140. <view class="info-title">服务</view>
  141. <view class="info-content">
  142. <!-- 专业服务·六区清洁·108项验收标准 -->
  143. {{ goods.serviceStandards }}
  144. </view>
  145. </view>
  146. <view class="common-info">
  147. <view class="info-title">须知</view>
  148. <view class="info-content">
  149. {{ goods.serviceInstructions }}
  150. </view>
  151. <!-- <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img">
  152. </image> -->
  153. </view>
  154. <view class="common-info">
  155. <view class="info-title">门店</view>
  156. <view class="info-content">全国{{ storeNum }}家门店通用</view>
  157. <!-- <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img">
  158. </image> -->
  159. </view>
  160. </view>
  161. <!-- 规格 -->
  162. <view class="sku-wrapper" @tap="showSkuPopup(0)" v-if="goods.productType == 2">
  163. <view class="sku-info">
  164. <view class="sku-left">
  165. <view>规格</view>
  166. <view class="current-sku">已选: {{ checkedSku.specifications[0] }}</view>
  167. </view>
  168. <view class="sku-right">
  169. <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img"></image>
  170. </view>
  171. </view>
  172. <view class="all-sku">
  173. <image :src="item.url" class="sku-thumb" v-for="(item, index) in productList" :key="index"></image>
  174. <view>共{{ specTotalNum }}种规格可选</view>
  175. </view>
  176. </view>
  177. <!-- 加购数量 -->
  178. <view class="num-module" v-if="goods.productType == 3 && goods.unitPrice && goods.unitPrice > 0">
  179. <view class="plus-buy">
  180. <view class="title">加购</view>
  181. <view class="plus-name">
  182. {{ goods.unitDescribe }}
  183. <text>¥{{ goods.unitPrice }}</text>
  184. /{{ goods.unitArea }}
  185. </view>
  186. </view>
  187. <view class="plus-num" style="padding-left: 80rpx">
  188. <view class="title" style="color: #000; width: 160rpx">加购数量</view>
  189. <view class="calc-counter">
  190. <view :class="'minus-btn ' + (plusNum == minNum ? 'disable' : '')" @tap="minusNum">-</view>
  191. <!-- <input class="num-input" bindinput="bindGoodsNumInput" type="number" maxlength="3" placeholder=""
  192. value="{{plusNum}}" /> -->
  193. <view class="num-input">{{ plusNum }}</view>
  194. <view :class="'plus-btn ' + (plusNum >= goods.unitMaximum ? 'disable' : '')" @tap="addNum">+</view>
  195. </view>
  196. </view>
  197. <view style="color: #fe2b54; margin: 8rpx 0 0" :tt-if="plusNum != 0">每份{{ goods.unitArea }},加购{{ plusNum }}份,合计{{ addPurchaseAmount }}元</view>
  198. </view>
  199. <!-- 补差 -->
  200. <view class="num-module" v-if="goods.type == 4">
  201. <view class="plus-num">
  202. <view class="title" style="color: #000; width: 160rpx; text-align: left; display: inline-block">购买数量</view>
  203. <view class="calc-counter">
  204. <view :class="'minus-btn ' + (plusNum == minNum ? 'disable' : '')" @tap="minusNum">-</view>
  205. <!-- <input class="num-input" bindinput="bindGoodsNumInput" type="number" maxlength="3" placeholder=""
  206. value="{{plusNum}}" /> -->
  207. <view class="num-input">{{ plusNum }}</view>
  208. <view :class="'plus-btn ' + (goods.unitMaximum && plusNum >= goods.unitMaximum ? 'disable' : '')" @tap="addNum">+</view>
  209. </view>
  210. </view>
  211. <view style="color: #fe2b54; margin: 8rpx 0 0">购买多份,叠加服务内容和服务时长。</view>
  212. </view>
  213. <!-- 无限购 -->
  214. <!-- wx:if="{{goods.productType==4&&goods.unitPrice&&goods.unitPrice>0}}" -->
  215. <view class="num-module" v-if="goods.productType == 4 && goods.unitPrice && goods.unitPrice > 0">
  216. <view class="plus-num">
  217. <view class="title" style="color: #000; width: 160rpx; justify-content: flex-start">购买数量</view>
  218. <view style="display: flex; align-items: center">
  219. <view class="calc-counter" style="height: 62rpx; line-height: 62rpx">
  220. <input
  221. class="num-input"
  222. style="height: 62rpx; line-height: 62rpx; width: 140rpx; border: none"
  223. @input="bindGoodsNumInput"
  224. type="number"
  225. maxlength="4"
  226. placeholder=""
  227. :value="plusNum"
  228. />
  229. </view>
  230. <view style="margin-left: 8rpx">{{ goods.unitArea }}</view>
  231. </view>
  232. </view>
  233. <view style="color: #fe2b54; margin: 8rpx 0 0">每增加1{{ goods.unitArea }},增加{{ goods.unitPrice }}元,服务人数根据实际购买量指派。</view>
  234. </view>
  235. <!-- 关联工单 -->
  236. <view class="service-list" v-if="goods.type == 4">
  237. <view class="service-item">
  238. <view class="order-title">关联工单</view>
  239. <view class="service-title">
  240. <view class="service-id">工单编号:{{ bookDetail.bookDetailId }}</view>
  241. <view class="service-status">{{ bookDetail.statusName }}</view>
  242. </view>
  243. <view class="service-main">
  244. <view class="customer-info">
  245. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png"></image>
  246. <view class="customer-main">
  247. <view class="main-line">
  248. <view>{{ bookDetail.consignee }}</view>
  249. <view class="phone">{{ bookDetail.mobile }}</view>
  250. </view>
  251. <view class="customer-address">{{ bookDetail.address }}</view>
  252. </view>
  253. </view>
  254. <view class="row">
  255. <text>上门时段:</text>
  256. {{ bookDetail.bookTime }}
  257. </view>
  258. <view class="row">
  259. <text>预约备注:</text>
  260. {{ bookDetail.message }}
  261. </view>
  262. </view>
  263. <view class="service-remark-wrapper">
  264. <view class="service-store">
  265. <view class="store-left">
  266. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-store.png"></image>
  267. <view>{{ bookDetail.fraName }}</view>
  268. </view>
  269. </view>
  270. </view>
  271. </view>
  272. </view>
  273. <!-- 团购评价 -->
  274. <view class="group-evaluation">
  275. <view class="title" @tap="goWholeEval">
  276. <view class="left">团购评价({{goodsCommentCount}}条)</view>
  277. <view class="right">
  278. <view>查看全部</view>
  279. <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img"></image>
  280. </view>
  281. </view>
  282. <view class="evaluation-item" v-for="(item, index) in goodsComment" :key="index">
  283. <view class="item-left">
  284. <view class="eval-top">
  285. <image :src="item.cusHeadImg + '?w=100'" mode="aspectFill" class="avatar"></image>
  286. <view class="name">{{ item.cusName }}</view>
  287. <view class="tag">{{ item.cusLabel }}</view>
  288. <view class="hp">{{ item.commentType }}</view>
  289. </view>
  290. <view class="eval-content">
  291. {{ item.comment }}
  292. </view>
  293. </view>
  294. <view class="item-right">
  295. <image :src="item.commentImg + '?w=200'" mode="aspectFill"></image>
  296. </view>
  297. </view>
  298. </view>
  299. <view class="detail">
  300. <image mode="widthFix" :src="item + '?w=1024'" v-for="(item, index) in detailList" :key="index"></image>
  301. </view>
  302. <!-- 产品推荐 -->
  303. <view class="recommend-title" v-if="recGoodsList.length > 0">产品推荐</view>
  304. <view class="recommend-list">
  305. <navigator :url="'/pages/goods/goods?id=' + item.id" v-for="(item, index) in recGoodsList" :key="index">
  306. <view class="recommend-item">
  307. <image :src="item.picUrl" mode="aspectFill"></image>
  308. <view class="recommend-goods-name">
  309. {{ item.name }}
  310. </view>
  311. <view class="recommend-goods-price">
  312. ¥
  313. <text>{{ item.retailPrice }}</text>
  314. </view>
  315. </view>
  316. </navigator>
  317. </view>
  318. <!-- 大家都在看
  319. <view class="related-goods" wx:if="{{relatedGoods.length > 0}}">
  320. <view class="h">
  321. <view class="line"></view>
  322. <text class="title">大家都在看</text>
  323. </view>
  324. <view class="b">
  325. <view class="item" wx:for="{{relatedGoods}}" wx:key="id">
  326. <navigator url="/pages/goods/goods?id={{item.id}}">
  327. <image class="img" src="{{item.picUrl}}" background-size="cover"></image>
  328. <text class="name">{{item.name}}</text>
  329. <text class="price">¥{{item.retailPrice}}</text>
  330. </navigator>
  331. </view>
  332. </view>
  333. </view> -->
  334. </view>
  335. <!-- 联系客服
  336. <view class="contact">
  337. <contact-button style="opacity:0;position:absolute;" type="default-dark" session-from="weapp" size="36">
  338. </contact-button>
  339. </view> -->
  340. <!-- 底部按钮 -->
  341. <view class="bottom-btn">
  342. <view class="contact-block">
  343. <!-- <button class="contact-btn" open-type="contact">客服</button> -->
  344. <view class="contact-wrapper" @tap="goIM">
  345. <image class="contact-img" mode="aspectFit" src="/static/images/online-new.png"></image>
  346. <view class="text">客服</view>
  347. </view>
  348. </view>
  349. <view class="final-price">
  350. <!-- <view class="total-new">¥<text>{{goods.retailPrice}}</text></view>
  351. <view class="total-old">¥{{goods.counterPrice}}</view> -->
  352. <view class="total-new">
  353. ¥
  354. <text>{{ totalPrice }}</text>
  355. </view>
  356. <view class="total-old">¥{{ checkedSku.counterPrice }}</view>
  357. </view>
  358. <!-- <view class="share" bindtap="reSpread" wx:if="{{!soldout||!hasLogin}}">分享</view> -->
  359. <view class="c" @tap="addFast">立即购买</view>
  360. </view>
  361. <!-- sku规格列表 -->
  362. <view class="appoint-overlay-wrapper" @tap="onSkuClose" v-if="chooseSkuVisible">
  363. <view class="spu-popup" @tap.stop.prevent="stopClick">
  364. <!-- <view class="popup-good">
  365. <view class="left">
  366. <image :src="currentSku.url" mode="aspectFill"></image>
  367. <view class="spu-price">
  368. ¥
  369. <text>{{ currentSku.price }}</text>
  370. </view>
  371. <view class="spu-price-old">¥{{ currentSku.counterPrice }}</view>
  372. </view>
  373. </view> -->
  374. <!-- <image src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-close.png" mode="aspectFill" class="sku-close" @tap="onSkuClose"></image> -->
  375. <view class="sku-popup-title">请选择购买规格</view>
  376. <view class="sku-popup-tips">选择实际服务数量对应的规格</view>
  377. <!-- <scroll-view scroll-y="true" class="sku-list-block"> -->
  378. <view class="sku-list-block">
  379. <!-- <view class="spu-title">规格</view> -->
  380. <view style="padding-bottom: 20rpx">
  381. <view :class="'sku-item ' + (activeSku == item.id ? 'active-sku' : '')"
  382. :data-index="index"
  383. :data-id="item.id"
  384. @tap="selectSku"
  385. v-for="(item, index) in productList"
  386. :key="index">
  387. <view>
  388. {{ item.specifications[0] }}
  389. </view>
  390. <view class="sku-price">¥{{item.price}}</view>
  391. </view>
  392. </view>
  393. <!-- </scroll-view> -->
  394. <!-- <view class="sku-btn" bindtap="confSku">
  395. 确认
  396. </view> -->
  397. <view class="sku-btn" @tap="confSku">确定</view>
  398. </view>
  399. </view>
  400. </view>
  401. <!-- 自购提示 -->
  402. <!-- <van-overlay show="{{ selfPayShow }}">
  403. <view class="overlay-wrapper">
  404. <view class="tips-wrapper">
  405. <view class="tips-top">
  406. <view class="tips-title">立省金额说明</view>
  407. <view>立省金额会以佣金形式发放,请在引荐人中心查收哦</view>
  408. </view>
  409. <view class="notip-again">
  410. <van-checkbox value="{{selfPayChecked}}" shape="square" icon-size="20px" bind:change="onSelfPayChange" checked-color="#09afff"></van-checkbox>
  411. <text class="user-agree">我已知晓,不再提示</text>
  412. </view>
  413. <view class="tips-bottom">
  414. <view class="cancel-btn" bindtap="cancelSelfPay">取消</view>
  415. <view class="btn-devide"></view>
  416. <view class="repay-btn" bindtap="reSelfPay">继续购买</view>
  417. </view>
  418. </view>
  419. </view>
  420. </van-overlay> -->
  421. <!-- 推广提示 -->
  422. <!-- <van-overlay show="{{spreadPayShow }}">
  423. <view class="overlay-wrapper">
  424. <view class="tips-wrapper">
  425. <view class="tips-top">
  426. <view class="tips-title">推广佣金说明</view>
  427. <view>页面展示推广佣金为预计最高返现金额,实际金额根据购买者团队身份计算,请在引荐人中心查看实际佣金</view>
  428. </view>
  429. <view class="notip-again">
  430. <van-checkbox value="{{spreadPayChecked}}" shape="square" icon-size="20px" bind:change="onSpreadPayChange" checked-color="#09afff"></van-checkbox>
  431. <text class="user-agree">我已知晓,不再提示</text>
  432. </view>
  433. <view class="tips-bottom">
  434. <view class="cancel-btn" bindtap="cancelSpreadPay">取消</view>
  435. <view class="btn-devide"></view>
  436. <view class="repay-btn" bindtap="reSpread">继续推广</view>
  437. </view>
  438. </view>
  439. </view>
  440. </van-overlay> -->
  441. </view>
  442. </template>
  443. <script>
  444. var app = getApp();
  445. // var WxParse = require('../../lib/wxParse/wxParse.js');
  446. var util = require('../../utils/util.js');
  447. var api = require('../../config/api.js');
  448. var user = require('../../utils/user.js');
  449. export default {
  450. data() {
  451. return {
  452. goodsCommentCount:'',
  453. showType:0,// 1弹窗后确认立即下单
  454. chooseSkuVisible: false,
  455. activeSku: 0,
  456. checkedSku: {
  457. specifications: [],
  458. id: 0,
  459. retailPrice: '',
  460. counterPrice: '',
  461. url: ''
  462. },
  463. currentSku: {
  464. specifications: [],
  465. id: 0,
  466. retailPrice: '',
  467. counterPrice: '',
  468. url: '',
  469. price: ''
  470. },
  471. productList: [],
  472. specTotalNum: '',
  473. buyToastShow: false,
  474. goodsBuyTime: {
  475. cusHeadImg: '',
  476. comment: ''
  477. },
  478. recGoodsList: [],
  479. plusNum: '0',
  480. detailList: [],
  481. detailListAll: [],
  482. countSalesNumber: '',
  483. selfPayShow: false,
  484. selfPayCheck: false,
  485. spreadPayShow: false,
  486. spreadPayChecked: false,
  487. canShare: false,
  488. id: 0,
  489. goods: {
  490. unitMaximum: 1,
  491. isNew: '',
  492. gallery: [],
  493. counterPrice: '',
  494. name: '',
  495. serviceInstructions: '',
  496. productType: 0,
  497. unitPrice: '',
  498. unitArea: '',
  499. type: 0
  500. },
  501. groupon: [],
  502. //该商品支持的团购规格
  503. grouponLink: {},
  504. //参与的团购
  505. attribute: [],
  506. issueList: [],
  507. comment: [],
  508. //brand: {},
  509. specificationList: [],
  510. relatedGoods: [],
  511. cartGoodsCount: 0,
  512. userHasCollect: 0,
  513. number: 1,
  514. checkedSpecText: '规格数量选择',
  515. tmpSpecText: '请选择规格数量',
  516. checkedSpecPrice: 0,
  517. openAttr: false,
  518. openShare: false,
  519. collect: false,
  520. shareImage: '',
  521. isGroupon: false,
  522. //标识是否是一个参团购买
  523. soldout: false,
  524. canWrite: false,
  525. //用户是否获取了保存相册的权限
  526. name_height: 58,
  527. //根据名称长度 设置高度
  528. userInfo: {},
  529. hasLogin: false,
  530. shareId: 0,
  531. //options传递过来的参数 表示是打开哪个分享
  532. wxShareId: 0,
  533. //如果要分享此商品的分享id
  534. addressInfo: {},
  535. rId: 0,
  536. //分享人id,
  537. selfDiscount: 0,
  538. spreadDiscount: 0,
  539. referee: {
  540. self: 0,
  541. share: 0
  542. },
  543. myqr_show: false,
  544. //我的分享二维码
  545. myqr_url: null,
  546. //分享海报及推广语言
  547. myqr_ads: '',
  548. myqr_blur: 100,
  549. //背景模糊值
  550. myqr_bottom_btn: 'fixed',
  551. //底部功能按钮
  552. activited: false,
  553. //是否活动中
  554. activityPrice: 0,
  555. //活动价格
  556. activityTime: 89646,
  557. //活动倒计时总计时间 (整型 秒)
  558. activityDay: 0,
  559. //活动天数
  560. activityHour: 0,
  561. //活动小时
  562. activityMinute: 0,
  563. //活动分钟
  564. activitySecond: 0,
  565. //活动秒
  566. activityTimer: null,
  567. //定时器
  568. code: '',
  569. //抖音登录code
  570. isCommiting: false,
  571. //是否提交中 防止多次提交
  572. //以下是支付使用参数
  573. openId: '',
  574. checkedAddress: '',
  575. actualPrice: '',
  576. couponPrice: '',
  577. addressId: '',
  578. couponId: '',
  579. userCouponId: '',
  580. mobile: '',
  581. couponVoList: [],
  582. //优惠券列表
  583. finallyPrice: '',
  584. storeNum: '267',
  585. totalPrice: '',
  586. addPurchaseAmount: 0,
  587. addPurchase: [],
  588. serviceId: '',
  589. bookDetail: {
  590. bookDetailId: '',
  591. statusName: '',
  592. consignee: '',
  593. mobile: '',
  594. address: '',
  595. fraName: ''
  596. },
  597. minNum: 0,
  598. //达人id 表示是否从小雪花进入
  599. talentId: '',
  600. goodsComment: '',
  601. selfPayChecked: '',
  602. qid:'' //短链id(表示短链进入)
  603. };
  604. }, // 页面分享
  605. onShareAppMessage: function () {
  606. let that = this;
  607. if (!app.globalData.hasLogin) {
  608. uni.navigateTo({
  609. url: '/pages/auth/login/login'
  610. });
  611. return;
  612. }
  613. //获取分享id 用来追踪链接
  614. //引荐人和非引荐人的 链接不同
  615. let imgUrl = that.goods.shareWxUrl ? that.goods.shareWxUrl : that.goods.gallery[0];
  616. var path = '/pages/goods/goods?id=' + that.id + '&rId=' + that.userInfo.id;
  617. if (that.userInfo.isDis) {
  618. //是引荐人
  619. path = '/pages/goods/goods?id=' + that.id + '&shareId=' + that.wxShareId;
  620. }
  621. this.hidePoster();
  622. return {
  623. title: that.goods.name + '\n' + that.myqr_ads,
  624. path: path,
  625. imageUrl: imgUrl
  626. };
  627. },
  628. onLoad: function (options) {
  629. console.log(options);
  630. console.log(this.$store.state)
  631. // 页面初始化 options为页面跳转所带来的参数
  632. var addressInfo = uni.getStorageSync('addressInfo');
  633. if (addressInfo) {
  634. this.setData({
  635. addressInfo: addressInfo
  636. });
  637. }
  638. var openId = uni.getStorageSync('openId');
  639. if (openId) {
  640. this.setData({
  641. openId: openId
  642. });
  643. } else {
  644. //openid为空 需要去获取
  645. this.getUserOpenId();
  646. }
  647. if (options.rId) {
  648. this.setData({
  649. rId: parseInt(options.rId)
  650. });
  651. }
  652. //达人id 小雪花过来的
  653. if (options.talentId) {
  654. this.setData({
  655. talentId: options.talentId
  656. });
  657. }
  658. if (options.shareId) {
  659. this.setData({
  660. shareId: parseInt(options.shareId)
  661. });
  662. }
  663. if (options.id) {
  664. this.setData({
  665. id: parseInt(options.id)
  666. });
  667. this.getGoodsInfo();
  668. }
  669. // 补差产品扫二维码进入
  670. if (options.service_id) {
  671. this.setData({
  672. id: parseInt(options.goods_id),
  673. serviceId: options.service_id
  674. });
  675. this.getGoodsInfo();
  676. }
  677. //短链或者二维码的id
  678. if(options.qid){
  679. this.setData({
  680. qid:options.qid
  681. })
  682. }
  683. this.getStore();
  684. },
  685. onShow: function () {
  686. if (app.globalData.hasLogin) {
  687. let userInfo = uni.getStorageSync('userInfo');
  688. app.globalData.userInfo = userInfo;
  689. this.setData({
  690. userInfo: userInfo,
  691. hasLogin: true
  692. });
  693. }
  694. util.addLog(1,1,1,{goodsId:this.id});
  695. },
  696. onHide: function () {
  697. // 页面隐藏
  698. clearInterval(this.activityTimer);
  699. util.addLog(2,1,2,{goodsId:this.id});
  700. },
  701. onUnload: function () {
  702. // 页面关闭
  703. clearInterval(this.activityTimer);
  704. },
  705. onReady: function () {
  706. // 页面渲染完成
  707. },
  708. onReachBottom: function () {
  709. console.info('reachbottom');
  710. let detailListAll = this.detailListAll;
  711. let detailList = this.detailList;
  712. //console.info(detailList)
  713. if (detailListAll.length > detailList.length) {
  714. // detailListAll = detailListAll.splice(1);
  715. detailList.push(detailListAll[detailList.length]);
  716. this.setData({
  717. detailList: detailList
  718. // detailListAll: detailListAll
  719. });
  720. }
  721. },
  722. methods: {
  723. goCustomerService() {
  724. //跳转微信客服
  725. console.info('goCustomerService');
  726. uni.openCustomerServiceChat({
  727. extInfo: {
  728. url: 'https://work.weixin.qq.com/kfid/kfc1fcfae84340d5125'
  729. },
  730. corpId: 'ww034f0b524f8ead00',
  731. success(res) {},
  732. fail(res) {
  733. console.info(res);
  734. }
  735. });
  736. },
  737. shareFriendOrCircle: function () {
  738. if (!app.globalData.hasLogin) {
  739. uni.navigateTo({
  740. url: '/pages/auth/login/login'
  741. });
  742. return;
  743. }
  744. //分享 弹出图片
  745. let that = this;
  746. uni.removeStorageSync(String(that.goods.id));
  747. //取出本地缓存中的分享图
  748. // let sUrl=wx.getStorageSync(String(that.data.goods.id));
  749. // if(sUrl!=null&&sUrl!=""){//获取过的分享图 不需要再次获取
  750. // that.setData({
  751. // myqr_url:sUrl,
  752. // myqr_show:true,
  753. // myqr_blur:5
  754. // });
  755. // return;
  756. // }
  757. uni.showLoading({
  758. title: '生成中'
  759. });
  760. util.request(api.QrGoodsCodeCreate, {
  761. goodsId: that.goods.id
  762. }).then(function (res) {
  763. uni.hideLoading();
  764. if (res.errno == 0) {
  765. that.setData({
  766. myqr_url: res.data.imgUrl,
  767. myqr_show: true,
  768. myqr_blur: 5
  769. });
  770. //保存分享图url到本地缓存
  771. // wx.setStorageSync(String(that.data.goods.id),res.data.imgUrl);
  772. } else if (res.errno == 501) {
  773. uni.navigateTo({
  774. url: '/pages/auth/login/login'
  775. });
  776. } else {
  777. uni.showToast({
  778. title: res.errmsg,
  779. duration: 5000
  780. });
  781. }
  782. });
  783. //var that = this;
  784. /*if (this.data.openShare === false) {
  785. this.setData({
  786. openShare: !this.data.openShare
  787. });
  788. } else {
  789. return false;
  790. }*/
  791. },
  792. /**活动剩余时间 格式化 */
  793. handleActivityTime() {
  794. let that = this;
  795. let interval = setInterval(function () {
  796. if (that.activityTime <= 1) {
  797. return;
  798. }
  799. let activityTime = that.activityTime;
  800. let day = parseInt(activityTime / 86400);
  801. let hour = parseInt((activityTime % 86400) / 3600);
  802. console.info((activityTime % 86400) % 3600);
  803. let minte = parseInt(((activityTime % 86400) % 3600) / 60);
  804. let second = parseInt(((activityTime % 86400) % 3600) % 60);
  805. that.setData({
  806. activityDay: day,
  807. activityHour: hour < 10 ? '0' + hour.toString() : hour.toString(),
  808. activityMinute: minte < 10 ? '0' + minte.toString() : minte.toString(),
  809. activitySecond: second < 10 ? '0' + second.toString() : second.toString(),
  810. activityTime: activityTime - 1
  811. });
  812. }, 1000);
  813. that.setData({
  814. activityTimer: interval
  815. });
  816. },
  817. handleSetting: function (e) {
  818. var that = this;
  819. // console.log(e)
  820. if (!e.detail.authSetting['scope.writePhotosAlbum']) {
  821. uni.showModal({
  822. title: '警告',
  823. content: '不授权无法保存',
  824. showCancel: false
  825. });
  826. that.setData({
  827. canWrite: false
  828. });
  829. } else {
  830. uni.showToast({
  831. title: '保存成功'
  832. });
  833. that.setData({
  834. canWrite: true
  835. });
  836. }
  837. },
  838. // 保存分享图
  839. saveShare: function () {
  840. let that = this;
  841. uni.showLoading({
  842. title: '图片保存中'
  843. });
  844. console.log(that);
  845. uni.downloadFile({
  846. url: that.myqr_url,
  847. success: function (res) {
  848. console.log(res);
  849. uni.saveImageToPhotosAlbum({
  850. filePath: res.tempFilePath,
  851. success: function (res) {
  852. uni.hideLoading();
  853. uni.showModal({
  854. title: '存图成功',
  855. content: '图片成功保存到相册了,可以分享到朋友圈了',
  856. showCancel: false,
  857. confirmText: '好的',
  858. confirmColor: '#a78845',
  859. success: function (res) {
  860. if (res.confirm) {
  861. console.log('用户点击确定');
  862. that.setData({
  863. myqr_show: false,
  864. myqr_blur: 0
  865. });
  866. }
  867. }
  868. });
  869. },
  870. fail: function (res) {
  871. uni.hideLoading();
  872. uni.showModal({
  873. title: '警告',
  874. content: '不授权无法保存',
  875. showCancel: false
  876. });
  877. that.setData({
  878. myqr_show: false,
  879. myqr_blur: 0
  880. });
  881. }
  882. });
  883. },
  884. fail: function (res) {
  885. uni.hideLoading();
  886. console.log(res);
  887. }
  888. });
  889. },
  890. // 获取商品信息
  891. getGoodsInfo: function () {
  892. let that = this;
  893. let params = {
  894. id: that.id,
  895. rId: that.rId
  896. };
  897. if (this.serviceId) {
  898. params = {
  899. id: that.id,
  900. rId: that.rId,
  901. serviceId: that.serviceId
  902. };
  903. }
  904. console.info('1-》getGoodsInfo start');
  905. util.request(api.GoodsDetail, params).then(function (res) {
  906. console.info('2-》getGoodsInfo end');
  907. console.info(res);
  908. if (res.errno === 0) {
  909. //设置显示名称的控件高度
  910. // let height = 56;
  911. // if (res.data.info.name.length > 17 & res.data.info.name.length < 36) height = 76;
  912. // else if (res.data.info.name.length >= 36) height = 116;
  913. let goodsComment = res.data.goodsComment;
  914. let list = [];
  915. if (goodsComment) {
  916. goodsComment.forEach((item) => {
  917. let obj = item;
  918. if (item.commentImgs) {
  919. let img = item.commentImgs.split(',');
  920. if (img.length >= 1) {
  921. obj.commentImg = img[0];
  922. } else {
  923. obj.commentImg = '';
  924. }
  925. }
  926. list.push(obj);
  927. });
  928. }
  929. let checkedSku = {};
  930. if (res.data.info.productType == 3) {
  931. let plusInit = res.data.productList.filter((pro) => {
  932. return pro.unitIncreaseNumber == 0;
  933. });
  934. if (plusInit.length >= 1) {
  935. checkedSku = plusInit[0];
  936. }
  937. } else {
  938. checkedSku = res.data.productList[0];
  939. }
  940. if (res.data.info.type == 4) {
  941. that.setData({
  942. plusNum: 1,
  943. minNum: 1
  944. });
  945. }
  946. that.setData({
  947. goods: res.data.info,
  948. detailList: res.data.info.detail == '' || res.data.info.detail == null ? [] : [res.data.info.detail.split(',')[0]],
  949. detailListAll: res.data.info.detail == '' || res.data.info.detail == null ? [] : res.data.info.detail.split(','),
  950. // attribute: res.data.attribute,
  951. // issueList: res.data.issue,
  952. // comment: res.data.comment,
  953. //brand: res.data.brand,
  954. specificationList: res.data.specificationList,
  955. userHasCollect: res.data.userHasCollect,
  956. shareImage: res.data.shareImage,
  957. checkedSpecPrice: res.data.info.retailPrice,
  958. countSalesNumber: res.data.countSalesNumber,
  959. // canShare: res.data.share,
  960. // name_height: height,
  961. wxShareId: res.data.shareId,
  962. activited: res.data.activited,
  963. activityTime: res.data.activityTime,
  964. activityPrice: res.data.activityPrice,
  965. productList: res.data.productList,
  966. specTotalNum: res.data.productList.length,
  967. goodsComment: list,
  968. buyToastShow: true,
  969. goodsBuyTime: res.data.goodsBuyTime,
  970. // checkedSku:res.data.productList[0],
  971. // currentSku:res.data.productList[0],
  972. checkedSku: checkedSku,
  973. currentSku: checkedSku,
  974. recGoodsList: res.data.recGoodsList,
  975. finallyPrice: Number(res.data.info.retailPrice).toFixed(2),
  976. // addPurchase:res.data.addPurchase,
  977. bookDetail: res.data.bookDetail,
  978. goodsCommentCount:res.data.goodsCommentCount
  979. });
  980. that.getMaxCoupon();
  981. // setTimeout(()=>{
  982. // that.setData({
  983. // buyToastShow:true
  984. // });
  985. // },200);
  986. // setTimeout(()=>{
  987. // that.setData({
  988. // buyToastShow:false
  989. // })
  990. // },3200);
  991. if (res.data.activited) {
  992. that.handleActivityTime();
  993. }
  994. if (res.data.userHasCollect == 1) {
  995. that.setData({
  996. collect: true
  997. });
  998. } else {
  999. that.setData({
  1000. collect: false
  1001. });
  1002. }
  1003. // WxParse.wxParse('goodsDetail', 'html', res.data.info.detail, that);
  1004. //获取推荐商品
  1005. //that.getGoodsRelated();
  1006. }
  1007. });
  1008. },
  1009. // 获取推荐商品
  1010. getGoodsRelated: function () {
  1011. let that = this;
  1012. util.request(api.GoodsRelated, {
  1013. id: that.id,
  1014. shopId: this.addressInfo.shopId
  1015. }).then(function (res) {
  1016. if (res.errno === 0) {
  1017. that.setData({
  1018. relatedGoods: res.data.list
  1019. });
  1020. }
  1021. });
  1022. },
  1023. // 规格选择
  1024. clickSkuValue: function (event) {
  1025. let that = this;
  1026. let specName = event.currentTarget.dataset.name;
  1027. let specValueId = event.currentTarget.dataset.valueId;
  1028. //判断是否可以点击
  1029. //TODO 性能优化,可在wx:for中添加index,可以直接获取点击的属性名和属性值,不用循环
  1030. let _specificationList = this.specificationList;
  1031. for (let i = 0; i < _specificationList.length; i++) {
  1032. if (_specificationList[i].name === specName) {
  1033. for (let j = 0; j < _specificationList[i].valueList.length; j++) {
  1034. if (_specificationList[i].valueList[j].id == specValueId) {
  1035. //如果已经选中,则反选
  1036. if (_specificationList[i].valueList[j].checked) {
  1037. _specificationList[i].valueList[j].checked = false;
  1038. } else {
  1039. _specificationList[i].valueList[j].checked = true;
  1040. }
  1041. } else {
  1042. _specificationList[i].valueList[j].checked = false;
  1043. }
  1044. }
  1045. }
  1046. }
  1047. this.setData({
  1048. specificationList: _specificationList
  1049. });
  1050. //重新计算spec改变后的信息
  1051. this.changeSpecInfo();
  1052. //重新计算哪些值不可以点击
  1053. },
  1054. //获取选中的规格信息
  1055. getCheckedSpecValue: function () {
  1056. let checkedValues = [];
  1057. let _specificationList = this.specificationList;
  1058. for (let i = 0; i < _specificationList.length; i++) {
  1059. let _checkedObj = {
  1060. name: _specificationList[i].name,
  1061. valueId: 0,
  1062. valueText: ''
  1063. };
  1064. for (let j = 0; j < _specificationList[i].valueList.length; j++) {
  1065. if (_specificationList[i].valueList[j].checked) {
  1066. _checkedObj.valueId = _specificationList[i].valueList[j].id;
  1067. _checkedObj.valueText = _specificationList[i].valueList[j].value;
  1068. }
  1069. }
  1070. checkedValues.push(_checkedObj);
  1071. }
  1072. return checkedValues;
  1073. },
  1074. //判断规格是否选择完整
  1075. isCheckedAllSpec: function () {
  1076. return !this.getCheckedSpecValue().some(function (v) {
  1077. if (v.valueId == 0) {
  1078. return true;
  1079. }
  1080. });
  1081. },
  1082. getCheckedSpecKey: function () {
  1083. let checkedValue = this.getCheckedSpecValue().map(function (v) {
  1084. return v.valueText;
  1085. });
  1086. return checkedValue;
  1087. },
  1088. // 规格改变时,重新计算价格及显示信息
  1089. changeSpecInfo: function () {
  1090. let checkedNameValue = this.getCheckedSpecValue();
  1091. //设置选择的信息
  1092. let checkedValue = checkedNameValue
  1093. .filter(function (v) {
  1094. if (v.valueId != 0) {
  1095. return true;
  1096. } else {
  1097. return false;
  1098. }
  1099. })
  1100. .map(function (v) {
  1101. return v.valueText;
  1102. });
  1103. if (checkedValue.length > 0) {
  1104. this.setData({
  1105. tmpSpecText: checkedValue.join(' ')
  1106. });
  1107. } else {
  1108. this.setData({
  1109. tmpSpecText: '请选择规格数量'
  1110. });
  1111. }
  1112. if (this.isCheckedAllSpec()) {
  1113. this.setData({
  1114. checkedSpecText: this.tmpSpecText
  1115. });
  1116. // 规格所对应的货品选择以后
  1117. let checkedProductArray = this.getCheckedProductItem(this.getCheckedSpecKey());
  1118. if (!checkedProductArray || checkedProductArray.length <= 0) {
  1119. this.setData({
  1120. soldout: true
  1121. });
  1122. console.error('规格所对应货品不存在');
  1123. return;
  1124. }
  1125. let checkedProduct = checkedProductArray[0];
  1126. if (checkedProduct.number > 0) {
  1127. this.setData({
  1128. checkedSpecPrice: checkedProduct.price,
  1129. soldout: false
  1130. });
  1131. } else {
  1132. this.setData({
  1133. checkedSpecPrice: this.goods.retailPrice,
  1134. soldout: true
  1135. });
  1136. }
  1137. } else {
  1138. this.setData({
  1139. checkedSpecText: '规格数量选择',
  1140. checkedSpecPrice: this.goods.retailPrice,
  1141. soldout: false
  1142. });
  1143. }
  1144. },
  1145. // 获取选中的产品(根据规格)
  1146. getCheckedProductItem: function (key) {
  1147. return this.productList.filter(function (v) {
  1148. if (v.specifications.toString() == key.toString()) {
  1149. return true;
  1150. } else {
  1151. return false;
  1152. }
  1153. });
  1154. },
  1155. goIM() {
  1156. console.info('goIm');
  1157. uni.navigateTo({
  1158. url: '/pages/chat/im/im'
  1159. });
  1160. util.addLog(1,1,12,{goodsId:this.id});
  1161. },
  1162. //添加或是取消收藏
  1163. addCollectOrNot: function () {
  1164. let that = this;
  1165. util.request(
  1166. api.CollectAddOrDelete,
  1167. {
  1168. type: 0,
  1169. valueId: this.id
  1170. },
  1171. 'POST'
  1172. ).then(function (res) {
  1173. if (that.userHasCollect == 1) {
  1174. that.setData({
  1175. collect: false,
  1176. userHasCollect: 0
  1177. });
  1178. } else {
  1179. that.setData({
  1180. collect: true,
  1181. userHasCollect: 1
  1182. });
  1183. }
  1184. });
  1185. },
  1186. //立即购买(先自动加入购物车)
  1187. async addFast() {
  1188. var that = this;
  1189. if(that.goods.productType == 2){//多规格,先弹窗选规格后
  1190. that.showSkuPopup(1);
  1191. return;
  1192. }
  1193. //如果是买约一体商品 必须授权登录
  1194. // if (that.goods.type != 3 && that.hasLogin == false) {
  1195. // uni.navigateTo({
  1196. // url: '/pages/auth/login/login'
  1197. // });
  1198. // return;
  1199. // }
  1200. that.fastOrder();
  1201. },
  1202. async fastOrder(){
  1203. //防止多次提交
  1204. var that = this;
  1205. if (that.isCommiting) {
  1206. return;
  1207. }
  1208. that.setData({
  1209. isCommiting: true
  1210. });
  1211. let boo = await this.checkGoods();
  1212. console.info(boo);
  1213. if (!boo) {
  1214. that.setData({
  1215. isCommiting: false
  1216. });
  1217. return;
  1218. }
  1219. //不用加购物车 直接跳转
  1220. app.globalData.infoGoods = {
  1221. name: that.goods.name,
  1222. brief: that.goods.brief,
  1223. picUrl: that.goods.picUrl,
  1224. type: that.goods.type,
  1225. id: that.goods.id
  1226. };
  1227. //20230523对于买约分离的商品 不用提单页 直接结算
  1228. if (that.goods.type == 3 || that.goods.type == 4) {
  1229. console.info('直接拉起支付');
  1230. that.checkoutInfo();
  1231. return;
  1232. }
  1233. uni.setStorageSync('cartId', 0);
  1234. uni.setStorageSync('goodsId', that.goods.id);
  1235. // uni.navigateTo({
  1236. // url: '/pages/checkout/checkout'
  1237. // });
  1238. if(that.goods.type == 0){
  1239. uni.navigateTo({
  1240. url: '/pages/checkout/checkout?productId='+this.checkedSku.id+'&unitIncreaseNumber='+this.plusNum
  1241. });
  1242. }
  1243. that.setData({
  1244. isCommiting: false
  1245. });
  1246. },
  1247. async checkGoods() {
  1248. let boo = true;
  1249. let that = this;
  1250. //console.info(code);
  1251. await util
  1252. .request(
  1253. api.OrderCheckGoods,
  1254. {
  1255. goodsId: this.goods.id,
  1256. openId: this.openId,
  1257. productId: this.checkedSku.id,
  1258. unitIncreaseNumber: this.plusNum
  1259. // bookDetailId:this.data.bookDetail.bookDetailId
  1260. },
  1261. 'GET'
  1262. )
  1263. .then(function (res) {
  1264. console.info(res);
  1265. if (res.data && res.data.user) {
  1266. app.globalData.hasLogin = true;
  1267. app.globalData.userInfo = res.data.user.userInfo;
  1268. uni.setStorageSync('userInfo', res.data.user.userInfo);
  1269. uni.setStorageSync('token', res.data.user.token);
  1270. }
  1271. //弹出框信息
  1272. if (res.errno != 0) {
  1273. boo = false;
  1274. util.showErrorToast(res.errmsg);
  1275. } else if (res.data.code === 1) {
  1276. //存在未付款订单 直接拉起支付
  1277. that.setData({
  1278. actualPrice: res.data.actualPrice
  1279. });
  1280. let goNewPage=res.data.goNewPage;
  1281. that.continueToPay(res.data.orderSn,goNewPage);
  1282. boo = false;
  1283. //that.showMyModel(res.data.msg, that);
  1284. } else if (res.data.code === 2) {
  1285. boo = false;
  1286. //新客初体验商品,每个客户只有1次机会哦~
  1287. if(res.data.goodsId){
  1288. uni.showModal({
  1289. title: '提醒',
  1290. content: res.data.msg ,
  1291. confirmText: '去购买',
  1292. success(ress) {
  1293. if (ress.confirm) {
  1294. uni.navigateTo({
  1295. url: '/pages/goods/goods?id='+res.data.goodsId
  1296. });
  1297. }
  1298. }
  1299. });
  1300. }
  1301. else{
  1302. uni.showModal({
  1303. title: '提醒',
  1304. content: res.data.msg ,
  1305. confirmText: '确定',
  1306. })
  1307. }
  1308. }
  1309. });
  1310. return boo;
  1311. },
  1312. async getStore() {
  1313. let res = await util.request(api.allStore, {}, 'GET');
  1314. if (res.errno == 0) {
  1315. console.log(res);
  1316. this.setData({
  1317. storeNum: res.data.count
  1318. });
  1319. }
  1320. },
  1321. async getMaxCoupon() {
  1322. if (this.openId) {
  1323. let res = await util.request(
  1324. api.selectMaxCoupon,
  1325. {
  1326. goodsId: this.goods.id,
  1327. openId: this.openId
  1328. },
  1329. 'GET'
  1330. );
  1331. console.log(res);
  1332. if (res.errno == 0) {
  1333. this.setData({
  1334. couponPrice: res.data.couponPrice,
  1335. couponId: res.data.couponId,
  1336. userCouponId: res.data.userCouponId,
  1337. couponVoList: res.data.couponVoList,
  1338. finallyPrice: Number(this.checkedSku.price - res.data.couponPrice).toFixed(2)
  1339. });
  1340. this.setData({
  1341. totalPrice: this.finallyPrice
  1342. });
  1343. }
  1344. } else {
  1345. await this.getUserOpenId();
  1346. let res = await util.request(
  1347. api.selectMaxCoupon,
  1348. {
  1349. // productId: this.data.checkedSku.id,
  1350. goodsId: this.goods.id,
  1351. openId: this.openId
  1352. },
  1353. 'GET'
  1354. );
  1355. console.log(res);
  1356. if (res.errno == 0) {
  1357. this.setData({
  1358. couponPrice: res.data.couponPrice,
  1359. couponId: res.data.couponId,
  1360. userCouponId: res.data.userCouponId,
  1361. couponVoList: res.data.couponVoList,
  1362. finallyPrice: Number(this.checkedSku.price - res.data.couponPrice).toFixed(2)
  1363. });
  1364. this.setData({
  1365. totalPrice: this.finallyPrice
  1366. });
  1367. }
  1368. }
  1369. },
  1370. checkoutInfo() {
  1371. let that = this;
  1372. util.request(api.CartCheckout, {
  1373. cartId: 0,
  1374. addressId: 0,
  1375. couponId: that.couponId,
  1376. userCouponId: that.userCouponId,
  1377. goodsId: that.goods.id,
  1378. openId: that.openId,
  1379. productId: this.checkedSku.id,
  1380. unitIncreaseNumber: this.plusNum,
  1381. qid:that.qid
  1382. }).then(function (res) {
  1383. if (res.errno === 0) {
  1384. console.info(res);
  1385. that.setData({
  1386. checkedAddress: res.data.checkedAddress,
  1387. actualPrice: res.data.actualPrice,
  1388. couponPrice: res.data.couponPrice,
  1389. addressId: res.data.addressId,
  1390. couponId: res.data.couponId,
  1391. userCouponId: res.data.userCouponId,
  1392. mobile: res.data.mobile
  1393. });
  1394. //提交订单
  1395. that.submitOrder();
  1396. that.setData({
  1397. isCommiting: false
  1398. });
  1399. }
  1400. else{
  1401. uni.showModal({
  1402. title: '提示',
  1403. content: res.errmsg,
  1404. showCancel: false
  1405. });
  1406. }
  1407. });
  1408. },
  1409. submitOrder() {
  1410. //直接拉起支付
  1411. let that = this;
  1412. util.addLog(1,3,13,{
  1413. goodsId: that.goods.id,
  1414. productId: that.checkedSku.id
  1415. });
  1416. util.request(api.OrderPrepay, {
  1417. addressId: 0,
  1418. shopId: 0,
  1419. cart: 0,
  1420. goodsId: that.goods.id,
  1421. couponId: that.couponId,
  1422. userCouponId: that.userCouponId,
  1423. productId: that.checkedSku.id,
  1424. unitIncreaseNumber: that.plusNum
  1425. })
  1426. .then(function (res) {
  1427. if (res.errno === 0) {
  1428. //是否跳转新支付结果页面
  1429. let goNewPage=res.data.goNewPage;
  1430. var callbackData = {
  1431. cartId: null,
  1432. addressId: 0,
  1433. couponId: that.couponId,
  1434. userCouponId: that.userCouponId,
  1435. orderDate: {
  1436. goodId: that.goods.id,
  1437. productId: that.checkedSku.id
  1438. // bookDetailId:that.data.serviceId,
  1439. // originalOrderId:that.data.bookDetail.originalOrderId,
  1440. // unitIncreaseNumber:that.data.plusNum
  1441. },
  1442. phone_num: that.mobile,
  1443. userId: that.userInfo ? that.userInfo.id : '',
  1444. unitIncreaseNumber: that.plusNum,
  1445. dyversion: '20230725',
  1446. talentId: that.talentId,
  1447. qid:that.qid
  1448. };
  1449. uni.showLoading({
  1450. title: '加载中'
  1451. });
  1452. console.info(callbackData);
  1453. uni.createOrder({
  1454. tenantId:res.data.tenantId,
  1455. skuList: res.data.skuList,
  1456. payment: res.data.payment,
  1457. callbackData: callbackData,
  1458. callbackUrl: res.data.callbackUrl,
  1459. success: (res) => {
  1460. util.addLog(1,3,15,{
  1461. goodsId: that.goods.id,
  1462. productId: that.checkedSku.id
  1463. });
  1464. uni.hideLoading();
  1465. console.log('预下单成功11');
  1466. console.log(res);
  1467. const { orderId, outOrderNo } = res;
  1468. console.log('success res', res, 'orderId', orderId, 'outOrderNo', outOrderNo);
  1469. //如果是静默状态未登录 开始授权登录
  1470. if (!app.globalData.hasLogin) {
  1471. user.getLoginInfo(outOrderNo).then((resUser) => {
  1472. if (resUser.errno == 0) {
  1473. app.globalData.hasLogin = true;
  1474. app.globalData.userInfo = resUser.data.userInfo;
  1475. uni.setStorageSync('userInfo', resUser.data.userInfo);
  1476. uni.setStorageSync('token', resUser.data.token);
  1477. }
  1478. });
  1479. }
  1480. if(goNewPage){
  1481. uni.redirectTo({
  1482. url: '/pages/checkout/payResult/payResultNew?status=1&outOrderNo=' + outOrderNo + '&actualPrice=' + that.actualPrice+'&goodsId='+that.id
  1483. });
  1484. }else{
  1485. uni.redirectTo({
  1486. url: '/pages/checkout/payResult/payResult?status=1&outOrderNo=' + outOrderNo + '&actualPrice=' + that.actualPrice+'&goodsId='+that.id
  1487. });
  1488. }
  1489. },
  1490. fail: (res) => {
  1491. util.addLog(1,3,14,{
  1492. goodsId: that.goods.id,
  1493. productId: that.checkedSku.id
  1494. });
  1495. uni.hideLoading();
  1496. console.log('预下单失败11');
  1497. console.log(res);
  1498. const { orderId, outOrderNo, errNo, errMsg, errLogId } = res;
  1499. if (errLogId) {
  1500. console.log('预下单失败', errNo, errMsg, errLogId);
  1501. let tomsg = errMsg;
  1502. if (tomsg.indexOf('createOrder') != -1) {
  1503. tomsg = tomsg.replace('createOrder:fail 开发者限购:', '');
  1504. tomsg = tomsg.replace('createOrder:fail 开发者拒绝交易:', '');
  1505. tomsg = tomsg.replace('createOrder:fail', '');
  1506. }
  1507. uni.showModal({
  1508. title: '提示',
  1509. content: tomsg,
  1510. showCancel: false
  1511. });
  1512. }
  1513. if (orderId || outOrderNo) {
  1514. uni.navigateTo({
  1515. url: '/pages/ucenter/orderDetail/orderDetailPay?id=' + outOrderNo
  1516. });
  1517. console.log('支付失败', errNo, errMsg, orderId, outOrderNo);
  1518. // that.setData({
  1519. // payFailShow: true
  1520. // });
  1521. }
  1522. console.log(errNo, errMsg);
  1523. }
  1524. });
  1525. } else {
  1526. uni.showModal({
  1527. title: '提醒',
  1528. showCancel: false,
  1529. content: res.errmsg
  1530. });
  1531. }
  1532. })
  1533. .catch((res) => {
  1534. uni.hideLoading();
  1535. util.showErrorToast(res.errmsg);
  1536. });
  1537. },
  1538. continueToPay(outOrderNo,goNewPage) {
  1539. //已有订单重复提交
  1540. let that = this;
  1541. uni.continueToPay({
  1542. outOrderNo: outOrderNo,
  1543. // 外部订单号 2个订单号必填一个
  1544. success: (res) => {
  1545. console.log(res);
  1546. const { orderId, outOrderNo } = res;
  1547. console.log('success res', res);
  1548. console.log('orderId', orderId, 'outOrderNo', outOrderNo);
  1549. if(goNewPage){
  1550. uni.redirectTo({
  1551. url: '/pages/checkout/payResult/payResultNew?status=1&outOrderNo=' + outOrderNo + '&actualPrice=' + that.actualPrice+'&goodsId='+that.id
  1552. });
  1553. }else{
  1554. uni.redirectTo({
  1555. url: '/pages/checkout/payResult/payResult?status=1&outOrderNo=' + outOrderNo + '&actualPrice=' + that.actualPrice+'&goodsId='+that.id
  1556. });
  1557. }
  1558. // uni.redirectTo({
  1559. // url: '/pages/checkout/payResult/payResult?status=1&outOrderNo=' + outOrderNo + '&actualPrice=' + that.actualPrice
  1560. // });
  1561. },
  1562. fail: (res) => {
  1563. console.log(res);
  1564. const { orderId, outOrderNo, errNo, errMsg, errLogId } = res;
  1565. if (errLogId) {
  1566. console.log('查询订单信息失败', errNo, errMsg, errLogId);
  1567. }
  1568. if (orderId || outOrderNo) {
  1569. console.log('支付失败', errNo, errMsg, orderId, outOrderNo);
  1570. console.log('订单号' + outOrderNo);
  1571. uni.navigateTo({
  1572. url: '/pages/ucenter/orderDetail/orderDetailPay?id=' + outOrderNo
  1573. });
  1574. }
  1575. // util.showErrorToast('放弃支付');
  1576. }
  1577. });
  1578. },
  1579. async getUserOpenId() {
  1580. let that = this;
  1581. let res = await user.userOpenId();
  1582. console.log(res);
  1583. that.setData({
  1584. openId: res.data
  1585. });
  1586. console.info(res);
  1587. uni.setStorageSync('openId', res.data);
  1588. // .then(res => {
  1589. // that.setData({
  1590. // openId: res.data
  1591. // })
  1592. // console.info(res)
  1593. // wx.setStorageSync('openId', res.data);
  1594. // });
  1595. },
  1596. gofastAddCart() {
  1597. var that = this;
  1598. //提示选择完整规格
  1599. // if (!this.isCheckedAllSpec()) {
  1600. // util.showErrorToast('请选择完整规格');
  1601. // return false;
  1602. // }
  1603. //根据选中的规格,判断是否有对应的sku信息
  1604. // let checkedProductArray = this.getCheckedProductItem(this.getCheckedSpecKey());
  1605. // if (!checkedProductArray || checkedProductArray.length <= 0) {
  1606. // //找不到对应的product信息,提示没有库存
  1607. // util.showErrorToast('没有库存');
  1608. // return false;
  1609. // }
  1610. // let checkedProduct = checkedProductArray[0];
  1611. // //验证库存
  1612. // if (checkedProduct.number <= 0) {
  1613. // util.showErrorToast('没有库存');
  1614. // return false;
  1615. // }
  1616. //立即购买
  1617. // util.request(api.CartFastAdd, {
  1618. // goodsId: this.data.goods.id,
  1619. // number: this.data.number,
  1620. // productId: checkedProduct.id,
  1621. // shareId: this.data.shareId
  1622. // }, "POST").then(res => {
  1623. // if (res.errno == 0) {
  1624. // 如果storage中设置了cartId,则是立即购买,否则是购物车购买
  1625. try {
  1626. // wx.setStorageSync('cartId', res.data);
  1627. // wx.setStorageSync('grouponRulesId', checkedGroupon.id);
  1628. // wx.setStorageSync('grouponLinkId', that.data.grouponLink.id);
  1629. // 支付结果页面展示图片用
  1630. app.globalData.infoGoods = {
  1631. name: this.goods.name,
  1632. brief: this.goods.brief,
  1633. picUrl: this.goods.picUrl,
  1634. type: this.goods.type
  1635. };
  1636. uni.setStorageSync('cartId', 0);
  1637. uni.setStorageSync('goodsId', this.goods.id);
  1638. console.info(that.shareId);
  1639. if (that.shareId > 0) {
  1640. uni.navigateTo({
  1641. url: '/pages/checkout/checkout?shareId=' + that.shareId
  1642. });
  1643. } else {
  1644. uni.navigateTo({
  1645. url: '/pages/checkout/checkout'
  1646. });
  1647. }
  1648. } catch (e) {
  1649. console.log('CatchClause', e);
  1650. console.log('CatchClause', e);
  1651. console.info(e);
  1652. }
  1653. // } else {
  1654. // util.showErrorToast(res.errmsg);
  1655. // }
  1656. // });
  1657. },
  1658. getdefalutUserAddress() {
  1659. //登陆拿用户默认地址,如果没有就拿系统默认地址
  1660. //如果有默认地址,但是不在门店服务区域里
  1661. util.request(api.OrderBookDefaultAddress, {}, 'get').then((res) => {
  1662. if (res.errno === 0) {
  1663. let address = res.data;
  1664. var city = address.city.indexOf('市辖') != -1 ? address.province : address.city;
  1665. //通过jz_shop的shop_no关联服务力分配的门店id,拿实际的jz_shop的门店id
  1666. var addresInfo = {
  1667. city: city,
  1668. lng: address.lng,
  1669. lat: address.lat,
  1670. shopId: address.shopId,
  1671. address: address.addressDetail,
  1672. shopName: address.shopName
  1673. };
  1674. uni.setStorageSync('addressInfo', addresInfo);
  1675. } else {
  1676. //无默认地址时 拿系统的
  1677. this.getdefaultCityShop();
  1678. }
  1679. });
  1680. },
  1681. getdefaultCityShop() {
  1682. let that = this;
  1683. util.request(api.getDefaultCityShop, {}, 'get').then((res) => {
  1684. if (res.errno === 0) {
  1685. uni.setStorageSync('addressInfo', res.data);
  1686. }
  1687. });
  1688. },
  1689. showMyModel(msg, that) {
  1690. uni.showModal({
  1691. title: '',
  1692. content: msg,
  1693. confirmText: '去处理',
  1694. cancelText: '取消',
  1695. success: function (res) {
  1696. //此商品有个未支付的订单,请到订单页去支付或取消重新下单。
  1697. //去处理:跳转订单页
  1698. if (res.confirm) {
  1699. try {
  1700. uni.setStorageSync('tab', 1);
  1701. } catch (e) {
  1702. console.log('CatchClause', e);
  1703. console.log('CatchClause', e);
  1704. }
  1705. uni.navigateTo({
  1706. url: '/pages/ucenter/order/order',
  1707. success: function (res) {},
  1708. fail: function (res) {},
  1709. complete: function (res) {}
  1710. });
  1711. } else {
  1712. that.gofastAddCart();
  1713. }
  1714. }
  1715. });
  1716. },
  1717. //添加到购物车
  1718. addToCart: function () {
  1719. var that = this;
  1720. if (this.openAttr == false) {
  1721. //打开规格选择窗口
  1722. this.setData({
  1723. openAttr: !this.openAttr
  1724. });
  1725. } else {
  1726. //提示选择完整规格
  1727. if (!this.isCheckedAllSpec()) {
  1728. util.showErrorToast('请选择完整规格');
  1729. return false;
  1730. }
  1731. //根据选中的规格,判断是否有对应的sku信息
  1732. let checkedProductArray = this.getCheckedProductItem(this.getCheckedSpecKey());
  1733. if (!checkedProductArray || checkedProductArray.length <= 0) {
  1734. //找不到对应的product信息,提示没有库存
  1735. util.showErrorToast('没有库存');
  1736. return false;
  1737. }
  1738. let checkedProduct = checkedProductArray[0];
  1739. //验证库存
  1740. if (checkedProduct.number <= 0) {
  1741. util.showErrorToast('没有库存');
  1742. return false;
  1743. }
  1744. //添加到购物车
  1745. util.request(
  1746. api.CartAdd,
  1747. {
  1748. goodsId: this.goods.id,
  1749. number: this.number,
  1750. productId: checkedProduct.id
  1751. },
  1752. 'POST'
  1753. ).then(function (res) {
  1754. let _res = res;
  1755. if (_res.errno == 0) {
  1756. uni.showToast({
  1757. title: '添加成功'
  1758. });
  1759. that.setData({
  1760. openAttr: !that.openAttr,
  1761. cartGoodsCount: _res.data
  1762. });
  1763. //显示tab购物车缓存
  1764. //user.cartadd(that.data.number);
  1765. if (that.userHasCollect == 1) {
  1766. that.setData({
  1767. collect: true
  1768. });
  1769. } else {
  1770. that.setData({
  1771. collect: false
  1772. });
  1773. }
  1774. } else {
  1775. util.showErrorToast(_res.errmsg);
  1776. }
  1777. });
  1778. }
  1779. },
  1780. cutNumber: function () {
  1781. this.setData({
  1782. number: this.number - 1 > 1 ? this.number - 1 : 1
  1783. });
  1784. },
  1785. addNumber: function () {
  1786. // 如果是安心包只能购买一个
  1787. console.log(this.goods);
  1788. if (this.goods.goodsSn == '1036016') {
  1789. uni.showToast({
  1790. title: '此款商品只能购买一个',
  1791. icon: 'none',
  1792. duration: 2000
  1793. });
  1794. } else {
  1795. this.setData({
  1796. number: this.number + 1
  1797. });
  1798. }
  1799. },
  1800. switchAttrPop: function () {
  1801. if (this.openAttr == false) {
  1802. this.setData({
  1803. openAttr: !this.openAttr
  1804. });
  1805. }
  1806. },
  1807. closeAttr: function () {
  1808. this.setData({
  1809. openAttr: false
  1810. });
  1811. },
  1812. closeShare: function () {
  1813. this.setData({
  1814. openShare: false
  1815. });
  1816. },
  1817. openCartPage: function () {
  1818. uni.switchTab({
  1819. url: '/pages/tabBar/cart/cart'
  1820. });
  1821. },
  1822. qrtouchstart: function () {
  1823. this.setData({
  1824. myqr_blur: 100,
  1825. myqr_show: false
  1826. });
  1827. },
  1828. copyToHM() {
  1829. let copyLink = this.goods.copyLink;
  1830. console.log(copyLink);
  1831. if (copyLink != undefined && copyLink != '') {
  1832. uni.setClipboardData({
  1833. data: copyLink,
  1834. success(res) {
  1835. uni.getClipboardData({
  1836. success(res) {
  1837. console.log(res.data); // data
  1838. }
  1839. });
  1840. }
  1841. });
  1842. } else {
  1843. uni.showToast({
  1844. title: '该商品暂未配置盒马链接',
  1845. icon: 'none'
  1846. });
  1847. }
  1848. },
  1849. onSelfPayChange(e) {
  1850. console.log(e);
  1851. this.setData({
  1852. selfPayChecked: e.detail
  1853. });
  1854. },
  1855. onSpreadPayChange(e) {
  1856. console.log(e);
  1857. this.setData({
  1858. spreadPayChecked: e.detail
  1859. });
  1860. },
  1861. cancelSelfPay() {
  1862. let selfPayChecked = this.selfPayChecked;
  1863. if (selfPayChecked == true) {
  1864. uni.setStorageSync('selfPayChecked', true);
  1865. }
  1866. this.setData({
  1867. selfPayShow: false
  1868. });
  1869. },
  1870. cancelSpreadPay() {
  1871. let spreadPayChecked = this.spreadPayChecked;
  1872. if (spreadPayChecked == true) {
  1873. uni.setStorageSync('spreadPayChecked', true);
  1874. }
  1875. this.setData({
  1876. spreadPayShow: false
  1877. });
  1878. },
  1879. goSelfPay() {
  1880. let selfPayChecked = uni.getStorageSync('selfPayChecked');
  1881. if (selfPayChecked != true) {
  1882. this.setData({
  1883. selfPayShow: true
  1884. });
  1885. } else {
  1886. this.addFast();
  1887. }
  1888. },
  1889. goSpread() {
  1890. let spreadPayChecked = uni.getStorageSync('spreadPayChecked');
  1891. console.log(spreadPayChecked);
  1892. if (spreadPayChecked != true) {
  1893. this.setData({
  1894. spreadPayShow: true
  1895. });
  1896. } else {
  1897. // wx.navigateTo({
  1898. // url: '/pages/goods/goodsPoster/goodsPoster?goodsId='+this.data.goods.id,
  1899. // })
  1900. this.createPoster();
  1901. }
  1902. },
  1903. posterCopy() {
  1904. let that = this;
  1905. uni.setClipboardData({
  1906. data: that.myqr_ads,
  1907. success: function (res) {
  1908. uni.getClipboardData({
  1909. success: function (res) {
  1910. uni.showToast({
  1911. title: '文案复制成功',
  1912. icon: 'success',
  1913. duration: 2000
  1914. });
  1915. // that.hidePoster();
  1916. }
  1917. });
  1918. }
  1919. });
  1920. },
  1921. hidePoster() {
  1922. this.setData({
  1923. myqr_show: false,
  1924. myqr_blur: 100,
  1925. myqr_bottom_btn: 'fixed'
  1926. });
  1927. },
  1928. createPoster() {
  1929. uni.showLoading({
  1930. title: '生成中'
  1931. });
  1932. uni.pageScrollTo({
  1933. scrollTop: 0
  1934. });
  1935. if (this.myqr_url != null) {
  1936. uni.hideLoading();
  1937. this.setData({
  1938. myqr_show: true,
  1939. myqr_blur: 25,
  1940. myqr_bottom_btn: 'unset'
  1941. });
  1942. return;
  1943. }
  1944. util.request(
  1945. api.QrGoodsCodeCreate,
  1946. {
  1947. goods_id: this.goods.id
  1948. },
  1949. 'POST'
  1950. ).then((res) => {
  1951. uni.hideLoading();
  1952. if (res.errno == 0) {
  1953. this.setData({
  1954. myqr_url: res.data.imgUrl,
  1955. myqr_ads: res.data.ads,
  1956. myqr_show: true,
  1957. myqr_blur: 25,
  1958. myqr_bottom_btn: 'unset'
  1959. });
  1960. } else {
  1961. util.showErrorToast('未设置分享图');
  1962. }
  1963. });
  1964. },
  1965. goSaveQrcode: function () {
  1966. //保存二维码图片
  1967. let that = this;
  1968. console.info(that.myqr_url);
  1969. uni.downloadFile({
  1970. url: that.myqr_url,
  1971. success: function (res) {
  1972. if (res.statusCode === 200) {
  1973. let img = res.tempFilePath;
  1974. uni.saveImageToPhotosAlbum({
  1975. filePath: img,
  1976. success(res) {
  1977. that.goCloseMyqr('个人专属二维码图片已保存到您的相册');
  1978. },
  1979. fail(res) {
  1980. that.goCloseMyqr('网络或授权问题 图片保存失败 请重试');
  1981. }
  1982. });
  1983. } else {
  1984. that.goCloseMyqr('网络或授权问题 图片保存失败 请重试');
  1985. }
  1986. },
  1987. fail(res) {
  1988. that.goCloseMyqr('网络或授权问题 图片保存失败 请重试');
  1989. }
  1990. });
  1991. },
  1992. goCloseMyqr: function (msg) {
  1993. //关闭分享图片的弹层
  1994. this.hidePoster();
  1995. if (msg) {
  1996. uni.showToast({
  1997. title: msg,
  1998. icon: 'none',
  1999. duration: 3000
  2000. });
  2001. }
  2002. },
  2003. reSelfPay() {
  2004. let selfPayChecked = this.selfPayChecked;
  2005. if (selfPayChecked == true) {
  2006. uni.setStorageSync('selfPayChecked', true);
  2007. }
  2008. this.setData({
  2009. selfPayShow: false
  2010. });
  2011. this.addFast();
  2012. },
  2013. reSpread() {
  2014. // let spreadPayChecked = this.data.spreadPayChecked;
  2015. // if (spreadPayChecked == true) {
  2016. // wx.setStorageSync('spreadPayChecked', true);
  2017. // }
  2018. this.setData({
  2019. spreadPayShow: false
  2020. });
  2021. this.createPoster();
  2022. // wx.navigateTo({
  2023. // url: '/pages/goods/goodsPoster/goodsPoster?goodsId='+this.data.goods.id,
  2024. // })
  2025. },
  2026. goMemberCenter() {
  2027. if (!app.globalData.hasLogin) {
  2028. uni.navigateTo({
  2029. url: '/pages/auth/login/login'
  2030. });
  2031. return;
  2032. } else {
  2033. uni.navigateTo({
  2034. url: '/pages/member/memberCenter/memberCenter'
  2035. });
  2036. }
  2037. },
  2038. bindGoodsNumInput(e) {
  2039. console.log(e.detail.value);
  2040. this.setData({
  2041. plusNum: parseInt(e.detail.value == '' ? 0 : e.detail.value)
  2042. });
  2043. this.setData({
  2044. totalPrice: Number(Number(this.finallyPrice) + Number(this.goods.unitPrice) * Number(this.plusNum)).toFixed(2)
  2045. });
  2046. },
  2047. minusNum() {
  2048. if (this.plusNum == this.minNum) {
  2049. return false;
  2050. } else {
  2051. let result = Number(this.plusNum) - 1;
  2052. // this.setData({
  2053. // plusNum:(result==0?'0':result)
  2054. // });
  2055. // 加购类
  2056. if (this.goods.productType == 3) {
  2057. let currentAdd = this.productList.filter((item) => {
  2058. return item.unitIncreaseNumber == result;
  2059. });
  2060. if (currentAdd.length >= 1) {
  2061. let amount = currentAdd[0].price;
  2062. this.setData({
  2063. checkedSku: currentAdd[0],
  2064. plusNum: result,
  2065. addPurchaseAmount: amount,
  2066. totalPrice: Number(Number(amount) - Number(this.couponPrice)).toFixed(2)
  2067. // totalPrice:Number(Number(this.data.finallyPrice)+Number(this.data.goods.unitPrice)*Number(this.data.plusNum)).toFixed(2)
  2068. });
  2069. } else {
  2070. uni.showToast({
  2071. title: '当前加购数量无效',
  2072. icon: 'none'
  2073. });
  2074. }
  2075. // this.setData({
  2076. // addPurchaseAmount:amount,
  2077. // totalPrice:Number(Number(this.data.finallyPrice)+Number(amount)).toFixed(2),
  2078. // // totalPrice:Number(Number(this.data.finallyPrice)+Number(this.data.goods.unitPrice)*Number(this.data.plusNum)).toFixed(2)
  2079. // });
  2080. } else if (this.goods.type == 4) {
  2081. console.log(this.checkedSku.price * this.plusNum);
  2082. console.log(this.checkedSku.price * this.plusNum - this.couponPrice);
  2083. // 补差类
  2084. this.setData({
  2085. plusNum: result,
  2086. totalPrice: Number(this.checkedSku.price * result - this.couponPrice).toFixed(2)
  2087. });
  2088. }
  2089. }
  2090. },
  2091. addNum() {
  2092. if (this.goods.unitMaximum && this.plusNum >= this.goods.unitMaximum) {
  2093. return false;
  2094. } else {
  2095. let result = Number(this.plusNum) + 1;
  2096. // 加购类
  2097. if (this.goods.productType == 3) {
  2098. let currentAdd = this.productList.filter((item) => {
  2099. return item.unitIncreaseNumber == result;
  2100. });
  2101. if (currentAdd.length >= 1) {
  2102. let amount = currentAdd[0].price;
  2103. this.setData({
  2104. checkedSku: currentAdd[0],
  2105. plusNum: result,
  2106. addPurchaseAmount: amount,
  2107. totalPrice: Number(Number(amount) - Number(this.couponPrice)).toFixed(2)
  2108. // totalPrice:Number(Number(this.data.finallyPrice)+Number(this.data.goods.unitPrice)*Number(this.data.plusNum)).toFixed(2)
  2109. });
  2110. } else {
  2111. uni.showToast({
  2112. title: '此加购数量无效',
  2113. icon: 'none'
  2114. });
  2115. // this.setData({
  2116. // plusNum:0,
  2117. // addPurchaseAmount:0,
  2118. // finallyPrice:Number(this.data.checkedSku.price-this.data.couponPrice).toFixed(2)
  2119. // });
  2120. }
  2121. // this.setData({
  2122. // addPurchaseAmount:amount,
  2123. // totalPrice:Number(Number(this.data.finallyPrice)+Number(amount)).toFixed(2)
  2124. // totalPrice:Number(Number(this.data.finallyPrice)+Number(this.data.goods.unitPrice)*Number(this.data.plusNum)).toFixed(2)
  2125. // });
  2126. } else if (this.goods.type == 4) {
  2127. // 补差类
  2128. console.log(this.checkedSku.price * this.plusNum);
  2129. console.log(this.checkedSku.price * this.plusNum - this.couponPrice);
  2130. this.setData({
  2131. plusNum: result,
  2132. totalPrice: Number(this.checkedSku.price * result - this.couponPrice).toFixed(2)
  2133. });
  2134. }
  2135. }
  2136. },
  2137. goWholeEval() {
  2138. uni.navigateTo({
  2139. url: '/pages/goods/wholeEvaluation/wholeEvaluation?id=' + this.id
  2140. });
  2141. },
  2142. onSkuClose() {
  2143. this.setData({
  2144. chooseSkuVisible: false
  2145. });
  2146. },
  2147. showSkuPopup(type) {
  2148. this.setData({
  2149. showType:type,
  2150. chooseSkuVisible: true,
  2151. currentSku: this.checkedSku,
  2152. activeSku: this.checkedSku.id
  2153. });
  2154. },
  2155. selectSku(e) {
  2156. let id = e.currentTarget.dataset.id;
  2157. let index = e.currentTarget.dataset.index;
  2158. this.setData({
  2159. activeSku: id,
  2160. currentSku: this.productList[index],
  2161. // checkedSku: this.productList[index]
  2162. });
  2163. },
  2164. confSku() {
  2165. this.setData({
  2166. checkedSku: this.currentSku,
  2167. chooseSkuVisible: false
  2168. });
  2169. this.setData({
  2170. finallyPrice: Number(this.checkedSku.price - this.couponPrice).toFixed(2)
  2171. });
  2172. if (this.goods.type == 4) {
  2173. this.setData({
  2174. totalPrice: Number(this.checkedSku.price * this.plusNum - this.couponPrice).toFixed(2)
  2175. });
  2176. } else {
  2177. this.setData({
  2178. totalPrice: Number(this.checkedSku.price - this.couponPrice).toFixed(2)
  2179. });
  2180. }
  2181. util.addLog(1,1,11,{
  2182. goodsId: this.goods.id,
  2183. productId: this.checkedSku.id,
  2184. });
  2185. if(this.showType==1){
  2186. this.fastOrder();
  2187. }
  2188. },
  2189. stopClick() {}
  2190. }
  2191. };
  2192. </script>
  2193. <style>
  2194. .myqr {
  2195. position: absolute;
  2196. z-index: 999;
  2197. width: 100%;
  2198. text-align: center;
  2199. height: auto;
  2200. margin-top: 50rpx;
  2201. }
  2202. .myqr .cancel {
  2203. width: 60rpx;
  2204. height: 60rpx;
  2205. margin-top: 30rpx;
  2206. margin-left: 480rpx;
  2207. }
  2208. .myqr .img {
  2209. width: 480rpx;
  2210. }
  2211. .myqr .btn {
  2212. width: 120rpx;
  2213. height: 120rpx;
  2214. line-height: 120rpx;
  2215. margin-top: 20rpx;
  2216. padding: 30rpx;
  2217. background: #ffffff;
  2218. border-radius: 60rpx;
  2219. }
  2220. page {
  2221. background: #f3f3f3;
  2222. }
  2223. .container {
  2224. padding-bottom: 180rpx;
  2225. position: relative;
  2226. /* margin-bottom: 100rpx; */
  2227. }
  2228. .user_column_item_image {
  2229. width: 50rpx;
  2230. height: 50rpx;
  2231. margin-right: 26rpx;
  2232. margin-top: 25rpx;
  2233. }
  2234. .flexb {
  2235. width: 750rpx;
  2236. height: 88rpx;
  2237. line-height: 103rpx;
  2238. padding-right: 31.25rpx;
  2239. border-bottom: 1px solid #f4f4f4;
  2240. font-size: 30rpx;
  2241. color: #333;
  2242. background: #fff;
  2243. display: flex;
  2244. flex-wrap: nowrap;
  2245. }
  2246. .flex {
  2247. flex-grow: 1;
  2248. text-align: center;
  2249. }
  2250. .show {
  2251. width: 750rpx;
  2252. height: 88rpx;
  2253. background: #fff;
  2254. border-bottom: 1px solid #f4f4f4;
  2255. }
  2256. .show .t {
  2257. float: left;
  2258. width: 600rpx;
  2259. height: 88rpx;
  2260. line-height: 88rpx;
  2261. font-size: 29rpx;
  2262. color: #333;
  2263. margin-left: 31.25rpx;
  2264. }
  2265. .show .t .s {
  2266. font-weight: 600;
  2267. }
  2268. .show .i {
  2269. float: right;
  2270. width: 52rpx;
  2271. height: 52rpx;
  2272. margin-right: 16rpx;
  2273. margin-top: 28rpx;
  2274. }
  2275. .mark-img {
  2276. width: 168rpx;
  2277. height: 68rpx;
  2278. right: 5rpx;
  2279. position: absolute;
  2280. top: 5rpx;
  2281. }
  2282. .goodsimgs {
  2283. width: 750rpx;
  2284. /* height: 492rpx; */
  2285. height: 490rpx;
  2286. }
  2287. .goodsimgs image {
  2288. width: 750rpx;
  2289. /* height: 326rpx; */
  2290. height: 490rpx;
  2291. }
  2292. .commodity_screen {
  2293. width: 100%;
  2294. height: 100%;
  2295. position: fixed;
  2296. top: 0;
  2297. left: 0;
  2298. background: #000;
  2299. opacity: 0.2;
  2300. overflow: hidden;
  2301. z-index: 1000;
  2302. color: #fff;
  2303. }
  2304. .commodity_attr_box {
  2305. width: 100%;
  2306. overflow: hidden;
  2307. position: fixed;
  2308. bottom: 0;
  2309. left: 0;
  2310. z-index: 2000;
  2311. background: #fff;
  2312. padding-top: 20rpx;
  2313. }
  2314. /* 活动样式 */
  2315. .activity {
  2316. width: 750rpx;
  2317. height: 145rpx;
  2318. background: linear-gradient(67deg, #4f43dd, #689cf2, #ba64e2);
  2319. display: flex;
  2320. flex-direction: column;
  2321. padding: 20rpx 30rpx;
  2322. }
  2323. .activity .img {
  2324. background-image: url('https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/activity.png');
  2325. width: 139rpx;
  2326. height: 32rpx;
  2327. background-size: 100% 100%;
  2328. color: #5244dd;
  2329. font-size: 23rpx;
  2330. text-align: center;
  2331. }
  2332. .activityDay {
  2333. line-height: 42rpx;
  2334. margin-right: 30rpx;
  2335. display: flex;
  2336. height: 42rpx;
  2337. }
  2338. .activityDay image {
  2339. width: 42rpx;
  2340. height: 42rpx;
  2341. margin-right: 10rpx;
  2342. }
  2343. .activityDay text {
  2344. font-size: 24rpx;
  2345. color: #f4f4f4;
  2346. }
  2347. .activityPrice {
  2348. color: #ffffff;
  2349. }
  2350. .activityPrice text {
  2351. font-size: 49rpx;
  2352. font-weight: bold;
  2353. }
  2354. .activityCounterPrice {
  2355. color: #c7c7c7;
  2356. text-decoration: line-through;
  2357. font-size: 24rpx;
  2358. margin-top: 20rpx;
  2359. margin-left: 10rpx;
  2360. }
  2361. .activityTime {
  2362. display: flex;
  2363. flex-direction: row;
  2364. margin-right: 50rpx;
  2365. }
  2366. .activityTime text {
  2367. color: #ffffff;
  2368. line-height: 45rpx;
  2369. }
  2370. .activityTime view {
  2371. width: 45rpx;
  2372. height: 45rpx;
  2373. background: #ffffff;
  2374. border-radius: 5rpx;
  2375. margin: 5rpx;
  2376. line-height: 45rpx;
  2377. text-align: center;
  2378. font-size: 25rpx;
  2379. font-weight: bold;
  2380. color: #b563e1;
  2381. }
  2382. .activityTime .mark {
  2383. }
  2384. .goods-info {
  2385. width: 750rpx;
  2386. /*height: 306rpx;*/
  2387. overflow: hidden;
  2388. background: #fff;
  2389. border-bottom: 1px solid #f4f4f4;
  2390. }
  2391. .goods-info .c {
  2392. display: block;
  2393. width: 718.75rpx;
  2394. height: 182rpx;
  2395. margin-left: 31.25rpx;
  2396. padding: 3rpx 31.25rpx 20rpx 0;
  2397. }
  2398. .goods-info .c text {
  2399. /* display: block;
  2400. width: 687.5rpx;
  2401. text-align: left; */
  2402. }
  2403. .goods_name {
  2404. white-space: nowrap;
  2405. text-overflow: ellipsis;
  2406. overflow: hidden;
  2407. margin-top: 10rpx;
  2408. display: flex;
  2409. align-items: center;
  2410. }
  2411. .goods_name_left {
  2412. font-weight: 550;
  2413. margin-left: 0rpx;
  2414. font-size: 36rpx;
  2415. letter-spacing: 1rpx;
  2416. color: #2a2a2a;
  2417. font-weight: bold;
  2418. width: 688rpx;
  2419. white-space: pre-wrap;
  2420. }
  2421. .goods_name_right {
  2422. font-weight: 550;
  2423. /* top: 375px; */
  2424. width: 80rpx;
  2425. height: 80rpx;
  2426. line-height: 82rpx;
  2427. /* padding: 0;
  2428. margin: 0;
  2429. right: 10rpx; */
  2430. margin-right: 0rpx;
  2431. text-align: center;
  2432. font-size: 25rpx;
  2433. background-color: #09afff;
  2434. border-radius: 40rpx;
  2435. letter-spacing: 3rpx;
  2436. /* position: absolute; */
  2437. }
  2438. .goods_name_right .img {
  2439. width: 50rpx;
  2440. height: 50rpx;
  2441. margin-top: 15rpx;
  2442. }
  2443. .goods_name_right .txt {
  2444. margin-top: 5rpx;
  2445. font-size: 18rpx;
  2446. color: #000000;
  2447. border: 1rpx solid;
  2448. }
  2449. .goods-info .desc {
  2450. margin: 12rpx 0;
  2451. font-size: 24rpx;
  2452. line-height: 36rpx;
  2453. width: 640rpx;
  2454. white-space: nowrap;
  2455. text-overflow: ellipsis;
  2456. overflow: hidden;
  2457. display: block;
  2458. }
  2459. .goods-info .price {
  2460. height: 60rpx;
  2461. display: flex;
  2462. /* margin-top: 20rpx; */
  2463. align-items: flex-end;
  2464. }
  2465. .goods-info .counterPrice {
  2466. padding-left: 5rpx;
  2467. text-decoration: line-through;
  2468. font-size: 24rpx;
  2469. margin-top: 15rpx;
  2470. margin-left: 10rpx;
  2471. color: #85868a;
  2472. }
  2473. .goods-info .retailPrice {
  2474. height: 49rpx;
  2475. line-height: 44rpx;
  2476. /* color: #5DB5E7; */
  2477. color: #ff2958;
  2478. }
  2479. .goods-info .memberPrice {
  2480. font-size: 26rpx;
  2481. color: #dd483e;
  2482. margin: 0 10rpx 0 20rpx;
  2483. }
  2484. .member-price-tag {
  2485. width: 88rpx;
  2486. height: 26rpx;
  2487. line-height: 26rpx;
  2488. background: url('https://mall.zhaijieshi.cc/file/jzmall/weixin/member/member-price-bg.png') no-repeat center center;
  2489. background-size: 100% 100%;
  2490. color: #5e3a11;
  2491. font-size: 16rpx;
  2492. padding: 0 8rpx 0 0;
  2493. text-align: right;
  2494. margin: 0 0 6rpx 0;
  2495. }
  2496. .member-price-tag.spread-tag {
  2497. margin-left: 20rpx;
  2498. background-image: url('https://mall.zhaijieshi.cc/file/jzmall/weixin/member/spread-price-bg.png');
  2499. width: 122rpx;
  2500. }
  2501. .goods-info .retailPrice text.checked-price {
  2502. font-size: 48rpx;
  2503. font-weight: bold;
  2504. margin-left: 3rpx;
  2505. color: #ff2958;
  2506. }
  2507. .goods-info .brand {
  2508. margin-top: 5rpx;
  2509. min-height: 34rpx;
  2510. text-align: left;
  2511. }
  2512. .goods-info .brand text {
  2513. display: inline-block;
  2514. width: auto;
  2515. padding: 2px 0rpx 2px 0.5rpx;
  2516. line-height: 32.5rpx;
  2517. /*border: 1px solid #f48f18;color: #f48f18;*/
  2518. font-size: 22rpx;
  2519. color: #a98f76;
  2520. /*border-radius: 4rpx;*/
  2521. background-size: 10.75rpx 18.75rpx;
  2522. }
  2523. .section-nav {
  2524. width: 750rpx;
  2525. height: 108rpx;
  2526. background: #fff;
  2527. margin-bottom: 20rpx;
  2528. }
  2529. .section-nav .t {
  2530. float: left;
  2531. width: 600rpx;
  2532. height: 108rpx;
  2533. line-height: 108rpx;
  2534. font-size: 29rpx;
  2535. color: #333;
  2536. margin-left: 31.25rpx;
  2537. }
  2538. .section-nav .i {
  2539. float: right;
  2540. width: 52rpx;
  2541. height: 52rpx;
  2542. margin-right: 16rpx;
  2543. margin-top: 28rpx;
  2544. }
  2545. .section-act .t {
  2546. float: left;
  2547. display: flex;
  2548. align-items: center;
  2549. width: 600rpx;
  2550. height: 108rpx;
  2551. overflow: hidden;
  2552. line-height: 108rpx;
  2553. font-size: 29rpx;
  2554. color: #999;
  2555. margin-left: 31.25rpx;
  2556. }
  2557. .section-act .label {
  2558. color: #999;
  2559. }
  2560. .section-act .tag {
  2561. display: flex;
  2562. align-items: center;
  2563. padding: 0 10rpx;
  2564. border-radius: 3px;
  2565. height: 37rpx;
  2566. width: auto;
  2567. color: #f48f18;
  2568. overflow: hidden;
  2569. border: 1px solid #f48f18;
  2570. font-size: 25rpx;
  2571. margin: 0 10rpx;
  2572. }
  2573. .section-act .text {
  2574. display: flex;
  2575. align-items: center;
  2576. height: 37rpx;
  2577. width: auto;
  2578. overflow: hidden;
  2579. color: #f48f18;
  2580. font-size: 29rpx;
  2581. }
  2582. .comments {
  2583. width: 100%;
  2584. height: auto;
  2585. padding-left: 30rpx;
  2586. background: #fff;
  2587. margin: 20rpx 0;
  2588. }
  2589. .comments .h {
  2590. height: 102.5rpx;
  2591. line-height: 100.5rpx;
  2592. width: 718.75rpx;
  2593. padding-right: 16rpx;
  2594. }
  2595. .comments .h .t {
  2596. display: block;
  2597. float: left;
  2598. width: 50%;
  2599. font-size: 30rpx;
  2600. color: #333;
  2601. }
  2602. .comments .h .i {
  2603. display: block;
  2604. float: right;
  2605. width: 164rpx;
  2606. height: 100.5rpx;
  2607. line-height: 100.5rpx;
  2608. background-size: 52rpx;
  2609. }
  2610. .comments .b {
  2611. height: auto;
  2612. width: 720rpx;
  2613. }
  2614. .comments .item {
  2615. height: auto;
  2616. width: 720rpx;
  2617. overflow: hidden;
  2618. border-top: 1px solid #d9d9d9;
  2619. }
  2620. .comments .info {
  2621. height: 127rpx;
  2622. width: 100%;
  2623. padding: 33rpx 0 27rpx 0;
  2624. }
  2625. .comments .user {
  2626. float: left;
  2627. width: auto;
  2628. height: 67rpx;
  2629. line-height: 67rpx;
  2630. font-size: 0;
  2631. }
  2632. .comments .user image {
  2633. float: left;
  2634. width: 67rpx;
  2635. height: 67rpx;
  2636. margin-right: 17rpx;
  2637. border-radius: 50%;
  2638. }
  2639. .comments .user text {
  2640. display: inline-block;
  2641. width: auto;
  2642. height: 66rpx;
  2643. overflow: hidden;
  2644. font-size: 29rpx;
  2645. line-height: 66rpx;
  2646. }
  2647. .comments .time {
  2648. display: block;
  2649. float: right;
  2650. width: auto;
  2651. height: 67rpx;
  2652. line-height: 67rpx;
  2653. color: #7f7f7f;
  2654. font-size: 25rpx;
  2655. margin-right: 30rpx;
  2656. }
  2657. .comments .content {
  2658. width: 720rpx;
  2659. padding-right: 30rpx;
  2660. line-height: 45.8rpx;
  2661. font-size: 29rpx;
  2662. margin-bottom: 24rpx;
  2663. }
  2664. .comments .imgs {
  2665. width: 720rpx;
  2666. height: auto;
  2667. margin-bottom: 25rpx;
  2668. }
  2669. .comments .imgs .img {
  2670. height: 150rpx;
  2671. width: 150rpx;
  2672. margin-right: 28rpx;
  2673. }
  2674. .comments .spec {
  2675. width: 720rpx;
  2676. padding-right: 30rpx;
  2677. line-height: 30rpx;
  2678. font-size: 24rpx;
  2679. color: #999;
  2680. margin-bottom: 30rpx;
  2681. }
  2682. .comments .customer-service {
  2683. width: 690rpx;
  2684. height: auto;
  2685. overflow: hidden;
  2686. margin-top: 23rpx;
  2687. margin-bottom: 23rpx;
  2688. background: rgba(0, 0, 0, 0.03);
  2689. padding: 21rpx;
  2690. }
  2691. .comments .customer-service .u {
  2692. font-size: 24rpx;
  2693. color: #333;
  2694. line-height: 37.5rpx;
  2695. }
  2696. .comments .customer-service .c {
  2697. font-size: 24rpx;
  2698. color: #999;
  2699. line-height: 37.5rpx;
  2700. }
  2701. .goods-attr {
  2702. width: 750rpx;
  2703. height: auto;
  2704. overflow: hidden;
  2705. padding: 0 31.25rpx 25rpx 31.25rpx;
  2706. background: #fff;
  2707. }
  2708. .goods-attr .t {
  2709. width: 687.5rpx;
  2710. height: 104rpx;
  2711. line-height: 104rpx;
  2712. font-size: 38.5rpx;
  2713. }
  2714. .goods-attr .item {
  2715. width: 687.5rpx;
  2716. height: 68rpx;
  2717. padding: 11rpx 20rpx;
  2718. margin-bottom: 11rpx;
  2719. background: #f7f7f7;
  2720. font-size: 38.5rpx;
  2721. }
  2722. .goods-attr .left {
  2723. float: left;
  2724. font-size: 25rpx;
  2725. width: 134rpx;
  2726. height: 45rpx;
  2727. line-height: 45rpx;
  2728. overflow: hidden;
  2729. color: #999;
  2730. }
  2731. .goods-attr .right {
  2732. float: left;
  2733. font-size: 36.5rpx;
  2734. margin-left: 20rpx;
  2735. width: 480rpx;
  2736. height: 45rpx;
  2737. line-height: 45rpx;
  2738. overflow: hidden;
  2739. color: #333;
  2740. }
  2741. .detail {
  2742. width: 750rpx;
  2743. height: auto;
  2744. overflow: hidden;
  2745. /* padding-bottom: 160rpx; */
  2746. }
  2747. .detail image {
  2748. width: 750rpx;
  2749. /* display: block; */
  2750. }
  2751. .common-problem {
  2752. width: 750rpx;
  2753. height: auto;
  2754. overflow: hidden;
  2755. }
  2756. .common-problem .h {
  2757. position: relative;
  2758. height: 145.5rpx;
  2759. width: 750rpx;
  2760. padding: 56.25rpx 0;
  2761. background: #fff;
  2762. text-align: center;
  2763. }
  2764. .common-problem .h .line {
  2765. display: inline-block;
  2766. position: absolute;
  2767. top: 72rpx;
  2768. left: 0;
  2769. z-index: 2;
  2770. height: 1px;
  2771. margin-left: 225rpx;
  2772. width: 300rpx;
  2773. background: #ccc;
  2774. }
  2775. .common-problem .h .title {
  2776. display: inline-block;
  2777. position: absolute;
  2778. top: 56.125rpx;
  2779. left: 0;
  2780. z-index: 3;
  2781. height: 33rpx;
  2782. margin-left: 285rpx;
  2783. width: 180rpx;
  2784. background: #fff;
  2785. }
  2786. .common-problem .b {
  2787. width: 750rpx;
  2788. height: auto;
  2789. overflow: hidden;
  2790. padding: 0rpx 30rpx;
  2791. background: #fff;
  2792. }
  2793. .common-problem .item {
  2794. height: auto;
  2795. overflow: hidden;
  2796. padding-bottom: 25rpx;
  2797. }
  2798. .common-problem .question-box .spot {
  2799. float: left;
  2800. display: block;
  2801. height: 8rpx;
  2802. width: 8rpx;
  2803. background: #b4282d;
  2804. border-radius: 50%;
  2805. margin-top: 11rpx;
  2806. }
  2807. .common-problem .question-box .question {
  2808. float: left;
  2809. line-height: 30rpx;
  2810. padding-left: 8rpx;
  2811. display: block;
  2812. font-size: 26rpx;
  2813. padding-bottom: 15rpx;
  2814. color: #303030;
  2815. }
  2816. .common-problem .answer {
  2817. line-height: 36rpx;
  2818. padding-left: 16rpx;
  2819. font-size: 26rpx;
  2820. color: #787878;
  2821. }
  2822. .related-goods {
  2823. width: 750rpx;
  2824. height: auto;
  2825. overflow: hidden;
  2826. padding-bottom: 80rpx;
  2827. }
  2828. .related-goods .h {
  2829. position: relative;
  2830. height: 145.5rpx;
  2831. width: 750rpx;
  2832. padding: 56.25rpx 0;
  2833. background: #fff;
  2834. text-align: center;
  2835. border-bottom: 1px solid #f4f4f4;
  2836. }
  2837. .related-goods .h .line {
  2838. display: inline-block;
  2839. position: absolute;
  2840. top: 72rpx;
  2841. left: 0;
  2842. z-index: 2;
  2843. height: 1px;
  2844. margin-left: 225rpx;
  2845. width: 300rpx;
  2846. background: #ccc;
  2847. }
  2848. .related-goods .h .title {
  2849. display: inline-block;
  2850. position: absolute;
  2851. top: 56.125rpx;
  2852. left: 0;
  2853. z-index: 3;
  2854. height: 33rpx;
  2855. margin-left: 285rpx;
  2856. width: 180rpx;
  2857. background: #fff;
  2858. }
  2859. .related-goods .b {
  2860. width: 750rpx;
  2861. height: auto;
  2862. overflow: hidden;
  2863. }
  2864. .related-goods .b .item {
  2865. float: left;
  2866. background: #fff;
  2867. width: 375rpx;
  2868. height: auto;
  2869. overflow: hidden;
  2870. text-align: center;
  2871. padding: 15rpx 31.25rpx;
  2872. border-right: 1px solid #f4f4f4;
  2873. border-bottom: 1px solid #f4f4f4;
  2874. }
  2875. .related-goods .item .img {
  2876. width: 311.45rpx;
  2877. height: 311.45rpx;
  2878. }
  2879. .related-goods .item .name {
  2880. display: block;
  2881. width: 311.45rpx;
  2882. height: 35rpx;
  2883. margin: 11.5rpx 0 15rpx 0;
  2884. text-align: center;
  2885. overflow: hidden;
  2886. font-size: 30rpx;
  2887. color: #333;
  2888. }
  2889. .related-goods .item .price {
  2890. display: block;
  2891. width: 311.45rpx;
  2892. height: 30rpx;
  2893. text-align: center;
  2894. font-size: 30rpx;
  2895. color: #b4282d;
  2896. }
  2897. .bottom-btn .l {
  2898. /* flex: 2;
  2899. float: left;
  2900. height: 150rpx;
  2901. width: 162rpx; */
  2902. /* display: flex; */
  2903. }
  2904. .bottom-btn .l.l-collect {
  2905. border-right: none;
  2906. border-left: none;
  2907. text-align: center;
  2908. padding-left: 30rpx;
  2909. /* width: 100rpx; */
  2910. }
  2911. .bottom-btn .l.l-collect .icon {
  2912. font-size: 40rpx;
  2913. }
  2914. .bottom-btn .l.l-collect text {
  2915. /* position: absolute;
  2916. top: 80rpx;
  2917. left: 30rpx;
  2918. font-size: 22rpx; */
  2919. }
  2920. .bottom-btn .l.l-kefu {
  2921. border-right: none;
  2922. border-left: none;
  2923. text-align: center;
  2924. /* width:60rpx; */
  2925. /* position: relative; */
  2926. }
  2927. .contact-block {
  2928. position: relative;
  2929. }
  2930. .bottom-btn .l.l-kefu .icon {
  2931. position: absolute;
  2932. font-size: 44rpx;
  2933. top: 20rpx;
  2934. }
  2935. .bottom-btn .l.l-kefu text {
  2936. /* position: absolute;
  2937. top: 60rpx;
  2938. font-size: 22rpx; */
  2939. }
  2940. .bottom-btn .l.l-cart .box {
  2941. position: relative;
  2942. height: 80rpx;
  2943. width: 70rpx;
  2944. }
  2945. .bottom-btn .l.l-cart .box .txt {
  2946. position: absolute;
  2947. top: 50rpx;
  2948. font-size: 22rpx;
  2949. }
  2950. .bottom-btn .l.l-cart .cart-count {
  2951. height: 28rpx;
  2952. width: 28rpx;
  2953. z-index: 10;
  2954. position: absolute;
  2955. top: 0;
  2956. right: 0;
  2957. background: #b4282d;
  2958. text-align: center;
  2959. font-size: 18rpx;
  2960. color: #fff;
  2961. line-height: 28rpx;
  2962. border-radius: 50%;
  2963. }
  2964. .bottom-btn .l.l-cart .icon {
  2965. position: absolute;
  2966. top: 10rpx;
  2967. left: 0;
  2968. font-size: 44rpx;
  2969. }
  2970. .collect-wrapper,
  2971. .service-wrapper {
  2972. display: flex;
  2973. flex-direction: column;
  2974. justify-content: center;
  2975. flex: 1;
  2976. }
  2977. .collect-text {
  2978. margin: 10rpx 0 0;
  2979. }
  2980. .bottom-btn {
  2981. position: fixed;
  2982. left: 0rpx;
  2983. bottom: 0;
  2984. z-index: 10;
  2985. width: 750rpx;
  2986. min-height: 110rpx;
  2987. background: #fff;
  2988. padding: 12rpx 24rpx 18rpx;
  2989. z-index: 999;
  2990. display: flex;
  2991. /* align-items: center; */
  2992. padding-bottom: constant(safe-area-inset-bottom);
  2993. padding-bottom: env(safe-area-inset-bottom);
  2994. box-shadow: 4rpx -8rpx 16rpx 2rpx rgba(201, 205, 207, 0.25);
  2995. /* box-sizing: content-box; */
  2996. }
  2997. .bottom-btn .contact-block {
  2998. height: 80rpx;
  2999. width: 130rpx;
  3000. position: relative;
  3001. overflow: hidden;
  3002. margin-right: 10rpx;
  3003. }
  3004. .contact-btn {
  3005. height: 80rpx;
  3006. width: 130rpx;
  3007. position: absolute;
  3008. top: 0;
  3009. bottom: 0;
  3010. left: 0;
  3011. z-index: 99;
  3012. opacity: 0;
  3013. }
  3014. .contact-wrapper {
  3015. width: 130rpx;
  3016. height: 80rpx;
  3017. border: 2rpx solid #b3b4b6;
  3018. border-radius: 14rpx;
  3019. /* width: 120rpx; */
  3020. display: flex;
  3021. align-items: center;
  3022. justify-content: center;
  3023. position: absolute;
  3024. top: 0;
  3025. left: 0;
  3026. bottom: 0;
  3027. overflow: hidden;
  3028. padding: 4rpx 0;
  3029. }
  3030. .contact-img {
  3031. width: 24rpx;
  3032. height: 24rpx;
  3033. margin-right: 8rpx;
  3034. /* margin-bottom: 10rpx; */
  3035. }
  3036. .contact-wrapper .text {
  3037. font-size: 28rpx;
  3038. font-weight: bold;
  3039. color: #000;
  3040. height: 40rpx;
  3041. line-height: 40rpx;
  3042. }
  3043. .bottom-btn .share {
  3044. width: 280rpx;
  3045. background: #fff;
  3046. height: 82rpx;
  3047. font-size: 30rpx;
  3048. font-weight: bold;
  3049. color: #09afff;
  3050. text-align: center;
  3051. line-height: 82rpx;
  3052. border: 2rpx solid #09afff;
  3053. border-radius: 82rpx 0rpx 0 82rpx;
  3054. }
  3055. .bottom-btn .c {
  3056. width: 294rpx;
  3057. text-align: center;
  3058. height: 80rpx;
  3059. line-height: 80rpx;
  3060. background: #fe2b54;
  3061. border-radius: 15rpx;
  3062. color: #ffffff;
  3063. font-size: 30rpx;
  3064. }
  3065. .dis-order-wrapper {
  3066. width: 452rpx;
  3067. background: #09afff;
  3068. height: 82rpx;
  3069. font-size: 22rpx;
  3070. color: #fff;
  3071. border-radius: 82rpx;
  3072. text-align: center;
  3073. margin-right: 30rpx;
  3074. display: flex;
  3075. align-items: center;
  3076. overflow: hidden;
  3077. }
  3078. .dis-order-wrapper > view {
  3079. flex: 1;
  3080. text-align: center;
  3081. height: 82rpx;
  3082. }
  3083. .spread-order {
  3084. background: #fff;
  3085. border-radius: 0 82rpx 82rpx 0;
  3086. border: 1rpx solid #09afff;
  3087. border-left: none;
  3088. line-height: 24rpx;
  3089. }
  3090. .buy-type {
  3091. font-size: 30rpx;
  3092. font-weight: bold;
  3093. line-height: 30rpx;
  3094. margin: 10rpx 0 4rpx 0;
  3095. overflow: hidden;
  3096. }
  3097. .bottom-btn .r {
  3098. /*border: 1px solid #f48f18;*/
  3099. background: #09afff;
  3100. float: left;
  3101. height: 100rpx;
  3102. /* line-height: 66rpx; */
  3103. flex: 2;
  3104. text-align: center;
  3105. color: #fff;
  3106. margin-left: 15rpx;
  3107. margin-top: 15rpx;
  3108. margin-bottom: 15rpx;
  3109. border-top-left-radius: 50rpx;
  3110. border-bottom-left-radius: 50rpx;
  3111. }
  3112. .bottom-btn .r .title {
  3113. font-size: 46rpx;
  3114. height: 56rpx;
  3115. color: #fff;
  3116. }
  3117. .bottom-btn .r .subtitle {
  3118. font-size: 28rpx;
  3119. color: #fff;
  3120. font-weight: 100;
  3121. }
  3122. /* */
  3123. .attr-pop-box {
  3124. width: 100%;
  3125. height: 100%;
  3126. position: fixed;
  3127. background: rgba(0, 0, 0, 0.5);
  3128. z-index: 8;
  3129. bottom: 0;
  3130. /* display: none; */
  3131. }
  3132. .attr-pop {
  3133. width: 100%;
  3134. height: auto;
  3135. max-height: 780rpx;
  3136. padding: 31.25rpx;
  3137. background: #fff;
  3138. position: fixed;
  3139. z-index: 9;
  3140. bottom: 100rpx;
  3141. }
  3142. .attr-pop .close {
  3143. position: absolute;
  3144. width: 48rpx;
  3145. height: 48rpx;
  3146. right: 31.25rpx;
  3147. overflow: hidden;
  3148. top: 31.25rpx;
  3149. }
  3150. .attr-pop .close .icon {
  3151. width: 48rpx;
  3152. height: 48rpx;
  3153. }
  3154. .attr-pop .img-info {
  3155. width: 687.5rpx;
  3156. height: 177rpx;
  3157. overflow: hidden;
  3158. margin-bottom: 41.5rpx;
  3159. }
  3160. .attr-pop .img {
  3161. float: left;
  3162. height: 177rpx;
  3163. width: 177rpx;
  3164. background: #f4f4f4;
  3165. margin-right: 31.25rpx;
  3166. }
  3167. .attr-pop .info {
  3168. float: left;
  3169. height: 177rpx;
  3170. display: flex;
  3171. align-items: center;
  3172. }
  3173. .attr-pop .p {
  3174. font-size: 33rpx;
  3175. color: #333;
  3176. height: 33rpx;
  3177. line-height: 33rpx;
  3178. margin-bottom: 10rpx;
  3179. }
  3180. .attr-pop .a {
  3181. font-size: 29rpx;
  3182. color: #333;
  3183. height: 40rpx;
  3184. line-height: 40rpx;
  3185. }
  3186. .spec-con {
  3187. width: 100%;
  3188. height: auto;
  3189. overflow: hidden;
  3190. }
  3191. .spec-con .name {
  3192. margin-bottom: 6rpx;
  3193. font-size: 29rpx;
  3194. color: #333;
  3195. }
  3196. .spec-con .values {
  3197. height: auto;
  3198. margin-bottom: 10rpx;
  3199. font-size: 0;
  3200. }
  3201. .spec-con .value {
  3202. display: inline-block;
  3203. height: 62rpx;
  3204. padding: 0 35rpx;
  3205. line-height: 56rpx;
  3206. text-align: center;
  3207. margin-right: 25rpx;
  3208. margin-bottom: 16.5rpx;
  3209. border: 1px solid #333;
  3210. font-size: 25rpx;
  3211. color: #333;
  3212. }
  3213. .spec-con .value.disable {
  3214. border: 1px solid #ccc;
  3215. color: #ccc;
  3216. }
  3217. .spec-con .value.selected {
  3218. border: 1px solid #b4282d;
  3219. color: #b4282d;
  3220. }
  3221. .number-item .selnum {
  3222. width: 200rpx;
  3223. /* width: 322rpx; */
  3224. height: 71rpx;
  3225. border: 1px solid #ccc;
  3226. display: flex;
  3227. }
  3228. .number-item .cut {
  3229. width: 93.75rpx;
  3230. height: 100%;
  3231. text-align: center;
  3232. line-height: 65rpx;
  3233. }
  3234. .number-item .number {
  3235. flex: 1;
  3236. height: 100%;
  3237. text-align: center;
  3238. line-height: 68.75rpx;
  3239. border-left: 1px solid #ccc;
  3240. border-right: 1px solid #ccc;
  3241. float: left;
  3242. }
  3243. .number-item .add {
  3244. width: 93.75rpx;
  3245. height: 100%;
  3246. text-align: center;
  3247. line-height: 65rpx;
  3248. }
  3249. .contact {
  3250. height: 100rpx;
  3251. width: 100rpx;
  3252. border-radius: 100%;
  3253. position: fixed;
  3254. bottom: 96rpx;
  3255. right: 10rpx;
  3256. font-size: 20rpx;
  3257. box-sizing: border-box;
  3258. /* background: url('../../static/images/customer.png') no-repeat center 21rpx; */
  3259. background-size: 55rpx auto;
  3260. }
  3261. .share-pop-box {
  3262. width: 100%;
  3263. height: 100%;
  3264. position: fixed;
  3265. background: rgba(0, 0, 0, 0.5);
  3266. z-index: 8;
  3267. bottom: 0;
  3268. /* display: none; */
  3269. }
  3270. .share-pop {
  3271. width: 100%;
  3272. height: auto;
  3273. max-height: 780rpx;
  3274. padding: 31.25rpx;
  3275. background: #fff;
  3276. position: fixed;
  3277. z-index: 9;
  3278. bottom: 100rpx;
  3279. }
  3280. .share-pop .close {
  3281. position: absolute;
  3282. width: 48rpx;
  3283. height: 48rpx;
  3284. right: 31.25rpx;
  3285. top: 31.25rpx;
  3286. }
  3287. .share-pop .close .icon {
  3288. width: 48rpx;
  3289. height: 48rpx;
  3290. }
  3291. .share-pop .share-info {
  3292. width: 100%;
  3293. height: 225rpx;
  3294. overflow: hidden;
  3295. margin-bottom: 41.5rpx;
  3296. }
  3297. .sharebtn {
  3298. top: 75rpx;
  3299. background: none !important;
  3300. font-size: 32rpx;
  3301. color: #fff !important;
  3302. border-radius: 0%;
  3303. width: 175rpx;
  3304. height: 150rpx;
  3305. text-align: center;
  3306. display: flex;
  3307. justify-content: center;
  3308. align-items: center;
  3309. flex-wrap: wrap;
  3310. float: left;
  3311. background: #fff;
  3312. border-bottom: 0px solid #fafafa;
  3313. margin-left: 15%;
  3314. }
  3315. .sharebtn::after {
  3316. border: none;
  3317. border-radius: 0%;
  3318. }
  3319. .savesharebtn {
  3320. top: 75rpx;
  3321. background: none !important;
  3322. font-size: 32rpx;
  3323. color: #fff !important;
  3324. border-radius: 0%;
  3325. width: 175rpx;
  3326. height: 150rpx;
  3327. text-align: center;
  3328. display: flex;
  3329. justify-content: center;
  3330. align-items: center;
  3331. flex-wrap: wrap;
  3332. float: right;
  3333. background: #fff;
  3334. border-bottom: 0px solid #fafafa;
  3335. margin-right: 15%;
  3336. }
  3337. .savesharebtn::after {
  3338. border: none;
  3339. border-radius: 0%;
  3340. }
  3341. .sharebtn_image {
  3342. /* border: 1px solid #757575; */
  3343. width: 128rpx;
  3344. height: 128rpx;
  3345. margin-top: 0rpx;
  3346. }
  3347. .sharebtn_text {
  3348. /* border: 1px solid #757575; */
  3349. width: 150rpx;
  3350. margin-bottom: 2rpx;
  3351. height: 20rpx;
  3352. line-height: 20rpx;
  3353. font-size: 20rpx;
  3354. color: #555;
  3355. }
  3356. .separate {
  3357. background: #e0e3da;
  3358. width: 100%;
  3359. height: 6rpx;
  3360. }
  3361. /* 新客角标 */
  3362. .isNew {
  3363. position: absolute;
  3364. width: 80rpx;
  3365. height: 120rpx;
  3366. right: 30rpx;
  3367. z-index: 999;
  3368. }
  3369. /* 自购/推广弹框 */
  3370. .overlay-wrapper {
  3371. display: flex;
  3372. align-items: center;
  3373. justify-content: center;
  3374. height: 100%;
  3375. }
  3376. .tips-wrapper {
  3377. width: 588rpx;
  3378. height: 462rpx;
  3379. border-radius: 10rpx;
  3380. background: #fff;
  3381. font-size: 26rpx;
  3382. display: flex;
  3383. flex-direction: column;
  3384. justify-content: space-between;
  3385. }
  3386. .tips-top {
  3387. display: flex;
  3388. flex-direction: column;
  3389. align-items: center;
  3390. padding: 0 40rpx;
  3391. }
  3392. .tips-title {
  3393. font-size: 34rpx;
  3394. font-weight: bold;
  3395. margin: 66rpx 0 24rpx;
  3396. }
  3397. .tips-bottom {
  3398. height: 132rpx;
  3399. border-top: 2rpx solid #e4e4e4;
  3400. display: flex;
  3401. justify-content: space-around;
  3402. align-items: center;
  3403. }
  3404. .tips-bottom .btn-devide {
  3405. width: 2rpx;
  3406. height: 130rpx;
  3407. background: #e4e4e4;
  3408. }
  3409. .cancel-btn {
  3410. width: 202rpx;
  3411. height: 72rpx;
  3412. line-height: 72rpx;
  3413. border: 2rpx solid #85868a;
  3414. color: #282728;
  3415. border-radius: 72rpx;
  3416. text-align: center;
  3417. overflow: hidden;
  3418. }
  3419. .repay-btn {
  3420. width: 202rpx;
  3421. height: 72rpx;
  3422. line-height: 72rpx;
  3423. background: #09afff;
  3424. color: #fff;
  3425. border-radius: 72rpx;
  3426. text-align: center;
  3427. }
  3428. .notip-again {
  3429. padding-left: 40rpx;
  3430. display: flex;
  3431. align-items: center;
  3432. }
  3433. .user-agree {
  3434. /* color:#85868A; */
  3435. font-size: 26rpx;
  3436. margin-left: 8rpx;
  3437. }
  3438. /* 海报的样式 */
  3439. .poster {
  3440. position: absolute;
  3441. top: 20rpx;
  3442. z-index: 99;
  3443. text-align: center;
  3444. left: 0;
  3445. bottom: 0;
  3446. right: 0;
  3447. }
  3448. .title {
  3449. color: #fff;
  3450. margin: 20rpx 0;
  3451. font-size: 30rpx;
  3452. display: flex;
  3453. justify-content: center;
  3454. text-align: left;
  3455. }
  3456. .title text {
  3457. width: 480rpx;
  3458. }
  3459. .ads {
  3460. color: #fff;
  3461. text-align: left;
  3462. margin: 20rpx auto;
  3463. display: flex;
  3464. justify-content: center;
  3465. }
  3466. .tool {
  3467. display: flex;
  3468. text-align: center;
  3469. justify-content: baseline;
  3470. width: 100%;
  3471. margin-top: 20rpx;
  3472. }
  3473. .tool view {
  3474. flex: 1;
  3475. }
  3476. .img {
  3477. width: 107rpx;
  3478. height: 128rpx;
  3479. }
  3480. .closeImg {
  3481. width: 57rpx;
  3482. height: 57rpx;
  3483. }
  3484. .share-btn {
  3485. background-color: transparent;
  3486. flex: 1;
  3487. }
  3488. .share-btn::after {
  3489. border: none;
  3490. }
  3491. /* 商品价格 销量 */
  3492. .goods-info-new {
  3493. margin-top: -8rpx;
  3494. border-radius: 20rpx 20rpx 0 0;
  3495. background: #f3f3f3;
  3496. width: 750rpx;
  3497. /* height:138rpx; */
  3498. padding: 30rpx 24rpx 26rpx;
  3499. position: relative;
  3500. z-index: 99;
  3501. box-sizing: border-box;
  3502. }
  3503. .price-line {
  3504. height: 38rpx;
  3505. display: flex;
  3506. align-items: flex-end;
  3507. }
  3508. .price-line .real-price {
  3509. color: #fe2b54;
  3510. font-size: 24rpx;
  3511. }
  3512. .price-line .real-price text.bold-price {
  3513. font-size: 40rpx;
  3514. font-weight: bold;
  3515. height: 30rpx;
  3516. line-height: 30rpx;
  3517. }
  3518. .price-line .sale-price {
  3519. color: #999999;
  3520. font-size: 24rpx;
  3521. flex: 1;
  3522. margin-left: 8rpx;
  3523. text-decoration: line-through;
  3524. }
  3525. .price-line .sale-num {
  3526. color: #acadb1;
  3527. font-size: 24rpx;
  3528. }
  3529. .goods-coupon {
  3530. display: flex;
  3531. flex-wrap: wrap;
  3532. margin-top: 20rpx;
  3533. }
  3534. .goods-coupon .goupon-tag {
  3535. height: 30rpx;
  3536. line-height: 30rpx;
  3537. background: rgba(254, 43, 84, 0.1);
  3538. /* opacity: 0.9; */
  3539. border-radius: 5px;
  3540. padding: 0 10rpx;
  3541. margin-right: 10rpx;
  3542. color: #fe2b54;
  3543. font-size: 20rpx;
  3544. }
  3545. /* 服务 须知 门店 */
  3546. .other-info {
  3547. padding: 30rpx 24rpx 16rpx;
  3548. background: #fff;
  3549. border-radius: 24rpx;
  3550. width: 702rpx;
  3551. margin: 0 24rpx;
  3552. }
  3553. .other-info .name {
  3554. color: #000000;
  3555. font-size: 36rpx;
  3556. line-height: 36rpx;
  3557. font-weight: bold;
  3558. padding-bottom: 12rpx;
  3559. }
  3560. .other-info .common-info {
  3561. line-height: 36rpx;
  3562. display: flex;
  3563. /* min-height: 52rpx; */
  3564. /* align-items: center; */
  3565. margin-top: 14rpx;
  3566. }
  3567. .common-info .info-title {
  3568. font-size: 24rpx;
  3569. color: #666;
  3570. margin-right: 26rpx;
  3571. }
  3572. .common-info .info-content {
  3573. font-size: 24rpx;
  3574. color: #000;
  3575. flex: 1;
  3576. }
  3577. .common-info image {
  3578. width: 10rpx;
  3579. height: 20rpx;
  3580. }
  3581. /* 加购数量 */
  3582. .num-module {
  3583. width: 702rpx;
  3584. /* height: 174rpx; */
  3585. background: #ffffff;
  3586. border-radius: 24rpx;
  3587. margin: 14rpx 24rpx 28rpx;
  3588. padding: 32rpx 24rpx;
  3589. }
  3590. .plus-buy {
  3591. height: 30rpx;
  3592. margin: 0 0 28rpx;
  3593. display: flex;
  3594. align-items: center;
  3595. }
  3596. .num-module .title {
  3597. color: #666;
  3598. font-size: 30rpx;
  3599. /* margin-right:20rpx; */
  3600. width: 80rpx;
  3601. }
  3602. .plus-buy .plus-name {
  3603. font-size: 30rpx;
  3604. color: #010101;
  3605. }
  3606. .plus-buy .plus-name text {
  3607. color: #fe2b54;
  3608. font-weight: bold;
  3609. }
  3610. .plus-num {
  3611. display: flex;
  3612. justify-content: space-between;
  3613. height: 72rpx;
  3614. align-items: center;
  3615. }
  3616. .calc-counter {
  3617. height: 72rpx;
  3618. border-radius: 72rpx;
  3619. display: flex;
  3620. align-items: center;
  3621. border: 2rpx solid #d2d2d2;
  3622. box-sizing: border-box;
  3623. overflow: hidden;
  3624. line-height: 72rpx;
  3625. }
  3626. .calc-counter .minus-btn.disable,
  3627. .calc-counter .plus-btn.disable {
  3628. color: #d2d2d2;
  3629. }
  3630. .calc-counter .plus-btn,
  3631. .calc-counter .minus-btn {
  3632. width: 82rpx;
  3633. text-align: center;
  3634. color: #666;
  3635. line-height: 72rpx;
  3636. font-weight: bold;
  3637. padding-bottom: 4rpx;
  3638. font-size: 36rpx;
  3639. }
  3640. .calc-counter .num-input {
  3641. color: #010101;
  3642. font-size: 30rpx;
  3643. border-left: 2rpx solid #d2d2d2;
  3644. border-right: 2rpx solid #d2d2d2;
  3645. width: 72rpx;
  3646. text-align: center;
  3647. height: 72rpx;
  3648. }
  3649. /* 选择规格 */
  3650. .sku-wrapper {
  3651. width: 702rpx;
  3652. background: #ffffff;
  3653. border-radius: 24rpx;
  3654. margin: 16rpx 24rpx 0;
  3655. padding-bottom: 30rpx;
  3656. overflow: hidden;
  3657. }
  3658. .sku-info {
  3659. height: 90rpx;
  3660. position: relative;
  3661. }
  3662. .sku-left {
  3663. width: 700rpx;
  3664. overflow: hidden;
  3665. line-height: 90rpx;
  3666. padding-left: 24rpx;
  3667. display: flex;
  3668. align-items: center;
  3669. height: 90rpx;
  3670. }
  3671. .sku-left view {
  3672. color: #666;
  3673. font-size: 30rpx;
  3674. }
  3675. .sku-left view.current-sku {
  3676. color: #010101;
  3677. margin-left: 18rpx;
  3678. }
  3679. .sku-right {
  3680. position: absolute;
  3681. right: 0;
  3682. top: 0;
  3683. bottom: 0;
  3684. height: 90rpx;
  3685. display: flex;
  3686. align-items: center;
  3687. padding-right: 24rpx;
  3688. width: 120rpx;
  3689. background: linear-gradient(to right, rgba(255, 255, 255, 0.3), #fff 60%);
  3690. /* background:url("https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-bg.png") no-repeat center;
  3691. background-size: 100% 100%; */
  3692. z-index: 99;
  3693. justify-content: flex-end;
  3694. }
  3695. .sku-right image {
  3696. width: 10rpx;
  3697. height: 20rpx;
  3698. }
  3699. .all-sku {
  3700. display: flex;
  3701. flex-wrap: wrap;
  3702. padding: 0 30rpx 0 98rpx;
  3703. }
  3704. .all-sku .sku-thumb {
  3705. width: 70rpx;
  3706. height: 70rpx;
  3707. border-radius: 10rpx;
  3708. margin-right: 14rpx;
  3709. }
  3710. .all-sku view {
  3711. font-size: 24rpx;
  3712. color: #666;
  3713. line-height: 70rpx;
  3714. margin-left: 24rpx;
  3715. }
  3716. /* 团购评价 */
  3717. .group-evaluation {
  3718. width: 702rpx;
  3719. background: #ffffff;
  3720. border: 1rpx solid #f5f5f5;
  3721. border-radius: 25rpx;
  3722. padding: 30rpx 24rpx 0;
  3723. margin: 16rpx 24rpx;
  3724. }
  3725. .group-evaluation .title {
  3726. height: 40rpx;
  3727. line-height: 40rpx;
  3728. display: flex;
  3729. justify-content: space-between;
  3730. align-items: center;
  3731. }
  3732. .group-evaluation .title .left {
  3733. font-size: 32rpx;
  3734. line-height: 40rpx;
  3735. color: #000;
  3736. font-weight: bold;
  3737. flex: 1;
  3738. }
  3739. .group-evaluation .title .right {
  3740. color: #666;
  3741. font-size: 28rpx;
  3742. display: flex;
  3743. align-items: center;
  3744. justify-content: space-between;
  3745. }
  3746. .group-evaluation .arrow-img {
  3747. width: 12rpx;
  3748. height: 20rpx;
  3749. margin-left: 6rpx;
  3750. }
  3751. .evaluation-item {
  3752. padding: 30rpx 8rpx 30rpx 0;
  3753. padding-right: 8rpx;
  3754. border-bottom: 1rpx solid #f3f3f3;
  3755. display: flex;
  3756. align-items: center;
  3757. justify-content: space-between;
  3758. }
  3759. .evaluation-item:last-child {
  3760. border: none;
  3761. }
  3762. .evaluation-item .item-left {
  3763. width: 510rpx;
  3764. }
  3765. .eval-top {
  3766. display: flex;
  3767. height: 44rpx;
  3768. align-items: center;
  3769. }
  3770. .eval-top .avatar {
  3771. width: 44rpx;
  3772. height: 44rpx;
  3773. border-radius: 44rpx;
  3774. }
  3775. .eval-top .name {
  3776. margin: 0 10rpx;
  3777. font-size: 28rpx;
  3778. color: #000;
  3779. }
  3780. .eval-top .tag {
  3781. height: 38rpx;
  3782. line-height: 38rpx;
  3783. background: rgba(1, 187, 243, 0.1);
  3784. border-radius: 10rpx;
  3785. color: #01bbf3;
  3786. font-size: 24rpx;
  3787. padding: 0 12rpx;
  3788. margin-right: 10rpx;
  3789. }
  3790. .eval-top .hp {
  3791. height: 38rpx;
  3792. line-height: 38rpx;
  3793. background: rgba(255, 71, 71, 0.1);
  3794. border-radius: 10rpx;
  3795. color: #ff5252;
  3796. font-size: 24rpx;
  3797. padding: 0 12rpx;
  3798. }
  3799. .eval-content {
  3800. display: -webkit-box;
  3801. -webkit-box-orient: vertical;
  3802. -webkit-line-clamp: 2;
  3803. text-overflow: ellipsis;
  3804. overflow: hidden;
  3805. line-height: 36rpx;
  3806. margin-top: 8rpx;
  3807. font-size: 26rpx;
  3808. color: #333;
  3809. }
  3810. .evaluation-item .item-right {
  3811. width: 100rpx;
  3812. height: 100rpx;
  3813. }
  3814. .evaluation-item .item-right image {
  3815. width: 100rpx;
  3816. height: 100rpx;
  3817. border-radius: 10rpx;
  3818. }
  3819. /* 产品推荐 */
  3820. .recommend-title {
  3821. height: 103rpx;
  3822. line-height: 102rpx;
  3823. text-align: center;
  3824. color: #000000;
  3825. font-size: 33rpx;
  3826. /* margin-top:-20rpx; */
  3827. }
  3828. .recommend-list {
  3829. display: flex;
  3830. justify-content: space-between;
  3831. flex-wrap: wrap;
  3832. width: 702rpx;
  3833. margin: 0 24rpx;
  3834. }
  3835. .recommend-item {
  3836. width: 334rpx;
  3837. height: 510rpx;
  3838. background: #ffffff;
  3839. border-radius: 20rpx;
  3840. display: flex;
  3841. flex-direction: column;
  3842. margin: 0 0 20rpx;
  3843. }
  3844. .recommend-item image {
  3845. width: 334rpx;
  3846. height: 334rpx;
  3847. margin-bottom: 20rpx;
  3848. border-radius: 20rpx;
  3849. }
  3850. .recommend-goods-name {
  3851. font-size: 26rpx;
  3852. line-height: 40rpx;
  3853. height: 80rpx;
  3854. width: 294rpx;
  3855. display: -webkit-box;
  3856. -webkit-box-orient: vertical;
  3857. -webkit-line-clamp: 2;
  3858. text-overflow: ellipsis;
  3859. overflow: hidden;
  3860. margin: 0 20rpx;
  3861. /* text-indent: -12rpx; */
  3862. color: #333;
  3863. }
  3864. .recommend-goods-price {
  3865. color: #fe2957;
  3866. font-size: 28rpx;
  3867. margin: 10rpx 20rpx 0;
  3868. height: 56rpx;
  3869. }
  3870. .recommend-goods-price text {
  3871. font-size: 36rpx;
  3872. }
  3873. /* 购买提醒 */
  3874. .buy-toast {
  3875. height: 44rpx;
  3876. min-width: 284rpx;
  3877. position: absolute;
  3878. top: 410rpx;
  3879. left: 24rpx;
  3880. background: rgba(0, 0, 0, 0.5);
  3881. border-radius: 45rpx;
  3882. }
  3883. .toast-swiper {
  3884. height: 44rpx;
  3885. width: 320rpx;
  3886. }
  3887. .toast-item {
  3888. align-items: center;
  3889. display: flex;
  3890. height: 44rpx;
  3891. padding: 0 14rpx 0 10rpx;
  3892. }
  3893. .toast-item image {
  3894. width: 28rpx;
  3895. height: 28rpx;
  3896. border-radius: 28rpx;
  3897. margin-right: 8rpx;
  3898. }
  3899. .toast-item view {
  3900. font-size: 24rpx;
  3901. color: #fff;
  3902. white-space: nowrap;
  3903. }
  3904. /* 规格弹框 */
  3905. .appoint-overlay-wrapper {
  3906. position: fixed;
  3907. top: 0;
  3908. left: 0;
  3909. width: 100%;
  3910. height: 100%;
  3911. background-color: rgba(0, 0, 0, 0.7);
  3912. z-index: 9999;
  3913. display: flex;
  3914. align-items: flex-end;
  3915. }
  3916. .spu-popup {
  3917. /* height: 784rpx; */
  3918. width: 690rpx;
  3919. background: #fff;
  3920. padding: 40rpx 20rpx;
  3921. border-radius: 20rpx 20rpx 0 0;
  3922. margin:0 30rpx;
  3923. }
  3924. .popup-good {
  3925. height: 130rpx;
  3926. display: flex;
  3927. padding: 0 0 30rpx 0;
  3928. border-bottom: 1rpx solid #eee;
  3929. justify-content: space-between;
  3930. }
  3931. .popup-good .left {
  3932. display: flex;
  3933. align-items: flex-end;
  3934. }
  3935. .popup-good .left image {
  3936. width: 100rpx;
  3937. height: 100rpx;
  3938. border-radius: 10rpx;
  3939. }
  3940. .popup-good .spu-price {
  3941. color: #ff1643;
  3942. font-size: 34rpx;
  3943. font-weight: bold;
  3944. margin: 0 14rpx 0 20rpx;
  3945. line-height: 30rpx;
  3946. }
  3947. .popup-good .spu-price text {
  3948. font-size: 48rpx;
  3949. }
  3950. .popup-good .spu-price-old {
  3951. text-decoration: line-through;
  3952. color: #999999;
  3953. font-size: 24rpx;
  3954. }
  3955. .sku-close {
  3956. width: 48rpx;
  3957. height: 48rpx;
  3958. }
  3959. .sku-list-block {
  3960. min-height: 420rpx;
  3961. padding-bottom: 40rpx;
  3962. }
  3963. .sku-list-block .spu-title {
  3964. height: 86rpx;
  3965. line-height: 86rpx;
  3966. font-weight: bold;
  3967. font-size: 28rpx;
  3968. }
  3969. .sku-list-block .sku-item {
  3970. margin-bottom: 12rpx;
  3971. display: flex;
  3972. background: rgb(250,250,250);
  3973. border-radius:8rpx;
  3974. align-items: center;
  3975. justify-content: space-between;
  3976. height:140rpx;
  3977. padding:0 40rpx;
  3978. }
  3979. .sku-list-block .sku-item view {
  3980. font-size:30rpx;
  3981. color:#333;
  3982. }
  3983. .sku-list-block .sku-item view.sku-price{
  3984. color:rgb(233,86,81);
  3985. font-weight: bold;
  3986. font-size: 32rpx;
  3987. }
  3988. .sku-list-block .sku-item.active-sku {
  3989. color: #00c0ff;
  3990. background: rgb(255,249,247);
  3991. border: 1rpx solid #fe2b54;
  3992. }
  3993. .sku-list-block .sku-item.active-sku view{
  3994. color:#fe2b54;
  3995. }
  3996. .sku-btn {
  3997. width: 638rpx;
  3998. height: 90rpx;
  3999. border-radius: 12rpx;
  4000. line-height: 90rpx;
  4001. text-align: center;
  4002. color: #ffff;
  4003. /* background: #00B9FF; */
  4004. background: rgb(231,71,93);
  4005. font-size: 32rpx;
  4006. margin:20rpx 6rpx 0;
  4007. /* font-weight: bold; */
  4008. }
  4009. .final-price {
  4010. flex: 1;
  4011. display: flex;
  4012. align-items: center;
  4013. height: 80rpx;
  4014. margin-left: 12rpx;
  4015. }
  4016. .final-price .total-new {
  4017. color: #ff1643;
  4018. font-size: 32rpx;
  4019. }
  4020. .final-price .total-new text {
  4021. font-size: 46rpx;
  4022. font-weight: bold;
  4023. }
  4024. .final-price .total-old {
  4025. text-decoration: line-through;
  4026. font-size: 24rpx;
  4027. color: #999;
  4028. margin-left: 12rpx;
  4029. padding-top: 10rpx;
  4030. }
  4031. /* 关联工单 */
  4032. .service-list {
  4033. margin: 0 24rpx;
  4034. }
  4035. .service-item {
  4036. margin-top: 24rpx;
  4037. background: #ffffff;
  4038. border-radius: 24rpx;
  4039. width: 702rpx;
  4040. padding: 0 24rpx;
  4041. }
  4042. .order-title {
  4043. height: 100rpx;
  4044. line-height: 100rpx;
  4045. font-weight: bold;
  4046. color: #000;
  4047. font-size: 32rpx;
  4048. border-bottom: 2rpx solid #e0e0e0;
  4049. }
  4050. .service-item .service-title {
  4051. height: 80rpx;
  4052. display: flex;
  4053. align-items: center;
  4054. border-bottom: 2rpx solid #e0e0e0;
  4055. }
  4056. .service-title .sercive-name {
  4057. color: #191919;
  4058. font-size: 30rpx;
  4059. font-weight: bold;
  4060. }
  4061. .service-title .service-id {
  4062. color: #666666;
  4063. font-size: 24rpx;
  4064. margin: 0 12rpx 0 0;
  4065. flex: 1;
  4066. }
  4067. .service-title .service-status {
  4068. color: #008dff;
  4069. font-size: 26rpx;
  4070. }
  4071. .service-main {
  4072. padding: 12rpx 0 16rpx;
  4073. }
  4074. .customer-info {
  4075. display: flex;
  4076. align-items: center;
  4077. }
  4078. .customer-info image {
  4079. width: 48rpx;
  4080. height: 48rpx;
  4081. margin-right: 24rpx;
  4082. }
  4083. .customer-info .customer-main {
  4084. display: flex;
  4085. padding: 18rpx 0 4rpx;
  4086. flex-direction: column;
  4087. flex: 1;
  4088. }
  4089. .main-line {
  4090. display: flex;
  4091. height: 44rpx;
  4092. margin-bottom: 4rpx;
  4093. align-items: center;
  4094. }
  4095. .main-line view {
  4096. color: #333333;
  4097. font-size: 32rpx;
  4098. }
  4099. .main-line view.phone {
  4100. color: #999999;
  4101. font-size: 24rpx;
  4102. margin-left: 14rpx;
  4103. }
  4104. .customer-info .customer-address {
  4105. color: #666666;
  4106. line-height: 40rpx;
  4107. }
  4108. .service-main .row {
  4109. /* height: 56rpx;
  4110. line-height: 56rpx; */
  4111. display: flex;
  4112. color: rgba(0, 0, 0, 0.9);
  4113. font-size: 26rpx;
  4114. font-weight: bold;
  4115. align-items: center;
  4116. margin: 10rpx 0;
  4117. }
  4118. .service-main .row text {
  4119. color: #666666;
  4120. font-weight: normal;
  4121. /* white-space: nowrap; */
  4122. }
  4123. .service-remark-wrapper {
  4124. padding: 24rpx 0;
  4125. border-top: 2rpx solid #e0e0e0;
  4126. }
  4127. .service-store {
  4128. height: 36rpx;
  4129. display: flex;
  4130. align-items: center;
  4131. justify-content: space-between;
  4132. }
  4133. .service-store > view {
  4134. display: flex;
  4135. height: 36rpx;
  4136. align-items: center;
  4137. }
  4138. .store-left image {
  4139. width: 36rpx;
  4140. height: 36rpx;
  4141. margin-right: 16rpx;
  4142. }
  4143. .store-left view {
  4144. color: rgba(0, 0, 0, 0.9);
  4145. font-size: 26rpx;
  4146. font-weight: bold;
  4147. }
  4148. .store-right view {
  4149. color: #666666;
  4150. font-size: 24rpx;
  4151. }
  4152. .store-right image {
  4153. width: 24rpx;
  4154. height: 24rpx;
  4155. margin-left: 16rpx;
  4156. }
  4157. .service-remark-wrapper .service-remark {
  4158. width: 652rpx;
  4159. /* height: 56rpx; */
  4160. line-height: 44rpx;
  4161. background: #ebebeb;
  4162. border-radius: 16rpx;
  4163. color: #000000;
  4164. padding: 8rpx 16rpx;
  4165. /* white-space: nowrap;
  4166. text-overflow: ellipsis;*/
  4167. display: -webkit-box;
  4168. -webkit-box-orient: vertical;
  4169. -webkit-line-clamp: 2;
  4170. text-overflow: ellipsis;
  4171. overflow: hidden;
  4172. margin-top: 20rpx;
  4173. }
  4174. .service-remark text {
  4175. color: #fe2b54;
  4176. font-weight: bold;
  4177. }
  4178. .service-operate {
  4179. padding: 24rpx 0;
  4180. border-top: 2rpx solid #e0e0e0;
  4181. display: flex;
  4182. justify-content: flex-end;
  4183. }
  4184. .service-operate view {
  4185. width: 160rpx;
  4186. height: 56rpx;
  4187. line-height: 56rpx;
  4188. border-radius: 28rpx;
  4189. text-align: center;
  4190. color: #f9f4f5;
  4191. font-size: 24rpx;
  4192. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  4193. margin-left: 28rpx;
  4194. }
  4195. .sku-popup-title{
  4196. font-weight: bold;
  4197. font-size: 32rpx;
  4198. color:#333;
  4199. padding-left:20rpx;
  4200. }
  4201. .sku-popup-tips{
  4202. color:#888;
  4203. font-size: 24rpx;
  4204. padding:10rpx 0 32rpx 20rpx;
  4205. border-bottom: 1rpx solid #eee;
  4206. margin-bottom:32rpx;
  4207. }
  4208. </style>