goods.vue 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902
  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">
  15. </image>
  16. </view>
  17. <button open-type="share" class="share-btn">
  18. <image class="img" style="width: 85rpx; height: 127rpx" src="/static/images/share/p_wx.png"></image>
  19. </button>
  20. <view style="text-align: left">
  21. <image class="img" @tap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  22. </view>
  23. </view>
  24. <view style="text-align: center">
  25. <image class="closeImg" @tap="hidePoster" src="/static/images/share/close.png"></image>
  26. </view>
  27. </view>
  28. <view class="container" :style="'filter:brightness(' + myqr_blur + '%)'">
  29. <image src="/static/images/new/isnew.png" v-if="goods.isNew" class="isNew"></image>
  30. <swiper class="goodsimgs" :indicator-dots="goods.gallery.length > 1 ? true : false"
  31. indicator-color="#999" indicator-active-color="#FFEBD8" :autoplay="true"
  32. interval="3000" duration="1000">
  33. <swiper-item v-for="(item, index) in goods.gallery" :key="index">
  34. <image :src="item" mode="aspectFill"></image>
  35. </swiper-item>
  36. </swiper>
  37. <view class="share-pop-box" v-if="openShare">
  38. <view class="share-pop">
  39. <view class="close" @tap="closeShare">
  40. <van-icon class="icon" name="cross" />
  41. </view>
  42. </view>
  43. </view>
  44. <view class="goods-info">
  45. <view class="c">
  46. <view style="display: flex; flex-direction: column">
  47. <view v-if="!activited" class="price">
  48. <view class="retailPrice">
  49. <text class="checked-price">{{ checkedSku.price }}</text>
  50. </view>
  51. <!-- wx:if="{{checkedSku.counterPrice!=checkedSku.price}}" -->
  52. <view class="counterPrice">
  53. 原价¥
  54. <text>{{ checkedSku.counterPrice }}</text>
  55. </view>
  56. <view class="sale-num">
  57. 已售
  58. <text>{{ countSalesNumber }}</text>
  59. </view>
  60. </view>
  61. <view class="goods-name-wrapper">
  62. <view class="goods_name">
  63. <!-- <image wx:if="{{activited}}" style="width: 79rpx;height:32rpx;margin-right: 4rpx;" src="https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/618.png"></image> -->
  64. <text class="goods_name_left" :class="goods.name.startsWith('【')?'indent':''">{{ goods.name }}</text>
  65. </view>
  66. <text v-if="goods.brief"
  67. :class="goods.brief.startsWith('【')?'desc sub-color':'desc1 sub-color'">{{ goods.brief }}</text>
  68. </view>
  69. <!-- <view class="store-location"
  70. style="display: flex;align-items: center;justify-content: space-between;">
  71. <text
  72. style="display: inline-block; height: 100rpx;line-height: 100rpx;color: #999;padding-left: 30rpx;font-size: 32rpx;"
  73. @tap="getCurrentLocation" v-if="!showCurrentStore">授权位置信息,查看附近最近门店</text>
  74. <view class="store-location-left" v-if="showCurrentStore">
  75. <text style="display: block;color: #999;">附近可服务门店:</text>
  76. <text style="display: block;color: #999;">鲸致生活·家政保洁(长泰广场店)</text>
  77. </view>
  78. <view class="store-location-right" @tap="goServiceStore" v-if="showCurrentStore">
  79. <image src="https://mall.zhaijieshi.cc/file/wx-huawang/fj.png" mode=""
  80. style="width: 50rpx;height: 50rpx; margin-left: 10rpx;"></image>
  81. <text style="display: block; font-size: 20rpx; color: #999;">附近门店</text>
  82. </view>
  83. </view> -->
  84. </view>
  85. <!-- 分享商品 -->
  86. <!-- <view hidden="{{!canShare}}" class="goods_name_right" bindtap="shareFriendOrCircle">
  87. <image class="img" src="/static/images/share.png" />
  88. </view> -->
  89. </view>
  90. </view>
  91. </view>
  92. <view class="buy-toast">
  93. <swiper :autoplay="true" :circular="true" interval="3000" duration="1000" :vertical="true"
  94. class="toast-swiper">
  95. <swiper-item class="toast-swiper-item" v-for="(item, index) in goodsBuyTime" :key="index">
  96. <view class="toast-item">
  97. <image :src="item.cusHeadImg" mode="aspectFill"></image>
  98. <view>{{ item.comment }}</view>
  99. </view>
  100. </swiper-item>
  101. </swiper>
  102. </view>
  103. <!-- 选择规格sku -->
  104. <view class="sku-info" @tap="showSkuPopup" v-if="goods.productType == 2">
  105. <view class="sku-left">
  106. <view>已选:</view>
  107. <view class="current-sku">{{ checkedSku.specifications }}</view>
  108. </view>
  109. <view class="sku-right">
  110. <view style="color: #d77958;">可选服务</view>
  111. <van-icon name="arrow" color="#d77958" />
  112. </view>
  113. </view>
  114. <!-- 推荐产品 -->
  115. <view class="recommend-product" v-if="recGoodsNum > 0">
  116. <view class="recommend-title">推荐产品({{ recGoodsNum }})</view>
  117. <scroll-view :scroll-x="true" class="recommend-scroll">
  118. <view class="scroll-item-wrapper" v-for="(item, index) in recGoodsList" :key="index">
  119. <navigator :url="'/pages/goods/goods?id=' + item.id">
  120. <view class="scroll-item">
  121. <image :src="item.picUrl" mode="aspectFill"></image>
  122. <view class="scroll-right">
  123. <view class="recommend-name">{{ item.name }}</view>
  124. <view class="recommend-price">
  125. <text>¥{{ item.retailPrice }}</text>
  126. /台
  127. </view>
  128. </view>
  129. </view>
  130. </navigator>
  131. </view>
  132. </scroll-view>
  133. </view>
  134. <!-- 加购数量 -->
  135. <view class="num-module" v-if="checkedSku.isSupportAddbuy && checkedSku.unitPrice && checkedSku.unitPrice > 0">
  136. <view class="plus-buy">
  137. <view class="title">加购</view>
  138. <view class="plus-name">
  139. {{ checkedSku.unitDescribe }}
  140. <text>¥{{ checkedSku.unitPrice }}</text>
  141. /{{ checkedSku.unitArea }}
  142. </view>
  143. </view>
  144. <view class="plus-num" style="padding-left: 80rpx">
  145. <view class="title" style="color: #000; width: 160rpx">加购数量</view>
  146. <view class="calc-counter">
  147. <view :class="'minus-btn ' + (plusNum == minNum ? 'disable' : '')" @tap="minusNum">-</view>
  148. <input class="num-input" :data-max="checkedSku.unitMaximum" @input="bindGoodsNumInput" type="number"
  149. maxlength="3" placeholder="" :value="plusNum" />
  150. <!-- <view class="num-input">{{plusNum}}</view> -->
  151. <view :class="'plus-btn ' + (plusNum >= checkedSku.unitMaximum ? 'disable' : '')" @tap="addNum">+
  152. </view>
  153. </view>
  154. </view>
  155. <view style="color: #fe2b54; margin: 8rpx 0 0" v-if="plusNum != 0">
  156. 每份{{ checkedSku.unitArea }},加购{{ plusNum == null ? 0 : plusNum }}份,合计{{ addPurchaseAmount }}元
  157. </view>
  158. </view>
  159. <!-- 加购 -->
  160. <!-- wx:if="{{goods.productType==4&&goods.unitPrice&&goods.unitPrice>0}}" -->
  161. <view class="num-module" v-if="goods.productType == 4 && goods.unitPrice && goods.unitPrice > 0">
  162. <view class="plus-num">
  163. <view class="title" style="color: #000; width: 160rpx; justify-content: flex-start">购买数量</view>
  164. <view style="display: flex; align-items: center">
  165. <view class="calc-counter" style="height: 62rpx; line-height: 62rpx">
  166. <input class="num-input" style="height: 62rpx; line-height: 62rpx; width: 140rpx; border: none"
  167. @input="bindGoodsNumInput" type="number" maxlength="4" placeholder="" :value="plusNum" />
  168. </view>
  169. <view style="margin-left: 8rpx">{{ goods.unitArea }}</view>
  170. </view>
  171. </view>
  172. <view style="color: #fe2b54; margin: 8rpx 0 0">
  173. 每增加1{{ goods.unitArea }},增加{{ goods.unitPrice }}元,服务人数根据实际购买量指派。</view>
  174. </view>
  175. <!-- 团购评价 -->
  176. <view class="group-evaluation">
  177. <view class="title" @tap="goWholeEval">
  178. <view class="left">团购评价({{ goodsCommentCount }}条)</view>
  179. <view class="right">
  180. <view>查看全部</view>
  181. <van-icon name="arrow" color="#85868A" />
  182. </view>
  183. </view>
  184. <view class="evaluation-item" v-for="(item, index) in goodsComment" :key="index">
  185. <view class="item-left">
  186. <view class="eval-top">
  187. <image :src="item.cusHeadImg" mode="aspectFill" class="avatar"></image>
  188. <view class="name">{{ item.cusName }}</view>
  189. <view class="tag">{{ item.cusLabel }}</view>
  190. <view class="hp">{{ item.commentType }}</view>
  191. </view>
  192. <view class="eval-content">
  193. {{ item.comment }}
  194. </view>
  195. </view>
  196. <view class="item-right">
  197. <image :src="item.commentImg" mode="aspectFill"></image>
  198. </view>
  199. </view>
  200. </view>
  201. <view class="detail">
  202. <!-- <template is="wxParse" :data="wxParseData:goodsDetail.nodes"/> -->
  203. <mp-html :content="article_goodsDetail"></mp-html>
  204. </view>
  205. <!-- 大家都在看 -->
  206. <view class="related-goods" v-if="relatedGoods.length > 0">
  207. <view class="h">
  208. <view class="line"></view>
  209. <text class="title">大家都在看</text>
  210. </view>
  211. <view class="b">
  212. <view class="item" v-for="(item, index) in relatedGoods" :key="index">
  213. <navigator :url="'/pages/goods/goods?id=' + item.id">
  214. <image class="img" :src="item.picUrl" background-size="cover"></image>
  215. <text class="name">{{ item.name }}</text>
  216. <text class="price">¥{{ item.retailPrice }}</text>
  217. </navigator>
  218. </view>
  219. </view>
  220. </view>
  221. <!-- 规格选择界面 -->
  222. <view class="attr-pop-box" v-if="openshow">
  223. <view class="attr-pop">
  224. <view class="close" @tap="closeAttr">
  225. <van-icon class="icon" name="cross" />
  226. </view>
  227. </view>
  228. </view>
  229. <!-- 规格选择界面 -->
  230. <view class="attr-pop-box" v-if="openAttr">
  231. <view class="attr-pop">
  232. <view class="close" @tap="closeAttr">
  233. <van-icon class="icon" name="cross" />
  234. </view>
  235. <view class="img-info">
  236. <image class="img" :src="goods.picUrl"></image>
  237. <view class="info">
  238. <view class="c">
  239. <view class="p">价格:¥{{ checkedSpecPrice }}</view>
  240. <view class="a">{{ tmpSpecText }}</view>
  241. </view>
  242. </view>
  243. </view>
  244. <!-- 规格列表 -->
  245. <view class="spec-con">
  246. <view class="spec-item" v-for="(item, index) in specificationList" :key="index">
  247. <view class="name">{{ item.name }}</view>
  248. <view class="values">
  249. <view :class="'value ' + (vitem.checked ? 'selected' : '')" @tap="clickSkuValue"
  250. :data-value-id="vitem.id" :data-name="vitem.specification"
  251. v-for="(vitem, index1) in item.valueList" :key="index1">
  252. {{ vitem.value }}
  253. </view>
  254. </view>
  255. </view>
  256. <view class="spec-item" v-if="groupon.length > 0">
  257. <view class="name">团购立减</view>
  258. <view class="values">
  259. <view :class="'value ' + (vitem.checked ? 'selected' : '')" @tap="clickGroupon"
  260. :data-value-id="vitem.id" :data-name="vitem.specification"
  261. v-for="(vitem, index) in groupon" :key="vitem.id">
  262. ¥{{ vitem.discount }} ({{ vitem.discountMember }}人)
  263. </view>
  264. </view>
  265. </view>
  266. <!-- 数量 -->
  267. <view class="number-item">
  268. <view class="name">数量</view>
  269. <view class="selnum">
  270. <!-- <view class="cut" bindtap="cutNumber">-</view> -->
  271. <input :value="number" class="number" :disabled="true" type="number" />
  272. <!-- <view class="add" bindtap="addNumber">+</view> -->
  273. </view>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. <!-- 联系客服
  279. <view class="contact">
  280. <contact-button style="opacity:0;position:absolute;" type="default-dark" session-from="weapp" size="36">
  281. </contact-button>
  282. </view> -->
  283. <!-- 底部按钮 -->
  284. <view class="bottom-btn" :style="'position:' + myqr_bottom_btn">
  285. <view class="l l-collect" @tap="addCollectOrNot" v-if="!isGroupon">
  286. <view class="collect-wrapper">
  287. <van-icon class="icon" name="star" color="#d77958" v-if="collect" size="22px" />
  288. <van-icon class="icon" size="22px" color="#d77958" name="star-o" v-else />
  289. <text class="jz-color collect-text">收藏</text>
  290. </view>
  291. </view>
  292. <view class="l l-kefu">
  293. <view class="service-wrapper" @tap="goIm">
  294. <view class="contact-block">
  295. <!-- <contact-button style="opacity:0;position:absolute; left:16rpx; top:0rpx;" type="default-dark"
  296. session-from="weapp" size="44">
  297. </contact-button> -->
  298. <van-icon name="service-o" color="#d77958" size="22px" />
  299. </view>
  300. <text class="jz-color">在线客服</text>
  301. </view>
  302. </view>
  303. <block v-if="checkedSku.type == 0">
  304. <!-- 买约一体 -->
  305. <view class="c" @tap="addFast" data-type="1" v-if="!soldout || !hasLogin">立即预约</view>
  306. </block>
  307. <view class="dis-order-wrapper" v-else-if="checkedSku.type == 3">
  308. <!-- 买约分离 -->
  309. <view class="self-order" data-type="0" @tap="addFast">
  310. <view class="buy-type">先买后约</view>
  311. </view>
  312. <view class="spread-order" data-type="1" @tap="addFast">
  313. <view class="buy-type jz-color" style="overflow: hidden">立即预约</view>
  314. </view>
  315. </view>
  316. <view class="dis-order-wrapper" v-else-if="checkedSku.type == 2">
  317. <!-- 中介 -->
  318. <view class="self-order" data-type="0" @tap="addFast">
  319. <view class="buy-type">立即购买</view>
  320. </view>
  321. </view>
  322. <block v-else-if="checkedSku.type == 6">
  323. <!-- 实物商品 -->
  324. <view class="c" @tap="addFast" data-type="1" v-if="!soldout || !hasLogin">立即购买</view>
  325. </block>
  326. <block v-else>
  327. <!-- 其他 -->
  328. <view class="c" @tap="addFast" data-type="1" v-if="!soldout || !hasLogin">立即预约</view>
  329. </block>
  330. </view>
  331. <!-- bind:click-overlay="onSkuClose" -->
  332. <!-- sku规格列表 -->
  333. <van-popup :show="chooseSkuVisible" round position="bottom" @click-overlay="onSkuClose">
  334. <view class="spu-popup">
  335. <view class="popup-good">
  336. <view class="left">
  337. <image :src="currentSku.url" mode="aspectFill"></image>
  338. <view class="spu-price">
  339. ¥
  340. <text>{{ currentSku.price }}</text>
  341. </view>
  342. <view class="spu-price-old">¥{{ currentSku.price }}</view>
  343. </view>
  344. <image src="https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-close.png" mode="aspectFill"
  345. class="sku-close" @tap="onSkuClose"></image>
  346. </view>
  347. <scroll-view :scroll-y="true" class="sku-list-block">
  348. <view class="spu-title">选择品类</view>
  349. <view style="padding-bottom: 20rpx">
  350. <view :class="'sku-item ' + (activeSku == item.id ? 'active-sku' : '')" :data-index="index"
  351. :data-id="item.id" @tap="selectSku" v-for="(item, index) in productList" :key="index">
  352. <view>
  353. {{ item.specifications }}
  354. </view>
  355. </view>
  356. </view>
  357. </scroll-view>
  358. <view class="sku-btn" @tap="confSku">确认</view>
  359. </view>
  360. </van-popup>
  361. </view>
  362. </template>
  363. <script>
  364. var app = getApp();
  365. var WxParse = require('../../lib/wxParse/wxParse.vue');
  366. var util = require('../../utils/util.js');
  367. var api = require('../../config/api.js');
  368. var user = require('../../utils/user.js');
  369. export default {
  370. data() {
  371. return {
  372. goodsCommentCount: '',
  373. supplyEvent: {},
  374. plusNum: '0',
  375. chooseSkuVisible: false,
  376. activeSku: 0,
  377. countSalesNumber: '',
  378. recGoodsList: [],
  379. goodsComment: [],
  380. goodsBuyTime: {},
  381. buyToastShow: false,
  382. checkedSku: {
  383. specifications: [''],
  384. id: '',
  385. retailPrice: '',
  386. counterPrice: '',
  387. price: '',
  388. isSupportAddbuy: '',
  389. unitPrice: '',
  390. unitMaximum: '',
  391. unitArea: '',
  392. type: 0
  393. },
  394. currentSku: {
  395. specifications: [''],
  396. id: '',
  397. retailPrice: '',
  398. counterPrice: '',
  399. price: '',
  400. url: ''
  401. },
  402. recGoodsNum: '',
  403. selfPayCheck: false,
  404. spreadPayShow: false,
  405. spreadPayChecked: false,
  406. canShare: false,
  407. id: 0,
  408. goods: {
  409. isNew: '',
  410. gallery: [],
  411. name: '',
  412. brief: '',
  413. productType: 0,
  414. unitPrice: '',
  415. unitArea: '',
  416. picUrl: ''
  417. },
  418. groupon: [],
  419. //该商品支持的团购规格
  420. grouponLink: {},
  421. //参与的团购
  422. attribute: [],
  423. issueList: [],
  424. comment: [],
  425. //brand: {},
  426. specificationList: [],
  427. productList: [],
  428. relatedGoods: [],
  429. cartGoodsCount: 0,
  430. userHasCollect: 0,
  431. number: 1,
  432. checkedSpecText: '规格数量选择',
  433. tmpSpecText: '请选择规格数量',
  434. checkedSpecPrice: 0,
  435. openAttr: false,
  436. openShare: false,
  437. collect: false,
  438. shareImage: '',
  439. isGroupon: false,
  440. //标识是否是一个参团购买
  441. soldout: false,
  442. canWrite: false,
  443. //用户是否获取了保存相册的权限
  444. name_height: 58,
  445. //根据名称长度 设置高度
  446. userInfo: {},
  447. hasLogin: false,
  448. shareId: 0,
  449. //options传递过来的参数 表示是打开哪个分享
  450. wxShareId: 0,
  451. //如果要分享此商品的分享id
  452. addressInfo: {},
  453. rId: 0,
  454. //分享人id,
  455. selfDiscount: 0,
  456. spreadDiscount: 0,
  457. referee: {
  458. self: 0,
  459. share: 0
  460. },
  461. myqr_show: false,
  462. //我的分享二维码
  463. myqr_url: null,
  464. //分享海报及推广语言
  465. myqr_ads: '',
  466. myqr_blur: 100,
  467. //背景模糊值
  468. myqr_bottom_btn: 'fixed',
  469. //底部功能按钮
  470. fraId: '',
  471. //加盟商id
  472. addPurchaseAmount: 0,
  473. addPurchase: [],
  474. serviceId: '',
  475. bookDetail: {},
  476. minNum: 0,
  477. qid: '',
  478. //加盟商服务商品的复购id
  479. //商城后台 商品渠道二维码过来的
  480. channelId: '',
  481. selfPayChecked: '',
  482. totalPrice: '',
  483. activited: '',
  484. article_goodsDetail: '',
  485. vitem: {
  486. checked: false,
  487. id: '',
  488. specification: '',
  489. value: '',
  490. discount: '',
  491. discountMember: ''
  492. },
  493. showCurrentStore: false,
  494. lng: '',
  495. lat: ''
  496. };
  497. }, // 页面分享
  498. onShareAppMessage: function() {
  499. let that = this;
  500. if (!app.globalData.hasLogin) {
  501. uni.navigateTo({
  502. url: '/pages/auth/login/login'
  503. });
  504. return;
  505. }
  506. //获取分享id 用来追踪链接
  507. //引荐人和非引荐人的 链接不同
  508. let fraId = uni.getStorageSync('fraId');
  509. let imgUrl = that.goods.shareWxUrl ? that.goods.shareWxUrl : that.goods.gallery[0];
  510. var path = '/pages/goods/goods?id=' + that.id + '&rId=' + that.userInfo.id;
  511. if (that.userInfo.isDis) {
  512. //是引荐人
  513. path = '/pages/goods/goods?id=' + that.id + '&shareId=' + that.wxShareId;
  514. }
  515. if (fraId) {
  516. path = path + '&fraId=' + fraId;
  517. }
  518. this.hidePoster();
  519. return {
  520. title: that.goods.name + '\n' + that.myqr_ads,
  521. path: path,
  522. imageUrl: imgUrl
  523. };
  524. },
  525. onLoad: function(options) {
  526. console.log(options);
  527. // if (app.globalData.hasLogin) {
  528. // let userInfo = wx.getStorageSync('userInfo');
  529. // app.globalData.userInfo=userInfo;
  530. // this.setData({
  531. // userInfo: userInfo,
  532. // hasLogin: true
  533. // });
  534. // }
  535. var scene = decodeURIComponent(options.scene);
  536. console.log(scene);
  537. let sceneStr = scene.split(';');
  538. if (scene.indexOf('fra') >= 0) {
  539. this.setData({
  540. id: sceneStr[0].split(',')[1],
  541. serviceId: sceneStr[1].split(',')[1]
  542. });
  543. uni.setStorageSync('fraId', sceneStr[2].split(',')[1]);
  544. }
  545. //如果是id,XXX;chId,XXX表示从商城后台生成的商品渠道二维码过来的;
  546. if (scene.indexOf('chId') >= 0) {
  547. this.setData({
  548. id: sceneStr[0].split(',')[1],
  549. channelId: sceneStr[1].split(',')[1]
  550. });
  551. uni.setStorageSync('channelId', this.channelId);
  552. }
  553. //从加盟商商品复购码进入qid,123,456,789 qid 123=分享码id 456是商品id 789加盟商id
  554. if (scene.indexOf('qid') >= 0) {
  555. let datas = scene.split(',');
  556. this.setData({
  557. qid: datas[1],
  558. id: datas[2],
  559. fraId: datas[3]
  560. });
  561. console.info(this.qid);
  562. console.info(this.id);
  563. console.info(this.fraId);
  564. uni.setStorageSync('fraId', this.fraId);
  565. }
  566. // 页面初始化 options为页面跳转所带来的参数
  567. var addressInfo = uni.getStorageSync('addressInfo');
  568. if (addressInfo) {
  569. this.setData({
  570. addressInfo: addressInfo
  571. });
  572. }
  573. if (options.rId) {
  574. this.setData({
  575. rId: parseInt(options.rId)
  576. });
  577. }
  578. if (options.shareId) {
  579. this.setData({
  580. shareId: parseInt(options.shareId)
  581. });
  582. }
  583. if (options.id) {
  584. this.setData({
  585. id: parseInt(options.id)
  586. });
  587. }
  588. if (options.fraId) {
  589. uni.setStorageSync('fraId', options.fraId);
  590. }
  591. //加载客户详情
  592. this.getGoodsInfo();
  593. },
  594. onShow: function() {
  595. // 页面显示
  596. if (app.globalData.hasLogin) {
  597. let userInfo = uni.getStorageSync('userInfo');
  598. app.globalData.userInfo = userInfo;
  599. this.setData({
  600. userInfo: userInfo,
  601. hasLogin: true
  602. });
  603. }
  604. // this.getReferee();
  605. // 已登陆并且是引荐人展示自购推广
  606. if (this.hasLogin && this.userInfo.isDis) {
  607. // this.setData({
  608. // selfDiscount:0,
  609. // spreadDiscount:0,
  610. // })
  611. }
  612. },
  613. onHide: function() {
  614. // 页面隐藏
  615. },
  616. onUnload: function() {
  617. // 页面关闭
  618. this.setData({
  619. showCurrentStore: false
  620. })
  621. },
  622. onReady: function() {
  623. // 页面渲染完成
  624. },
  625. methods: {
  626. goCustomerService() {
  627. //跳转微信客服
  628. console.info('goCustomerService');
  629. uni.openCustomerServiceChat({
  630. extInfo: {
  631. url: 'https://work.weixin.qq.com/kfid/kfc1fcfae84340d5125'
  632. },
  633. corpId: 'ww034f0b524f8ead00',
  634. success(res) {},
  635. fail(res) {
  636. console.info(res);
  637. }
  638. });
  639. },
  640. shareFriendOrCircle: function() {
  641. if (!app.globalData.hasLogin) {
  642. uni.navigateTo({
  643. url: '/pages/auth/login/login'
  644. });
  645. return;
  646. }
  647. //分享 弹出图片
  648. let that = this;
  649. uni.removeStorageSync(String(that.goods.id));
  650. //取出本地缓存中的分享图
  651. // let sUrl=wx.getStorageSync(String(that.data.goods.id));
  652. // if(sUrl!=null&&sUrl!=""){//获取过的分享图 不需要再次获取
  653. // that.setData({
  654. // myqr_url:sUrl,
  655. // myqr_show:true,
  656. // myqr_blur:5
  657. // });
  658. // return;
  659. // }
  660. uni.showLoading({
  661. title: '生成中'
  662. });
  663. util.request(api.QrGoodsCodeCreate, {
  664. goodsId: that.goods.id
  665. }).then(function(res) {
  666. uni.hideLoading();
  667. if (res.errno == 0) {
  668. that.setData({
  669. myqr_url: res.data.imgUrl,
  670. myqr_show: true,
  671. myqr_blur: 5
  672. });
  673. //保存分享图url到本地缓存
  674. // wx.setStorageSync(String(that.data.goods.id),res.data.imgUrl);
  675. } else if (res.errno == 501) {
  676. uni.navigateTo({
  677. url: '/pages/auth/login/login'
  678. });
  679. } else {
  680. uni.showToast({
  681. title: res.errmsg,
  682. duration: 5000
  683. });
  684. }
  685. });
  686. //var that = this;
  687. /*if (this.data.openShare === false) {
  688. this.setData({
  689. openShare: !this.data.openShare
  690. });
  691. } else {
  692. return false;
  693. }*/
  694. },
  695. handleSetting: function(e) {
  696. var that = this;
  697. // console.log(e)
  698. if (!e.detail.authSetting['scope.writePhotosAlbum']) {
  699. uni.showModal({
  700. title: '警告',
  701. content: '不授权无法保存',
  702. showCancel: false
  703. });
  704. that.setData({
  705. canWrite: false
  706. });
  707. } else {
  708. uni.showToast({
  709. title: '保存成功'
  710. });
  711. that.setData({
  712. canWrite: true
  713. });
  714. }
  715. },
  716. // 保存分享图
  717. saveShare: function() {
  718. let that = this;
  719. uni.showLoading({
  720. title: '图片保存中'
  721. });
  722. console.log(that);
  723. uni.downloadFile({
  724. url: that.myqr_url,
  725. success: function(res) {
  726. console.log(res);
  727. uni.saveImageToPhotosAlbum({
  728. filePath: res.tempFilePath,
  729. success: function(res) {
  730. uni.hideLoading();
  731. uni.showModal({
  732. title: '存图成功',
  733. content: '图片成功保存到相册了,可以分享到朋友圈了',
  734. showCancel: false,
  735. confirmText: '好的',
  736. confirmColor: '#d77958',
  737. success: function(res) {
  738. if (res.confirm) {
  739. console.log('用户点击确定');
  740. that.setData({
  741. myqr_show: false,
  742. myqr_blur: 0
  743. });
  744. }
  745. }
  746. });
  747. },
  748. fail: function(res) {
  749. uni.hideLoading();
  750. uni.showModal({
  751. title: '警告',
  752. content: '不授权无法保存',
  753. showCancel: false
  754. });
  755. that.setData({
  756. myqr_show: false,
  757. myqr_blur: 0
  758. });
  759. }
  760. });
  761. },
  762. fail: function(res) {
  763. uni.hideLoading();
  764. console.log(res);
  765. }
  766. });
  767. },
  768. //从分享的团购进入
  769. getGrouponInfo: function(grouponId) {
  770. let that = this;
  771. util.request(api.GroupOnJoin, {
  772. grouponId: grouponId
  773. }).then(function(res) {
  774. if (res.errno === 0) {
  775. that.setData({
  776. grouponLink: res.data.groupon,
  777. id: res.data.goods.id
  778. });
  779. //获取商品详情
  780. that.getGoodsInfo();
  781. }
  782. });
  783. },
  784. getReferee: function() {
  785. let that = this;
  786. util.request(api.GoodsDetail, {
  787. id: that.id,
  788. rId: that.rId
  789. }).then((res) => {
  790. if (res.errno === 0) {
  791. if (res.data.referee.self != null && res.data.referee.self > 0) {
  792. res.data.referee.self = res.data.referee.self.toFixed(2);
  793. res.data.referee.share = res.data.referee.share.toFixed(2);
  794. }
  795. that.setData({
  796. referee: res.data.referee
  797. });
  798. console.info(res.data.referee);
  799. if (JSON.stringify(res.data.referee) == '{}') {
  800. that.setData({
  801. referee: {
  802. self: 0,
  803. share: 0,
  804. isReferee: false
  805. }
  806. });
  807. }
  808. //是引荐人 更新userinfo数据(因为如果后台将客户标记为引荐人 此userinfo是取缓存数据 不会更新状态)
  809. if (that.referee != null && that.referee.isReferee) {
  810. let userInfo = that.userInfo;
  811. userInfo.isDis = true;
  812. that.setData({
  813. userInfo: userInfo
  814. });
  815. uni.setStorageSync('userInfo', userInfo);
  816. }
  817. }
  818. });
  819. },
  820. // 获取商品信息
  821. getGoodsInfo: function() {
  822. console.info('1-》getGoodsInfo start');
  823. let that = this;
  824. let params = {
  825. id: that.id,
  826. rId: that.rId,
  827. qid: that.qid
  828. };
  829. if (this.serviceId) {
  830. params = {
  831. id: that.id,
  832. rId: that.rId,
  833. serviceId: that.serviceId
  834. };
  835. }
  836. util.request(api.GoodsDetail, params).then(function(res) {
  837. console.info('2-》getGoodsInfo end');
  838. console.info(res);
  839. if (res.errno === 0) {
  840. let _specificationList = res.data.specificationList;
  841. // 如果仅仅存在一种货品,那么商品页面初始化时默认checked
  842. if (_specificationList.length == 1) {
  843. if (_specificationList[0].valueList.length == 1) {
  844. _specificationList[0].valueList[0].checked = true;
  845. console.info(res.data.info);
  846. // 如果仅仅存在一种货品,那么商品价格应该和货品价格一致
  847. // 这里检测一下
  848. let _productPrice = res.data.productList[0].price;
  849. let _goodsPrice = res.data.info.retailPrice;
  850. if (_productPrice != _goodsPrice) {
  851. console.error('商品数量价格和货品不一致');
  852. }
  853. that.setData({
  854. checkedSpecText: _specificationList[0].valueList[0].value,
  855. tmpSpecText: '已选择:' + _specificationList[0].valueList[0].value
  856. });
  857. }
  858. }
  859. console.info('3-》getGoodsInfo count end');
  860. //设置显示名称的控件高度
  861. let height = 56;
  862. if ((res.data.info.name.length > 17) & (res.data.info.name.length < 36)) height = 76;
  863. else if (res.data.info.name.length >= 36) {
  864. height = 116;
  865. }
  866. // console.info(res.data.share);
  867. let goodsComment = res.data.goodsComment;
  868. let list = [];
  869. goodsComment.forEach((item) => {
  870. let obj = item;
  871. if (item.commentImgs) {
  872. let img = item.commentImgs.split(',');
  873. if (img.length >= 1) {
  874. obj.commentImg = img[0];
  875. } else {
  876. obj.commentImg = '';
  877. }
  878. }
  879. list.push(obj);
  880. });
  881. let checkedSku = res.data.productList[0];
  882. // if (res.data.info.type == 4) {
  883. // that.setData({
  884. // plusNum: 1,
  885. // minNum: 1
  886. // })
  887. // }
  888. if (res.data.info.gallery != null && res.data.info.gallery != '') {
  889. res.data.info.gallery = res.data.info.gallery.split(',');
  890. }
  891. that.setData({
  892. goodsCommentCount: res.data.goodsCommentCount,
  893. goods: res.data.info,
  894. // attribute: res.data.attribute,
  895. // issueList: res.data.issue,
  896. // comment: res.data.comment,
  897. //brand: res.data.brand,
  898. specificationList: res.data.specificationList,
  899. productList: res.data.productList,
  900. //productList: res.data.info.products,
  901. userHasCollect: res.data.userHasCollect,
  902. shareImage: res.data.shareImage,
  903. checkedSpecPrice: res.data.info.retailPrice,
  904. // canShare: res.data.share,
  905. name_height: height,
  906. wxShareId: res.data.shareId,
  907. countSalesNumber: res.data.countSalesNumber,
  908. recGoodsList: res.data.recGoodsList,
  909. recGoodsNum: res.data.recGoodsList.length,
  910. goodsComment: list,
  911. goodsBuyTime: res.data.goodsBuyTime,
  912. checkedSku: checkedSku,
  913. currentSku: checkedSku,
  914. buyToastShow: true,
  915. // plusNum:res.data.info.type==4?1:0
  916. // bookDetail: res.data.bookDetail
  917. });
  918. console.log("这是我的打印",res.data.bookDetail);
  919. // setTimeout(()=>{
  920. // that.setData({
  921. // buyToastShow:true
  922. // })
  923. // },500);
  924. // setTimeout(()=>{
  925. // that.setData({
  926. // buyToastShow:false
  927. // })
  928. // },3500);
  929. if (res.data.userHasCollect == 1) {
  930. that.setData({
  931. collect: true
  932. });
  933. } else {
  934. that.setData({
  935. collect: false
  936. });
  937. }
  938. that.article_goodsDetail = that.escape2Html(res.data.info.detail);
  939. //获取推荐商品
  940. // that.getGoodsRelated();
  941. }
  942. });
  943. },
  944. // 获取推荐商品
  945. getGoodsRelated: function() {
  946. let that = this;
  947. util.request(api.GoodsRelated, {
  948. id: that.id,
  949. shopId: this.addressInfo.shopId
  950. }).then(function(res) {
  951. if (res.errno === 0) {
  952. that.setData({
  953. relatedGoods: res.data.list
  954. });
  955. }
  956. });
  957. },
  958. // 团购选择
  959. clickGroupon: function(event) {
  960. let that = this;
  961. //参与团购,不可更改选择
  962. if (that.isGroupon) {
  963. return;
  964. }
  965. let specName = event.currentTarget.dataset.name;
  966. let specValueId = event.currentTarget.dataset.valueId;
  967. let _grouponList = this.groupon;
  968. for (let i = 0; i < _grouponList.length; i++) {
  969. if (_grouponList[i].id == specValueId) {
  970. if (_grouponList[i].checked) {
  971. _grouponList[i].checked = false;
  972. } else {
  973. _grouponList[i].checked = true;
  974. }
  975. } else {
  976. _grouponList[i].checked = false;
  977. }
  978. }
  979. this.setData({
  980. groupon: _grouponList
  981. });
  982. },
  983. // 规格选择
  984. clickSkuValue: function(event) {
  985. let that = this;
  986. let specName = event.currentTarget.dataset.name;
  987. let specValueId = event.currentTarget.dataset.valueId;
  988. //判断是否可以点击
  989. //TODO 性能优化,可在wx:for中添加index,可以直接获取点击的属性名和属性值,不用循环
  990. let _specificationList = this.specificationList;
  991. for (let i = 0; i < _specificationList.length; i++) {
  992. if (_specificationList[i].name === specName) {
  993. for (let j = 0; j < _specificationList[i].valueList.length; j++) {
  994. if (_specificationList[i].valueList[j].id == specValueId) {
  995. //如果已经选中,则反选
  996. if (_specificationList[i].valueList[j].checked) {
  997. _specificationList[i].valueList[j].checked = false;
  998. } else {
  999. _specificationList[i].valueList[j].checked = true;
  1000. }
  1001. } else {
  1002. _specificationList[i].valueList[j].checked = false;
  1003. }
  1004. }
  1005. }
  1006. }
  1007. this.setData({
  1008. specificationList: _specificationList
  1009. });
  1010. //重新计算spec改变后的信息
  1011. this.changeSpecInfo();
  1012. //重新计算哪些值不可以点击
  1013. },
  1014. //获取选中的团购信息
  1015. getCheckedGrouponValue: function() {
  1016. let checkedValues = {};
  1017. let _grouponList = this.groupon;
  1018. for (let i = 0; i < _grouponList.length; i++) {
  1019. if (_grouponList[i].checked) {
  1020. checkedValues = _grouponList[i];
  1021. }
  1022. }
  1023. return checkedValues;
  1024. },
  1025. //获取选中的规格信息
  1026. getCheckedSpecValue: function() {
  1027. let checkedValues = [];
  1028. let _specificationList = this.specificationList;
  1029. for (let i = 0; i < _specificationList.length; i++) {
  1030. let _checkedObj = {
  1031. name: _specificationList[i].name,
  1032. valueId: 0,
  1033. valueText: ''
  1034. };
  1035. for (let j = 0; j < _specificationList[i].valueList.length; j++) {
  1036. if (_specificationList[i].valueList[j].checked) {
  1037. _checkedObj.valueId = _specificationList[i].valueList[j].id;
  1038. _checkedObj.valueText = _specificationList[i].valueList[j].value;
  1039. }
  1040. }
  1041. checkedValues.push(_checkedObj);
  1042. }
  1043. return checkedValues;
  1044. },
  1045. //判断规格是否选择完整
  1046. isCheckedAllSpec: function() {
  1047. return !this.getCheckedSpecValue().some(function(v) {
  1048. if (v.valueId == 0) {
  1049. return true;
  1050. }
  1051. });
  1052. },
  1053. getCheckedSpecKey: function() {
  1054. let checkedValue = this.getCheckedSpecValue().map(function(v) {
  1055. return v.valueText;
  1056. });
  1057. return checkedValue;
  1058. },
  1059. // 规格改变时,重新计算价格及显示信息
  1060. changeSpecInfo: function() {
  1061. let checkedNameValue = this.getCheckedSpecValue();
  1062. //设置选择的信息
  1063. let checkedValue = checkedNameValue
  1064. .filter(function(v) {
  1065. if (v.valueId != 0) {
  1066. return true;
  1067. } else {
  1068. return false;
  1069. }
  1070. })
  1071. .map(function(v) {
  1072. return v.valueText;
  1073. });
  1074. if (checkedValue.length > 0) {
  1075. this.setData({
  1076. tmpSpecText: checkedValue.join(' ')
  1077. });
  1078. } else {
  1079. this.setData({
  1080. tmpSpecText: '请选择规格数量'
  1081. });
  1082. }
  1083. if (this.isCheckedAllSpec()) {
  1084. this.setData({
  1085. checkedSpecText: this.tmpSpecText
  1086. });
  1087. // 规格所对应的货品选择以后
  1088. let checkedProductArray = this.getCheckedProductItem(this.getCheckedSpecKey());
  1089. if (!checkedProductArray || checkedProductArray.length <= 0) {
  1090. this.setData({
  1091. soldout: true
  1092. });
  1093. console.error('规格所对应货品不存在');
  1094. return;
  1095. }
  1096. let checkedProduct = checkedProductArray[0];
  1097. if (checkedProduct.number > 0) {
  1098. this.setData({
  1099. checkedSpecPrice: checkedProduct.price,
  1100. soldout: false
  1101. });
  1102. } else {
  1103. this.setData({
  1104. checkedSpecPrice: this.goods.retailPrice,
  1105. soldout: true
  1106. });
  1107. }
  1108. } else {
  1109. this.setData({
  1110. checkedSpecText: '规格数量选择',
  1111. checkedSpecPrice: this.goods.retailPrice,
  1112. soldout: false
  1113. });
  1114. }
  1115. },
  1116. // 获取选中的产品(根据规格)
  1117. getCheckedProductItem: function(key) {
  1118. return this.productList.filter(function(v) {
  1119. if (v.specifications.toString() == key.toString()) {
  1120. return true;
  1121. } else {
  1122. return false;
  1123. }
  1124. });
  1125. },
  1126. //添加或是取消收藏
  1127. addCollectOrNot: function() {
  1128. let that = this;
  1129. util.request(
  1130. api.CollectAddOrDelete, {
  1131. type: 0,
  1132. valueId: this.id
  1133. },
  1134. 'POST'
  1135. ).then(function(res) {
  1136. if (that.userHasCollect == 1) {
  1137. that.setData({
  1138. collect: false,
  1139. userHasCollect: 0
  1140. });
  1141. } else {
  1142. that.setData({
  1143. collect: true,
  1144. userHasCollect: 1
  1145. });
  1146. }
  1147. });
  1148. },
  1149. //立即购买(先自动加入购物车)appType=0:先买后约 appType=1:立即预约
  1150. addFast: function(event) {
  1151. let appType = event.currentTarget.dataset.type;
  1152. var that = this;
  1153. // 如果是安心包只能购买一个
  1154. console.log(this.goods);
  1155. // 如果是中介类,跳转到信息收集页面
  1156. // if (this.data.goods.type == 2) { //20230710屏蔽
  1157. // app.globalData.infoGoods = {
  1158. // name: this.data.goods.name,
  1159. // brief: this.data.goods.brief,
  1160. // picUrl: this.data.goods.picUrl,
  1161. // type: this.data.goods.type
  1162. // };
  1163. // wx.navigateTo({
  1164. // url: '/pages/goods/infoCollect/infoCollect'
  1165. // });
  1166. // return false;
  1167. // }
  1168. // if (this.data.openAttr == false) {
  1169. // //打开规格选择窗口
  1170. // this.setData({
  1171. // openAttr: !this.data.openAttr
  1172. // });
  1173. // } else {
  1174. //提示选择完整规格
  1175. // if (!this.isCheckedAllSpec()) {
  1176. // util.showErrorToast('请选择完整规格');
  1177. // return false;
  1178. // }
  1179. //根据选中的规格,判断是否有对应的sku信息
  1180. // let checkedProductArray = this.getCheckedProductItem(this.getCheckedSpecKey());
  1181. // if (!checkedProductArray || checkedProductArray.length <= 0) {
  1182. // //找不到对应的product信息,提示没有库存
  1183. // util.showErrorToast('没有库存');
  1184. // return false;
  1185. // }
  1186. // let checkedProduct = checkedProductArray[0];
  1187. //验证库存
  1188. // if (checkedProduct.number <= 0) {
  1189. // util.showErrorToast('没有库存');
  1190. // return false;
  1191. // }
  1192. //验证团购是否有效
  1193. let checkedGroupon = this.getCheckedGrouponValue();
  1194. //如果goodstype=4 补差类商品 加购直接加的是份数
  1195. //立即购买
  1196. util.request(
  1197. api.CartFastAdd, {
  1198. goodsId: this.goods.id,
  1199. number: this.number,
  1200. // productId: checkedProduct.id,
  1201. productId: this.checkedSku.id,
  1202. shareId: this.shareId,
  1203. unitIncreaseNumber: this.plusNum,
  1204. // bookDetailId: this.bookDetail.bookDetailId ? this.bookDetail.bookDetailId : null,
  1205. originalOrderId: this.bookDetail.originalOrderId ? this.bookDetail.originalOrderId : null,
  1206. qId: this.qid
  1207. },
  1208. 'POST'
  1209. ).then((res) => {
  1210. if (res.errno == 0) {
  1211. // 如果storage中设置了cartId,则是立即购买,否则是购物车购买
  1212. try {
  1213. uni.setStorageSync('cartId', res.data);
  1214. uni.setStorageSync('grouponRulesId', checkedGroupon.id);
  1215. uni.setStorageSync('grouponLinkId', that.grouponLink.id);
  1216. // 支付结果页面展示图片用
  1217. app.globalData.infoGoods = {
  1218. name: this.goods.name,
  1219. brief: this.goods.brief,
  1220. picUrl: this.goods.picUrl,
  1221. type: this.goods.type
  1222. };
  1223. //存储客户按钮选择的预约动作
  1224. uni.setStorageSync('appType', appType ? appType : '');
  1225. if (that.shareId > 0) {
  1226. uni.navigateTo({
  1227. url: '/pages/checkout/checkout?shareId=' + that.shareId
  1228. });
  1229. } else {
  1230. uni.navigateTo({
  1231. url: '/pages/checkout/checkout'
  1232. });
  1233. }
  1234. } catch (e) {
  1235. console.log('CatchClause', e);
  1236. console.log('CatchClause', e);
  1237. console.info(e);
  1238. }
  1239. } else {
  1240. uni.showToast({
  1241. title: res.errmsg,
  1242. icon: 'none',
  1243. duration: 3000
  1244. });
  1245. // util.showErrorToast(res.errmsg);
  1246. }
  1247. });
  1248. //}
  1249. },
  1250. //添加到购物车
  1251. addToCart: function() {
  1252. var that = this;
  1253. if (this.openAttr == false) {
  1254. //打开规格选择窗口
  1255. this.setData({
  1256. openAttr: !this.openAttr
  1257. });
  1258. } else {
  1259. //提示选择完整规格
  1260. if (!this.isCheckedAllSpec()) {
  1261. util.showErrorToast('请选择完整规格');
  1262. return false;
  1263. }
  1264. //根据选中的规格,判断是否有对应的sku信息
  1265. let checkedProductArray = this.getCheckedProductItem(this.getCheckedSpecKey());
  1266. // if (!checkedProductArray || checkedProductArray.length <= 0) {
  1267. // //找不到对应的product信息,提示没有库存
  1268. // util.showErrorToast('没有库存');
  1269. // return false;
  1270. // }
  1271. let checkedProduct = checkedProductArray[0];
  1272. //验证库存
  1273. // if (checkedProduct.number <= 0) {
  1274. // util.showErrorToast('没有库存');
  1275. // return false;
  1276. // }
  1277. //添加到购物车
  1278. util.request(
  1279. api.CartAdd, {
  1280. goodsId: this.goods.id,
  1281. number: this.number,
  1282. productId: checkedProduct.id
  1283. },
  1284. 'POST'
  1285. ).then(function(res) {
  1286. let _res = res;
  1287. if (_res.errno == 0) {
  1288. uni.showToast({
  1289. title: '添加成功'
  1290. });
  1291. that.setData({
  1292. openAttr: !that.openAttr,
  1293. cartGoodsCount: _res.data
  1294. });
  1295. //显示tab购物车缓存
  1296. //user.cartadd(that.data.number);
  1297. if (that.userHasCollect == 1) {
  1298. that.setData({
  1299. collect: true
  1300. });
  1301. } else {
  1302. that.setData({
  1303. collect: false
  1304. });
  1305. }
  1306. } else {
  1307. util.showErrorToast(_res.errmsg);
  1308. }
  1309. });
  1310. }
  1311. },
  1312. cutNumber: function() {
  1313. this.setData({
  1314. number: this.number - 1 > 1 ? this.number - 1 : 1
  1315. });
  1316. },
  1317. addNumber: function() {
  1318. // 如果是安心包只能购买一个
  1319. console.log(this.goods);
  1320. if (this.goods.goodsSn == '1036016') {
  1321. uni.showToast({
  1322. title: '此款商品只能购买一个',
  1323. icon: 'none',
  1324. duration: 2000
  1325. });
  1326. } else {
  1327. this.setData({
  1328. number: this.number + 1
  1329. });
  1330. }
  1331. },
  1332. switchAttrPop: function() {
  1333. if (this.openAttr == false) {
  1334. this.setData({
  1335. openAttr: !this.openAttr
  1336. });
  1337. }
  1338. },
  1339. closeAttr: function() {
  1340. this.setData({
  1341. openAttr: false
  1342. });
  1343. },
  1344. closeShare: function() {
  1345. this.setData({
  1346. openShare: false
  1347. });
  1348. },
  1349. openCartPage: function() {
  1350. uni.switchTab({
  1351. url: '/pages/tabBar/cart/cart'
  1352. });
  1353. },
  1354. qrtouchstart: function() {
  1355. this.setData({
  1356. myqr_blur: 100,
  1357. myqr_show: false
  1358. });
  1359. },
  1360. copyToHM() {
  1361. let copyLink = this.goods.copyLink;
  1362. console.log(copyLink);
  1363. if (copyLink != undefined && copyLink != '') {
  1364. uni.setClipboardData({
  1365. data: copyLink,
  1366. success(res) {
  1367. uni.getClipboardData({
  1368. success(res) {
  1369. console.log(res.data); // data
  1370. }
  1371. });
  1372. }
  1373. });
  1374. } else {
  1375. uni.showToast({
  1376. title: '该商品暂未配置盒马链接',
  1377. icon: 'none'
  1378. });
  1379. }
  1380. },
  1381. onSelfPayChange(e) {
  1382. console.log(e);
  1383. this.setData({
  1384. selfPayChecked: e.detail
  1385. });
  1386. },
  1387. onSpreadPayChange(e) {
  1388. console.log(e);
  1389. this.setData({
  1390. spreadPayChecked: e.detail
  1391. });
  1392. },
  1393. cancelSpreadPay() {
  1394. let spreadPayChecked = this.spreadPayChecked;
  1395. if (spreadPayChecked == true) {
  1396. uni.setStorageSync('spreadPayChecked', true);
  1397. }
  1398. this.setData({
  1399. spreadPayShow: false
  1400. });
  1401. },
  1402. goSpread() {
  1403. let spreadPayChecked = uni.getStorageSync('spreadPayChecked');
  1404. console.log(spreadPayChecked);
  1405. if (spreadPayChecked != true) {
  1406. this.setData({
  1407. spreadPayShow: true
  1408. });
  1409. } else {
  1410. // wx.navigateTo({
  1411. // url: '/pages/goods/goodsPoster/goodsPoster?goodsId='+this.data.goods.id,
  1412. // })
  1413. this.createPoster();
  1414. }
  1415. },
  1416. posterCopy() {
  1417. let that = this;
  1418. uni.setClipboardData({
  1419. data: that.myqr_ads,
  1420. success: function(res) {
  1421. uni.getClipboardData({
  1422. success: function(res) {
  1423. uni.showToast({
  1424. title: '文案复制成功',
  1425. icon: 'success',
  1426. duration: 2000
  1427. });
  1428. // that.hidePoster();
  1429. }
  1430. });
  1431. }
  1432. });
  1433. },
  1434. hidePoster() {
  1435. this.setData({
  1436. myqr_show: false,
  1437. myqr_blur: 100,
  1438. myqr_bottom_btn: 'fixed'
  1439. });
  1440. },
  1441. createPoster() {
  1442. uni.showLoading({
  1443. title: '生成中'
  1444. });
  1445. uni.pageScrollTo({
  1446. scrollTop: 0
  1447. });
  1448. if (this.myqr_url != null) {
  1449. uni.hideLoading();
  1450. this.setData({
  1451. myqr_show: true,
  1452. myqr_blur: 25,
  1453. myqr_bottom_btn: 'unset'
  1454. });
  1455. return;
  1456. }
  1457. util.request(api.QrGoodsCodeCreate, {
  1458. goodsId: this.goods.id
  1459. }).then((res) => {
  1460. uni.hideLoading();
  1461. if (res.errno == 0) {
  1462. this.setData({
  1463. myqr_url: res.data.imgUrl,
  1464. myqr_ads: res.data.ads,
  1465. myqr_show: true,
  1466. myqr_blur: 25,
  1467. myqr_bottom_btn: 'unset'
  1468. });
  1469. } else {
  1470. util.showErrorToast('未设置分享图');
  1471. }
  1472. });
  1473. },
  1474. goSaveQrcode: function() {
  1475. //保存二维码图片
  1476. let that = this;
  1477. console.info(that.myqr_url);
  1478. uni.downloadFile({
  1479. url: that.myqr_url,
  1480. success: function(res) {
  1481. if (res.statusCode === 200) {
  1482. let img = res.tempFilePath;
  1483. uni.saveImageToPhotosAlbum({
  1484. filePath: img,
  1485. success(res) {
  1486. that.goCloseMyqr('个人专属二维码图片已保存到您的相册');
  1487. },
  1488. fail(res) {
  1489. that.goCloseMyqr('网络或授权问题 图片保存失败 请重试');
  1490. }
  1491. });
  1492. } else {
  1493. that.goCloseMyqr('网络或授权问题 图片保存失败 请重试');
  1494. }
  1495. },
  1496. fail(res) {
  1497. that.goCloseMyqr('网络或授权问题 图片保存失败 请重试');
  1498. }
  1499. });
  1500. },
  1501. goCloseMyqr: function(msg) {
  1502. //关闭分享图片的弹层
  1503. this.hidePoster();
  1504. if (msg) {
  1505. uni.showToast({
  1506. title: msg,
  1507. icon: 'none',
  1508. duration: 3000
  1509. });
  1510. }
  1511. },
  1512. reSpread() {
  1513. let spreadPayChecked = this.spreadPayChecked;
  1514. if (spreadPayChecked == true) {
  1515. uni.setStorageSync('spreadPayChecked', true);
  1516. }
  1517. this.setData({
  1518. spreadPayShow: false
  1519. });
  1520. this.createPoster();
  1521. // wx.navigateTo({
  1522. // url: '/pages/goods/goodsPoster/goodsPoster?goodsId='+this.data.goods.id,
  1523. // })
  1524. },
  1525. goMemberCenter() {
  1526. if (!app.globalData.hasLogin) {
  1527. uni.navigateTo({
  1528. url: '/pages/auth/login/login'
  1529. });
  1530. return;
  1531. } else {
  1532. uni.navigateTo({
  1533. url: '/pages/member/memberCenter/memberCenter'
  1534. });
  1535. }
  1536. },
  1537. onSkuClose() {
  1538. this.setData({
  1539. chooseSkuVisible: false
  1540. });
  1541. },
  1542. showSkuPopup() {
  1543. this.setData({
  1544. chooseSkuVisible: true,
  1545. currentSku: this.checkedSku,
  1546. activeSku: this.checkedSku.id
  1547. });
  1548. },
  1549. selectSku(e) {
  1550. let id = e.currentTarget.dataset.id;
  1551. let index = e.currentTarget.dataset.index;
  1552. this.setData({
  1553. activeSku: id,
  1554. currentSku: this.productList[index]
  1555. });
  1556. },
  1557. confSku() {
  1558. this.setData({
  1559. checkedSku: this.currentSku,
  1560. chooseSkuVisible: false
  1561. });
  1562. },
  1563. goWholeEval() {
  1564. uni.navigateTo({
  1565. url: '/pages/goods/wholeEvaluation/wholeEvaluation?id=' + this.id
  1566. });
  1567. },
  1568. bindGoodsNumInput(e) {
  1569. let max = e.currentTarget.dataset.max;
  1570. let plusNum = parseInt(e.detail.value == '' ? '' : e.detail.value);
  1571. if (plusNum > max) {
  1572. plusNum = max;
  1573. }
  1574. this.addNumGoods(plusNum);
  1575. },
  1576. minusNum() {
  1577. if (this.plusNum && this.plusNum == this.minNum) {
  1578. return false;
  1579. } else {
  1580. console.info(this.plusNum);
  1581. if (this.plusNum !== this.minNum) {
  1582. let result = Number(this.plusNum) - 1;
  1583. this.addNumGoods(result);
  1584. }
  1585. }
  1586. },
  1587. addNum() {
  1588. //加购数量 默认1
  1589. if (this.checkedSku.unitMaximum && this.plusNum && this.plusNum >= this.checkedSku.unitMaximum) {
  1590. return false;
  1591. } else {
  1592. let plusNum = this.plusNum ? this.plusNum : 0;
  1593. this.addNumGoods(plusNum * 1 + 1);
  1594. }
  1595. },
  1596. addNumGoods(num) {
  1597. let result = num;
  1598. // console.info(this.data.goods.unitMaximum)
  1599. // console.info(this.data.productList)
  1600. // 加购类
  1601. if (this.checkedSku.isSupportAddbuy) {
  1602. let addPurchaseAmount = this.checkedSku.unitPrice * result;
  1603. console.log(result);
  1604. console.log(addPurchaseAmount);
  1605. this.setData({
  1606. plusNum: result,
  1607. addPurchaseAmount: addPurchaseAmount,
  1608. totalPrice: Number(this.checkedSku.price + addPurchaseAmount).toFixed(
  1609. 2) // - this.data.couponPrice
  1610. });
  1611. }
  1612. },
  1613. goIm() {
  1614. uni.navigateTo({
  1615. url: '/pages/im/im'
  1616. });
  1617. },
  1618. getCurrentLocation() {
  1619. uni.getLocation({
  1620. type: 'wgs84', // 返回可以用于uni.openLocation的经纬度
  1621. success: (res) => {
  1622. console.log('当前位置的经度:' + res.longitude);
  1623. console.log('当前位置的纬度:' + res.latitude);
  1624. this.setData({
  1625. showCurrentStore: true,
  1626. lng: res.longitude,
  1627. lat: res.latitude
  1628. })
  1629. },
  1630. fail: () => {
  1631. console.log('获取位置失败');
  1632. }
  1633. });
  1634. },
  1635. goServiceStore() {
  1636. uni.openLocation({
  1637. latitude: 31.21, // 纬度,范围为-90~90,负数表示南纬
  1638. longitude: 121.60, // 经度,范围为-180~180,负数表示西经
  1639. scale: 18, // 缩放比例
  1640. name: '鲸致生活(长泰广场店)', // 位置名称
  1641. address: '金科路2889号长泰广场F5层' // 详细地址
  1642. })
  1643. }
  1644. }
  1645. };
  1646. </script>
  1647. <style>
  1648. .myqr {
  1649. position: absolute;
  1650. z-index: 999;
  1651. width: 100%;
  1652. text-align: center;
  1653. height: auto;
  1654. margin-top: 50rpx;
  1655. }
  1656. .myqr .cancel {
  1657. width: 60rpx;
  1658. height: 60rpx;
  1659. margin-top: 30rpx;
  1660. margin-left: 480rpx;
  1661. }
  1662. .myqr .img {
  1663. width: 480rpx;
  1664. }
  1665. .myqr .btn {
  1666. width: 120rpx;
  1667. height: 120rpx;
  1668. line-height: 120rpx;
  1669. margin-top: 20rpx;
  1670. padding: 30rpx;
  1671. background: #ffffff;
  1672. border-radius: 60rpx;
  1673. }
  1674. .container {
  1675. /* margin-bottom: 100rpx; */
  1676. }
  1677. .user_column_item_image {
  1678. width: 50rpx;
  1679. height: 50rpx;
  1680. margin-right: 26rpx;
  1681. margin-top: 25rpx;
  1682. }
  1683. .flexb {
  1684. width: 750rpx;
  1685. height: 88rpx;
  1686. line-height: 103rpx;
  1687. padding-right: 31.25rpx;
  1688. border-bottom: 1px solid #f4f4f4;
  1689. font-size: 30rpx;
  1690. color: #333;
  1691. background: #fff;
  1692. display: flex;
  1693. flex-wrap: nowrap;
  1694. }
  1695. .flex {
  1696. flex-grow: 1;
  1697. text-align: center;
  1698. }
  1699. .show {
  1700. width: 750rpx;
  1701. height: 88rpx;
  1702. background: #fff;
  1703. border-bottom: 1px solid #f4f4f4;
  1704. }
  1705. .show .t {
  1706. float: left;
  1707. width: 600rpx;
  1708. height: 88rpx;
  1709. line-height: 88rpx;
  1710. font-size: 29rpx;
  1711. color: #333;
  1712. margin-left: 31.25rpx;
  1713. }
  1714. .show .t .s {
  1715. font-weight: 600;
  1716. }
  1717. .show .i {
  1718. float: right;
  1719. width: 52rpx;
  1720. height: 52rpx;
  1721. margin-right: 16rpx;
  1722. margin-top: 28rpx;
  1723. }
  1724. .mark-img {
  1725. width: 168rpx;
  1726. height: 68rpx;
  1727. right: 5rpx;
  1728. position: absolute;
  1729. top: 5rpx;
  1730. }
  1731. .goodsimgs {
  1732. width: 750rpx;
  1733. height: 492rpx;
  1734. }
  1735. .goodsimgs image {
  1736. width: 750rpx;
  1737. height: 492rpx;
  1738. }
  1739. .commodity_screen {
  1740. width: 100%;
  1741. height: 100%;
  1742. position: fixed;
  1743. top: 0;
  1744. left: 0;
  1745. background: #000;
  1746. opacity: 0.2;
  1747. overflow: hidden;
  1748. z-index: 1000;
  1749. color: #fff;
  1750. }
  1751. .commodity_attr_box {
  1752. width: 100%;
  1753. overflow: hidden;
  1754. position: fixed;
  1755. bottom: 0;
  1756. left: 0;
  1757. z-index: 2000;
  1758. background: #fff;
  1759. padding-top: 20rpx;
  1760. }
  1761. /* 活动样式 */
  1762. .activity {
  1763. width: 750rpx;
  1764. height: 145rpx;
  1765. background: linear-gradient(67deg, #4f43dd, #689cf2, #ba64e2);
  1766. display: flex;
  1767. flex-direction: column;
  1768. padding: 20rpx 30rpx;
  1769. margin-bottom: 12rpx;
  1770. }
  1771. .activity .img {
  1772. background-image: url('https://7a68-zhaijieshi-3guecm78383ca692-1307626841.tcb.qcloud.la/activity/activity.png');
  1773. width: 139rpx;
  1774. height: 32rpx;
  1775. background-size: 100% 100%;
  1776. color: #5244dd;
  1777. font-size: 23rpx;
  1778. text-align: center;
  1779. }
  1780. .activityDay {
  1781. line-height: 42rpx;
  1782. margin-right: 30rpx;
  1783. display: flex;
  1784. height: 42rpx;
  1785. }
  1786. .activityDay image {
  1787. width: 42rpx;
  1788. height: 42rpx;
  1789. margin-right: 10rpx;
  1790. }
  1791. .activityDay text {
  1792. font-size: 24rpx;
  1793. color: #f4f4f4;
  1794. }
  1795. .activityPrice {
  1796. color: #ffffff;
  1797. }
  1798. .activityPrice text {
  1799. font-size: 49rpx;
  1800. font-weight: bold;
  1801. }
  1802. .activityCounterPrice {
  1803. color: #c7c7c7;
  1804. text-decoration: line-through;
  1805. font-size: 24rpx;
  1806. margin-top: 20rpx;
  1807. margin-left: 10rpx;
  1808. }
  1809. .activityTime {
  1810. display: flex;
  1811. flex-direction: row;
  1812. margin-right: 50rpx;
  1813. }
  1814. .activityTime text {
  1815. color: #ffffff;
  1816. line-height: 45rpx;
  1817. }
  1818. .activityTime view {
  1819. width: 45rpx;
  1820. height: 45rpx;
  1821. background: #ffffff;
  1822. border-radius: 5rpx;
  1823. margin: 5rpx;
  1824. line-height: 45rpx;
  1825. text-align: center;
  1826. font-size: 25rpx;
  1827. font-weight: bold;
  1828. color: #b563e1;
  1829. }
  1830. .activityTime .mark {}
  1831. .goods-info {
  1832. width: 750rpx;
  1833. /*height: 306rpx;*/
  1834. overflow: hidden;
  1835. /* background: #fff; */
  1836. border-bottom: 1px solid #f4f4f4;
  1837. }
  1838. .goods-info .c {
  1839. display: block;
  1840. width: 702rpx;
  1841. padding-left: 3rpx;
  1842. margin: 20rpx auto;
  1843. border-radius: 20rpx;
  1844. }
  1845. .goods_name {
  1846. white-space: nowrap;
  1847. text-overflow: ellipsis;
  1848. overflow: hidden;
  1849. /* margin-top: 10rpx; */
  1850. display: flex;
  1851. align-items: center;
  1852. }
  1853. .goods_name_left {
  1854. font-weight: 550;
  1855. margin-left: 0rpx;
  1856. font-size: 36rpx;
  1857. letter-spacing: 1rpx;
  1858. color: #2a2a2a;
  1859. font-weight: bold;
  1860. width: 640rpx;
  1861. white-space: pre-wrap;
  1862. }
  1863. .goods_name .indent {
  1864. text-indent: -0.5rem;
  1865. }
  1866. .goods_name_right {
  1867. font-weight: 550;
  1868. /* top: 375px; */
  1869. width: 80rpx;
  1870. height: 80rpx;
  1871. line-height: 82rpx;
  1872. /* padding: 0;
  1873. margin: 0;
  1874. right: 10rpx; */
  1875. margin-right: 0rpx;
  1876. text-align: center;
  1877. font-size: 25rpx;
  1878. background-color: #d77958;
  1879. border-radius: 40rpx;
  1880. letter-spacing: 3rpx;
  1881. /* position: absolute; */
  1882. }
  1883. .goods_name_right .img {
  1884. width: 50rpx;
  1885. height: 50rpx;
  1886. margin-top: 15rpx;
  1887. }
  1888. .goods_name_right .txt {
  1889. margin-top: 5rpx;
  1890. font-size: 18rpx;
  1891. color: #000000;
  1892. border: 1rpx solid;
  1893. }
  1894. .goods-info .desc {
  1895. margin: 15rpx 10rpx;
  1896. font-size: 24rpx;
  1897. line-height: 36rpx;
  1898. width: 640rpx;
  1899. white-space: nowrap;
  1900. text-overflow: ellipsis;
  1901. overflow: hidden;
  1902. display: block;
  1903. }
  1904. .goods-info .desc1 {
  1905. margin: 15rpx 0rpx;
  1906. font-size: 24rpx;
  1907. line-height: 36rpx;
  1908. width: 640rpx;
  1909. white-space: nowrap;
  1910. text-overflow: ellipsis;
  1911. overflow: hidden;
  1912. display: block;
  1913. }
  1914. .goods-info .price {
  1915. height: 60rpx;
  1916. display: flex;
  1917. margin-bottom: 16rpx;
  1918. align-items: flex-end;
  1919. }
  1920. .goods-info .counterPrice {
  1921. padding-left: 5rpx;
  1922. text-decoration: line-through;
  1923. font-size: 24rpx;
  1924. margin-top: 15rpx;
  1925. margin-left: 10rpx;
  1926. /* color: #85868A; */
  1927. color: #999;
  1928. }
  1929. .goods-info .retailPrice {
  1930. height: 42rpx;
  1931. line-height: 44rpx;
  1932. color: #ff1643;
  1933. }
  1934. .goods-info view {
  1935. /* word-break: normal !important; */
  1936. overflow: hidden !important;
  1937. }
  1938. .goods-info .memberPrice {
  1939. font-size: 26rpx;
  1940. color: #dd483e;
  1941. margin: 0 10rpx 0 20rpx;
  1942. }
  1943. .member-price-tag {
  1944. width: 88rpx;
  1945. height: 26rpx;
  1946. line-height: 26rpx;
  1947. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/member/member-price-bg.png') no-repeat center center;
  1948. background-size: 100% 100%;
  1949. color: #5e3a11;
  1950. font-size: 16rpx;
  1951. padding: 0 8rpx 0 0;
  1952. text-align: right;
  1953. margin: 0 0 6rpx 0;
  1954. }
  1955. .member-price-tag.spread-tag {
  1956. margin-left: 20rpx;
  1957. background-image: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/member/spread-price-bg.png');
  1958. width: 122rpx;
  1959. }
  1960. .goods-info .retailPrice text.checked-price {
  1961. font-size: 42rpx;
  1962. font-weight: bold;
  1963. margin-left: 5rpx;
  1964. height: 42rpx;
  1965. line-height: 42rpx;
  1966. }
  1967. .goods-info .brand {
  1968. margin-top: 5rpx;
  1969. min-height: 34rpx;
  1970. text-align: left;
  1971. }
  1972. .goods-info .brand text {
  1973. display: inline-block;
  1974. width: auto;
  1975. padding: 2px 0rpx 2px 0.5rpx;
  1976. line-height: 32.5rpx;
  1977. /*border: 1px solid #f48f18;color: #f48f18;*/
  1978. font-size: 22rpx;
  1979. color: #a98f76;
  1980. /*border-radius: 4rpx;*/
  1981. background-size: 10.75rpx 18.75rpx;
  1982. }
  1983. .section-nav {
  1984. width: 750rpx;
  1985. height: 108rpx;
  1986. background: #fff;
  1987. margin-bottom: 20rpx;
  1988. }
  1989. .section-nav .t {
  1990. float: left;
  1991. width: 600rpx;
  1992. height: 108rpx;
  1993. line-height: 108rpx;
  1994. font-size: 29rpx;
  1995. color: #333;
  1996. margin-left: 31.25rpx;
  1997. }
  1998. .section-nav .i {
  1999. float: right;
  2000. width: 52rpx;
  2001. height: 52rpx;
  2002. margin-right: 16rpx;
  2003. margin-top: 28rpx;
  2004. }
  2005. .section-act .t {
  2006. float: left;
  2007. display: flex;
  2008. align-items: center;
  2009. width: 600rpx;
  2010. height: 108rpx;
  2011. overflow: hidden;
  2012. line-height: 108rpx;
  2013. font-size: 29rpx;
  2014. color: #999;
  2015. margin-left: 31.25rpx;
  2016. }
  2017. .section-act .label {
  2018. color: #999;
  2019. }
  2020. .section-act .tag {
  2021. display: flex;
  2022. align-items: center;
  2023. padding: 0 10rpx;
  2024. border-radius: 3px;
  2025. height: 37rpx;
  2026. width: auto;
  2027. color: #f48f18;
  2028. overflow: hidden;
  2029. border: 1px solid #f48f18;
  2030. font-size: 25rpx;
  2031. margin: 0 10rpx;
  2032. }
  2033. .section-act .text {
  2034. display: flex;
  2035. align-items: center;
  2036. height: 37rpx;
  2037. width: auto;
  2038. overflow: hidden;
  2039. color: #f48f18;
  2040. font-size: 29rpx;
  2041. }
  2042. .comments {
  2043. width: 100%;
  2044. height: auto;
  2045. padding-left: 30rpx;
  2046. background: #fff;
  2047. margin: 20rpx 0;
  2048. }
  2049. .comments .h {
  2050. height: 102.5rpx;
  2051. line-height: 100.5rpx;
  2052. width: 718.75rpx;
  2053. padding-right: 16rpx;
  2054. }
  2055. .comments .h .t {
  2056. display: block;
  2057. float: left;
  2058. width: 50%;
  2059. font-size: 30rpx;
  2060. color: #333;
  2061. }
  2062. .comments .h .i {
  2063. display: block;
  2064. float: right;
  2065. width: 164rpx;
  2066. height: 100.5rpx;
  2067. line-height: 100.5rpx;
  2068. background-size: 52rpx;
  2069. }
  2070. .comments .b {
  2071. height: auto;
  2072. width: 720rpx;
  2073. }
  2074. .comments .item {
  2075. height: auto;
  2076. width: 720rpx;
  2077. overflow: hidden;
  2078. border-top: 1px solid #d9d9d9;
  2079. }
  2080. .comments .info {
  2081. height: 127rpx;
  2082. width: 100%;
  2083. padding: 33rpx 0 27rpx 0;
  2084. }
  2085. .comments .user {
  2086. float: left;
  2087. width: auto;
  2088. height: 67rpx;
  2089. line-height: 67rpx;
  2090. font-size: 0;
  2091. }
  2092. .comments .user image {
  2093. float: left;
  2094. width: 67rpx;
  2095. height: 67rpx;
  2096. margin-right: 17rpx;
  2097. border-radius: 50%;
  2098. }
  2099. .comments .user text {
  2100. display: inline-block;
  2101. width: auto;
  2102. height: 66rpx;
  2103. overflow: hidden;
  2104. font-size: 29rpx;
  2105. line-height: 66rpx;
  2106. }
  2107. .comments .time {
  2108. display: block;
  2109. float: right;
  2110. width: auto;
  2111. height: 67rpx;
  2112. line-height: 67rpx;
  2113. color: #7f7f7f;
  2114. font-size: 25rpx;
  2115. margin-right: 30rpx;
  2116. }
  2117. .comments .content {
  2118. width: 720rpx;
  2119. padding-right: 30rpx;
  2120. line-height: 45.8rpx;
  2121. font-size: 29rpx;
  2122. margin-bottom: 24rpx;
  2123. }
  2124. .comments .imgs {
  2125. width: 720rpx;
  2126. height: auto;
  2127. margin-bottom: 25rpx;
  2128. }
  2129. .comments .imgs .img {
  2130. height: 150rpx;
  2131. width: 150rpx;
  2132. margin-right: 28rpx;
  2133. }
  2134. .comments .spec {
  2135. width: 720rpx;
  2136. padding-right: 30rpx;
  2137. line-height: 30rpx;
  2138. font-size: 24rpx;
  2139. color: #999;
  2140. margin-bottom: 30rpx;
  2141. }
  2142. .comments .customer-service {
  2143. width: 690rpx;
  2144. height: auto;
  2145. overflow: hidden;
  2146. margin-top: 23rpx;
  2147. margin-bottom: 23rpx;
  2148. background: rgba(0, 0, 0, 0.03);
  2149. padding: 21rpx;
  2150. }
  2151. .comments .customer-service .u {
  2152. font-size: 24rpx;
  2153. color: #333;
  2154. line-height: 37.5rpx;
  2155. }
  2156. .comments .customer-service .c {
  2157. font-size: 24rpx;
  2158. color: #999;
  2159. line-height: 37.5rpx;
  2160. }
  2161. .goods-attr {
  2162. width: 750rpx;
  2163. height: auto;
  2164. overflow: hidden;
  2165. padding: 0 31.25rpx 25rpx 31.25rpx;
  2166. background: #fff;
  2167. }
  2168. .goods-attr .t {
  2169. width: 687.5rpx;
  2170. height: 104rpx;
  2171. line-height: 104rpx;
  2172. font-size: 38.5rpx;
  2173. }
  2174. .goods-attr .item {
  2175. width: 687.5rpx;
  2176. height: 68rpx;
  2177. padding: 11rpx 20rpx;
  2178. margin-bottom: 11rpx;
  2179. background: #f7f7f7;
  2180. font-size: 38.5rpx;
  2181. }
  2182. .goods-attr .left {
  2183. float: left;
  2184. font-size: 25rpx;
  2185. width: 134rpx;
  2186. height: 45rpx;
  2187. line-height: 45rpx;
  2188. overflow: hidden;
  2189. color: #999;
  2190. }
  2191. .goods-attr .right {
  2192. float: left;
  2193. font-size: 36.5rpx;
  2194. margin-left: 20rpx;
  2195. width: 480rpx;
  2196. height: 45rpx;
  2197. line-height: 45rpx;
  2198. overflow: hidden;
  2199. color: #333;
  2200. }
  2201. .detail {
  2202. width: 750rpx;
  2203. height: auto;
  2204. overflow: hidden;
  2205. padding-bottom: 200rpx;
  2206. }
  2207. .detail image {
  2208. width: 750rpx;
  2209. display: block;
  2210. }
  2211. .common-problem {
  2212. width: 750rpx;
  2213. height: auto;
  2214. overflow: hidden;
  2215. }
  2216. .common-problem .h {
  2217. position: relative;
  2218. height: 145.5rpx;
  2219. width: 750rpx;
  2220. padding: 56.25rpx 0;
  2221. background: #fff;
  2222. text-align: center;
  2223. }
  2224. .common-problem .h .line {
  2225. display: inline-block;
  2226. position: absolute;
  2227. top: 72rpx;
  2228. left: 0;
  2229. z-index: 2;
  2230. height: 1px;
  2231. margin-left: 225rpx;
  2232. width: 300rpx;
  2233. background: #ccc;
  2234. }
  2235. .common-problem .h .title {
  2236. display: inline-block;
  2237. position: absolute;
  2238. top: 56.125rpx;
  2239. left: 0;
  2240. z-index: 3;
  2241. height: 33rpx;
  2242. margin-left: 285rpx;
  2243. width: 180rpx;
  2244. background: #fff;
  2245. }
  2246. .common-problem .b {
  2247. width: 750rpx;
  2248. height: auto;
  2249. overflow: hidden;
  2250. padding: 0rpx 30rpx;
  2251. background: #fff;
  2252. }
  2253. .common-problem .item {
  2254. height: auto;
  2255. overflow: hidden;
  2256. padding-bottom: 25rpx;
  2257. }
  2258. .common-problem .question-box .spot {
  2259. float: left;
  2260. display: block;
  2261. height: 8rpx;
  2262. width: 8rpx;
  2263. background: #b4282d;
  2264. border-radius: 50%;
  2265. margin-top: 11rpx;
  2266. }
  2267. .common-problem .question-box .question {
  2268. float: left;
  2269. line-height: 30rpx;
  2270. padding-left: 8rpx;
  2271. display: block;
  2272. font-size: 26rpx;
  2273. padding-bottom: 15rpx;
  2274. color: #303030;
  2275. }
  2276. .common-problem .answer {
  2277. line-height: 36rpx;
  2278. padding-left: 16rpx;
  2279. font-size: 26rpx;
  2280. color: #787878;
  2281. }
  2282. .related-goods {
  2283. width: 750rpx;
  2284. height: auto;
  2285. overflow: hidden;
  2286. padding-bottom: 80rpx;
  2287. }
  2288. .related-goods .h {
  2289. position: relative;
  2290. height: 145.5rpx;
  2291. width: 750rpx;
  2292. padding: 56.25rpx 0;
  2293. background: #fff;
  2294. text-align: center;
  2295. border-bottom: 1px solid #f4f4f4;
  2296. }
  2297. .related-goods .h .line {
  2298. display: inline-block;
  2299. position: absolute;
  2300. top: 72rpx;
  2301. left: 0;
  2302. z-index: 2;
  2303. height: 1px;
  2304. margin-left: 225rpx;
  2305. width: 300rpx;
  2306. background: #ccc;
  2307. }
  2308. .related-goods .h .title {
  2309. display: inline-block;
  2310. position: absolute;
  2311. top: 56.125rpx;
  2312. left: 0;
  2313. z-index: 3;
  2314. height: 33rpx;
  2315. margin-left: 285rpx;
  2316. width: 180rpx;
  2317. background: #fff;
  2318. }
  2319. .related-goods .b {
  2320. width: 750rpx;
  2321. height: auto;
  2322. overflow: hidden;
  2323. }
  2324. .related-goods .b .item {
  2325. float: left;
  2326. background: #fff;
  2327. width: 375rpx;
  2328. height: auto;
  2329. overflow: hidden;
  2330. text-align: center;
  2331. padding: 15rpx 31.25rpx;
  2332. border-right: 1px solid #f4f4f4;
  2333. border-bottom: 1px solid #f4f4f4;
  2334. }
  2335. .related-goods .item .img {
  2336. width: 311.45rpx;
  2337. height: 311.45rpx;
  2338. }
  2339. .related-goods .item .name {
  2340. display: block;
  2341. width: 311.45rpx;
  2342. height: 35rpx;
  2343. margin: 11.5rpx 0 15rpx 0;
  2344. text-align: center;
  2345. overflow: hidden;
  2346. font-size: 30rpx;
  2347. color: #333;
  2348. }
  2349. .related-goods .item .price {
  2350. display: block;
  2351. width: 311.45rpx;
  2352. height: 30rpx;
  2353. text-align: center;
  2354. font-size: 30rpx;
  2355. color: #b4282d;
  2356. }
  2357. .bottom-btn {
  2358. position: fixed;
  2359. left: 0rpx;
  2360. bottom: 0;
  2361. z-index: 10;
  2362. width: 750rpx;
  2363. height: 112rpx;
  2364. display: flex;
  2365. background: #fff;
  2366. padding-bottom: constant(safe-area-inset-bottom);
  2367. padding-bottom: env(safe-area-inset-bottom);
  2368. box-sizing: content-box;
  2369. font-size: 22rpx;
  2370. align-items: center;
  2371. justify-content: space-between;
  2372. }
  2373. .bottom-btn .l {
  2374. /* flex: 2;
  2375. float: left;
  2376. height: 150rpx;
  2377. width: 162rpx; */
  2378. /* display: flex; */
  2379. }
  2380. .bottom-btn .l.l-collect {
  2381. border-right: none;
  2382. border-left: none;
  2383. text-align: center;
  2384. padding-left: 30rpx;
  2385. /* width: 100rpx; */
  2386. }
  2387. .bottom-btn .l.l-collect .icon {
  2388. font-size: 40rpx;
  2389. }
  2390. .bottom-btn .l.l-collect text {
  2391. /* position: absolute;
  2392. top: 80rpx;
  2393. left: 30rpx;
  2394. font-size: 22rpx; */
  2395. }
  2396. .bottom-btn .l.l-kefu {
  2397. border-right: none;
  2398. border-left: none;
  2399. text-align: center;
  2400. /* width:60rpx; */
  2401. /* position: relative; */
  2402. }
  2403. .contact-block {
  2404. position: relative;
  2405. }
  2406. .bottom-btn .l.l-kefu .icon {
  2407. position: absolute;
  2408. font-size: 44rpx;
  2409. top: 20rpx;
  2410. }
  2411. .bottom-btn .l.l-kefu text {
  2412. /* position: absolute;
  2413. top: 60rpx;
  2414. font-size: 22rpx; */
  2415. }
  2416. .bottom-btn .l.l-cart .box {
  2417. position: relative;
  2418. height: 80rpx;
  2419. width: 70rpx;
  2420. }
  2421. .bottom-btn .l.l-cart .box .txt {
  2422. position: absolute;
  2423. top: 50rpx;
  2424. font-size: 22rpx;
  2425. }
  2426. .bottom-btn .l.l-cart .cart-count {
  2427. height: 28rpx;
  2428. width: 28rpx;
  2429. z-index: 10;
  2430. position: absolute;
  2431. top: 0;
  2432. right: 0;
  2433. background: #b4282d;
  2434. text-align: center;
  2435. font-size: 18rpx;
  2436. color: #fff;
  2437. line-height: 28rpx;
  2438. border-radius: 50%;
  2439. }
  2440. .bottom-btn .l.l-cart .icon {
  2441. position: absolute;
  2442. top: 10rpx;
  2443. left: 0;
  2444. font-size: 44rpx;
  2445. }
  2446. .collect-wrapper,
  2447. .service-wrapper {
  2448. display: flex;
  2449. flex-direction: column;
  2450. justify-content: center;
  2451. flex: 1;
  2452. }
  2453. .collect-text {
  2454. margin: 10rpx 0 0;
  2455. }
  2456. .bottom-btn .c {
  2457. width: 452rpx;
  2458. background: #d77958;
  2459. height: 82rpx;
  2460. font-size: 30rpx;
  2461. font-weight: bold;
  2462. color: #fff;
  2463. border-radius: 82rpx;
  2464. text-align: center;
  2465. line-height: 82rpx;
  2466. margin-right: 30rpx;
  2467. }
  2468. .dis-order-wrapper {
  2469. width: 452rpx;
  2470. background: #d77958;
  2471. height: 82rpx;
  2472. font-size: 22rpx;
  2473. color: #fff;
  2474. border-radius: 82rpx;
  2475. text-align: center;
  2476. margin-right: 30rpx;
  2477. display: flex;
  2478. align-items: center;
  2479. overflow: hidden;
  2480. }
  2481. .dis-order-wrapper>view {
  2482. flex: 1;
  2483. text-align: center;
  2484. height: 82rpx;
  2485. }
  2486. .spread-order {
  2487. background: #fff;
  2488. border-radius: 0 82rpx 82rpx 0;
  2489. border: 1rpx solid #d77958;
  2490. border-left: none;
  2491. line-height: 24rpx;
  2492. }
  2493. .buy-type {
  2494. font-size: 30rpx;
  2495. font-weight: bold;
  2496. line-height: 60rpx;
  2497. margin: 10rpx 0 4rpx 0;
  2498. overflow: hidden;
  2499. }
  2500. .bottom-btn .r {
  2501. background: #d77958;
  2502. float: left;
  2503. height: 100rpx;
  2504. flex: 2;
  2505. text-align: center;
  2506. color: #fff;
  2507. margin-left: 15rpx;
  2508. margin-top: 15rpx;
  2509. margin-bottom: 15rpx;
  2510. border-top-left-radius: 50rpx;
  2511. border-bottom-left-radius: 50rpx;
  2512. }
  2513. .bottom-btn .r .title {
  2514. font-size: 46rpx;
  2515. height: 56rpx;
  2516. color: #fff;
  2517. }
  2518. .bottom-btn .r .subtitle {
  2519. font-size: 28rpx;
  2520. color: #fff;
  2521. font-weight: 100;
  2522. }
  2523. .attr-pop-box {
  2524. width: 100%;
  2525. height: 100%;
  2526. position: fixed;
  2527. background: rgba(0, 0, 0, 0.5);
  2528. z-index: 8;
  2529. bottom: 0;
  2530. /* display: none; */
  2531. }
  2532. .attr-pop {
  2533. width: 100%;
  2534. height: auto;
  2535. max-height: 780rpx;
  2536. padding: 31.25rpx;
  2537. background: #fff;
  2538. position: fixed;
  2539. z-index: 9;
  2540. bottom: 100rpx;
  2541. }
  2542. .attr-pop .close {
  2543. position: absolute;
  2544. width: 48rpx;
  2545. height: 48rpx;
  2546. right: 31.25rpx;
  2547. overflow: hidden;
  2548. top: 31.25rpx;
  2549. }
  2550. .attr-pop .close .icon {
  2551. width: 48rpx;
  2552. height: 48rpx;
  2553. }
  2554. .attr-pop .img-info {
  2555. width: 687.5rpx;
  2556. height: 177rpx;
  2557. overflow: hidden;
  2558. margin-bottom: 41.5rpx;
  2559. }
  2560. .attr-pop .img {
  2561. float: left;
  2562. height: 177rpx;
  2563. width: 177rpx;
  2564. background: #f4f4f4;
  2565. margin-right: 31.25rpx;
  2566. }
  2567. .attr-pop .info {
  2568. float: left;
  2569. height: 177rpx;
  2570. display: flex;
  2571. align-items: center;
  2572. }
  2573. .attr-pop .p {
  2574. font-size: 33rpx;
  2575. color: #333;
  2576. height: 33rpx;
  2577. line-height: 33rpx;
  2578. margin-bottom: 10rpx;
  2579. }
  2580. .attr-pop .a {
  2581. font-size: 29rpx;
  2582. color: #333;
  2583. height: 40rpx;
  2584. line-height: 40rpx;
  2585. }
  2586. .spec-con {
  2587. width: 100%;
  2588. height: auto;
  2589. overflow: hidden;
  2590. }
  2591. .spec-con .name {
  2592. margin-bottom: 6rpx;
  2593. font-size: 29rpx;
  2594. color: #333;
  2595. }
  2596. .spec-con .values {
  2597. height: auto;
  2598. margin-bottom: 10rpx;
  2599. font-size: 0;
  2600. }
  2601. .spec-con .value {
  2602. display: inline-block;
  2603. height: 62rpx;
  2604. padding: 0 35rpx;
  2605. line-height: 56rpx;
  2606. text-align: center;
  2607. margin-right: 25rpx;
  2608. margin-bottom: 16.5rpx;
  2609. border: 1px solid #333;
  2610. font-size: 25rpx;
  2611. color: #333;
  2612. }
  2613. .spec-con .value.disable {
  2614. border: 1px solid #ccc;
  2615. color: #ccc;
  2616. }
  2617. .spec-con .value.selected {
  2618. border: 1px solid #b4282d;
  2619. color: #b4282d;
  2620. }
  2621. .number-item .selnum {
  2622. width: 200rpx;
  2623. /* width: 322rpx; */
  2624. height: 71rpx;
  2625. border: 1px solid #ccc;
  2626. display: flex;
  2627. }
  2628. .number-item .cut {
  2629. width: 93.75rpx;
  2630. height: 100%;
  2631. text-align: center;
  2632. line-height: 65rpx;
  2633. }
  2634. .number-item .number {
  2635. flex: 1;
  2636. height: 100%;
  2637. text-align: center;
  2638. line-height: 68.75rpx;
  2639. border-left: 1px solid #ccc;
  2640. border-right: 1px solid #ccc;
  2641. float: left;
  2642. }
  2643. .number-item .add {
  2644. width: 93.75rpx;
  2645. height: 100%;
  2646. text-align: center;
  2647. line-height: 65rpx;
  2648. }
  2649. .contact {
  2650. height: 100rpx;
  2651. width: 100rpx;
  2652. border-radius: 100%;
  2653. position: fixed;
  2654. bottom: 96rpx;
  2655. right: 10rpx;
  2656. font-size: 20rpx;
  2657. box-sizing: border-box;
  2658. background: url('../../static/images/arrow.png') no-repeat center 21rpx;
  2659. background-size: 55rpx auto;
  2660. }
  2661. .share-pop-box {
  2662. width: 100%;
  2663. height: 100%;
  2664. position: fixed;
  2665. background: rgba(0, 0, 0, 0.5);
  2666. z-index: 8;
  2667. bottom: 0;
  2668. /* display: none; */
  2669. }
  2670. .share-pop {
  2671. width: 100%;
  2672. height: auto;
  2673. max-height: 780rpx;
  2674. padding: 31.25rpx;
  2675. background: #fff;
  2676. position: fixed;
  2677. z-index: 9;
  2678. bottom: 100rpx;
  2679. }
  2680. .share-pop .close {
  2681. position: absolute;
  2682. width: 48rpx;
  2683. height: 48rpx;
  2684. right: 31.25rpx;
  2685. top: 31.25rpx;
  2686. }
  2687. .share-pop .close .icon {
  2688. width: 48rpx;
  2689. height: 48rpx;
  2690. }
  2691. .share-pop .share-info {
  2692. width: 100%;
  2693. height: 225rpx;
  2694. overflow: hidden;
  2695. margin-bottom: 41.5rpx;
  2696. }
  2697. .sharebtn {
  2698. top: 75rpx;
  2699. background: none !important;
  2700. font-size: 32rpx;
  2701. color: #fff !important;
  2702. border-radius: 0%;
  2703. width: 175rpx;
  2704. height: 150rpx;
  2705. text-align: center;
  2706. display: flex;
  2707. justify-content: center;
  2708. align-items: center;
  2709. flex-wrap: wrap;
  2710. float: left;
  2711. background: #fff;
  2712. border-bottom: 0px solid #fafafa;
  2713. margin-left: 15%;
  2714. }
  2715. .sharebtn::after {
  2716. border: none;
  2717. border-radius: 0%;
  2718. }
  2719. .savesharebtn {
  2720. top: 75rpx;
  2721. background: none !important;
  2722. font-size: 32rpx;
  2723. color: #fff !important;
  2724. border-radius: 0%;
  2725. width: 175rpx;
  2726. height: 150rpx;
  2727. text-align: center;
  2728. display: flex;
  2729. justify-content: center;
  2730. align-items: center;
  2731. flex-wrap: wrap;
  2732. float: right;
  2733. background: #fff;
  2734. border-bottom: 0px solid #fafafa;
  2735. margin-right: 15%;
  2736. }
  2737. .savesharebtn::after {
  2738. border: none;
  2739. border-radius: 0%;
  2740. }
  2741. .sharebtn_image {
  2742. /* border: 1px solid #757575; */
  2743. width: 128rpx;
  2744. height: 128rpx;
  2745. margin-top: 0rpx;
  2746. }
  2747. .sharebtn_text {
  2748. /* border: 1px solid #757575; */
  2749. width: 150rpx;
  2750. margin-bottom: 2rpx;
  2751. height: 20rpx;
  2752. line-height: 20rpx;
  2753. font-size: 20rpx;
  2754. color: #555;
  2755. }
  2756. .separate {
  2757. background: #e0e3da;
  2758. width: 100%;
  2759. height: 6rpx;
  2760. }
  2761. /* 新客角标 */
  2762. .isNew {
  2763. position: absolute;
  2764. width: 80rpx;
  2765. height: 120rpx;
  2766. right: 30rpx;
  2767. z-index: 999;
  2768. }
  2769. /* 自购/推广弹框 */
  2770. .overlay-wrapper {
  2771. display: flex;
  2772. align-items: center;
  2773. justify-content: center;
  2774. height: 100%;
  2775. }
  2776. .tips-wrapper {
  2777. width: 588rpx;
  2778. height: 462rpx;
  2779. border-radius: 10rpx;
  2780. background: #fff;
  2781. font-size: 26rpx;
  2782. display: flex;
  2783. flex-direction: column;
  2784. justify-content: space-between;
  2785. }
  2786. .tips-top {
  2787. display: flex;
  2788. flex-direction: column;
  2789. align-items: center;
  2790. padding: 0 40rpx;
  2791. }
  2792. .tips-title {
  2793. font-size: 34rpx;
  2794. font-weight: bold;
  2795. margin: 66rpx 0 24rpx;
  2796. }
  2797. .tips-bottom {
  2798. height: 132rpx;
  2799. border-top: 2rpx solid #e4e4e4;
  2800. display: flex;
  2801. justify-content: space-around;
  2802. align-items: center;
  2803. }
  2804. .tips-bottom .btn-devide {
  2805. width: 2rpx;
  2806. height: 130rpx;
  2807. background: #e4e4e4;
  2808. }
  2809. .cancel-btn {
  2810. width: 202rpx;
  2811. height: 72rpx;
  2812. line-height: 72rpx;
  2813. border: 2rpx solid #85868a;
  2814. color: #282728;
  2815. border-radius: 72rpx;
  2816. text-align: center;
  2817. overflow: hidden;
  2818. }
  2819. .repay-btn {
  2820. width: 202rpx;
  2821. height: 72rpx;
  2822. line-height: 72rpx;
  2823. background: #d77958;
  2824. color: #fff;
  2825. border-radius: 72rpx;
  2826. text-align: center;
  2827. }
  2828. .notip-again {
  2829. padding-left: 40rpx;
  2830. display: flex;
  2831. align-items: center;
  2832. }
  2833. .user-agree {
  2834. /* color:#85868A; */
  2835. font-size: 26rpx;
  2836. margin-left: 8rpx;
  2837. }
  2838. /* 海报的样式 */
  2839. .poster {
  2840. position: absolute;
  2841. top: 20rpx;
  2842. z-index: 99;
  2843. text-align: center;
  2844. left: 0;
  2845. bottom: 0;
  2846. right: 0;
  2847. }
  2848. .title {
  2849. color: #fff;
  2850. margin: 20rpx 0;
  2851. font-size: 30rpx;
  2852. display: flex;
  2853. justify-content: center;
  2854. text-align: left;
  2855. }
  2856. .title text {
  2857. width: 480rpx;
  2858. }
  2859. .ads {
  2860. color: #fff;
  2861. text-align: left;
  2862. margin: 20rpx auto;
  2863. display: flex;
  2864. justify-content: center;
  2865. }
  2866. .tool {
  2867. display: flex;
  2868. text-align: center;
  2869. justify-content: baseline;
  2870. width: 100%;
  2871. margin-top: 20rpx;
  2872. }
  2873. .tool view {
  2874. flex: 1;
  2875. }
  2876. .img {
  2877. width: 107rpx;
  2878. height: 128rpx;
  2879. }
  2880. .closeImg {
  2881. width: 57rpx;
  2882. height: 57rpx;
  2883. }
  2884. .share-btn {
  2885. background-color: transparent;
  2886. flex: 1;
  2887. }
  2888. .share-btn::after {
  2889. border: none;
  2890. }
  2891. .goods-name-wrapper {
  2892. background: #fff;
  2893. padding: 30rpx 16rpx 20rpx;
  2894. border-radius: 12rpx;
  2895. }
  2896. .store-location {
  2897. margin-top: 20rpx;
  2898. background: #fff;
  2899. padding: 20rpx 24rpx;
  2900. border-radius: 12rpx;
  2901. }
  2902. .price .sale-num {
  2903. color: #999;
  2904. font-size: 24rpx;
  2905. flex: 1;
  2906. text-align: right;
  2907. }
  2908. .price .sale-num text {
  2909. color: #ff1643;
  2910. }
  2911. /* 购买提醒 */
  2912. .buy-toast {
  2913. height: 44rpx;
  2914. min-width: 284rpx;
  2915. position: absolute;
  2916. top: 410rpx;
  2917. left: 24rpx;
  2918. background: rgba(0, 0, 0, 0.5);
  2919. border-radius: 45rpx;
  2920. }
  2921. .toast-swiper {
  2922. height: 44rpx;
  2923. width: 320rpx;
  2924. }
  2925. .toast-item {
  2926. align-items: center;
  2927. display: flex;
  2928. height: 44rpx;
  2929. padding: 0 14rpx 0 10rpx;
  2930. }
  2931. .toast-item image {
  2932. width: 28rpx;
  2933. height: 28rpx;
  2934. border-radius: 28rpx;
  2935. margin-right: 8rpx;
  2936. }
  2937. .toast-item view {
  2938. font-size: 24rpx;
  2939. color: #fff;
  2940. white-space: nowrap;
  2941. }
  2942. /* 选择规格 */
  2943. .sku-info {
  2944. width: 702rpx;
  2945. height: 90rpx;
  2946. background: #ffffff;
  2947. border-radius: 24rpx;
  2948. margin: 0 24rpx;
  2949. position: relative;
  2950. }
  2951. .sku-left {
  2952. width: 700rpx;
  2953. overflow: hidden;
  2954. line-height: 90rpx;
  2955. padding-left: 24rpx;
  2956. display: flex;
  2957. align-items: center;
  2958. height: 90rpx;
  2959. font-weight: bold;
  2960. }
  2961. .sku-left view {
  2962. color: #000;
  2963. font-size: 30rpx;
  2964. font-weight: bold;
  2965. }
  2966. .sku-left view.current-sku {
  2967. color: #d77958;
  2968. font-weight: bold;
  2969. margin-left: 12rpx;
  2970. }
  2971. .sku-right {
  2972. position: absolute;
  2973. right: 0;
  2974. top: 0;
  2975. bottom: 0;
  2976. height: 90rpx;
  2977. display: flex;
  2978. align-items: center;
  2979. padding-right: 24rpx;
  2980. width: 222rpx;
  2981. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-bg.png') no-repeat center;
  2982. background-size: 100% 100%;
  2983. z-index: 99;
  2984. justify-content: flex-end;
  2985. }
  2986. .sku-right view {
  2987. color: #00b4ff;
  2988. }
  2989. /* 推荐产品 */
  2990. .recommend-product {
  2991. padding: 30rpx 24rpx;
  2992. width: 702rpx;
  2993. margin: 20rpx 24rpx;
  2994. border-radius: 20rpx;
  2995. background: #fff;
  2996. }
  2997. .recommend-title {
  2998. margin-bottom: 20rpx;
  2999. font-size: 30rpx;
  3000. font-weight: bold;
  3001. height: 30rpx;
  3002. line-height: 30rpx;
  3003. }
  3004. .recommend-scroll {
  3005. height: 100rpx;
  3006. white-space: nowrap;
  3007. }
  3008. .scroll-item-wrapper {
  3009. width: 250rpx;
  3010. display: inline-block;
  3011. }
  3012. .scroll-item {
  3013. height: 100rpx;
  3014. display: flex;
  3015. width: 250rpx;
  3016. }
  3017. .scroll-item image {
  3018. width: 100rpx;
  3019. height: 100rpx;
  3020. border-radius: 10rpx;
  3021. }
  3022. .scroll-right {
  3023. width: 140rpx;
  3024. margin-left: 10rpx;
  3025. height: 100rpx;
  3026. display: flex;
  3027. padding: 10rpx 0;
  3028. flex-direction: column;
  3029. justify-content: space-between;
  3030. }
  3031. .scroll-right .recommend-name {
  3032. width: 140rpx;
  3033. overflow: hidden;
  3034. white-space: nowrap;
  3035. text-overflow: ellipsis;
  3036. height: 28rpx;
  3037. font-size: 26rpx;
  3038. line-height: 28rpx;
  3039. }
  3040. .scroll-right .recommend-price {
  3041. font-size: 24rpx;
  3042. height: 30rpx;
  3043. }
  3044. .scroll-right .recommend-price text {
  3045. font-weight: bold;
  3046. color: #ff1643;
  3047. font-size: 30rpx;
  3048. }
  3049. /* 团购评价 */
  3050. .group-evaluation {
  3051. width: 702rpx;
  3052. background: #ffffff;
  3053. border: 1rpx solid #f5f5f5;
  3054. border-radius: 20rpx;
  3055. padding: 30rpx 24rpx 0;
  3056. margin: 0 24rpx 20rpx;
  3057. }
  3058. .group-evaluation .title {
  3059. height: 40rpx;
  3060. line-height: 40rpx;
  3061. display: flex;
  3062. justify-content: space-between;
  3063. align-items: center;
  3064. }
  3065. .group-evaluation .title .left {
  3066. font-size: 32rpx;
  3067. line-height: 40rpx;
  3068. color: #000;
  3069. font-weight: bold;
  3070. flex: 1;
  3071. word-break: normal;
  3072. overflow: hidden;
  3073. }
  3074. .group-evaluation .title .right {
  3075. color: #666;
  3076. font-size: 28rpx;
  3077. display: flex;
  3078. align-items: center;
  3079. justify-content: space-between;
  3080. overflow: hidden;
  3081. }
  3082. .evaluation-item {
  3083. padding: 30rpx 8rpx 30rpx 0;
  3084. padding-right: 8rpx;
  3085. border-bottom: 1rpx solid #f3f3f3;
  3086. display: flex;
  3087. align-items: center;
  3088. justify-content: space-between;
  3089. }
  3090. .evaluation-item:last-child {
  3091. border: none;
  3092. }
  3093. .evaluation-item .item-left {
  3094. width: 510rpx;
  3095. }
  3096. .eval-top {
  3097. display: flex;
  3098. height: 44rpx;
  3099. align-items: center;
  3100. }
  3101. .eval-top .avatar {
  3102. width: 44rpx;
  3103. height: 44rpx;
  3104. border-radius: 44rpx;
  3105. }
  3106. .eval-top .name {
  3107. margin: 0 10rpx;
  3108. font-size: 28rpx;
  3109. color: #000;
  3110. }
  3111. .eval-top .tag {
  3112. height: 38rpx;
  3113. line-height: 38rpx;
  3114. background: #FFECDD;
  3115. border-radius: 10rpx;
  3116. color: #CC987E;
  3117. font-size: 24rpx;
  3118. padding: 0 12rpx;
  3119. margin-right: 10rpx;
  3120. }
  3121. .eval-top .hp {
  3122. height: 38rpx;
  3123. line-height: 38rpx;
  3124. background: rgba(255, 71, 71, 0.1);
  3125. border-radius: 10rpx;
  3126. color: #ff5252;
  3127. font-size: 24rpx;
  3128. padding: 0 12rpx;
  3129. }
  3130. .eval-content {
  3131. display: -webkit-box;
  3132. -webkit-box-orient: vertical;
  3133. -webkit-line-clamp: 2;
  3134. text-overflow: ellipsis;
  3135. overflow: hidden;
  3136. }
  3137. .evaluation-item .item-right {
  3138. width: 100rpx;
  3139. height: 100rpx;
  3140. /* word-break: normal; */
  3141. overflow: hidden;
  3142. }
  3143. .evaluation-item .item-right image {
  3144. width: 100rpx;
  3145. height: 100rpx;
  3146. border-radius: 10rpx;
  3147. }
  3148. .right view {
  3149. /* word-break: normal; */
  3150. overflow: hidden;
  3151. }
  3152. /* 规格弹框 */
  3153. .spu-popup {
  3154. height: 784rpx;
  3155. width: 750rpx;
  3156. background: #fff;
  3157. padding: 30rpx 30rpx;
  3158. }
  3159. .popup-good {
  3160. height: 140rpx;
  3161. display: flex;
  3162. padding: 0 0 30rpx 0;
  3163. border-bottom: 1rpx solid #eee;
  3164. justify-content: space-between;
  3165. }
  3166. .popup-good .left {
  3167. display: flex;
  3168. align-items: flex-end;
  3169. }
  3170. .popup-good .left image {
  3171. width: 100rpx;
  3172. height: 100rpx;
  3173. border-radius: 10rpx;
  3174. }
  3175. .popup-good .spu-price {
  3176. color: #ff1643;
  3177. font-size: 34rpx;
  3178. font-weight: bold;
  3179. margin: 0 14rpx 0 20rpx;
  3180. line-height: 40rpx;
  3181. }
  3182. .popup-good .spu-price text {
  3183. font-size: 48rpx;
  3184. }
  3185. .popup-good .spu-price-old {
  3186. text-decoration: line-through;
  3187. color: #999999;
  3188. font-size: 24rpx;
  3189. }
  3190. .popup-good .sku-close {
  3191. width: 48rpx;
  3192. height: 48rpx;
  3193. }
  3194. .sku-list-block {
  3195. height: 492rpx;
  3196. }
  3197. .sku-list-block .spu-title {
  3198. height: 86rpx;
  3199. line-height: 86rpx;
  3200. font-weight: bold;
  3201. font-size: 28rpx;
  3202. }
  3203. .sku-list-block .sku-item {
  3204. margin-bottom: 24rpx;
  3205. }
  3206. .sku-list-block .sku-item view {
  3207. padding: 0 24rpx;
  3208. height: 50rpx;
  3209. line-height: 48rpx;
  3210. border: 1rpx solid #333;
  3211. border-radius: 10rpx;
  3212. color: #333;
  3213. font-size: 24rpx;
  3214. display: inline-block;
  3215. }
  3216. .sku-list-block .sku-item.active-sku view {
  3217. color: #d77958;
  3218. /* background: rgba(1, 187, 243, 0.1); */
  3219. border-color: #d77958;
  3220. }
  3221. .sku-btn {
  3222. width: 690rpx;
  3223. height: 100rpx;
  3224. border-radius: 100rpx;
  3225. line-height: 100rpx;
  3226. text-align: center;
  3227. color: #ffff;
  3228. background: #d77958;
  3229. font-size: 32rpx;
  3230. }
  3231. /* 加购数量 */
  3232. .num-module {
  3233. width: 702rpx;
  3234. /* height: 174rpx; */
  3235. background: #ffffff;
  3236. border-radius: 24rpx;
  3237. margin: 4rpx 24rpx 24rpx;
  3238. padding: 32rpx 24rpx;
  3239. }
  3240. .plus-buy {
  3241. height: 30rpx;
  3242. margin: 0 0 28rpx;
  3243. display: flex;
  3244. align-items: center;
  3245. }
  3246. .num-module .title {
  3247. color: #666;
  3248. font-size: 30rpx;
  3249. margin-right: 20rpx;
  3250. }
  3251. .plus-buy .plus-name {
  3252. font-size: 30rpx;
  3253. color: #010101;
  3254. }
  3255. .plus-buy .plus-name text {
  3256. color: #fe2b54;
  3257. font-weight: bold;
  3258. }
  3259. .plus-num {
  3260. display: flex;
  3261. justify-content: space-between;
  3262. height: 72rpx;
  3263. align-items: center;
  3264. }
  3265. .calc-counter {
  3266. height: 72rpx;
  3267. border-radius: 72rpx;
  3268. display: flex;
  3269. align-items: center;
  3270. border: 2rpx solid #d2d2d2;
  3271. box-sizing: border-box;
  3272. overflow: hidden;
  3273. line-height: 72rpx;
  3274. }
  3275. .calc-counter .minus-btn.disable,
  3276. .calc-counter .plus-btn.disable {
  3277. color: #d2d2d2;
  3278. }
  3279. .calc-counter .plus-btn,
  3280. .calc-counter .minus-btn {
  3281. width: 82rpx;
  3282. text-align: center;
  3283. color: #666;
  3284. line-height: 52rpx;
  3285. font-weight: bold;
  3286. padding-bottom: 4rpx;
  3287. }
  3288. .calc-counter .num-input {
  3289. color: #010101;
  3290. font-size: 30rpx;
  3291. border-left: 2rpx solid #d2d2d2;
  3292. border-right: 2rpx solid #d2d2d2;
  3293. width: 72rpx;
  3294. text-align: center;
  3295. height: 72rpx;
  3296. }
  3297. /* 关联工单 */
  3298. .service-list {
  3299. margin: 0 24rpx 24rpx;
  3300. }
  3301. .service-item {
  3302. margin-top: 24rpx;
  3303. background: #ffffff;
  3304. border-radius: 24rpx;
  3305. width: 702rpx;
  3306. padding: 0 24rpx;
  3307. }
  3308. .order-title {
  3309. height: 100rpx;
  3310. line-height: 100rpx;
  3311. font-weight: bold;
  3312. color: #000;
  3313. font-size: 32rpx;
  3314. border-bottom: 2rpx solid #e0e0e0;
  3315. }
  3316. .service-item .service-title {
  3317. height: 80rpx;
  3318. display: flex;
  3319. align-items: center;
  3320. border-bottom: 2rpx solid #e0e0e0;
  3321. }
  3322. .service-title .sercive-name {
  3323. color: #191919;
  3324. font-size: 30rpx;
  3325. font-weight: bold;
  3326. }
  3327. .service-title .service-id {
  3328. color: #666666;
  3329. font-size: 24rpx;
  3330. margin: 0 12rpx 0 0;
  3331. flex: 1;
  3332. }
  3333. .service-title .service-status {
  3334. color: #008dff;
  3335. font-size: 26rpx;
  3336. }
  3337. .service-main {
  3338. padding: 12rpx 0 16rpx;
  3339. }
  3340. .customer-info {
  3341. display: flex;
  3342. align-items: center;
  3343. }
  3344. .customer-info image {
  3345. width: 48rpx;
  3346. height: 48rpx;
  3347. margin-right: 24rpx;
  3348. }
  3349. .customer-info .customer-main {
  3350. display: flex;
  3351. padding: 18rpx 0 4rpx;
  3352. flex-direction: column;
  3353. flex: 1;
  3354. }
  3355. .main-line {
  3356. display: flex;
  3357. height: 44rpx;
  3358. margin-bottom: 4rpx;
  3359. align-items: center;
  3360. }
  3361. .main-line view {
  3362. color: #333333;
  3363. font-size: 32rpx;
  3364. }
  3365. .main-line view.phone {
  3366. color: #999999;
  3367. font-size: 24rpx;
  3368. margin-left: 14rpx;
  3369. }
  3370. .customer-info .customer-address {
  3371. color: #666666;
  3372. line-height: 40rpx;
  3373. }
  3374. .service-main .row {
  3375. /* height: 56rpx;
  3376. line-height: 56rpx; */
  3377. display: flex;
  3378. color: rgba(0, 0, 0, 0.9);
  3379. font-size: 26rpx;
  3380. font-weight: bold;
  3381. align-items: center;
  3382. margin: 10rpx 0;
  3383. }
  3384. .service-main .row text {
  3385. color: #666666;
  3386. font-weight: normal;
  3387. /* white-space: nowrap; */
  3388. }
  3389. .service-remark-wrapper {
  3390. padding: 24rpx 0;
  3391. border-top: 2rpx solid #e0e0e0;
  3392. }
  3393. .service-store {
  3394. height: 36rpx;
  3395. display: flex;
  3396. align-items: center;
  3397. justify-content: space-between;
  3398. }
  3399. .service-store>view {
  3400. display: flex;
  3401. height: 36rpx;
  3402. align-items: center;
  3403. }
  3404. .store-left image {
  3405. width: 36rpx;
  3406. height: 36rpx;
  3407. margin-right: 16rpx;
  3408. }
  3409. .store-left view {
  3410. color: rgba(0, 0, 0, 0.9);
  3411. font-size: 26rpx;
  3412. font-weight: bold;
  3413. }
  3414. .store-right view {
  3415. color: #666666;
  3416. font-size: 24rpx;
  3417. }
  3418. .store-right image {
  3419. width: 24rpx;
  3420. height: 24rpx;
  3421. margin-left: 16rpx;
  3422. }
  3423. .service-remark-wrapper .service-remark {
  3424. width: 652rpx;
  3425. /* height: 56rpx; */
  3426. line-height: 44rpx;
  3427. background: #ebebeb;
  3428. border-radius: 16rpx;
  3429. color: #000000;
  3430. padding: 8rpx 16rpx;
  3431. /* white-space: nowrap;
  3432. text-overflow: ellipsis;*/
  3433. display: -webkit-box;
  3434. -webkit-box-orient: vertical;
  3435. -webkit-line-clamp: 2;
  3436. text-overflow: ellipsis;
  3437. overflow: hidden;
  3438. margin-top: 20rpx;
  3439. }
  3440. .service-remark text {
  3441. color: #fe2b54;
  3442. font-weight: bold;
  3443. }
  3444. .service-operate {
  3445. padding: 24rpx 0;
  3446. border-top: 2rpx solid #e0e0e0;
  3447. display: flex;
  3448. justify-content: flex-end;
  3449. }
  3450. .service-operate view {
  3451. width: 160rpx;
  3452. height: 56rpx;
  3453. line-height: 56rpx;
  3454. border-radius: 28rpx;
  3455. text-align: center;
  3456. color: #f9f4f5;
  3457. font-size: 24rpx;
  3458. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  3459. margin-left: 28rpx;
  3460. }
  3461. .tips-wrapper.supply-overlay {
  3462. width: 690rpx;
  3463. height: auto;
  3464. }
  3465. .tips-wrapper.supply-overlay .tips-title {
  3466. margin: 36rpx 0 24rpx;
  3467. }
  3468. .supply-content {
  3469. border-top: 2rpx solid #e0e0e0;
  3470. }
  3471. .tips-wrapper.supply-overlay .service-list {
  3472. margin: 0 0;
  3473. }
  3474. .tips-wrapper.supply-overlay .service-item {
  3475. width: 690rpx;
  3476. }
  3477. .supply-tips {
  3478. border-top: 2rpx solid #e0e0e0;
  3479. color: #c41616;
  3480. padding: 20rpx 30rpx;
  3481. font-size: 28rpx;
  3482. }
  3483. .jz-color {
  3484. color: #d77958;
  3485. }
  3486. </style>