goods.vue 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904
  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">{{ 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-info .c text {
  1846. /* display: block;
  1847. width: 687.5rpx;
  1848. text-align: left; */
  1849. }
  1850. .goods_name {
  1851. white-space: nowrap;
  1852. text-overflow: ellipsis;
  1853. overflow: hidden;
  1854. /* margin-top: 10rpx; */
  1855. display: flex;
  1856. align-items: center;
  1857. }
  1858. .goods_name_left {
  1859. font-weight: 550;
  1860. margin-left: 0rpx;
  1861. font-size: 36rpx;
  1862. letter-spacing: 1rpx;
  1863. color: #2a2a2a;
  1864. font-weight: bold;
  1865. width: 640rpx;
  1866. white-space: pre-wrap;
  1867. }
  1868. .goods_name_right {
  1869. font-weight: 550;
  1870. /* top: 375px; */
  1871. width: 80rpx;
  1872. height: 80rpx;
  1873. line-height: 82rpx;
  1874. /* padding: 0;
  1875. margin: 0;
  1876. right: 10rpx; */
  1877. margin-right: 0rpx;
  1878. text-align: center;
  1879. font-size: 25rpx;
  1880. background-color: #d77958;
  1881. border-radius: 40rpx;
  1882. letter-spacing: 3rpx;
  1883. /* position: absolute; */
  1884. }
  1885. .goods_name_right .img {
  1886. width: 50rpx;
  1887. height: 50rpx;
  1888. margin-top: 15rpx;
  1889. }
  1890. .goods_name_right .txt {
  1891. margin-top: 5rpx;
  1892. font-size: 18rpx;
  1893. color: #000000;
  1894. border: 1rpx solid;
  1895. }
  1896. .goods-info .desc {
  1897. margin: 15rpx 10rpx;
  1898. font-size: 24rpx;
  1899. line-height: 36rpx;
  1900. width: 640rpx;
  1901. white-space: nowrap;
  1902. text-overflow: ellipsis;
  1903. overflow: hidden;
  1904. display: block;
  1905. }
  1906. .goods-info .desc1 {
  1907. margin: 15rpx 0rpx;
  1908. font-size: 24rpx;
  1909. line-height: 36rpx;
  1910. width: 640rpx;
  1911. white-space: nowrap;
  1912. text-overflow: ellipsis;
  1913. overflow: hidden;
  1914. display: block;
  1915. }
  1916. .goods-info .price {
  1917. height: 60rpx;
  1918. display: flex;
  1919. margin-bottom: 16rpx;
  1920. align-items: flex-end;
  1921. }
  1922. .goods-info .counterPrice {
  1923. padding-left: 5rpx;
  1924. text-decoration: line-through;
  1925. font-size: 24rpx;
  1926. margin-top: 15rpx;
  1927. margin-left: 10rpx;
  1928. /* color: #85868A; */
  1929. color: #999;
  1930. }
  1931. .goods-info .retailPrice {
  1932. height: 42rpx;
  1933. line-height: 44rpx;
  1934. color: #ff1643;
  1935. }
  1936. .goods-info view {
  1937. /* word-break: normal !important; */
  1938. overflow: hidden !important;
  1939. }
  1940. .goods-info .memberPrice {
  1941. font-size: 26rpx;
  1942. color: #dd483e;
  1943. margin: 0 10rpx 0 20rpx;
  1944. }
  1945. .member-price-tag {
  1946. width: 88rpx;
  1947. height: 26rpx;
  1948. line-height: 26rpx;
  1949. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/member/member-price-bg.png') no-repeat center center;
  1950. background-size: 100% 100%;
  1951. color: #5e3a11;
  1952. font-size: 16rpx;
  1953. padding: 0 8rpx 0 0;
  1954. text-align: right;
  1955. margin: 0 0 6rpx 0;
  1956. }
  1957. .member-price-tag.spread-tag {
  1958. margin-left: 20rpx;
  1959. background-image: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/member/spread-price-bg.png');
  1960. width: 122rpx;
  1961. }
  1962. .goods-info .retailPrice text.checked-price {
  1963. font-size: 42rpx;
  1964. font-weight: bold;
  1965. margin-left: 5rpx;
  1966. height: 42rpx;
  1967. line-height: 42rpx;
  1968. }
  1969. .goods-info .brand {
  1970. margin-top: 5rpx;
  1971. min-height: 34rpx;
  1972. text-align: left;
  1973. }
  1974. .goods-info .brand text {
  1975. display: inline-block;
  1976. width: auto;
  1977. padding: 2px 0rpx 2px 0.5rpx;
  1978. line-height: 32.5rpx;
  1979. /*border: 1px solid #f48f18;color: #f48f18;*/
  1980. font-size: 22rpx;
  1981. color: #a98f76;
  1982. /*border-radius: 4rpx;*/
  1983. background-size: 10.75rpx 18.75rpx;
  1984. }
  1985. .section-nav {
  1986. width: 750rpx;
  1987. height: 108rpx;
  1988. background: #fff;
  1989. margin-bottom: 20rpx;
  1990. }
  1991. .section-nav .t {
  1992. float: left;
  1993. width: 600rpx;
  1994. height: 108rpx;
  1995. line-height: 108rpx;
  1996. font-size: 29rpx;
  1997. color: #333;
  1998. margin-left: 31.25rpx;
  1999. }
  2000. .section-nav .i {
  2001. float: right;
  2002. width: 52rpx;
  2003. height: 52rpx;
  2004. margin-right: 16rpx;
  2005. margin-top: 28rpx;
  2006. }
  2007. .section-act .t {
  2008. float: left;
  2009. display: flex;
  2010. align-items: center;
  2011. width: 600rpx;
  2012. height: 108rpx;
  2013. overflow: hidden;
  2014. line-height: 108rpx;
  2015. font-size: 29rpx;
  2016. color: #999;
  2017. margin-left: 31.25rpx;
  2018. }
  2019. .section-act .label {
  2020. color: #999;
  2021. }
  2022. .section-act .tag {
  2023. display: flex;
  2024. align-items: center;
  2025. padding: 0 10rpx;
  2026. border-radius: 3px;
  2027. height: 37rpx;
  2028. width: auto;
  2029. color: #f48f18;
  2030. overflow: hidden;
  2031. border: 1px solid #f48f18;
  2032. font-size: 25rpx;
  2033. margin: 0 10rpx;
  2034. }
  2035. .section-act .text {
  2036. display: flex;
  2037. align-items: center;
  2038. height: 37rpx;
  2039. width: auto;
  2040. overflow: hidden;
  2041. color: #f48f18;
  2042. font-size: 29rpx;
  2043. }
  2044. .comments {
  2045. width: 100%;
  2046. height: auto;
  2047. padding-left: 30rpx;
  2048. background: #fff;
  2049. margin: 20rpx 0;
  2050. }
  2051. .comments .h {
  2052. height: 102.5rpx;
  2053. line-height: 100.5rpx;
  2054. width: 718.75rpx;
  2055. padding-right: 16rpx;
  2056. }
  2057. .comments .h .t {
  2058. display: block;
  2059. float: left;
  2060. width: 50%;
  2061. font-size: 30rpx;
  2062. color: #333;
  2063. }
  2064. .comments .h .i {
  2065. display: block;
  2066. float: right;
  2067. width: 164rpx;
  2068. height: 100.5rpx;
  2069. line-height: 100.5rpx;
  2070. background-size: 52rpx;
  2071. }
  2072. .comments .b {
  2073. height: auto;
  2074. width: 720rpx;
  2075. }
  2076. .comments .item {
  2077. height: auto;
  2078. width: 720rpx;
  2079. overflow: hidden;
  2080. border-top: 1px solid #d9d9d9;
  2081. }
  2082. .comments .info {
  2083. height: 127rpx;
  2084. width: 100%;
  2085. padding: 33rpx 0 27rpx 0;
  2086. }
  2087. .comments .user {
  2088. float: left;
  2089. width: auto;
  2090. height: 67rpx;
  2091. line-height: 67rpx;
  2092. font-size: 0;
  2093. }
  2094. .comments .user image {
  2095. float: left;
  2096. width: 67rpx;
  2097. height: 67rpx;
  2098. margin-right: 17rpx;
  2099. border-radius: 50%;
  2100. }
  2101. .comments .user text {
  2102. display: inline-block;
  2103. width: auto;
  2104. height: 66rpx;
  2105. overflow: hidden;
  2106. font-size: 29rpx;
  2107. line-height: 66rpx;
  2108. }
  2109. .comments .time {
  2110. display: block;
  2111. float: right;
  2112. width: auto;
  2113. height: 67rpx;
  2114. line-height: 67rpx;
  2115. color: #7f7f7f;
  2116. font-size: 25rpx;
  2117. margin-right: 30rpx;
  2118. }
  2119. .comments .content {
  2120. width: 720rpx;
  2121. padding-right: 30rpx;
  2122. line-height: 45.8rpx;
  2123. font-size: 29rpx;
  2124. margin-bottom: 24rpx;
  2125. }
  2126. .comments .imgs {
  2127. width: 720rpx;
  2128. height: auto;
  2129. margin-bottom: 25rpx;
  2130. }
  2131. .comments .imgs .img {
  2132. height: 150rpx;
  2133. width: 150rpx;
  2134. margin-right: 28rpx;
  2135. }
  2136. .comments .spec {
  2137. width: 720rpx;
  2138. padding-right: 30rpx;
  2139. line-height: 30rpx;
  2140. font-size: 24rpx;
  2141. color: #999;
  2142. margin-bottom: 30rpx;
  2143. }
  2144. .comments .customer-service {
  2145. width: 690rpx;
  2146. height: auto;
  2147. overflow: hidden;
  2148. margin-top: 23rpx;
  2149. margin-bottom: 23rpx;
  2150. background: rgba(0, 0, 0, 0.03);
  2151. padding: 21rpx;
  2152. }
  2153. .comments .customer-service .u {
  2154. font-size: 24rpx;
  2155. color: #333;
  2156. line-height: 37.5rpx;
  2157. }
  2158. .comments .customer-service .c {
  2159. font-size: 24rpx;
  2160. color: #999;
  2161. line-height: 37.5rpx;
  2162. }
  2163. .goods-attr {
  2164. width: 750rpx;
  2165. height: auto;
  2166. overflow: hidden;
  2167. padding: 0 31.25rpx 25rpx 31.25rpx;
  2168. background: #fff;
  2169. }
  2170. .goods-attr .t {
  2171. width: 687.5rpx;
  2172. height: 104rpx;
  2173. line-height: 104rpx;
  2174. font-size: 38.5rpx;
  2175. }
  2176. .goods-attr .item {
  2177. width: 687.5rpx;
  2178. height: 68rpx;
  2179. padding: 11rpx 20rpx;
  2180. margin-bottom: 11rpx;
  2181. background: #f7f7f7;
  2182. font-size: 38.5rpx;
  2183. }
  2184. .goods-attr .left {
  2185. float: left;
  2186. font-size: 25rpx;
  2187. width: 134rpx;
  2188. height: 45rpx;
  2189. line-height: 45rpx;
  2190. overflow: hidden;
  2191. color: #999;
  2192. }
  2193. .goods-attr .right {
  2194. float: left;
  2195. font-size: 36.5rpx;
  2196. margin-left: 20rpx;
  2197. width: 480rpx;
  2198. height: 45rpx;
  2199. line-height: 45rpx;
  2200. overflow: hidden;
  2201. color: #333;
  2202. }
  2203. .detail {
  2204. width: 750rpx;
  2205. height: auto;
  2206. overflow: hidden;
  2207. padding-bottom: 200rpx;
  2208. }
  2209. .detail image {
  2210. width: 750rpx;
  2211. display: block;
  2212. }
  2213. .common-problem {
  2214. width: 750rpx;
  2215. height: auto;
  2216. overflow: hidden;
  2217. }
  2218. .common-problem .h {
  2219. position: relative;
  2220. height: 145.5rpx;
  2221. width: 750rpx;
  2222. padding: 56.25rpx 0;
  2223. background: #fff;
  2224. text-align: center;
  2225. }
  2226. .common-problem .h .line {
  2227. display: inline-block;
  2228. position: absolute;
  2229. top: 72rpx;
  2230. left: 0;
  2231. z-index: 2;
  2232. height: 1px;
  2233. margin-left: 225rpx;
  2234. width: 300rpx;
  2235. background: #ccc;
  2236. }
  2237. .common-problem .h .title {
  2238. display: inline-block;
  2239. position: absolute;
  2240. top: 56.125rpx;
  2241. left: 0;
  2242. z-index: 3;
  2243. height: 33rpx;
  2244. margin-left: 285rpx;
  2245. width: 180rpx;
  2246. background: #fff;
  2247. }
  2248. .common-problem .b {
  2249. width: 750rpx;
  2250. height: auto;
  2251. overflow: hidden;
  2252. padding: 0rpx 30rpx;
  2253. background: #fff;
  2254. }
  2255. .common-problem .item {
  2256. height: auto;
  2257. overflow: hidden;
  2258. padding-bottom: 25rpx;
  2259. }
  2260. .common-problem .question-box .spot {
  2261. float: left;
  2262. display: block;
  2263. height: 8rpx;
  2264. width: 8rpx;
  2265. background: #b4282d;
  2266. border-radius: 50%;
  2267. margin-top: 11rpx;
  2268. }
  2269. .common-problem .question-box .question {
  2270. float: left;
  2271. line-height: 30rpx;
  2272. padding-left: 8rpx;
  2273. display: block;
  2274. font-size: 26rpx;
  2275. padding-bottom: 15rpx;
  2276. color: #303030;
  2277. }
  2278. .common-problem .answer {
  2279. line-height: 36rpx;
  2280. padding-left: 16rpx;
  2281. font-size: 26rpx;
  2282. color: #787878;
  2283. }
  2284. .related-goods {
  2285. width: 750rpx;
  2286. height: auto;
  2287. overflow: hidden;
  2288. padding-bottom: 80rpx;
  2289. }
  2290. .related-goods .h {
  2291. position: relative;
  2292. height: 145.5rpx;
  2293. width: 750rpx;
  2294. padding: 56.25rpx 0;
  2295. background: #fff;
  2296. text-align: center;
  2297. border-bottom: 1px solid #f4f4f4;
  2298. }
  2299. .related-goods .h .line {
  2300. display: inline-block;
  2301. position: absolute;
  2302. top: 72rpx;
  2303. left: 0;
  2304. z-index: 2;
  2305. height: 1px;
  2306. margin-left: 225rpx;
  2307. width: 300rpx;
  2308. background: #ccc;
  2309. }
  2310. .related-goods .h .title {
  2311. display: inline-block;
  2312. position: absolute;
  2313. top: 56.125rpx;
  2314. left: 0;
  2315. z-index: 3;
  2316. height: 33rpx;
  2317. margin-left: 285rpx;
  2318. width: 180rpx;
  2319. background: #fff;
  2320. }
  2321. .related-goods .b {
  2322. width: 750rpx;
  2323. height: auto;
  2324. overflow: hidden;
  2325. }
  2326. .related-goods .b .item {
  2327. float: left;
  2328. background: #fff;
  2329. width: 375rpx;
  2330. height: auto;
  2331. overflow: hidden;
  2332. text-align: center;
  2333. padding: 15rpx 31.25rpx;
  2334. border-right: 1px solid #f4f4f4;
  2335. border-bottom: 1px solid #f4f4f4;
  2336. }
  2337. .related-goods .item .img {
  2338. width: 311.45rpx;
  2339. height: 311.45rpx;
  2340. }
  2341. .related-goods .item .name {
  2342. display: block;
  2343. width: 311.45rpx;
  2344. height: 35rpx;
  2345. margin: 11.5rpx 0 15rpx 0;
  2346. text-align: center;
  2347. overflow: hidden;
  2348. font-size: 30rpx;
  2349. color: #333;
  2350. }
  2351. .related-goods .item .price {
  2352. display: block;
  2353. width: 311.45rpx;
  2354. height: 30rpx;
  2355. text-align: center;
  2356. font-size: 30rpx;
  2357. color: #b4282d;
  2358. }
  2359. .bottom-btn {
  2360. position: fixed;
  2361. left: 0rpx;
  2362. bottom: 0;
  2363. z-index: 10;
  2364. width: 750rpx;
  2365. height: 112rpx;
  2366. display: flex;
  2367. background: #fff;
  2368. padding-bottom: constant(safe-area-inset-bottom);
  2369. padding-bottom: env(safe-area-inset-bottom);
  2370. box-sizing: content-box;
  2371. font-size: 22rpx;
  2372. align-items: center;
  2373. justify-content: space-between;
  2374. }
  2375. .bottom-btn .l {
  2376. /* flex: 2;
  2377. float: left;
  2378. height: 150rpx;
  2379. width: 162rpx; */
  2380. /* display: flex; */
  2381. }
  2382. .bottom-btn .l.l-collect {
  2383. border-right: none;
  2384. border-left: none;
  2385. text-align: center;
  2386. padding-left: 30rpx;
  2387. /* width: 100rpx; */
  2388. }
  2389. .bottom-btn .l.l-collect .icon {
  2390. font-size: 40rpx;
  2391. }
  2392. .bottom-btn .l.l-collect text {
  2393. /* position: absolute;
  2394. top: 80rpx;
  2395. left: 30rpx;
  2396. font-size: 22rpx; */
  2397. }
  2398. .bottom-btn .l.l-kefu {
  2399. border-right: none;
  2400. border-left: none;
  2401. text-align: center;
  2402. /* width:60rpx; */
  2403. /* position: relative; */
  2404. }
  2405. .contact-block {
  2406. position: relative;
  2407. }
  2408. .bottom-btn .l.l-kefu .icon {
  2409. position: absolute;
  2410. font-size: 44rpx;
  2411. top: 20rpx;
  2412. }
  2413. .bottom-btn .l.l-kefu text {
  2414. /* position: absolute;
  2415. top: 60rpx;
  2416. font-size: 22rpx; */
  2417. }
  2418. .bottom-btn .l.l-cart .box {
  2419. position: relative;
  2420. height: 80rpx;
  2421. width: 70rpx;
  2422. }
  2423. .bottom-btn .l.l-cart .box .txt {
  2424. position: absolute;
  2425. top: 50rpx;
  2426. font-size: 22rpx;
  2427. }
  2428. .bottom-btn .l.l-cart .cart-count {
  2429. height: 28rpx;
  2430. width: 28rpx;
  2431. z-index: 10;
  2432. position: absolute;
  2433. top: 0;
  2434. right: 0;
  2435. background: #b4282d;
  2436. text-align: center;
  2437. font-size: 18rpx;
  2438. color: #fff;
  2439. line-height: 28rpx;
  2440. border-radius: 50%;
  2441. }
  2442. .bottom-btn .l.l-cart .icon {
  2443. position: absolute;
  2444. top: 10rpx;
  2445. left: 0;
  2446. font-size: 44rpx;
  2447. }
  2448. .collect-wrapper,
  2449. .service-wrapper {
  2450. display: flex;
  2451. flex-direction: column;
  2452. justify-content: center;
  2453. flex: 1;
  2454. }
  2455. .collect-text {
  2456. margin: 10rpx 0 0;
  2457. }
  2458. .bottom-btn .c {
  2459. width: 452rpx;
  2460. background: #d77958;
  2461. height: 82rpx;
  2462. font-size: 30rpx;
  2463. font-weight: bold;
  2464. color: #fff;
  2465. border-radius: 82rpx;
  2466. text-align: center;
  2467. line-height: 82rpx;
  2468. margin-right: 30rpx;
  2469. }
  2470. .dis-order-wrapper {
  2471. width: 452rpx;
  2472. background: #d77958;
  2473. height: 82rpx;
  2474. font-size: 22rpx;
  2475. color: #fff;
  2476. border-radius: 82rpx;
  2477. text-align: center;
  2478. margin-right: 30rpx;
  2479. display: flex;
  2480. align-items: center;
  2481. overflow: hidden;
  2482. }
  2483. .dis-order-wrapper>view {
  2484. flex: 1;
  2485. text-align: center;
  2486. height: 82rpx;
  2487. }
  2488. .spread-order {
  2489. background: #fff;
  2490. border-radius: 0 82rpx 82rpx 0;
  2491. border: 1rpx solid #d77958;
  2492. border-left: none;
  2493. line-height: 24rpx;
  2494. }
  2495. .buy-type {
  2496. font-size: 30rpx;
  2497. font-weight: bold;
  2498. line-height: 60rpx;
  2499. margin: 10rpx 0 4rpx 0;
  2500. overflow: hidden;
  2501. }
  2502. .bottom-btn .r {
  2503. background: #d77958;
  2504. float: left;
  2505. height: 100rpx;
  2506. flex: 2;
  2507. text-align: center;
  2508. color: #fff;
  2509. margin-left: 15rpx;
  2510. margin-top: 15rpx;
  2511. margin-bottom: 15rpx;
  2512. border-top-left-radius: 50rpx;
  2513. border-bottom-left-radius: 50rpx;
  2514. }
  2515. .bottom-btn .r .title {
  2516. font-size: 46rpx;
  2517. height: 56rpx;
  2518. color: #fff;
  2519. }
  2520. .bottom-btn .r .subtitle {
  2521. font-size: 28rpx;
  2522. color: #fff;
  2523. font-weight: 100;
  2524. }
  2525. .attr-pop-box {
  2526. width: 100%;
  2527. height: 100%;
  2528. position: fixed;
  2529. background: rgba(0, 0, 0, 0.5);
  2530. z-index: 8;
  2531. bottom: 0;
  2532. /* display: none; */
  2533. }
  2534. .attr-pop {
  2535. width: 100%;
  2536. height: auto;
  2537. max-height: 780rpx;
  2538. padding: 31.25rpx;
  2539. background: #fff;
  2540. position: fixed;
  2541. z-index: 9;
  2542. bottom: 100rpx;
  2543. }
  2544. .attr-pop .close {
  2545. position: absolute;
  2546. width: 48rpx;
  2547. height: 48rpx;
  2548. right: 31.25rpx;
  2549. overflow: hidden;
  2550. top: 31.25rpx;
  2551. }
  2552. .attr-pop .close .icon {
  2553. width: 48rpx;
  2554. height: 48rpx;
  2555. }
  2556. .attr-pop .img-info {
  2557. width: 687.5rpx;
  2558. height: 177rpx;
  2559. overflow: hidden;
  2560. margin-bottom: 41.5rpx;
  2561. }
  2562. .attr-pop .img {
  2563. float: left;
  2564. height: 177rpx;
  2565. width: 177rpx;
  2566. background: #f4f4f4;
  2567. margin-right: 31.25rpx;
  2568. }
  2569. .attr-pop .info {
  2570. float: left;
  2571. height: 177rpx;
  2572. display: flex;
  2573. align-items: center;
  2574. }
  2575. .attr-pop .p {
  2576. font-size: 33rpx;
  2577. color: #333;
  2578. height: 33rpx;
  2579. line-height: 33rpx;
  2580. margin-bottom: 10rpx;
  2581. }
  2582. .attr-pop .a {
  2583. font-size: 29rpx;
  2584. color: #333;
  2585. height: 40rpx;
  2586. line-height: 40rpx;
  2587. }
  2588. .spec-con {
  2589. width: 100%;
  2590. height: auto;
  2591. overflow: hidden;
  2592. }
  2593. .spec-con .name {
  2594. margin-bottom: 6rpx;
  2595. font-size: 29rpx;
  2596. color: #333;
  2597. }
  2598. .spec-con .values {
  2599. height: auto;
  2600. margin-bottom: 10rpx;
  2601. font-size: 0;
  2602. }
  2603. .spec-con .value {
  2604. display: inline-block;
  2605. height: 62rpx;
  2606. padding: 0 35rpx;
  2607. line-height: 56rpx;
  2608. text-align: center;
  2609. margin-right: 25rpx;
  2610. margin-bottom: 16.5rpx;
  2611. border: 1px solid #333;
  2612. font-size: 25rpx;
  2613. color: #333;
  2614. }
  2615. .spec-con .value.disable {
  2616. border: 1px solid #ccc;
  2617. color: #ccc;
  2618. }
  2619. .spec-con .value.selected {
  2620. border: 1px solid #b4282d;
  2621. color: #b4282d;
  2622. }
  2623. .number-item .selnum {
  2624. width: 200rpx;
  2625. /* width: 322rpx; */
  2626. height: 71rpx;
  2627. border: 1px solid #ccc;
  2628. display: flex;
  2629. }
  2630. .number-item .cut {
  2631. width: 93.75rpx;
  2632. height: 100%;
  2633. text-align: center;
  2634. line-height: 65rpx;
  2635. }
  2636. .number-item .number {
  2637. flex: 1;
  2638. height: 100%;
  2639. text-align: center;
  2640. line-height: 68.75rpx;
  2641. border-left: 1px solid #ccc;
  2642. border-right: 1px solid #ccc;
  2643. float: left;
  2644. }
  2645. .number-item .add {
  2646. width: 93.75rpx;
  2647. height: 100%;
  2648. text-align: center;
  2649. line-height: 65rpx;
  2650. }
  2651. .contact {
  2652. height: 100rpx;
  2653. width: 100rpx;
  2654. border-radius: 100%;
  2655. position: fixed;
  2656. bottom: 96rpx;
  2657. right: 10rpx;
  2658. font-size: 20rpx;
  2659. box-sizing: border-box;
  2660. background: url('../../static/images/arrow.png') no-repeat center 21rpx;
  2661. background-size: 55rpx auto;
  2662. }
  2663. .share-pop-box {
  2664. width: 100%;
  2665. height: 100%;
  2666. position: fixed;
  2667. background: rgba(0, 0, 0, 0.5);
  2668. z-index: 8;
  2669. bottom: 0;
  2670. /* display: none; */
  2671. }
  2672. .share-pop {
  2673. width: 100%;
  2674. height: auto;
  2675. max-height: 780rpx;
  2676. padding: 31.25rpx;
  2677. background: #fff;
  2678. position: fixed;
  2679. z-index: 9;
  2680. bottom: 100rpx;
  2681. }
  2682. .share-pop .close {
  2683. position: absolute;
  2684. width: 48rpx;
  2685. height: 48rpx;
  2686. right: 31.25rpx;
  2687. top: 31.25rpx;
  2688. }
  2689. .share-pop .close .icon {
  2690. width: 48rpx;
  2691. height: 48rpx;
  2692. }
  2693. .share-pop .share-info {
  2694. width: 100%;
  2695. height: 225rpx;
  2696. overflow: hidden;
  2697. margin-bottom: 41.5rpx;
  2698. }
  2699. .sharebtn {
  2700. top: 75rpx;
  2701. background: none !important;
  2702. font-size: 32rpx;
  2703. color: #fff !important;
  2704. border-radius: 0%;
  2705. width: 175rpx;
  2706. height: 150rpx;
  2707. text-align: center;
  2708. display: flex;
  2709. justify-content: center;
  2710. align-items: center;
  2711. flex-wrap: wrap;
  2712. float: left;
  2713. background: #fff;
  2714. border-bottom: 0px solid #fafafa;
  2715. margin-left: 15%;
  2716. }
  2717. .sharebtn::after {
  2718. border: none;
  2719. border-radius: 0%;
  2720. }
  2721. .savesharebtn {
  2722. top: 75rpx;
  2723. background: none !important;
  2724. font-size: 32rpx;
  2725. color: #fff !important;
  2726. border-radius: 0%;
  2727. width: 175rpx;
  2728. height: 150rpx;
  2729. text-align: center;
  2730. display: flex;
  2731. justify-content: center;
  2732. align-items: center;
  2733. flex-wrap: wrap;
  2734. float: right;
  2735. background: #fff;
  2736. border-bottom: 0px solid #fafafa;
  2737. margin-right: 15%;
  2738. }
  2739. .savesharebtn::after {
  2740. border: none;
  2741. border-radius: 0%;
  2742. }
  2743. .sharebtn_image {
  2744. /* border: 1px solid #757575; */
  2745. width: 128rpx;
  2746. height: 128rpx;
  2747. margin-top: 0rpx;
  2748. }
  2749. .sharebtn_text {
  2750. /* border: 1px solid #757575; */
  2751. width: 150rpx;
  2752. margin-bottom: 2rpx;
  2753. height: 20rpx;
  2754. line-height: 20rpx;
  2755. font-size: 20rpx;
  2756. color: #555;
  2757. }
  2758. .separate {
  2759. background: #e0e3da;
  2760. width: 100%;
  2761. height: 6rpx;
  2762. }
  2763. /* 新客角标 */
  2764. .isNew {
  2765. position: absolute;
  2766. width: 80rpx;
  2767. height: 120rpx;
  2768. right: 30rpx;
  2769. z-index: 999;
  2770. }
  2771. /* 自购/推广弹框 */
  2772. .overlay-wrapper {
  2773. display: flex;
  2774. align-items: center;
  2775. justify-content: center;
  2776. height: 100%;
  2777. }
  2778. .tips-wrapper {
  2779. width: 588rpx;
  2780. height: 462rpx;
  2781. border-radius: 10rpx;
  2782. background: #fff;
  2783. font-size: 26rpx;
  2784. display: flex;
  2785. flex-direction: column;
  2786. justify-content: space-between;
  2787. }
  2788. .tips-top {
  2789. display: flex;
  2790. flex-direction: column;
  2791. align-items: center;
  2792. padding: 0 40rpx;
  2793. }
  2794. .tips-title {
  2795. font-size: 34rpx;
  2796. font-weight: bold;
  2797. margin: 66rpx 0 24rpx;
  2798. }
  2799. .tips-bottom {
  2800. height: 132rpx;
  2801. border-top: 2rpx solid #e4e4e4;
  2802. display: flex;
  2803. justify-content: space-around;
  2804. align-items: center;
  2805. }
  2806. .tips-bottom .btn-devide {
  2807. width: 2rpx;
  2808. height: 130rpx;
  2809. background: #e4e4e4;
  2810. }
  2811. .cancel-btn {
  2812. width: 202rpx;
  2813. height: 72rpx;
  2814. line-height: 72rpx;
  2815. border: 2rpx solid #85868a;
  2816. color: #282728;
  2817. border-radius: 72rpx;
  2818. text-align: center;
  2819. overflow: hidden;
  2820. }
  2821. .repay-btn {
  2822. width: 202rpx;
  2823. height: 72rpx;
  2824. line-height: 72rpx;
  2825. background: #d77958;
  2826. color: #fff;
  2827. border-radius: 72rpx;
  2828. text-align: center;
  2829. }
  2830. .notip-again {
  2831. padding-left: 40rpx;
  2832. display: flex;
  2833. align-items: center;
  2834. }
  2835. .user-agree {
  2836. /* color:#85868A; */
  2837. font-size: 26rpx;
  2838. margin-left: 8rpx;
  2839. }
  2840. /* 海报的样式 */
  2841. .poster {
  2842. position: absolute;
  2843. top: 20rpx;
  2844. z-index: 99;
  2845. text-align: center;
  2846. left: 0;
  2847. bottom: 0;
  2848. right: 0;
  2849. }
  2850. .title {
  2851. color: #fff;
  2852. margin: 20rpx 0;
  2853. font-size: 30rpx;
  2854. display: flex;
  2855. justify-content: center;
  2856. text-align: left;
  2857. }
  2858. .title text {
  2859. width: 480rpx;
  2860. }
  2861. .ads {
  2862. color: #fff;
  2863. text-align: left;
  2864. margin: 20rpx auto;
  2865. display: flex;
  2866. justify-content: center;
  2867. }
  2868. .tool {
  2869. display: flex;
  2870. text-align: center;
  2871. justify-content: baseline;
  2872. width: 100%;
  2873. margin-top: 20rpx;
  2874. }
  2875. .tool view {
  2876. flex: 1;
  2877. }
  2878. .img {
  2879. width: 107rpx;
  2880. height: 128rpx;
  2881. }
  2882. .closeImg {
  2883. width: 57rpx;
  2884. height: 57rpx;
  2885. }
  2886. .share-btn {
  2887. background-color: transparent;
  2888. flex: 1;
  2889. }
  2890. .share-btn::after {
  2891. border: none;
  2892. }
  2893. .goods-name-wrapper {
  2894. background: #fff;
  2895. padding: 30rpx 16rpx 20rpx;
  2896. border-radius: 12rpx;
  2897. }
  2898. .store-location {
  2899. margin-top: 20rpx;
  2900. background: #fff;
  2901. padding: 20rpx 24rpx;
  2902. border-radius: 12rpx;
  2903. }
  2904. .price .sale-num {
  2905. color: #999;
  2906. font-size: 24rpx;
  2907. flex: 1;
  2908. text-align: right;
  2909. }
  2910. .price .sale-num text {
  2911. color: #ff1643;
  2912. }
  2913. /* 购买提醒 */
  2914. .buy-toast {
  2915. height: 44rpx;
  2916. min-width: 284rpx;
  2917. position: absolute;
  2918. top: 410rpx;
  2919. left: 24rpx;
  2920. background: rgba(0, 0, 0, 0.5);
  2921. border-radius: 45rpx;
  2922. }
  2923. .toast-swiper {
  2924. height: 44rpx;
  2925. width: 320rpx;
  2926. }
  2927. .toast-item {
  2928. align-items: center;
  2929. display: flex;
  2930. height: 44rpx;
  2931. padding: 0 14rpx 0 10rpx;
  2932. }
  2933. .toast-item image {
  2934. width: 28rpx;
  2935. height: 28rpx;
  2936. border-radius: 28rpx;
  2937. margin-right: 8rpx;
  2938. }
  2939. .toast-item view {
  2940. font-size: 24rpx;
  2941. color: #fff;
  2942. white-space: nowrap;
  2943. }
  2944. /* 选择规格 */
  2945. .sku-info {
  2946. width: 702rpx;
  2947. height: 90rpx;
  2948. background: #ffffff;
  2949. border-radius: 24rpx;
  2950. margin: 0 24rpx;
  2951. position: relative;
  2952. }
  2953. .sku-left {
  2954. width: 700rpx;
  2955. overflow: hidden;
  2956. line-height: 90rpx;
  2957. padding-left: 24rpx;
  2958. display: flex;
  2959. align-items: center;
  2960. height: 90rpx;
  2961. font-weight: bold;
  2962. }
  2963. .sku-left view {
  2964. color: #000;
  2965. font-size: 30rpx;
  2966. font-weight: bold;
  2967. }
  2968. .sku-left view.current-sku {
  2969. color: #d77958;
  2970. font-weight: bold;
  2971. margin-left: 12rpx;
  2972. }
  2973. .sku-right {
  2974. position: absolute;
  2975. right: 0;
  2976. top: 0;
  2977. bottom: 0;
  2978. height: 90rpx;
  2979. display: flex;
  2980. align-items: center;
  2981. padding-right: 24rpx;
  2982. width: 222rpx;
  2983. background: url('https://jzmall.lifejingzhi.com/file/jzmall/weixin/sku-bg.png') no-repeat center;
  2984. background-size: 100% 100%;
  2985. z-index: 99;
  2986. justify-content: flex-end;
  2987. }
  2988. .sku-right view {
  2989. color: #00b4ff;
  2990. }
  2991. /* 推荐产品 */
  2992. .recommend-product {
  2993. padding: 30rpx 24rpx;
  2994. width: 702rpx;
  2995. margin: 20rpx 24rpx;
  2996. border-radius: 20rpx;
  2997. background: #fff;
  2998. }
  2999. .recommend-title {
  3000. margin-bottom: 20rpx;
  3001. font-size: 30rpx;
  3002. font-weight: bold;
  3003. height: 30rpx;
  3004. line-height: 30rpx;
  3005. }
  3006. .recommend-scroll {
  3007. height: 100rpx;
  3008. white-space: nowrap;
  3009. }
  3010. .scroll-item-wrapper {
  3011. width: 250rpx;
  3012. display: inline-block;
  3013. }
  3014. .scroll-item {
  3015. height: 100rpx;
  3016. display: flex;
  3017. width: 250rpx;
  3018. }
  3019. .scroll-item image {
  3020. width: 100rpx;
  3021. height: 100rpx;
  3022. border-radius: 10rpx;
  3023. }
  3024. .scroll-right {
  3025. width: 140rpx;
  3026. margin-left: 10rpx;
  3027. height: 100rpx;
  3028. display: flex;
  3029. padding: 10rpx 0;
  3030. flex-direction: column;
  3031. justify-content: space-between;
  3032. }
  3033. .scroll-right .recommend-name {
  3034. width: 140rpx;
  3035. overflow: hidden;
  3036. white-space: nowrap;
  3037. text-overflow: ellipsis;
  3038. height: 28rpx;
  3039. font-size: 26rpx;
  3040. line-height: 28rpx;
  3041. }
  3042. .scroll-right .recommend-price {
  3043. font-size: 24rpx;
  3044. height: 30rpx;
  3045. }
  3046. .scroll-right .recommend-price text {
  3047. font-weight: bold;
  3048. color: #ff1643;
  3049. font-size: 30rpx;
  3050. }
  3051. /* 团购评价 */
  3052. .group-evaluation {
  3053. width: 702rpx;
  3054. background: #ffffff;
  3055. border: 1rpx solid #f5f5f5;
  3056. border-radius: 20rpx;
  3057. padding: 30rpx 24rpx 0;
  3058. margin: 0 24rpx 20rpx;
  3059. }
  3060. .group-evaluation .title {
  3061. height: 40rpx;
  3062. line-height: 40rpx;
  3063. display: flex;
  3064. justify-content: space-between;
  3065. align-items: center;
  3066. }
  3067. .group-evaluation .title .left {
  3068. font-size: 32rpx;
  3069. line-height: 40rpx;
  3070. color: #000;
  3071. font-weight: bold;
  3072. flex: 1;
  3073. word-break: normal;
  3074. overflow: hidden;
  3075. }
  3076. .group-evaluation .title .right {
  3077. color: #666;
  3078. font-size: 28rpx;
  3079. display: flex;
  3080. align-items: center;
  3081. justify-content: space-between;
  3082. overflow: hidden;
  3083. }
  3084. .evaluation-item {
  3085. padding: 30rpx 8rpx 30rpx 0;
  3086. padding-right: 8rpx;
  3087. border-bottom: 1rpx solid #f3f3f3;
  3088. display: flex;
  3089. align-items: center;
  3090. justify-content: space-between;
  3091. }
  3092. .evaluation-item:last-child {
  3093. border: none;
  3094. }
  3095. .evaluation-item .item-left {
  3096. width: 510rpx;
  3097. }
  3098. .eval-top {
  3099. display: flex;
  3100. height: 44rpx;
  3101. align-items: center;
  3102. }
  3103. .eval-top .avatar {
  3104. width: 44rpx;
  3105. height: 44rpx;
  3106. border-radius: 44rpx;
  3107. }
  3108. .eval-top .name {
  3109. margin: 0 10rpx;
  3110. font-size: 28rpx;
  3111. color: #000;
  3112. }
  3113. .eval-top .tag {
  3114. height: 38rpx;
  3115. line-height: 38rpx;
  3116. background: #FFECDD;
  3117. border-radius: 10rpx;
  3118. color: #CC987E;
  3119. font-size: 24rpx;
  3120. padding: 0 12rpx;
  3121. margin-right: 10rpx;
  3122. }
  3123. .eval-top .hp {
  3124. height: 38rpx;
  3125. line-height: 38rpx;
  3126. background: rgba(255, 71, 71, 0.1);
  3127. border-radius: 10rpx;
  3128. color: #ff5252;
  3129. font-size: 24rpx;
  3130. padding: 0 12rpx;
  3131. }
  3132. .eval-content {
  3133. display: -webkit-box;
  3134. -webkit-box-orient: vertical;
  3135. -webkit-line-clamp: 2;
  3136. text-overflow: ellipsis;
  3137. overflow: hidden;
  3138. }
  3139. .evaluation-item .item-right {
  3140. width: 100rpx;
  3141. height: 100rpx;
  3142. /* word-break: normal; */
  3143. overflow: hidden;
  3144. }
  3145. .evaluation-item .item-right image {
  3146. width: 100rpx;
  3147. height: 100rpx;
  3148. border-radius: 10rpx;
  3149. }
  3150. .right view {
  3151. /* word-break: normal; */
  3152. overflow: hidden;
  3153. }
  3154. /* 规格弹框 */
  3155. .spu-popup {
  3156. height: 784rpx;
  3157. width: 750rpx;
  3158. background: #fff;
  3159. padding: 30rpx 30rpx;
  3160. }
  3161. .popup-good {
  3162. height: 140rpx;
  3163. display: flex;
  3164. padding: 0 0 30rpx 0;
  3165. border-bottom: 1rpx solid #eee;
  3166. justify-content: space-between;
  3167. }
  3168. .popup-good .left {
  3169. display: flex;
  3170. align-items: flex-end;
  3171. }
  3172. .popup-good .left image {
  3173. width: 100rpx;
  3174. height: 100rpx;
  3175. border-radius: 10rpx;
  3176. }
  3177. .popup-good .spu-price {
  3178. color: #ff1643;
  3179. font-size: 34rpx;
  3180. font-weight: bold;
  3181. margin: 0 14rpx 0 20rpx;
  3182. line-height: 40rpx;
  3183. }
  3184. .popup-good .spu-price text {
  3185. font-size: 48rpx;
  3186. }
  3187. .popup-good .spu-price-old {
  3188. text-decoration: line-through;
  3189. color: #999999;
  3190. font-size: 24rpx;
  3191. }
  3192. .popup-good .sku-close {
  3193. width: 48rpx;
  3194. height: 48rpx;
  3195. }
  3196. .sku-list-block {
  3197. height: 492rpx;
  3198. }
  3199. .sku-list-block .spu-title {
  3200. height: 86rpx;
  3201. line-height: 86rpx;
  3202. font-weight: bold;
  3203. font-size: 28rpx;
  3204. }
  3205. .sku-list-block .sku-item {
  3206. margin-bottom: 24rpx;
  3207. }
  3208. .sku-list-block .sku-item view {
  3209. padding: 0 24rpx;
  3210. height: 50rpx;
  3211. line-height: 48rpx;
  3212. border: 1rpx solid #333;
  3213. border-radius: 10rpx;
  3214. color: #333;
  3215. font-size: 24rpx;
  3216. display: inline-block;
  3217. }
  3218. .sku-list-block .sku-item.active-sku view {
  3219. color: #d77958;
  3220. /* background: rgba(1, 187, 243, 0.1); */
  3221. border-color: #d77958;
  3222. }
  3223. .sku-btn {
  3224. width: 690rpx;
  3225. height: 100rpx;
  3226. border-radius: 100rpx;
  3227. line-height: 100rpx;
  3228. text-align: center;
  3229. color: #ffff;
  3230. background: #d77958;
  3231. font-size: 32rpx;
  3232. }
  3233. /* 加购数量 */
  3234. .num-module {
  3235. width: 702rpx;
  3236. /* height: 174rpx; */
  3237. background: #ffffff;
  3238. border-radius: 24rpx;
  3239. margin: 4rpx 24rpx 24rpx;
  3240. padding: 32rpx 24rpx;
  3241. }
  3242. .plus-buy {
  3243. height: 30rpx;
  3244. margin: 0 0 28rpx;
  3245. display: flex;
  3246. align-items: center;
  3247. }
  3248. .num-module .title {
  3249. color: #666;
  3250. font-size: 30rpx;
  3251. margin-right: 20rpx;
  3252. }
  3253. .plus-buy .plus-name {
  3254. font-size: 30rpx;
  3255. color: #010101;
  3256. }
  3257. .plus-buy .plus-name text {
  3258. color: #fe2b54;
  3259. font-weight: bold;
  3260. }
  3261. .plus-num {
  3262. display: flex;
  3263. justify-content: space-between;
  3264. height: 72rpx;
  3265. align-items: center;
  3266. }
  3267. .calc-counter {
  3268. height: 72rpx;
  3269. border-radius: 72rpx;
  3270. display: flex;
  3271. align-items: center;
  3272. border: 2rpx solid #d2d2d2;
  3273. box-sizing: border-box;
  3274. overflow: hidden;
  3275. line-height: 72rpx;
  3276. }
  3277. .calc-counter .minus-btn.disable,
  3278. .calc-counter .plus-btn.disable {
  3279. color: #d2d2d2;
  3280. }
  3281. .calc-counter .plus-btn,
  3282. .calc-counter .minus-btn {
  3283. width: 82rpx;
  3284. text-align: center;
  3285. color: #666;
  3286. line-height: 52rpx;
  3287. font-weight: bold;
  3288. padding-bottom: 4rpx;
  3289. }
  3290. .calc-counter .num-input {
  3291. color: #010101;
  3292. font-size: 30rpx;
  3293. border-left: 2rpx solid #d2d2d2;
  3294. border-right: 2rpx solid #d2d2d2;
  3295. width: 72rpx;
  3296. text-align: center;
  3297. height: 72rpx;
  3298. }
  3299. /* 关联工单 */
  3300. .service-list {
  3301. margin: 0 24rpx 24rpx;
  3302. }
  3303. .service-item {
  3304. margin-top: 24rpx;
  3305. background: #ffffff;
  3306. border-radius: 24rpx;
  3307. width: 702rpx;
  3308. padding: 0 24rpx;
  3309. }
  3310. .order-title {
  3311. height: 100rpx;
  3312. line-height: 100rpx;
  3313. font-weight: bold;
  3314. color: #000;
  3315. font-size: 32rpx;
  3316. border-bottom: 2rpx solid #e0e0e0;
  3317. }
  3318. .service-item .service-title {
  3319. height: 80rpx;
  3320. display: flex;
  3321. align-items: center;
  3322. border-bottom: 2rpx solid #e0e0e0;
  3323. }
  3324. .service-title .sercive-name {
  3325. color: #191919;
  3326. font-size: 30rpx;
  3327. font-weight: bold;
  3328. }
  3329. .service-title .service-id {
  3330. color: #666666;
  3331. font-size: 24rpx;
  3332. margin: 0 12rpx 0 0;
  3333. flex: 1;
  3334. }
  3335. .service-title .service-status {
  3336. color: #008dff;
  3337. font-size: 26rpx;
  3338. }
  3339. .service-main {
  3340. padding: 12rpx 0 16rpx;
  3341. }
  3342. .customer-info {
  3343. display: flex;
  3344. align-items: center;
  3345. }
  3346. .customer-info image {
  3347. width: 48rpx;
  3348. height: 48rpx;
  3349. margin-right: 24rpx;
  3350. }
  3351. .customer-info .customer-main {
  3352. display: flex;
  3353. padding: 18rpx 0 4rpx;
  3354. flex-direction: column;
  3355. flex: 1;
  3356. }
  3357. .main-line {
  3358. display: flex;
  3359. height: 44rpx;
  3360. margin-bottom: 4rpx;
  3361. align-items: center;
  3362. }
  3363. .main-line view {
  3364. color: #333333;
  3365. font-size: 32rpx;
  3366. }
  3367. .main-line view.phone {
  3368. color: #999999;
  3369. font-size: 24rpx;
  3370. margin-left: 14rpx;
  3371. }
  3372. .customer-info .customer-address {
  3373. color: #666666;
  3374. line-height: 40rpx;
  3375. }
  3376. .service-main .row {
  3377. /* height: 56rpx;
  3378. line-height: 56rpx; */
  3379. display: flex;
  3380. color: rgba(0, 0, 0, 0.9);
  3381. font-size: 26rpx;
  3382. font-weight: bold;
  3383. align-items: center;
  3384. margin: 10rpx 0;
  3385. }
  3386. .service-main .row text {
  3387. color: #666666;
  3388. font-weight: normal;
  3389. /* white-space: nowrap; */
  3390. }
  3391. .service-remark-wrapper {
  3392. padding: 24rpx 0;
  3393. border-top: 2rpx solid #e0e0e0;
  3394. }
  3395. .service-store {
  3396. height: 36rpx;
  3397. display: flex;
  3398. align-items: center;
  3399. justify-content: space-between;
  3400. }
  3401. .service-store>view {
  3402. display: flex;
  3403. height: 36rpx;
  3404. align-items: center;
  3405. }
  3406. .store-left image {
  3407. width: 36rpx;
  3408. height: 36rpx;
  3409. margin-right: 16rpx;
  3410. }
  3411. .store-left view {
  3412. color: rgba(0, 0, 0, 0.9);
  3413. font-size: 26rpx;
  3414. font-weight: bold;
  3415. }
  3416. .store-right view {
  3417. color: #666666;
  3418. font-size: 24rpx;
  3419. }
  3420. .store-right image {
  3421. width: 24rpx;
  3422. height: 24rpx;
  3423. margin-left: 16rpx;
  3424. }
  3425. .service-remark-wrapper .service-remark {
  3426. width: 652rpx;
  3427. /* height: 56rpx; */
  3428. line-height: 44rpx;
  3429. background: #ebebeb;
  3430. border-radius: 16rpx;
  3431. color: #000000;
  3432. padding: 8rpx 16rpx;
  3433. /* white-space: nowrap;
  3434. text-overflow: ellipsis;*/
  3435. display: -webkit-box;
  3436. -webkit-box-orient: vertical;
  3437. -webkit-line-clamp: 2;
  3438. text-overflow: ellipsis;
  3439. overflow: hidden;
  3440. margin-top: 20rpx;
  3441. }
  3442. .service-remark text {
  3443. color: #fe2b54;
  3444. font-weight: bold;
  3445. }
  3446. .service-operate {
  3447. padding: 24rpx 0;
  3448. border-top: 2rpx solid #e0e0e0;
  3449. display: flex;
  3450. justify-content: flex-end;
  3451. }
  3452. .service-operate view {
  3453. width: 160rpx;
  3454. height: 56rpx;
  3455. line-height: 56rpx;
  3456. border-radius: 28rpx;
  3457. text-align: center;
  3458. color: #f9f4f5;
  3459. font-size: 24rpx;
  3460. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  3461. margin-left: 28rpx;
  3462. }
  3463. .tips-wrapper.supply-overlay {
  3464. width: 690rpx;
  3465. height: auto;
  3466. }
  3467. .tips-wrapper.supply-overlay .tips-title {
  3468. margin: 36rpx 0 24rpx;
  3469. }
  3470. .supply-content {
  3471. border-top: 2rpx solid #e0e0e0;
  3472. }
  3473. .tips-wrapper.supply-overlay .service-list {
  3474. margin: 0 0;
  3475. }
  3476. .tips-wrapper.supply-overlay .service-item {
  3477. width: 690rpx;
  3478. }
  3479. .supply-tips {
  3480. border-top: 2rpx solid #e0e0e0;
  3481. color: #c41616;
  3482. padding: 20rpx 30rpx;
  3483. font-size: 28rpx;
  3484. }
  3485. .jz-color {
  3486. color: #d77958;
  3487. }
  3488. </style>