index.vue 115 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799
  1. <template>
  2. <view :data-theme="theme">
  3. <tui-skeleton v-if="showSkeleton"></tui-skeleton>
  4. <view class="product-con tui-skeleton" :style="{ visibility: showSkeleton ? 'hidden' : 'visible' }">
  5. <view class="navbar" :class="opacity > 0.6 ? 'bgwhite' : ''">
  6. <view class="navbarH" :style="'height:' + navH + 'rpx;'">
  7. <view class="navbarCon acea-row" :style="{ paddingRight: navbarRight + 'px' }">
  8. <nav-bar iconColor='#fff' :isBackgroundColor="false" ref="navBarRef" :isHeight="false">
  9. </nav-bar>
  10. <!-- 头部tab标题 -->
  11. <!-- #ifdef H5 || APP-PLUS-->
  12. <view class="tab_nav" v-show="opacity > 0.6">
  13. <view class="header flex align-center">
  14. <view class="item" :class="
  15. navActive === index &&
  16. (marketingType === ProductMarketingTypeEnum.Groupbuying||productType === ProductTypeEnum.Integral)
  17. ? 'groupTabOn'
  18. : navActive === index
  19. ? 'on'
  20. : ''
  21. "
  22. v-for="(item, index) in navList" :key="index" @tap="tap(index)">
  23. {{ item }}
  24. </view>
  25. <view style="width: 10rpx;height: 2px;" @click="listenerActionSheet"></view>
  26. </view>
  27. </view>
  28. <!-- #endif -->
  29. <!-- 分享 -->
  30. <view class="iconfont icon-ic_share1" :style="[shareStyle]" @click="listenerActionSheet"> </view>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 导航小图标 -->
  35. <view class="dialog_nav" v-show="currentPage" :style="{ top: navH + 'rpx' }">
  36. <view class="dialog_nav_item" :class="item.after" v-for="(item, index) in selectNavList" :key="index" @click="linkPage(item.url)">
  37. <text class="iconfont" :class="item.icon"></text>
  38. <text class="pl-20">{{ item.name }}</text>
  39. </view>
  40. </view>
  41. <!-- 商品详情 -->
  42. <view class="detail_container" @touchstart="touchStart">
  43. <scroll-view :scroll-top="scrollTop" scroll-y="true" scroll-with-animation="true" :style="'height:' + height + 'px;'"
  44. @scroll="scroll">
  45. <view id="past0">
  46. <!-- #ifdef MP || APP-PLUS -->
  47. <view class="" :style="'width:100%;' + 'height:' + sysHeight + 'px'"></view>
  48. <!-- #endif -->
  49. <productConSwiper v-if="!dataItem" class="tui-skeleton-rect" :isGroup="marketingType" :imgUrls="sliderImage"
  50. :videoline="videoLink" :productType="productType" @videoPause="videoPause">
  51. </productConSwiper>
  52. <view v-if="dataItem">
  53. <!-- 0-待审核,1-审核通过,2-审核失败,3-平台关闭 -->
  54. <view v-if="dataItem.auditStatus == 0 || dataItem.auditStatus == 2 || dataItem.auditStatus == 3" class="approval_status">
  55. <view class="status_count" :class="dataItem.auditStatus == 0 ? 'status1' : 'status0'">
  56. <view class="status_title">
  57. <text class="iconfont" :class="(dataItem.auditStatus == 2 || dataItem.auditStatus == 3) ? 'icon-tishi' : 'icon-shijian'"></text>
  58. <text v-if="dataItem.auditStatus == 2" class="title">审核未通过,内容仅自己可见</text>
  59. <text v-if="dataItem.auditStatus == 3" class="title">平台关闭,内容仅自己可见</text>
  60. <text v-if="dataItem.auditStatus == 0" class="title">正在审核,内容仅自己可见</text>
  61. </view>
  62. <view v-if="dataItem.auditStatus == 2 || dataItem.auditStatus == 3" class="status_info">
  63. {{dataItem.refusal}}
  64. </view>
  65. <view v-if="dataItem.auditStatus == 0" class="status_info">
  66. 发布的内容审核通过后,将展示在首页!
  67. </view>
  68. </view>
  69. </view>
  70. <view class="imageBox">
  71. <swiper v-if="dataItem.type ===1 && dataItem.image && dataItem.image.split(',').length>1" :indicator-dots="true"
  72. indicator-active-color="#e93323" :circular="true" :interval="interval" :duration="duration" style="height:430px">
  73. <block v-for="(item,index) in dataItem.image.split(',')" :key='index'>
  74. <swiper-item class="cover">
  75. <easy-loadimage mode="heightFix" :image-src="item" style="height:430px"></easy-loadimage>
  76. </swiper-item>
  77. </block>
  78. </swiper>
  79. <view v-if="dataItem.type ===2 || (dataItem.type ===1 &&dataItem.image && dataItem.image.split(',').length===1)">
  80. <view class="cover" @click="goVideoDetail(dataItem)" style="height:430px">
  81. <easy-loadimage mode="heightFix" :image-src="dataItem.cover" style="height:430px"></easy-loadimage>
  82. <view v-if="dataItem.type ===2" class="circle">
  83. <text class="iconfont icon-24gf-play"></text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 秒杀card -->
  90. <seckill-card v-if="marketingType === ProductMarketingTypeEnum.Seckill" :seckillStatus="seckillStatus"
  91. :seckillTime="seckillTime" :productInfo="productInfo" :productPrice="productPrice"></seckill-card>
  92. <!-- 拼团card -->
  93. <group-card :productInfo="attr.productSelect" :groupBuyActivityResponse="groupBuyActivityResponse" v-if="marketingType === ProductMarketingTypeEnum.Groupbuying"></group-card>
  94. <!-- 氛围图card -->
  95. <activity-style v-if="productInfo.activityStyle" :productPrice="productPrice" :productInfo="productInfo"></activity-style>
  96. <view class="borderPad" :class="
  97. marketingType === ProductMarketingTypeEnum.Seckill ||
  98. marketingType === ProductMarketingTypeEnum.Groupbuying
  99. ? 'mtop'
  100. : ''
  101. ">
  102. <view class="wrapper mb20 borRadius14">
  103. <view v-if="
  104. marketingType === ProductMarketingTypeEnum.Normal &&
  105. !productInfo.activityStyle
  106. ">
  107. <view class="share acea-row row-between mb10">
  108. <!-- 积分商品价格 -->
  109. <view v-if="productType === ProductTypeEnum.Integral" class="flex-y-center font-color-red">
  110. <span class="semiBold font-color-red fs-40">{{
  111. productPrice.redeemIntegral
  112. }}</span><span class="f-s-36 font-color-red ml-4">积分</span>
  113. <view v-show="productPrice.price > 0" class="ml-4">
  114. +
  115. <span class="semiBold ml-4 fs-40">{{
  116. productPrice.price
  117. }}</span><span class="f-s-36 font-color-red ml-4">元</span>
  118. </view>
  119. </view>
  120. <!-- 其他商品价格 -->
  121. <svip-price v-else :svipIconStyle="svipIconStyle" :productPrice="productPrice" :svipPriceStyle="svipPriceStyle"></svip-price>
  122. <!-- 收藏 -->
  123. <view v-show="productType !== ProductTypeEnum.Integral" @click="setCollect" class="item tui-skeleton-rect flex-y-center">
  124. <view class="iconfont icon-shoucang1 " :class="
  125. marketingType === ProductMarketingTypeEnum.Groupbuying
  126. ? 'color-normal'
  127. : 'color-change'
  128. "
  129. v-if="userCollect || dataItem.userIsLike"></view>
  130. <view class="iconfont icon-shoucang" v-else></view>
  131. <text v-if="dataItem">{{dataItem.likeNum || 0}}</text>
  132. </view>
  133. <!-- <view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view> -->
  134. </view>
  135. <view v-if="couponList.length > 0" class="acea-row row-between-wrapper">
  136. <view class="flex-1 acea-row row-middle">
  137. <span v-for="(item, index) in couponList" class="coupon_label">{{
  138. item.minPrice === 0
  139. ? "无门槛减" + item.money
  140. : "满" + item.minPrice + "减" + item.money
  141. }}</span>
  142. </view>
  143. <view class="coupon_more" @click="couponTap">领券<text class="iconfont icon-you"></text>
  144. </view>
  145. </view>
  146. <view class="introduce tui-skeleton-rect line2 mt30" v-if="!dataItem">{{productInfo.name}}</view>
  147. <view class="introduce tui-skeleton-rect line2 mt30" v-else>
  148. <view>{{dataItem.title}}</view>
  149. <view>{{dataItem.content}}</view>
  150. </view>
  151. </view>
  152. <view v-if="marketingType !== ProductMarketingTypeEnum.Normal" class="share acea-row row-between row-middle">
  153. <view class="introduce tui-skeleton-rect line2 lineWidth">{{ productInfo.name }}
  154. </view>
  155. <!-- 收藏 -->
  156. <view v-show="productType !== ProductTypeEnum.Integral" @click="setCollect" class="item tui-skeleton-rect">
  157. <view class="iconfont icon-shoucang1 " :class="
  158. marketingType === ProductMarketingTypeEnum.Groupbuying
  159. ? 'color-normal'
  160. : 'color-change'
  161. "
  162. v-if="userCollect"></view>
  163. <view class="iconfont icon-shoucang" v-else></view>
  164. </view>
  165. <!-- <view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view> -->
  166. </view>
  167. <view v-if="
  168. marketingType === ProductMarketingTypeEnum.Normal &&
  169. productInfo.activityStyle
  170. ">
  171. <view v-if="couponList.length > 0" class="acea-row row-between-wrapper mb30">
  172. <view class="flex-1 acea-row row-middle">
  173. <span v-for="(item, index) in couponList" class="coupon_label">{{
  174. item.minPrice === 0
  175. ? "无门槛减" + item.money
  176. : "满" + item.minPrice + "减" + item.money
  177. }}</span>
  178. </view>
  179. <view class="coupon_more" @click="couponTap">领券<text class="iconfont icon-you"></text>
  180. </view>
  181. </view>
  182. <view class="share acea-row row-between row-middle">
  183. <view class="introduce tui-skeleton-rect line2 lineWidth">{{ productInfo.name }}
  184. </view>
  185. <!-- 收藏 -->
  186. <view v-show="productType !== ProductTypeEnum.Integral" @click="setCollect" class="item tui-skeleton-rect">
  187. <view class="iconfont icon-shoucang1 " :class="
  188. marketingType === ProductMarketingTypeEnum.Groupbuying
  189. ? 'color-normal'
  190. : 'color-change'
  191. "
  192. v-if="userCollect"></view>
  193. <view class="iconfont icon-shoucang" v-else></view>
  194. </view>
  195. <!-- <view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view> -->
  196. </view>
  197. </view>
  198. <view class="label acea-row row-between-wrapper" v-if="!dataItem">
  199. <view class="tui-skeleton-rect" v-if="
  200. marketingType === ProductMarketingTypeEnum.Groupbuying
  201. ">
  202. 价格¥{{ attr.productSelect.otPrice || 0 }}</view>
  203. <view class="tui-skeleton-rect" v-else>
  204. {{
  205. productType === ProductTypeEnum.Integral
  206. ? "价格:"
  207. : "价格:"
  208. }}¥{{
  209. productType === ProductTypeEnum.Integral
  210. ? attr.productSelect.cost
  211. : attr.productSelect.otPrice || 0
  212. }}
  213. </view>
  214. <!-- 拼团库存 -->
  215. <view class="tui-skeleton-rect" v-if="
  216. marketingType === ProductMarketingTypeEnum.Groupbuying
  217. ">
  218. 库存:{{ attr.productSelect.stock>0?attr.productSelect.groupStock:0}}{{ productInfo.unitName || "" }}
  219. </view>
  220. <!-- 普通库存 -->
  221. <view class="tui-skeleton-rect" v-else>
  222. 库存:{{ attr.productSelect.stock || 0}}{{ productInfo.unitName || "" }}
  223. </view>
  224. <!-- 拼团销量 -->
  225. <view class="tui-skeleton-rect" v-if="
  226. marketingType === ProductMarketingTypeEnum.Groupbuying
  227. ">
  228. {{`销量:${groupBuyActivityResponse.sales}`}}{{ productInfo.unitName || "" }}
  229. </view>
  230. <!-- 其他销量 -->
  231. <view class="tui-skeleton-rect" v-if="
  232. marketingType !== ProductMarketingTypeEnum.Groupbuying
  233. ">
  234. {{
  235. productType === ProductTypeEnum.Integral
  236. ? "已兑换:"
  237. : "销量:"
  238. }}{{
  239. Math.floor(productInfo.sales) +
  240. Math.floor(productInfo.ficti) || 0
  241. }}{{ productInfo.unitName || "" }}
  242. </view>
  243. </view>
  244. <view class="coupon acea-row row-between-wrapper" v-if="activityH5.length">
  245. <view class="line1 acea-row">
  246. <text class="activityName tui-skeleton-rect">活&nbsp;&nbsp;&nbsp;动:</text>
  247. <view v-for="(item, index) in activityH5" :key="index" @click="goActivity(item)" class="activityBox">
  248. <view v-if="item.type === '1'" class="tui-skeleton-rect" :class="
  249. index == 0
  250. ? 'activity_pin'
  251. : '' || index == 1
  252. ? 'activity_miao'
  253. : '' || index == 2
  254. ? 'activity_kan'
  255. : ''
  256. ">
  257. <text class="iconfonts iconfont icon-miaosha1"></text>
  258. <text class="activity_title"> 参与秒杀</text>
  259. </view>
  260. <view class="tui-skeleton-rect" :class="
  261. index == 0
  262. ? 'activity_pin'
  263. : '' || index == 1
  264. ? 'activity_miao'
  265. : '' || index == 2
  266. ? 'activity_kan'
  267. : ''
  268. "
  269. v-if="item.type === '2'">
  270. <text class="iconfonts iconfont icon-kanjia"></text>
  271. <text class="activity_title"> 参与砍价</text>
  272. </view>
  273. </view>
  274. </view>
  275. </view>
  276. </view>
  277. <!-- 规格、保障服务 -->
  278. <view class="attribute mb20 borRadius14 tui-skeleton-rect" v-if="!dataItem">
  279. <view class="acea-row row-between-wrapper" @click="selecAttr">
  280. <view class="line1 text-666">{{ attrTxt }}:
  281. <text class="atterTxt text-333">{{ attrValue }}</text>
  282. </view>
  283. <view class="iconfont icon-jiantou"></view>
  284. </view>
  285. <view class="acea-row row-between-wrapper" style="margin-top: 7px; padding-left: 55px" v-if="skuImage.length > 1">
  286. <view class="flex">
  287. <image :src="item" v-for="(item, index) in skuImage" :key="index" class="attrImg"></image>
  288. </view>
  289. <view class="switchTxt">共{{ skuArr.length }}种规格可选</view>
  290. </view>
  291. <view v-if="guaranteeList.length > 0" class="acea-row row-between-wrapper" @click="assureDrawer = true" style="margin-top: 45rpx">
  292. <view class="line1 tui-skeleton-fillet">
  293. <text class="text-666 fw-bold">保&nbsp;&nbsp;&nbsp;障:</text>
  294. <text class="text-333 tui-skeleton-fillet" v-for="(item, index) in guaranteeList" :key="index">{{ item.name }}
  295. ·
  296. </text>
  297. </view>
  298. <view class="iconfont icon-jiantou"></view>
  299. </view>
  300. </view>
  301. </view>
  302. </view>
  303. <!-- 正在拼团 -->
  304. <group-doing :processItem="groupBuyActivityResponse.processItem" :groupBuyActivityResponse="groupBuyActivityResponse"
  305. @toGroup="toGroup" v-if="
  306. marketingType === ProductMarketingTypeEnum.Groupbuying &&
  307. groupBuyActivityResponse.showGroup
  308. "></group-doing>
  309. <!-- 拼团玩法 -->
  310. <group-playing v-if="marketingType === ProductMarketingTypeEnum.Groupbuying"></group-playing>
  311. <!-- 评价 -->
  312. <view v-show="productType !== ProductTypeEnum.Integral && replyCount > 0" id="past1" class="borderPad">
  313. <view class="userEvaluation tui-skeleton-rect">
  314. <view class="title acea-row row-between-wrapper" :style="
  315. replyCount == 0
  316. ? 'border-bottom-left-radius:14rpx;border-bottom-right-radius:14rpx;'
  317. : ''
  318. ">
  319. <view>用户评价<i>({{ replyCount }})</i></view>
  320. <navigator class="praise" hover-class="none" :url="
  321. '/pages/goods/goods_comment_list/index?productId=' +
  322. (Number(masterProductId) > 0 ? masterProductId : id)
  323. ">
  324. <i>好评</i>&nbsp;<text :class="
  325. (marketingType === ProductMarketingTypeEnum.Groupbuying||productType === ProductTypeEnum.Integral)
  326. ? 'groupColor'
  327. : 'font_color'
  328. "
  329. class=" px-12">{{ $util.$h.Mul(replyChance, 100) || 0 }}%</text>
  330. <text class="iconfont icon-jiantou"></text>
  331. </navigator>
  332. </view>
  333. <block v-if="replyCount">
  334. <userEvaluation :reply="reply"></userEvaluation>
  335. </block>
  336. </view>
  337. </view>
  338. <!-- 店铺 判断一下是首页进来就显示店铺 详情进来不显示 0不显示 -->
  339. <block v-if="iSshop==1">
  340. <view class="borderPad" v-if="
  341. productType !== ProductTypeEnum.Integral &&
  342. marketingType !== ProductMarketingTypeEnum.Groupbuying
  343. ">
  344. <view class="superior borRadius14" v-if="merchantInfo">
  345. <merHome :merchantInfo="merchantInfo" :merId="productInfo.merId" type="home" :isShowTypeId="isShowTypeId" v-if="merchantInfo"></merHome>
  346. <view class="slider-banner banner">
  347. <view class="list acea-row row-middle">
  348. <view class="item" v-for="(val, indexw) in merchantInfo.proList" :key="indexw" @click="goDetail(val.id)">
  349. <view class="pictrue relative">
  350. <view v-show="val.stock===0" class="sellOut">已售罄</view>
  351. <easy-loadimage mode="widthFix" :image-src="val.image"></easy-loadimage>
  352. </view>
  353. <view class="name line1">{{ val.name }}</view>
  354. <view class="money theme_price">¥{{ val.price }}</view>
  355. </view>
  356. </view>
  357. </view>
  358. </view>
  359. </view>
  360. </block>
  361. <!-- 产品详情 -->
  362. <view class="product-intro detailText" id="past2" v-if="!dataItem">
  363. <view class="title">
  364. <image src="../static/images/xzuo.png"></image>
  365. <span class="sp">产品详情</span>
  366. <image src="../static/images/xyou.png"></image>
  367. </view>
  368. <view class="conter borRadius14">
  369. <view class="borRadius14">
  370. <!-- #ifdef MP || APP-PLUS -->
  371. <mp-html :content="description" :tag-style="tagStyle" />
  372. <!-- #endif -->
  373. <!-- #ifdef H5 -->
  374. <view v-html="description" class="w-100-p111-"></view>
  375. <!-- #endif -->
  376. </view>
  377. </view>
  378. </view>
  379. <view style="height: 120rpx"></view>
  380. </scroll-view>
  381. </view>
  382. <!-- 脚部按钮 -->
  383. <!-- 管理 -->
  384. <view class="footer acea-row row-between-wrapper" :class="dataItem ? 'flex-between-center-sc' : ''">
  385. <view class="manageCount" v-if="isManage">
  386. <view class="follow_btn author-focused flex-around-center" @click.stop="handleManage">
  387. <view class="line-heightOne">管理</view>
  388. </view>
  389. </view>
  390. <button hover-class="none" class="item tui-skeleton-rect flex-col flex-center" @click="shoucangClick" v-if="isManage == 0 && dataItem">
  391. <text v-if="!dataItem.isConcerned" class="iconfont icon-shoucangbenzhan mb-10"></text>
  392. <text v-else class="iconfont icon-wodeshoucang mb-10"></text>
  393. {{ dataItem.isConcerned ? '已收藏' : '收藏' }}
  394. </button>
  395. <!-- #ifdef MP -->
  396. <button hover-class="none" class="item tui-skeleton-rect" @click="kefuClick" v-if="chatConfig.telephone_service_switch === 'true'">
  397. <view class="iconfont icon-kefu"></view>
  398. <view>客服</view>
  399. </button>
  400. <!-- <button open-type="contact" hover-class="none" class="item tui-skeleton-rect" v-else>
  401. <view class="iconfont icon-kefu"></view>
  402. <view>客服</view>
  403. </button> -->
  404. <!-- #endif -->
  405. <!-- #ifndef MP -->
  406. <view class="item tui-skeleton-rect" @click="kefuClick">
  407. <view class="iconfont icon-kefu"></view>
  408. <view>客服</view>
  409. </view>
  410. <!-- #endif -->
  411. <!-- <navigator v-show="productType !== ProductTypeEnum.Integral"
  412. :url="`/pages/merchant/home/index?merId=${productInfo.merId}`" hover-class="none">
  413. <view class="item tui-skeleton-rect">
  414. <view class="iconfont icon-dianpu1"></view>
  415. <view>店铺</view>
  416. </view>
  417. </navigator> -->
  418. <!-- <navigator v-show="productType !== ProductTypeEnum.Integral" open-type="switchTab"
  419. class="animated item tui-skeleton-rect" :class="animated == true ? 'bounceIn' : ''"
  420. url="/pages/order_addcart/order_addcart" hover-class="none">
  421. <view class="iconfont icon-gouwuche1">
  422. <text v-if="Math.floor(CartCount) > 0" class="num bg_color">{{
  423. CartCount
  424. }}</text>
  425. </view>
  426. <view>购物车</view>
  427. </navigator> -->
  428. <!-- 普通商品 -->
  429. <block v-if="marketingType === ProductMarketingTypeEnum.Normal">
  430. <view class="bnt acea-row" v-if="attr.productSelect.stock <= 0">
  431. <form report-submit="true">
  432. <button class="longBnts bg-color-hui" form-type="submit" :class="
  433. productType == ProductTypeEnum.Integral ? 'w-640rpx' : ''
  434. ">
  435. 已售罄
  436. </button>
  437. </form>
  438. </view>
  439. <view class="bnt acea-row tui-skeleton-rect" v-else>
  440. <!-- 正常商品 -->
  441. <block v-if="productType === ProductTypeEnum.Normal">
  442. <form v-show="productInfo.systemFormId == 0" @submit="joinCart" report-submit="true">
  443. <!-- <button class="joinCart bnts" form-type="submit">
  444. 加入购物车
  445. </button> -->
  446. </form>
  447. <form @submit="goBuy" report-submit="true" v-if="isManage == 0 && !dataItem">
  448. <button style="border-radius: 0;" :class="productInfo.systemFormId == 0 ? 'bnts' : 'longBnts'" class="buy"
  449. form-type="submit">
  450. 立即购买
  451. </button>
  452. </form>
  453. <form @submit="goSecondHand" report-submit="true" v-if="isManage == 0 && dataItem">
  454. <button style="border-radius: 0;" :class="productInfo.systemFormId == 0 ? 'bnts' : 'longBnts'" class="buy"
  455. form-type="submit">
  456. 立即购买
  457. </button>
  458. </form>
  459. </block>
  460. <!-- 积分商品 -->
  461. <block v-else-if="productType === ProductTypeEnum.Integral">
  462. <form @submit="goBuy" report-submit="true">
  463. <button class="longBnts w-640rpx" :class="
  464. productPrice.redeemIntegral > integral
  465. ? 'bg-color-hui'
  466. : 'bg-red'
  467. "
  468. :disabled="productPrice.redeemIntegral > integral" form-type="submit">
  469. 立即兑换
  470. </button>
  471. </form>
  472. </block>
  473. <!-- 虚拟商品 -->
  474. <view v-else class="bnt bntVideo acea-row">
  475. <form @submit="goBuy" report-submit="true">
  476. <button class="buy bg-color longBnts" form-type="submit">
  477. 立即购买
  478. </button>
  479. </form>
  480. </view>
  481. </view>
  482. </block>
  483. <!-- 除去二级类型是普通商品的售罄按钮 -->
  484. <view v-if="
  485. (attr.productSelect.stock <= 0 ||
  486. (attr.productSelect.groupStock <= 0 &&
  487. marketingType === ProductMarketingTypeEnum.Groupbuying)) &&
  488. marketingType !== ProductMarketingTypeEnum.Normal
  489. "
  490. class="bnt bntVideo acea-row">
  491. <form report-submit="true">
  492. <button class="longBnts bg-color-hui" :class="
  493. productType === ProductTypeEnum.Integral ? 'w-640rpx' : ''
  494. "
  495. form-type="submit">
  496. 已售罄
  497. </button>
  498. </form>
  499. </view>
  500. <view class="bnt acea-row" v-if="
  501. marketingType === ProductMarketingTypeEnum.Groupbuying &&
  502. attr.productSelect.groupStock > 0 &&
  503. groupBuyActivityResponse.buyLimitCount == 0
  504. ">
  505. <form report-submit="true">
  506. <button class="longBnts bg-color-hui" form-type="submit">
  507. 超出限购数量
  508. </button>
  509. </form>
  510. </view>
  511. <!-- 秒杀商品 -->
  512. <view v-if="
  513. seckillStatus !== 1 &&
  514. marketingType === ProductMarketingTypeEnum.Seckill &&
  515. attr.productSelect.stock > 0
  516. "
  517. class="bnt acea-row">
  518. <form @submit="goDetail(masterProductId)" report-submit="true">
  519. <button class="joinCart bnts" form-type="submit">直接购买</button>
  520. </form>
  521. <form report-submit="true">
  522. <button class="bg-color-hui bnts" form-type="submit">
  523. {{ seckillStatus === 0 ? "活动已结束" : "活动未开始" }}
  524. </button>
  525. </form>
  526. </view>
  527. <!-- 秒杀商品、视频号商品购买 -->
  528. <view v-if="
  529. attr.productSelect.stock > 0 &&
  530. (productType === ProductTypeEnum.Video ||
  531. (marketingType === ProductMarketingTypeEnum.Seckill &&
  532. seckillStatus === 1))
  533. "
  534. class="bnt bntVideo acea-row">
  535. <form @submit="goBuy" report-submit="true">
  536. <button class="buy bg-color longBnts" form-type="submit">
  537. 立即购买
  538. </button>
  539. </form>
  540. </view>
  541. <!-- 拼团商品单独购买/开团 -->
  542. <view class="bnt acea-row tui-skeleton-rect" v-if="
  543. !(
  544. marketingType !== ProductMarketingTypeEnum.Groupbuying ||
  545. attr.productSelect.groupStock <= 0 ||
  546. (attr.productSelect.groupStock > 0 &&
  547. groupBuyActivityResponse.buyLimitCount == 0) ||
  548. attr.productSelect.stock == 0 ||
  549. groupRecordId != 0
  550. )
  551. ">
  552. <form @submit="toAloneBuy" report-submit="true" v-if="productInfo.isShow">
  553. <button class="joinCart bnts groupJoin" form-type="submit">单独购买</button>
  554. </form>
  555. <form @submit="goBuy" report-submit="true">
  556. <button :class="productInfo.isShow?'group-buy':'group-buy2'" class=" bnts" form-type="submit">立即开团</button>
  557. </form>
  558. </view>
  559. <view class="bnt acea-row tui-skeleton-rect" v-if="
  560. groupRecordId != 0 &&
  561. attr.productSelect.stock > 0 &&
  562. attr.productSelect.groupStock > 0 &&
  563. groupBuyActivityResponse.buyLimitCount != 0
  564. ">
  565. <form @submit="goBuy" report-submit="true">
  566. <button class="spredGroupStyle" form-type="submit">立即参团</button>
  567. </form>
  568. </view>
  569. </view>
  570. <!-- 组件 -->
  571. <productWindow :attr="attr" :isShow="1" :iSplus="1" @myevent="onMyEvent" @ChangeAttr="ChangeAttr" @ChangeCartNum="ChangeCartNum"
  572. @attrVal="attrVal" @iptCartNum="iptCartNum" id="product-window" @getImg="showImg" :productType="productType"
  573. :marketingType="marketingType" :groupBuyActivityResponse="groupBuyActivityResponse" @buyLimit="buyLimit">
  574. </productWindow>
  575. <couponListWindow :coupon="coupon" :typeNum="couponDeaultType[0].useType" @ChangCouponsClone="ChangCouponsClone"
  576. @ChangCoupons="ChangCoupons" @ChangCouponsUseState="ChangCouponsUseState" @tabCouponType="tabCouponType"></couponListWindow>
  577. <!-- 分享按钮 -->
  578. <view class="generate-posters" :class="posters ? 'on' : ''">
  579. <view class="generateCon acea-row row-middle">
  580. <!-- #ifndef MP -->
  581. <button class="item" hover-class="none" v-if="weixinStatus === true" @click="H5ShareBox = true">
  582. <view class="pictrue">
  583. <image src="../static/images/weixin.png"></image>
  584. </view>
  585. <view class="">分享给好友</view>
  586. </button>
  587. <!-- #endif -->
  588. <!-- #ifdef MP -->
  589. <button class="item" open-type="share" hover-class="none">
  590. <view class="pictrue">
  591. <image src="../static/images/weixin.png"></image>
  592. </view>
  593. <view class="">分享给好友</view>
  594. </button>
  595. <!-- #endif -->
  596. <!-- #ifdef APP-PLUS -->
  597. <view class="item" @click="appShare('WXSceneSession')">
  598. <view class="iconfont icon-weixin3"></view>
  599. <view class="">微信好友</view>
  600. </view>
  601. <view class="item" @click="appShare('WXSenceTimeline')">
  602. <view class="iconfont icon-pengyouquan"></view>
  603. <view class="">微信朋友圈</view>
  604. </view>
  605. <!-- #endif -->
  606. <!-- #ifdef H5 || MP -->
  607. <view class="item" @click="getpreviewImage">
  608. <view class="pictrue">
  609. <image src="../static/images/changan.png"></image>
  610. </view>
  611. <view class="">预览发图</view>
  612. </view>
  613. <!-- #endif -->
  614. <!-- #ifdef MP -->
  615. <button class="item" hover-class="none" @click="savePosterPath">
  616. <view class="pictrue">
  617. <image src="../static/images/haibao.png"></image>
  618. </view>
  619. <view class="">保存海报</view>
  620. </button>
  621. <!-- #endif -->
  622. </view>
  623. <view class="generateClose acea-row row-center-wrapper" @click="posterImageClose">取消</view>
  624. </view>
  625. <!-- 查看规格商品图 -->
  626. <cus-previewImg ref="cusPreviewImg" :list="skuArr" @changeSwitch="changeSwitch" @shareFriend="listenerActionSheet" />
  627. <view class="mask" v-if="posters" @click="closePosters"></view>
  628. <view class="mask" v-if="canvasStatus"></view>
  629. <view class="mask_transparent" v-if="currentPage" @touchmove="hideNav" @click="hideNav()"></view>
  630. <!-- 海报展示 -->
  631. <view class="poster-pop" v-if="canvasStatus">
  632. <image :src="imagePath"></image>
  633. </view>
  634. <view class="canvas" v-else>
  635. <canvas style="width: 750px; height: 1190px" canvas-id="firstCanvas"></canvas>
  636. <canvas canvas-id="qrcode" :style="{ width: `${qrcodeSize}px`, height: `${qrcodeSize}px` }" />
  637. </view>
  638. <!-- 发送给朋友图片 -->
  639. <view class="share-box" v-if="H5ShareBox">
  640. <image :src="urlDomain + 'crmebimage/presets/share-info.png'" @click="H5ShareBox = false"></image>
  641. </view>
  642. <!-- 保障服务弹窗 -->
  643. <tui-drawer mode="bottom" :visible="assureDrawer" @close="closeAssure">
  644. <view class="ensure">
  645. <view @click="closeAssure" class="title">保障服务<text class="iconfont icon-guanbi5"></text></view>
  646. <view class="list">
  647. <view class="item acea-row" v-for="(item, index) in guaranteeList" :key="index">
  648. <view class="pictrue">
  649. <!-- <image :src="item.icon"></image> -->
  650. <text :class="(marketingType === ProductMarketingTypeEnum.Groupbuying||productType === ProductTypeEnum.Integral)?'activityIcon':'iconColor'"
  651. class="iconfont icon-gou2"></text>
  652. </view>
  653. <view class="text">
  654. <view class="name">{{ item.name }}</view>
  655. <view>{{ item.content }}</view>
  656. </view>
  657. </view>
  658. </view>
  659. <view class="activityBtn" :class="(marketingType === ProductMarketingTypeEnum.Groupbuying||productType === ProductTypeEnum.Integral)?'bg-red':'bnt'"
  660. @click="assureDrawer = false">完成</view>
  661. </view>
  662. </tui-drawer>
  663. </view>
  664. <!-- 管理弹窗 -->
  665. <uni-popup type="bottom" ref="manageRef">
  666. <view class="manage">
  667. <popup-header title="内容管理" @close="closeManage"></popup-header>
  668. <navigator hover-class="none" :url="`/pages/discover/discover_release/index?fair=${true}&noteId=${dataItem.id}`"
  669. class="items">
  670. <text>编辑</text>
  671. </navigator>
  672. <view class="items" @click.stop="deleteTopic(dataItem)">
  673. <text>删除</text>
  674. </view>
  675. </view>
  676. </uni-popup>
  677. </view>
  678. </template>
  679. <script>
  680. // +----------------------------------------------------------------------
  681. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  682. // +----------------------------------------------------------------------
  683. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  684. // +----------------------------------------------------------------------
  685. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  686. // +----------------------------------------------------------------------
  687. // | Author: CRMEB Team <admin@crmeb.com>
  688. // +----------------------------------------------------------------------
  689. import uQRCode from "@/js_sdk/Sansnn-uQRCode/uqrcode.js";
  690. import {
  691. HTTP_H5_URL
  692. } from "@/config/app.js";
  693. import {
  694. getProductDetail,
  695. collectAdd,
  696. collectCancel,
  697. postCartAdd,
  698. getReplyConfig,
  699. getReplyProduct,
  700. } from "@/api/product.js";
  701. import {
  702. getCoupons,
  703. tokenIsExistApi
  704. } from "@/api/api.js";
  705. import {
  706. merCustomerApi
  707. } from "@/api/merchant.js";
  708. import {
  709. getCartCounts
  710. } from "@/api/order.js";
  711. import {
  712. toLogin
  713. } from "@/libs/login.js";
  714. import {
  715. secondHandDelApi,
  716. secondHandConcernedDelApi,
  717. secondHandDetailApi,
  718. secondHandReplyLikeApi
  719. } from '@/api/discover.js';
  720. import {
  721. mapGetters
  722. } from "vuex";
  723. import {
  724. imageBase64
  725. } from "@/api/public";
  726. import productConSwiper from "../components/productConSwiper/index.vue";
  727. import couponListWindow from "../components/getCoponWindow";
  728. import productWindow from "@/components/productWindow";
  729. import userEvaluation from "../components/userEvaluation";
  730. import cusPreviewImg from "../components/cus-previewImg/cus-previewImg.vue";
  731. import merHome from "@/components/merHome/index.vue";
  732. import mpHtml from "@/uni_modules/mp-html/components/mp-html/mp-html.vue";
  733. import {
  734. silenceBindingSpread
  735. } from "@/utils";
  736. import parser from "../components/jyf-parser/jyf-parser";
  737. import tuiDrawer from "../components/tui-drawer/index.vue";
  738. import tuiSkeleton from "@/components/base/tui-skeleton.vue";
  739. import easyLoadimage from "@/components/base/easy-loadimage.vue";
  740. import svipPrice from "@/components/svipPrice.vue";
  741. // #ifdef MP
  742. import {
  743. base64src
  744. } from "@/utils/base64src.js";
  745. import {
  746. mpQrcode
  747. } from "@/api/api.js";
  748. // #endif
  749. let app = getApp();
  750. import {
  751. setThemeColor
  752. } from "@/utils/setTheme.js";
  753. import {
  754. Debounce
  755. } from "@/utils/validate.js";
  756. import {
  757. chatConfig
  758. } from "@/utils/consumerType.js";
  759. import {
  760. goProductDetail
  761. } from "@/libs/order.js";
  762. import seckillCard from "./components/seckillCard.vue";
  763. import groupCard from "./components/groupCard.vue";
  764. import groupPlaying from "./components/groupPlaying.vue";
  765. import groupDoing from "./components/groupDoing.vue";
  766. import activityStyle from "./components/activityStyle.vue";
  767. import navBar from '@/components/navBar';
  768. import {
  769. onGetPreOrder,
  770. onGetPreSecondHandOrder
  771. } from "@/libs/order";
  772. import * as filters from "@/filters";
  773. import {
  774. ProductMarketingTypeEnum,
  775. ProductTypeEnum,
  776. } from "@/enums/productEnums";
  777. import useActivity from "@/mixins/useActivity";
  778. import Cache from "../../../utils/cache";
  779. let sysHeight = uni.getSystemInfoSync().statusBarHeight;
  780. export default {
  781. mixins: [useActivity],
  782. components: {
  783. productConSwiper,
  784. couponListWindow,
  785. productWindow,
  786. userEvaluation,
  787. cusPreviewImg,
  788. merHome,
  789. "jyf-parser": parser,
  790. tuiDrawer,
  791. tuiSkeleton,
  792. easyLoadimage,
  793. seckillCard,
  794. activityStyle,
  795. svipPrice,
  796. groupCard,
  797. groupPlaying,
  798. groupDoing,
  799. mpHtml,
  800. navBar
  801. },
  802. data() {
  803. return {
  804. ProductMarketingTypeEnum: ProductMarketingTypeEnum,
  805. ProductTypeEnum: ProductTypeEnum,
  806. urlDomain: this.$Cache.get("imgHost"),
  807. sysHeight: sysHeight,
  808. showSkeleton: true, //骨架屏显示隐藏
  809. isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
  810. //属性是否打开
  811. coupon: {
  812. coupon: false,
  813. type: 2,
  814. list: [],
  815. count: [],
  816. },
  817. attrTxt: "请选择", //属性页面提示
  818. attrValue: "", //已选属性
  819. animated: false, //购物车动画
  820. id: 0, //商品id
  821. replyCount: 0, //总评论数量
  822. reply: [], //评论列表
  823. productInfo: {}, //商品详情
  824. productValue: [], //系统属性
  825. couponList: [], //优惠券
  826. cart_num: 1, //购买数量
  827. isOpen: false, //是否打开属性组件
  828. actionSheetHidden: true,
  829. storeImage: "", //海报产品图
  830. PromotionCode: "", //二维码图片
  831. posterbackgd: "../static/images/posterbackgd.png",
  832. pinkbackgd: "../static/images/pink_share.png",
  833. pinkWhiteBg: "../static/images/whiteBg.png",
  834. sharePacket: {
  835. isState: true, //默认不显示
  836. touchstart: false,
  837. }, //分销商详细
  838. circular: false,
  839. autoplay: false,
  840. interval: 3000,
  841. duration: 500,
  842. clientHeight: "",
  843. systemStore: {}, //门店信息
  844. good_list: [],
  845. replyChance: 0,
  846. CartCount: 0,
  847. isDown: true,
  848. posters: false,
  849. weixinStatus: false,
  850. attr: {
  851. cartAttr: false,
  852. productAttr: [],
  853. productSelect: {},
  854. },
  855. description: "",
  856. navActive: 0,
  857. H5ShareBox: false, //公众号分享图片
  858. activityH5: [],
  859. retunTop: true, //顶部返回
  860. navH: "",
  861. navList: [],
  862. opacity: 0,
  863. scrollY: 0,
  864. topArr: [],
  865. height: 0,
  866. heightArr: [],
  867. lock: false,
  868. scrollTop: 0,
  869. tagStyle: {
  870. img: "width:100%;display:block;",
  871. table: "width:100%",
  872. video: "width:100%",
  873. },
  874. sliderImage: [],
  875. videoLink: "",
  876. qrcodeSize: 600,
  877. canvasStatus: false, //是否显示海报
  878. imagePath: "", //海报路径
  879. imgTop: "",
  880. errT: "",
  881. homeTop: 59,
  882. navbarRight: 0,
  883. userCollect: false,
  884. options: null,
  885. returnShow: true, //判断顶部返回是否出现
  886. marketingType: 0, //视频号普通商品营销类型
  887. theme: app.go,
  888. indicatorBg: "",
  889. shareStatus: true,
  890. skuArr: [],
  891. currentPage: false,
  892. selectSku: "",
  893. selectNavList: [{
  894. name: "首页",
  895. icon: "icon-shouye8",
  896. url: "/pages/index/index",
  897. after: "dialog_after",
  898. },
  899. {
  900. name: "搜索",
  901. icon: "icon-sousuo6",
  902. url: "/pages/goods/goods_list/index",
  903. after: "dialog_after",
  904. },
  905. {
  906. name: "购物车",
  907. icon: "icon-gouwuche7",
  908. url: "/pages/order_addcart/order_addcart",
  909. after: "dialog_after",
  910. },
  911. {
  912. name: "我的收藏",
  913. icon: "icon-shoucang3",
  914. url: "/pages/goods/user_goods_collection/index",
  915. after: "dialog_after",
  916. },
  917. {
  918. name: "个人中心",
  919. icon: "icon-gerenzhongxin1",
  920. url: "/pages/user/index",
  921. },
  922. ],
  923. defaultCoupon: [],
  924. couponDeaultType: [{
  925. useType: 1,
  926. }, ],
  927. guaranteeList: [],
  928. assureDrawer: false,
  929. merchantInfo: {},
  930. isShowTypeId: false,
  931. serviceConfig: {},
  932. seckillStatus: 0,
  933. seckillTime: null,
  934. homeTopApp: 0,
  935. shareRight: 0,
  936. searchHeight: 0,
  937. masterProductId: 0, //活动商品中主商品id
  938. tokenIsExist: false, //校验token是否有效
  939. publicLoginType: app.globalData.publicLoginType, //公众号登录方式(单选),1微信授权,2手机号登录
  940. productType: 0, //商品类型 0=普通商品,1-积分商品,2-虚拟商品,4=视频号,5-云盘商品,6-卡密商品
  941. //普通价格
  942. svipPriceStyle: {
  943. svipBox: {
  944. height: "34rpx",
  945. borderRadius: "60rpx 56rpx 56rpx 20rpx",
  946. },
  947. icon: {
  948. fontSize: "23rpx",
  949. height: "34rpx",
  950. borderRadius: "16rpx 0 16rpx 2rpx",
  951. },
  952. price: {
  953. fontSize: "44rpx",
  954. },
  955. svipPrice: {
  956. fontSize: "27rpx",
  957. },
  958. topStyle: {
  959. top: "6rpx",
  960. },
  961. },
  962. productPrice: {
  963. price: "",
  964. vipPrice: "",
  965. isPaidMember: false, //是否是付费会员商品
  966. redeemIntegral: 0,
  967. },
  968. //svip价格
  969. svipIconStyle: {
  970. svipBox: {
  971. height: "34rpx",
  972. borderRadius: "36rpx 40rpx 40rpx 0.4rpx",
  973. },
  974. price: {
  975. fontSize: "44rpx",
  976. },
  977. svipPrice: {
  978. fontSize: "22rpx",
  979. },
  980. },
  981. groupBuyActivityResponse: "",
  982. groupActivityId: "",
  983. buyLimitNum: "",
  984. groupRecordId: 0,
  985. isPink: 0,
  986. skuImage: [], //规格小图
  987. iSshop: 0, //判断是否显示店铺
  988. cart: [],
  989. dataItem: null,
  990. isManage: false
  991. };
  992. },
  993. computed: {
  994. ...mapGetters(["isLogin", "uid", "chatUrl", "globalData"]),
  995. shareStyle() {
  996. return {
  997. top: this.homeTopApp + 'px',
  998. right: this.shareRight + 'px',
  999. // #ifdef MP
  1000. width: this.searchHeight + 'px',
  1001. height: this.searchHeight + 'px',
  1002. lineHeight: this.searchHeight - 2 + 'px',
  1003. borderRadius: this.searchHeight / 2 + 'px',
  1004. // #endif
  1005. }
  1006. }
  1007. },
  1008. watch: {
  1009. isOpen(nVal) {
  1010. if (!nVal && this.isPink) {
  1011. this.groupRecordId = 0;
  1012. }
  1013. },
  1014. },
  1015. created() {
  1016. var pages = getCurrentPages();
  1017. this.returnShow = pages.length === 1 ? false : true;
  1018. //用户从分享卡片进入的场景下获取主题色配置
  1019. this.$set(this, "theme", this.$Cache.get("theme"));
  1020. //判断顶部返回是否出现
  1021. var pages = getCurrentPages();
  1022. this.returnShow = pages.length === 1 ? false : true;
  1023. if (pages.length <= 1) {
  1024. this.retunTop = false;
  1025. }
  1026. //页面中需要计算的一些值
  1027. // #ifdef MP
  1028. const res = uni.getMenuButtonBoundingClientRect()
  1029. this.homeTopApp = res.top; //胶囊距离顶部
  1030. this.searchHeight = res.height;
  1031. this.shareRight = res.width + 15;
  1032. // #endif
  1033. // #ifdef APP
  1034. this.homeTopApp = this.sysHeight + 6;
  1035. this.shareRight = 15
  1036. // #endif
  1037. // #ifdef H5
  1038. this.homeTopApp = 9;
  1039. this.shareRight = 50
  1040. // #endif
  1041. this.navH = this.globalData.navHeight;
  1042. let that = this;
  1043. uni.getSystemInfo({
  1044. success: function(res) {
  1045. that.height = res.windowHeight;
  1046. //res.windowHeight:获取整个窗口高度为px,*2为rpx;98为头部占据的高度;
  1047. // #ifndef APP-PLUS || H5 || MP-ALIPAY
  1048. that.navbarRight =
  1049. res.windowWidth - uni.getMenuButtonBoundingClientRect().left;
  1050. // #endif
  1051. },
  1052. });
  1053. },
  1054. onLoad(options) {
  1055. //获取浏览器传来的对象
  1056. this.options = options;
  1057. this.isManage = +options.isManage
  1058. if (options.cart) {
  1059. this.cart = JSON.parse(options.cart) || []
  1060. }
  1061. if (options.dataItem) {
  1062. this.dataItem = JSON.parse(options.dataItem) || {}
  1063. this.getSecondHandDetailApi()
  1064. this.productPrice.price = this.dataItem.price || '';
  1065. }
  1066. console.log(this.dataItem)
  1067. this.iSshop = this.options.iSshop //判断显示店铺
  1068. //获取浏览器秒杀状态、秒杀时间
  1069. if (options.status) this.seckillStatus = Number(options.status); //秒杀状态
  1070. if (options.datatime) this.seckillTime = Number(options.datatime); //秒杀时间
  1071. if (options.gd) this.groupActivityId = options.gd; //拼团活动id
  1072. if (options.rd) this.groupRecordId = options.rd; //是否为参团
  1073. if (options.sd) this.$store.commit('Change_Spread', options.sd); //分享id
  1074. //获取浏览器中的参数,商品id,商品类型type,普通normal,秒杀seckill,砍价,拼团,视频号video
  1075. if (!options.scene && !options.id) {
  1076. this.showSkeleton = false;
  1077. this.$util.Tips({
  1078. title: "缺少参数无法查看商品",
  1079. }, {
  1080. url: "/pages/index/index",
  1081. });
  1082. return;
  1083. }
  1084. if (options.id) this.id = options.id;
  1085. //订单中跳入商品详情,点击进入商品详情获取商品类型
  1086. //marketingType商品类型:0-普通,1-秒杀seckill,2-拼团
  1087. this.marketingType = Number(options.mt);
  1088. // 仅仅小程序扫码进入获取商品id,商品类型
  1089. if (options.scene) {
  1090. let value = this.$util.getUrlParams(decodeURIComponent(options.scene));
  1091. this.id = value.id ? value.id : "";
  1092. this.marketingType = Number(value.mt);
  1093. if (value.sd) this.$store.commit('Change_Spread', value.sd);
  1094. if (value.gd) this.groupActivityId = value.gd; //拼团活动id
  1095. if (value.rd) this.groupRecordId = value.rd; //是否为参团
  1096. //this.type = value.type ? value.type : 'normal';
  1097. }
  1098. //商品类型存入vuex中
  1099. this.$store.commit("PRODUCT_TYPE", this.marketingType);
  1100. //商品详情
  1101. !this.dataItem ? this.getGoodsDetails() : this.showSkeleton = false;
  1102. this.indicatorBg = setThemeColor();
  1103. },
  1104. onShow() {
  1105. //校验token是否有效,true为有效,false为无效
  1106. this.getTokenIsExist();
  1107. !this.dataItem ? this.getGoodsDetails() : this.showSkeleton = false;
  1108. },
  1109. onReady() {
  1110. this.isNodes++;
  1111. this.$nextTick(function() {
  1112. // #ifdef MP
  1113. const menuButton = uni.getMenuButtonBoundingClientRect();
  1114. const query = uni.createSelectorQuery().in(this);
  1115. query
  1116. .select("#home")
  1117. .boundingClientRect((data) => {
  1118. // 加强判断 data 是否有效并且包含 height
  1119. const homeHeight = (data && data.height) ? data.height : 0; // 如果 data 存在且有 height,则使用 height,否则使用 0
  1120. this.homeTop = menuButton.top * 2 + menuButton.height - homeHeight;
  1121. // this.homeTop = menuButton.top * 2 + menuButton.height - data.height;
  1122. })
  1123. .exec();
  1124. // #endif
  1125. });
  1126. },
  1127. // 滚动监听
  1128. onPageScroll(e) {
  1129. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  1130. uni.$emit("scroll");
  1131. },
  1132. // #ifdef MP
  1133. /**
  1134. * 用户点击右上角分享到朋友圈
  1135. */
  1136. onShareTimeline() {
  1137. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  1138. return {
  1139. title: this.productInfo.name || "",
  1140. imageUrl: this.productInfo.image || "",
  1141. query: `id=${this.id}&mt=${this.marketingType}&gd=${this.groupActivityId}&sd=${this.uid}`,
  1142. };
  1143. } else {
  1144. return {
  1145. title: this.productInfo.name || "",
  1146. imageUrl: this.productInfo.image || "",
  1147. query: `id=${this.id}&mt=${this.marketingType}&sd=${this.uid}`,
  1148. };
  1149. }
  1150. },
  1151. /**
  1152. * 用户点击右上角分享
  1153. */
  1154. onShareAppMessage(res) {
  1155. this.$set(this, "actionSheetHidden", !this.actionSheetHidden);
  1156. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  1157. return {
  1158. title: this.productInfo.name || "",
  1159. imageUrl: this.productInfo.image || "",
  1160. path: `/pages/goods/goods_details/index?id=${this.id}&mt=${this.marketingType}&gd=${this.groupActivityId}&sd=${this.uid}`,
  1161. };
  1162. } else {
  1163. return {
  1164. title: this.productInfo.name || "",
  1165. imageUrl: this.productInfo.image || "",
  1166. path: `/pages/goods/goods_details/index?id=${this.id}&mt=${this.marketingType}&sd=${this.uid}`,
  1167. };
  1168. }
  1169. },
  1170. // #endif
  1171. methods: {
  1172. //关闭操作管理
  1173. closeManage() {
  1174. this.$refs.manageRef.close();
  1175. },
  1176. //操作管理
  1177. handleManage() {
  1178. this.$refs.manageRef.open('bottom');
  1179. },
  1180. // 删除内容
  1181. deleteTopic(noteDetails) {
  1182. let that = this;
  1183. uni.showModal({
  1184. content: '确定要删除该内容么?',
  1185. success: function(res) {
  1186. if (res.confirm) {
  1187. secondHandDelApi(noteDetails.id).then(res => {
  1188. that.$util.Tips({
  1189. title: '删除成功'
  1190. });
  1191. setTimeout(function() {
  1192. uni.redirect({
  1193. url: '/pages/trade_fair/trade_fair_user/index'
  1194. })
  1195. }, 1000);
  1196. }).catch(err => {
  1197. uni.showToast({
  1198. title: err,
  1199. icon: 'none'
  1200. })
  1201. });
  1202. } else if (res.cancel) {
  1203. console.log('用户点击取消');
  1204. }
  1205. }
  1206. });
  1207. },
  1208. //滚动
  1209. touchStart() {
  1210. this.$refs.navBarRef.currentPage = false;
  1211. },
  1212. getShareInfo() {
  1213. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  1214. return {
  1215. title: this.productInfo.name || "",
  1216. imageUrl: this.productInfo.image || "",
  1217. path: `/pages/goods/goods_details/index?id=${this.id}&mt=${this.marketingType}&gd=${this.groupActivityId}&sd=${this.uid}`,
  1218. };
  1219. } else {
  1220. return {
  1221. title: this.productInfo.name || "",
  1222. imageUrl: this.productInfo.image || "",
  1223. path: `/pages/goods/goods_details/index?id=${this.id}&mt=${this.marketingType}&sd=${this.uid}`,
  1224. };
  1225. }
  1226. },
  1227. //去拼团
  1228. toGroup(e) {
  1229. this.goBuy();
  1230. this.groupRecordId = e;
  1231. this.isPink = 1;
  1232. },
  1233. buyLimit(e) {
  1234. this.buyLimitNum = e;
  1235. },
  1236. //校验token是否有效,true为有效,false为无效
  1237. getTokenIsExist() {
  1238. tokenIsExistApi().then((res) => {
  1239. this.tokenIsExist = res.data;
  1240. if (this.isLogin && this.tokenIsExist) {
  1241. this.getUserIntegral(); //获取我的积分
  1242. this.getCouponList();
  1243. this.getCartCount(true);
  1244. }
  1245. silenceBindingSpread(this.isLogin, this.globalData.spread);
  1246. });
  1247. },
  1248. getMerCustomer(id) {
  1249. merCustomerApi(id).then((res) => {
  1250. this.serviceConfig = res.data;
  1251. });
  1252. },
  1253. closeAssure() {
  1254. this.assureDrawer = false;
  1255. },
  1256. // #ifdef APP-PLUS
  1257. appShare(scene) {
  1258. let that = this;
  1259. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  1260. let curRoute = routes[routes.length - 1].$page.fullPath; // 获取当前页面路由,也就是最后一个打开的页面路由
  1261. uni.share({
  1262. provider: "weixin",
  1263. scene: scene,
  1264. type: 0,
  1265. href: `${HTTP_H5_URL}${curRoute}&sd=${that.uid}&mt=${this.marketingType}&gd=${this.groupActivityId}`,
  1266. title: that.productInfo.name,
  1267. summary: that.productInfo.intro ? that.productInfo.intro : '',
  1268. imageUrl: that.productInfo.image,
  1269. success: function(res) {
  1270. that.posters = false;
  1271. },
  1272. fail: function(err) {
  1273. uni.showToast({
  1274. title: "分享失败",
  1275. icon: "none",
  1276. duration: 2000,
  1277. });
  1278. that.posters = false;
  1279. },
  1280. });
  1281. },
  1282. // #endif
  1283. kefuClick() {
  1284. if (this.productType === this.ProductTypeEnum.Integral) {
  1285. chatConfig(this.$Cache.getItem("platChatConfig"));
  1286. } else {
  1287. chatConfig(this.serviceConfig);
  1288. }
  1289. },
  1290. getSecondHandDetailApi() {
  1291. let that = this;
  1292. secondHandDetailApi(this.dataItem.id).then((res) => {
  1293. that.dataItem = res.data
  1294. });
  1295. },
  1296. shoucangClick() {
  1297. let that = this;
  1298. secondHandConcernedDelApi(this.dataItem.id).then((res) => {
  1299. let title = that.dataItem.isConcerned ? '收藏成功' : '取消收藏'
  1300. that.$util.Tips({
  1301. title: title,
  1302. });
  1303. that.getSecondHandDetailApi()
  1304. });
  1305. },
  1306. goActivity: function(e) {
  1307. let item = e;
  1308. if (item.type === "1") {
  1309. uni.navigateTo({
  1310. url: `/pages/activity/goods_seckill_details/index?id=${item.id}`,
  1311. });
  1312. } else if (item.type === "2") {
  1313. uni.navigateTo({
  1314. url: `/pages/activity/goods_bargain_details/index?id=${item.id}&startBargainUid=${this.uid}`,
  1315. });
  1316. } else {
  1317. uni.navigateTo({
  1318. url: `/pages/activity/goods_combination_details/index?id=${item.id}`,
  1319. });
  1320. }
  1321. },
  1322. /**
  1323. * 购物车手动填写
  1324. *
  1325. */
  1326. iptCartNum: function(e) {
  1327. this.$set(this.attr.productSelect, "cart_num", e);
  1328. },
  1329. // 后退
  1330. returns: function() {
  1331. uni.navigateBack();
  1332. },
  1333. showNav() {
  1334. this.currentPage = !this.currentPage;
  1335. },
  1336. tap: function(index) {
  1337. var id = "past" + index;
  1338. this.$set(this, "navActive", index);
  1339. this.$set(this, "lock", true);
  1340. this.$set(
  1341. this,
  1342. "scrollTop",
  1343. index > 0 ?
  1344. this.topArr[index] - this.globalData.navHeight / 2 :
  1345. this.topArr[index]
  1346. );
  1347. },
  1348. scroll: function(e) {
  1349. var that = this,
  1350. scrollY = e.detail.scrollTop;
  1351. var opacity = scrollY / 200;
  1352. opacity = opacity > 1 ? 1 : opacity;
  1353. that.$set(that, "opacity", opacity);
  1354. that.$set(that, "scrollY", scrollY);
  1355. if (that.lock) {
  1356. that.$set(that, "lock", false);
  1357. return;
  1358. }
  1359. for (var i = 0; i < that.topArr.length; i++) {
  1360. if (
  1361. scrollY <
  1362. that.topArr[i] - this.globalData.navHeight / 2 + that.heightArr[i]
  1363. ) {
  1364. that.$set(that, "navActive", i);
  1365. break;
  1366. }
  1367. }
  1368. that.$set(that.sharePacket, "touchstart", true); //滑动屏幕时让分享气泡缩回
  1369. uni.$emit("scroll");
  1370. },
  1371. /*
  1372. *去商品详情页
  1373. */
  1374. goDetail(id) {
  1375. goProductDetail(id, 0, "");
  1376. },
  1377. ChangCouponsClone: function() {
  1378. this.$set(this.coupon, "coupon", false);
  1379. },
  1380. /**
  1381. * 购物车数量加和数量减
  1382. *
  1383. */
  1384. ChangeCartNum: function(changeValue, buyLimitNum, type) {
  1385. //changeValue:是否 加|减
  1386. //获取当前变动属性
  1387. let productSelect = this.productValue[this.attrValue];
  1388. //如果没有属性,赋值给商品默认库存
  1389. if (productSelect === undefined && !this.attr.productAttr.length)
  1390. productSelect = this.attr.productSelect;
  1391. //无属性值即库存为0;不存在加减;
  1392. let flag = false;
  1393. if (productSelect.groupStock === null && productSelect.stock === 0) {
  1394. flag = true
  1395. }
  1396. if (productSelect.groupStock != null && (productSelect.stock === 0 || productSelect.groupStock ===
  1397. 0)) {
  1398. flag = true
  1399. }
  1400. if (flag) return;
  1401. let stock;
  1402. if (type == 2) {
  1403. stock = buyLimitNum || 0;
  1404. } else {
  1405. stock = productSelect.stock || 0;
  1406. }
  1407. let num = this.attr.productSelect;
  1408. if (changeValue) {
  1409. num.cart_num++;
  1410. if (num.cart_num > stock) {
  1411. this.$set(this.attr.productSelect, "cart_num", stock);
  1412. this.$set(this, "cart_num", stock);
  1413. }
  1414. } else {
  1415. num.cart_num--;
  1416. if (num.cart_num < 1) {
  1417. this.$set(this.attr.productSelect, "cart_num", 1);
  1418. this.$set(this, "cart_num", 1);
  1419. }
  1420. }
  1421. },
  1422. attrVal(val) {
  1423. this.$set(this.attr.productAttr[val.indexw], 'index', this.attr.productAttr[val.indexw].attrValues[val
  1424. .indexn]);
  1425. },
  1426. checkedAttr(productSelect) {
  1427. this.$set(this.attr.productSelect, "name", this.productInfo.name);
  1428. this.$set(this.attr.productSelect, "image", productSelect.image);
  1429. this.$set(this.attr.productSelect, "price", productSelect.price);
  1430. this.$set(this.attr.productSelect, "stock", productSelect.stock);
  1431. this.$set(this.attr.productSelect, "unique", productSelect.id);
  1432. this.$set(this.attr.productSelect, "cart_num", 1);
  1433. this.$set(this.attr.productSelect, "vipPrice", productSelect.vipPrice);
  1434. this.$set(this.attr.productSelect, "otPrice", productSelect.otPrice);
  1435. this.$set(
  1436. this.attr.productSelect,
  1437. "groupPrice",
  1438. productSelect.groupPrice
  1439. );
  1440. this.$set(
  1441. this.attr.productSelect,
  1442. "groupStock",
  1443. productSelect.groupStock
  1444. );
  1445. this.$set(
  1446. this.attr.productSelect,
  1447. "isPaidMember",
  1448. this.productInfo.isPaidMember
  1449. );
  1450. this.$set(
  1451. this.attr.productSelect,
  1452. "redeemIntegral",
  1453. productSelect.redeemIntegral
  1454. );
  1455. this.$set(this.attr.productSelect, "cost", productSelect.cost);
  1456. this.$set(this, "attrTxt", "已选择");
  1457. },
  1458. // 没有规格选择
  1459. noCheckedAttr() {
  1460. this.$set(this.attr.productSelect, "name", this.productInfo.name);
  1461. this.$set(this.attr.productSelect, "image", this.productInfo.image);
  1462. this.$set(this.attr.productSelect, "price", this.productInfo.price);
  1463. this.$set(this.attr.productSelect, "stock", 0);
  1464. this.$set(this.attr.productSelect, "unique", this.productInfo.id);
  1465. this.$set(this.attr.productSelect, "cart_num", 1);
  1466. this.$set(this.attr.productSelect, "vipPrice", this.productInfo.vipPrice);
  1467. this.$set(this.attr.productSelect, "otPrice", this.productInfo.otPrice);
  1468. this.$set(this.attr.productSelect, "groupPrice", this.productInfo.groupPrice);
  1469. this.$set(
  1470. this.attr.productSelect,
  1471. "isPaidMember",
  1472. this.productInfo.isPaidMember
  1473. );
  1474. this.$set(
  1475. this.attr.productSelect,
  1476. "redeemIntegral",
  1477. this.productInfo.redeemIntegral
  1478. );
  1479. this.$set(this.attr.productSelect, "cost", this.productInfo.cost);
  1480. this.$set(this, "attrValue", "");
  1481. this.$set(this, "attrTxt", "请选择");
  1482. },
  1483. // 当前展示的金额
  1484. getProductPrice() {
  1485. this.productPrice = {
  1486. price: this.attr.productSelect.price,
  1487. vipPrice: this.attr.productSelect.vipPrice,
  1488. isPaidMember: this.productInfo.isPaidMember, //是否是付费会员商品
  1489. redeemIntegral: this.attr.productSelect.redeemIntegral, //积分
  1490. };
  1491. },
  1492. /**
  1493. * 属性变动赋值
  1494. *
  1495. */
  1496. ChangeAttr: function(res) {
  1497. let productSelect = this.productValue[res];
  1498. this.$set(this, "selectSku", productSelect);
  1499. if (!productSelect) {
  1500. this.$util.Tips({
  1501. title: '重新选择',
  1502. success: () => {
  1503. this.noGoods = true;
  1504. this.attr.productSelect.stock = 0;
  1505. this.attr.productSelect.quota = 0;
  1506. this.attr.productSelect.cartNum = 0;
  1507. this.attr.productSelect.image = this.productInfo.image;
  1508. }
  1509. });
  1510. } else {
  1511. this.checkedAttr(productSelect);
  1512. this.$set(this, "attrValue", res);
  1513. }
  1514. this.getProductPrice();
  1515. },
  1516. /**
  1517. * 领取完毕移除当前页面领取过的优惠券展示
  1518. */
  1519. ChangCoupons: function(e) {
  1520. let coupon = e;
  1521. let couponList = this.$util.ArrayRemove(this.couponList, "id", coupon.id);
  1522. this.getCouponList();
  1523. },
  1524. setClientHeight: function() {
  1525. let that = this;
  1526. if (!that.good_list.length) return;
  1527. let view = uni.createSelectorQuery().in(this).select("#list0");
  1528. view
  1529. .fields({
  1530. size: true,
  1531. },
  1532. (data) => {
  1533. that.$set(that, "clientHeight", data.height + 20);
  1534. }
  1535. )
  1536. .exec();
  1537. },
  1538. /**
  1539. * 获取产品详情
  1540. *
  1541. */
  1542. getGoodsDetails: function() {
  1543. let that = this;
  1544. //that.id, that.marketingType
  1545. getProductDetail(that.id, that.marketingType, 0, this.groupActivityId)
  1546. .then((res) => {
  1547. let data = res.data;
  1548. let productInfo = data.productInfo;
  1549. // 字符串数组转数组;
  1550. let arrayImg = productInfo.sliderImage;
  1551. let sliderImage = JSON.parse(arrayImg);
  1552. if (that.getFileType(sliderImage[0]) == "video") {
  1553. //判断轮播图第一张是否是视频,如果是,就赋值给videoLink,并且将其在轮播图中删除
  1554. this.$set(this, "videoLink", sliderImage[0]);
  1555. sliderImage.splice(0, 1);
  1556. }
  1557. that.productType = productInfo.type; //商品类型 0=普通商品,1-积分商品,2-虚拟商品,4=视频号,5-云盘商品,6-卡密商品
  1558. that.getSeckillInfo(data); // 秒杀
  1559. that.$set(that, "couponList", data.couponList);
  1560. that.$set(that, "sliderImage", sliderImage);
  1561. that.$set(that, "productInfo", productInfo);
  1562. that.$set(that, "masterProductId", data.masterProductId || 0);
  1563. that.$set(that, "merchantInfo", data.merchantInfo);
  1564. that.$set(that, "description", productInfo.content);
  1565. that.$set(that, "userCollect", data.userCollect);
  1566. that.$set(that.attr, "productAttr", data.productAttr);
  1567. that.$set(that, "productValue", data.productValue);
  1568. that.$set(
  1569. that,
  1570. "guaranteeList",
  1571. data.guaranteeList ? data.guaranteeList : []
  1572. );
  1573. data.groupBuyActivityResponse &&
  1574. that.$set(
  1575. that,
  1576. "groupBuyActivityResponse",
  1577. data.groupBuyActivityResponse
  1578. );
  1579. // 获取suk小图
  1580. this.getSkuImage()
  1581. let navList =
  1582. that.productType !== ProductTypeEnum.Integral ? ["商品", "评价", "详情"] : ["商品", "详情"];
  1583. this.$set(that, "navList", navList);
  1584. if (productInfo.merId) that.getMerCustomer(productInfo.merId);
  1585. for (let key in data.productValue) {
  1586. let obj = data.productValue[key];
  1587. that.skuArr.push(obj);
  1588. }
  1589. this.$set(this, "selectSku", that.skuArr[0]);
  1590. uni.setNavigationBarTitle({
  1591. title: productInfo.name.substring(0, 7) + "...",
  1592. });
  1593. let productAttr = this.attr.productAttr.map((item) => {
  1594. return {
  1595. attrName: item.attributeName,
  1596. attrValues: item.optionList.map(items => items.optionName),
  1597. id: item.id,
  1598. isDel: item.isDel,
  1599. productId: item.productId,
  1600. optionList: item.optionList
  1601. // type: item.type,
  1602. };
  1603. });
  1604. this.$set(this.attr, "productAttr", productAttr);
  1605. this.getProductReplyList();
  1606. this.getProductReplyCount();
  1607. //#ifdef H5
  1608. that.make(that.uid);
  1609. that.ShareInfo();
  1610. this.getImageBase64(this.productInfo.image);
  1611. // #endif
  1612. // #ifdef MP
  1613. that.getQrcode();
  1614. // #endif
  1615. setTimeout(function() {
  1616. that.infoScroll();
  1617. }, 500);
  1618. // #ifdef MP
  1619. that.imgTop = data.productInfo.image;
  1620. // #endif
  1621. // #ifndef H5
  1622. that.downloadFilestoreImage();
  1623. // #endif
  1624. that.DefaultSelect();
  1625. this.showSkeleton = false;
  1626. setTimeout(() => {
  1627. this.defaultCoupon = this.coupon.list;
  1628. }, 1000);
  1629. })
  1630. .catch((err) => {
  1631. //状态异常返回上级页面
  1632. that.$util.Tips({
  1633. title: err.toString(),
  1634. }, {
  1635. tab: 3,
  1636. url: 1,
  1637. });
  1638. this.showSkeleton = false;
  1639. });
  1640. },
  1641. // 获取suk小图
  1642. getSkuImage() {
  1643. let sku = []
  1644. let skuTable = []
  1645. this.attr.productAttr.map((item) => {
  1646. item.optionList.map(items => {
  1647. if (items.image) sku.push(items.image)
  1648. });
  1649. })
  1650. const uniqueData = sku.filter((item, index, self) =>
  1651. index === self.findIndex((t) => t === item))
  1652. if (uniqueData.length > 0) {
  1653. this.skuImage = uniqueData
  1654. } else {
  1655. for (let key in this.productValue) {
  1656. let obj = this.productValue[key];
  1657. skuTable.push(obj.image);
  1658. }
  1659. this.skuImage = skuTable.filter((item, index, self) =>
  1660. index === self.findIndex((t) => t === item))
  1661. }
  1662. },
  1663. // 秒杀
  1664. getSeckillInfo(data) {
  1665. let startTimeStamp = data.startTimeStamp; //秒杀开始结束时间戳
  1666. let endTimeStamp = data.endTimeStamp;
  1667. if (
  1668. !this.options.datatime &&
  1669. this.marketingType === ProductMarketingTypeEnum.Seckill
  1670. ) {
  1671. let data = Date.parse(new Date());
  1672. if (Number(data) < Number(startTimeStamp)) {
  1673. this.seckillTime = Number(startTimeStamp) / 1000;
  1674. this.seckillStatus = 2;
  1675. } else if (Number(data) < Number(endTimeStamp)) {
  1676. this.seckillTime = Number(endTimeStamp) / 1000;
  1677. this.seckillStatus = 1;
  1678. } else {
  1679. this.seckillTime = 0;
  1680. this.seckillStatus = 0;
  1681. }
  1682. // seckillStatus 秒杀状态 0=已结束 1=抢购中 2=即将开始 3=明日预告
  1683. }
  1684. },
  1685. getProductReplyList: function() {
  1686. let id =
  1687. Number(this.masterProductId) > 0 ? this.masterProductId : this.id;
  1688. getReplyProduct(id).then((res) => {
  1689. this.reply = res.data.productReply ? [res.data.productReply] : [];
  1690. });
  1691. },
  1692. getProductReplyCount: function() {
  1693. let that = this;
  1694. let id =
  1695. Number(that.masterProductId) > 0 ? that.masterProductId : that.id;
  1696. getReplyConfig(id).then((res) => {
  1697. that.$set(that, "replyChance", res.data.replyChance);
  1698. that.$set(that, "replyCount", res.data.sumCount);
  1699. });
  1700. },
  1701. infoScroll: function() {
  1702. var that = this,
  1703. topArr = [],
  1704. heightArr = [];
  1705. for (var i = 0; i < that.navList.length; i++) {
  1706. //productList
  1707. //获取元素所在位置
  1708. var query = uni.createSelectorQuery().in(this);
  1709. var idView = "#past" + i;
  1710. query.select(idView).boundingClientRect();
  1711. query.exec(function(res) {
  1712. var top = res[0] ? res[0].top : "";
  1713. var height = res[0] ? res[0].height : "";
  1714. topArr.push(top);
  1715. heightArr.push(height);
  1716. that.$set(that, "topArr", topArr);
  1717. that.$set(that, "heightArr", heightArr);
  1718. });
  1719. }
  1720. },
  1721. /**
  1722. * 默认选中属性
  1723. *
  1724. */
  1725. DefaultSelect: function() {
  1726. let productAttr = this.attr.productAttr;
  1727. let value = [];
  1728. let valueobj = [];
  1729. // 先找默认中库存不为0的为默认规格,否则找不是默认中库存不为0的规格
  1730. const productValues = Object.values(this.productValue)
  1731. // 拼团商品中还有groupStock需要判断,拼团与非拼团分判断
  1732. if (this.marketingType === this.ProductMarketingTypeEnum.Groupbuying) {
  1733. const nonZeroDefault = productValues.find(item => item.isDefault && item.stock !== 0 && item
  1734. .groupStock !== 0);
  1735. if (nonZeroDefault) {
  1736. value = productValues.find(item => item.isDefault && item.stock !== 0 && item.groupStock !== 0)
  1737. .sku.split(',');
  1738. } else {
  1739. const haveStock = productValues.find(item => item.stock !== 0 && item.groupStock !== 0)
  1740. if (haveStock) {
  1741. value = productValues.find(item => item.stock !== 0 && item.groupStock !== 0).sku.split(
  1742. ',');
  1743. } else {
  1744. value = [];
  1745. }
  1746. }
  1747. } else {
  1748. const nonZeroDefault = productValues.find(item => item.isDefault && item.stock !== 0);
  1749. if (nonZeroDefault) {
  1750. value = productValues.find(item => item.isDefault && item.stock !== 0).sku.split(',');
  1751. } else {
  1752. const haveStock = productValues.find(item => item.stock !== 0)
  1753. if (haveStock) {
  1754. value = productValues.find(item => item.stock !== 0).sku.split(',');
  1755. } else {
  1756. value = [];
  1757. }
  1758. }
  1759. }
  1760. for (let i = 0; i < value.length; i++) {
  1761. this.$set(productAttr[i], "index", value[i]);
  1762. }
  1763. //sort();排序函数:数字-英文-汉字;
  1764. let productSelect = this.productValue[value.join(",")];
  1765. if (productSelect && productAttr.length) {
  1766. this.checkedAttr(productSelect);
  1767. this.$set(this, "attrValue", value.join(","));
  1768. this.$set(this, "attrTxt", "已选择");
  1769. } else if (!productSelect && productAttr.length) {
  1770. this.noCheckedAttr();
  1771. } else if (!productSelect && !productAttr.length) {
  1772. this.noCheckedAttr();
  1773. }
  1774. this.getProductPrice();
  1775. },
  1776. /**
  1777. * 获取优惠券
  1778. *
  1779. */
  1780. getCouponList() {
  1781. let that = this,
  1782. obj = {
  1783. page: 1,
  1784. limit: 20,
  1785. productId: that.id,
  1786. category: 0,
  1787. };
  1788. getCoupons(obj).then((res) => {
  1789. that.$set(that.coupon, "list", res.data.list);
  1790. });
  1791. },
  1792. async getCouponType() {
  1793. //在onLoad只调用一次,获取默认的类型作为打开优惠券列表的参数,不会随着切换变化
  1794. let dataList = await getCoupons({
  1795. productId: this.id,
  1796. });
  1797. if (dataList.length) {
  1798. this.couponDeaultType = dataList.data;
  1799. this.$set(this.coupon, "type", dataList);
  1800. }
  1801. },
  1802. tabCouponType(type) {
  1803. this.$set(this.coupon, "type", type);
  1804. this.getCouponList();
  1805. },
  1806. ChangCouponsUseState(index) {
  1807. let that = this;
  1808. that.coupon.list[index].isUse = true;
  1809. that.$set(that.coupon, "list", that.coupon.list);
  1810. that.$set(that.coupon, "coupon", false);
  1811. },
  1812. /**
  1813. *
  1814. *
  1815. * 收藏商品
  1816. */
  1817. setCollect: Debounce(function() {
  1818. let that = this;
  1819. if (this.isManage) {
  1820. console.log('不准点')
  1821. return
  1822. }
  1823. if (this.isLogin === false) {
  1824. toLogin("isLogin");
  1825. } else {
  1826. if (this.isManage == 0 && this.dataItem) {
  1827. secondHandReplyLikeApi(this.dataItem.id).then((res) => {
  1828. that.getSecondHandDetailApi()
  1829. });
  1830. } else {
  1831. let id =
  1832. Number(this.masterProductId) > 0 ?
  1833. this.masterProductId :
  1834. this.productInfo.id;
  1835. if (this.userCollect) {
  1836. collectCancel({
  1837. ids: id,
  1838. }).then((res) => {
  1839. that.$set(that, "userCollect", !that.userCollect);
  1840. that.$util.Tips({
  1841. title: "取消收藏",
  1842. });
  1843. });
  1844. } else {
  1845. collectAdd(id).then((res) => {
  1846. that.$set(that, "userCollect", !that.userCollect);
  1847. that.$util.Tips({
  1848. title: "收藏成功",
  1849. });
  1850. });
  1851. }
  1852. }
  1853. }
  1854. }),
  1855. /**
  1856. * 打开属性插件
  1857. */
  1858. selecAttr: function() {
  1859. this.$set(this.attr, "cartAttr", true);
  1860. this.$set(this, "isOpen", true);
  1861. this.attr.productSelect.cart_num = 1;
  1862. },
  1863. /**
  1864. * 打开优惠券插件
  1865. */
  1866. couponTap: function() {
  1867. let that = this;
  1868. if (that.isLogin === false) {
  1869. toLogin();
  1870. } else {
  1871. that.getCouponList(); //打开弹框默认请求商品券
  1872. that.$set(that.coupon, "coupon", true);
  1873. }
  1874. },
  1875. onMyEvent: function() {
  1876. this.$set(this.attr, "cartAttr", false);
  1877. this.$set(this, "isOpen", false);
  1878. this.attr.productSelect.cart_num = 1;
  1879. },
  1880. /**
  1881. * 打开属性加入购物车
  1882. *
  1883. */
  1884. joinCart: Debounce(function(e) {
  1885. //是否登录
  1886. if (this.isLogin === false) {
  1887. toLogin();
  1888. } else {
  1889. this.goCat(1);
  1890. }
  1891. }),
  1892. /*
  1893. * 加入购物车
  1894. */
  1895. goCat: function(num) {
  1896. let that = this,
  1897. productSelect = that.productValue[this.attrValue];
  1898. //打开属性
  1899. if (that.attrValue) {
  1900. //默认选中了属性,但是没有打开过属性弹窗还是自动打开让用户查看默认选中的属性
  1901. that.attr.cartAttr = !that.isOpen ? true : false;
  1902. } else {
  1903. if (that.isOpen) that.attr.cartAttr = true;
  1904. else that.attr.cartAttr = !that.attr.cartAttr;
  1905. }
  1906. //只有关闭属性弹窗时进行加入购物车
  1907. if (that.attr.cartAttr === true && that.isOpen === false)
  1908. return (that.isOpen = true);
  1909. //如果有属性,没有选择,提示用户选择
  1910. if (
  1911. that.attr.productAttr.length &&
  1912. productSelect.stock === 0 &&
  1913. that.isOpen === true
  1914. )
  1915. return that.$util.Tips({
  1916. title: "产品库存不足,请选择其它",
  1917. });
  1918. if (num === 1) {
  1919. let q = {
  1920. productId: parseFloat(that.id),
  1921. cartNum: parseFloat(that.attr.productSelect.cart_num),
  1922. isNew: false,
  1923. productAttrUnique: that.attr.productSelect !== undefined ?
  1924. that.attr.productSelect.unique : that.productInfo.id,
  1925. };
  1926. postCartAdd(q)
  1927. .then(function(res) {
  1928. that.isOpen = false;
  1929. that.attr.cartAttr = false;
  1930. that.$util.Tips({
  1931. title: "添加购物车成功",
  1932. success: () => {
  1933. that.getCartCount(true);
  1934. },
  1935. });
  1936. })
  1937. .catch((res) => {
  1938. that.isOpen = false;
  1939. return that.$util.Tips({
  1940. title: res,
  1941. });
  1942. });
  1943. } else {
  1944. this.getPreOrder();
  1945. }
  1946. },
  1947. /**
  1948. * 获取购物车数量
  1949. * @param boolean 是否展示购物车动画和重置属性
  1950. */
  1951. getCartCount: function(isAnima) {
  1952. let that = this;
  1953. getCartCounts(true, "total")
  1954. .then((res) => {
  1955. that.CartCount = res.data.count;
  1956. //加入购物车后重置属性
  1957. if (isAnima) {
  1958. that.animated = true;
  1959. setTimeout(function() {
  1960. that.animated = false;
  1961. }, 500);
  1962. }
  1963. })
  1964. .catch((err) => {
  1965. that.CartCount = 0;
  1966. });
  1967. },
  1968. /**
  1969. * 立即购买
  1970. */
  1971. goBuy: Debounce(function(e) {
  1972. if (this.isLogin === false) {
  1973. toLogin();
  1974. } else {
  1975. this.goCat(0);
  1976. }
  1977. }),
  1978. /**
  1979. * 二手交易立即购买
  1980. */
  1981. goSecondHand: Debounce(function(e) {
  1982. if (this.isLogin === false) {
  1983. toLogin();
  1984. } else {
  1985. onGetPreSecondHandOrder([{
  1986. orderNo: "",
  1987. productId: this.dataItem.id,
  1988. productNum: 1
  1989. }])
  1990. }
  1991. }),
  1992. /**
  1993. * 预下单
  1994. */
  1995. getPreOrder: function() {
  1996. if (
  1997. this.marketingType === ProductMarketingTypeEnum.Groupbuying &&
  1998. this.attr.productSelect.cart_num > this.buyLimitNum
  1999. ) {
  2000. this.isOpen = false;
  2001. return this.$util.Tips({
  2002. title: "超出限购数量",
  2003. });
  2004. }
  2005. if (this.attr.productSelect.cart_num < 1) {
  2006. uni.showToast({
  2007. title: "单次可购买商品数量范围为 1~99",
  2008. icon: "none",
  2009. });
  2010. } else {
  2011. let types = "";
  2012. switch (this.marketingType) {
  2013. case ProductMarketingTypeEnum.Normal:
  2014. if (this.productType === 4) {
  2015. types = "video";
  2016. } else {
  2017. types = "buyNow";
  2018. }
  2019. break;
  2020. case ProductMarketingTypeEnum.Seckill:
  2021. types = "seckill";
  2022. break;
  2023. case ProductMarketingTypeEnum.Groupbuying:
  2024. types = "group";
  2025. break;
  2026. }
  2027. let obj = {
  2028. attrValueId: parseFloat(this.attr.productSelect.unique),
  2029. productId: parseFloat(this.id),
  2030. productNum: parseFloat(this.attr.productSelect.cart_num),
  2031. groupBuyActivityId: parseFloat(this.groupActivityId),
  2032. groupBuyRecordId: this.groupRecordId,
  2033. };
  2034. console.log(this.attr, this.id, this.cart)
  2035. let arr = []
  2036. let isProductid = false // 是否同一规格
  2037. if (this.cart.length) {
  2038. // const indexOf = this.cart.find(val => val.productid == this.attr.productSelect.unique)
  2039. this.cart.forEach((item) => {
  2040. if (this.attr.productSelect.unique == item.productid) {
  2041. isProductid = true
  2042. item.number += parseFloat(this.attr.productSelect.cart_num)
  2043. }
  2044. arr.push({
  2045. attrValueId: item.productid, //商品规格属性id(立即购买、活动购买必填)
  2046. groupBuyActivityId: null, //拼团活动id(拼团下单时必填)
  2047. groupBuyRecordId: 0, // 拼团记录id,营销类型2=拼团 时必填 0=开团 实际
  2048. productId: item.id, //商品id
  2049. productNum: item.number //商品数量
  2050. })
  2051. });
  2052. !isProductid ? arr.push(obj) : ''
  2053. } else {
  2054. arr = [obj]
  2055. }
  2056. onGetPreOrder(types, arr);
  2057. }
  2058. this.isOpen = false;
  2059. },
  2060. /**
  2061. * 分享打开
  2062. *
  2063. */
  2064. listenerActionSheet: function() {
  2065. this.goPoster();
  2066. this.posters = true;
  2067. // #ifdef H5
  2068. if (this.$wechat.isWeixin()) {
  2069. this.weixinStatus = true;
  2070. }
  2071. // #endif
  2072. },
  2073. closePosters: function() {
  2074. this.posters = false;
  2075. this.currentPage = false;
  2076. },
  2077. //隐藏海报
  2078. posterImageClose: function() {
  2079. this.canvasStatus = false;
  2080. this.posters = false;
  2081. },
  2082. //替换安全域名
  2083. setDomain: function(url) {
  2084. url = url ? url.toString() : "";
  2085. //本地调试打开,生产请注销
  2086. if (url.indexOf("https://") > -1) return url;
  2087. else return url.replace("http://", "https://");
  2088. },
  2089. //获取海报产品图(解决跨域问题,只适用于小程序)
  2090. downloadFilestoreImage: function() {
  2091. let that = this;
  2092. uni.downloadFile({
  2093. url: that.setDomain(that.productInfo.image),
  2094. success: function(res) {
  2095. that.storeImage = res.tempFilePath;
  2096. },
  2097. fail: function() {
  2098. return that.$util.Tips({
  2099. title: "",
  2100. });
  2101. that.storeImage = "";
  2102. },
  2103. });
  2104. },
  2105. // 小程序关闭分享弹窗;
  2106. goFriend: function() {
  2107. this.posters = false;
  2108. },
  2109. // 小程序二维码
  2110. getQrcode() {
  2111. let that = this;
  2112. let data;
  2113. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  2114. data = {
  2115. scene: "id=" +
  2116. this.id +
  2117. "&sd=" +
  2118. that.uid +
  2119. "&mt=" +
  2120. 2 +
  2121. "&gd=" +
  2122. this.groupActivityId,
  2123. page: "pages/goods/goods_details/index",
  2124. };
  2125. } else {
  2126. data = {
  2127. scene: "id=" + this.id + "&sd=" + that.uid + "&mt=" + that.marketingType,
  2128. page: "pages/goods/goods_details/index",
  2129. };
  2130. }
  2131. mpQrcode(data)
  2132. .then((res) => {
  2133. base64src(res.data.code, Date.now(), (res) => {
  2134. that.PromotionCode = res;
  2135. });
  2136. })
  2137. .catch((err) => {
  2138. that.errT = err;
  2139. });
  2140. },
  2141. // 生成二维码;
  2142. make(uid) {
  2143. let href;
  2144. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  2145. href =
  2146. location.href.split("?")[0] +
  2147. "?id=" +
  2148. this.id +
  2149. "&sd=" +
  2150. this.uid +
  2151. "&mt=" +
  2152. this.marketingType +
  2153. "&gd=" +
  2154. this.groupActivityId;
  2155. } else {
  2156. href =
  2157. location.href.split("?")[0] +
  2158. "?id=" +
  2159. this.id +
  2160. "&sd=" +
  2161. this.uid +
  2162. "&mt=" +
  2163. this.marketingType;
  2164. }
  2165. uQRCode.make({
  2166. canvasId: "qrcode",
  2167. text: href,
  2168. size: this.qrcodeSize,
  2169. margin: 10,
  2170. success: (res) => {
  2171. this.PromotionCode = res;
  2172. },
  2173. complete: () => {},
  2174. fail: (res) => {
  2175. this.$util.Tips({
  2176. title: "海报二维码生成失败!",
  2177. });
  2178. },
  2179. });
  2180. },
  2181. getImageBase64: function(images) {
  2182. let that = this;
  2183. imageBase64({
  2184. url: images,
  2185. }).then((res) => {
  2186. that.imgTop = res.data.code;
  2187. });
  2188. },
  2189. /**
  2190. * 获取产品分销二维码
  2191. * @param function successFn 下载完成回调
  2192. *
  2193. */
  2194. downloadFilePromotionCode: function(successFn) {
  2195. let that = this;
  2196. getProductCode(that.id)
  2197. .then((res) => {
  2198. uni.downloadFile({
  2199. url: that.setDomain(res.data.code),
  2200. success: function(res) {
  2201. that.$set(that, "isDown", false);
  2202. if (typeof successFn == "function") {
  2203. successFn && successFn(res.tempFilePath);
  2204. } else {
  2205. that.$set(that, "PromotionCode", res.tempFilePath);
  2206. }
  2207. },
  2208. fail: function() {
  2209. that.$set(that, "isDown", false);
  2210. that.$set(that, "PromotionCode", "");
  2211. },
  2212. });
  2213. })
  2214. .catch((err) => {
  2215. that.$set(that, "isDown", false);
  2216. that.$set(that, "PromotionCode", "");
  2217. });
  2218. },
  2219. /**
  2220. * 生成海报
  2221. */
  2222. goPoster: function() {
  2223. let that = this;
  2224. uni.showLoading({
  2225. title: "海报生成中",
  2226. mask: true,
  2227. });
  2228. that.posters = false;
  2229. let arrImagesUrl = "";
  2230. let arrImagesUrlTop = "";
  2231. if (!that.PromotionCode) {
  2232. uni.hideLoading();
  2233. that.$util.Tips({
  2234. title: that.errT,
  2235. });
  2236. return;
  2237. }
  2238. setTimeout(() => {
  2239. if (!that.imgTop) {
  2240. uni.hideLoading();
  2241. that.$util.Tips({
  2242. title: "无法生成商品海报!",
  2243. });
  2244. return;
  2245. }
  2246. }, 1000);
  2247. uni.downloadFile({
  2248. url: that.imgTop, //仅为示例,并非真实的资源
  2249. success: (res) => {
  2250. arrImagesUrlTop = res.tempFilePath;
  2251. let arrImages = [
  2252. that.posterbackgd,
  2253. arrImagesUrlTop,
  2254. that.PromotionCode,
  2255. ];
  2256. let name = that.productInfo.name;
  2257. let price;
  2258. let otPrice;
  2259. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  2260. price = that.groupBuyActivityResponse.activePrice;
  2261. otPrice = that.productInfo.price;
  2262. } else {
  2263. price = that.productInfo.price;
  2264. otPrice = that.productType === that.ProductTypeEnum.Integral ? that.productInfo
  2265. .cost : that.productInfo.otPrice;
  2266. }
  2267. setTimeout(() => {
  2268. that.$util.PosterCanvas(
  2269. arrImages,
  2270. name,
  2271. price,
  2272. otPrice,
  2273. function(tempFilePath) {
  2274. that.imagePath = tempFilePath;
  2275. that.canvasStatus = true;
  2276. uni.hideLoading();
  2277. }
  2278. );
  2279. }, 500);
  2280. },
  2281. });
  2282. },
  2283. // 图片预览;
  2284. getpreviewImage: function() {
  2285. if (this.imagePath) {
  2286. let photoList = [];
  2287. photoList.push(this.imagePath);
  2288. uni.previewImage({
  2289. urls: photoList,
  2290. current: this.imagePath,
  2291. });
  2292. } else {
  2293. this.$util.Tips({
  2294. title: "您的海报尚未生成",
  2295. });
  2296. }
  2297. },
  2298. /*
  2299. * 保存到手机相册
  2300. */
  2301. // #ifdef MP
  2302. savePosterPath: function() {
  2303. let that = this;
  2304. uni.getSetting({
  2305. success(res) {
  2306. if (!res.authSetting["scope.writePhotosAlbum"]) {
  2307. uni.authorize({
  2308. scope: "scope.writePhotosAlbum",
  2309. success() {
  2310. uni.saveImageToPhotosAlbum({
  2311. filePath: that.imagePath,
  2312. success: function(res) {
  2313. that.posterImageClose();
  2314. that.$util.Tips({
  2315. title: "保存成功",
  2316. icon: "success",
  2317. });
  2318. },
  2319. fail: function(res) {
  2320. that.$util.Tips({
  2321. title: "保存失败",
  2322. });
  2323. },
  2324. });
  2325. },
  2326. });
  2327. } else {
  2328. uni.saveImageToPhotosAlbum({
  2329. filePath: that.imagePath,
  2330. success: function(res) {
  2331. that.posterImageClose();
  2332. that.$util.Tips({
  2333. title: "保存成功",
  2334. icon: "success",
  2335. });
  2336. },
  2337. fail: function(res) {
  2338. that.$util.Tips({
  2339. title: "保存失败",
  2340. });
  2341. },
  2342. });
  2343. }
  2344. },
  2345. });
  2346. },
  2347. // #endif
  2348. ShareInfo() {
  2349. let data = this.productInfo;
  2350. let href = location.href;
  2351. if (this.$wechat.isWeixin() && this.publicLoginType == 1) {
  2352. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  2353. href =
  2354. href.split("?")[0] +
  2355. "?id=" +
  2356. this.id +
  2357. "&sd=" +
  2358. this.uid +
  2359. "&mt=" +
  2360. this.marketingType +
  2361. "&gd=" +
  2362. this.groupActivityId;
  2363. } else {
  2364. href = href.split("?")[0] +
  2365. "?id=" +
  2366. this.id +
  2367. "&sd=" +
  2368. this.uid +
  2369. "&mt=" +
  2370. this.marketingType
  2371. }
  2372. let configAppMessage = {
  2373. desc: data.intro ? data.intro : '',
  2374. title: data.name,
  2375. link: href,
  2376. imgUrl: data.image,
  2377. };
  2378. this.$wechat
  2379. .wechatEvevt(
  2380. [
  2381. "updateAppMessageShareData",
  2382. "updateTimelineShareData",
  2383. "onMenuShareAppMessage",
  2384. "onMenuShareTimeline",
  2385. ],
  2386. configAppMessage
  2387. )
  2388. .then((res) => {})
  2389. .catch((err) => {
  2390. console.log(err);
  2391. });
  2392. }
  2393. },
  2394. showShare(status) {
  2395. let that = this;
  2396. that.$set(that.sharePacket, "touchstart", status);
  2397. },
  2398. hideNav() {
  2399. this.currentPage = false;
  2400. },
  2401. //下拉导航页面跳转
  2402. linkPage(url) {
  2403. if (
  2404. [
  2405. "/pages/index/index",
  2406. "/pages/order_addcart/order_addcart",
  2407. "/pages/user/index",
  2408. "/pages/discover_index/index",
  2409. ].indexOf(url) > -1
  2410. ) {
  2411. uni.switchTab({
  2412. url,
  2413. });
  2414. } else {
  2415. uni.navigateTo({
  2416. url,
  2417. });
  2418. }
  2419. this.currentPage = false;
  2420. },
  2421. //点击sku图片打开轮播图
  2422. showImg(index) {
  2423. if (this.selectSku) {
  2424. if (this.marketingType === ProductMarketingTypeEnum.Groupbuying) {
  2425. this.$refs.cusPreviewImg.open(this.selectSku.sku, 1);
  2426. } else {
  2427. this.$refs.cusPreviewImg.open(this.selectSku.sku, 0);
  2428. }
  2429. } else {
  2430. this.$refs.cusPreviewImg.open({}, 0);
  2431. }
  2432. },
  2433. //滑动轮播图选择商品
  2434. changeSwitch(e) {
  2435. let productSelect = this.skuArr[e];
  2436. this.$set(this, "selectSku", productSelect);
  2437. var skuList = productSelect.sku.split(",");
  2438. skuList.forEach((i, index) => {
  2439. this.$set(this.attr.productAttr[index], "index", skuList[index]);
  2440. });
  2441. if (productSelect) {
  2442. this.checkedAttr(productSelect)
  2443. this.$set(this, "attrValue", productSelect.sku);
  2444. this.getProductPrice();
  2445. }
  2446. },
  2447. getFileType(fileName) {
  2448. // 后缀获取
  2449. let suffix = "";
  2450. // 获取类型结果
  2451. let result = "";
  2452. try {
  2453. const flieArr = fileName.split(".");
  2454. suffix = flieArr[flieArr.length - 1];
  2455. } catch (err) {
  2456. suffix = "";
  2457. }
  2458. // fileName无后缀返回 false
  2459. if (!suffix) {
  2460. return false;
  2461. }
  2462. suffix = suffix.toLocaleLowerCase();
  2463. // 图片格式
  2464. const imglist = ["png", "jpg", "jpeg", "bmp", "gif"];
  2465. // 进行图片匹配
  2466. result = imglist.find((item) => item === suffix);
  2467. if (result) {
  2468. return "image";
  2469. }
  2470. // 匹配 视频
  2471. const videolist = [
  2472. "mp4",
  2473. "m2v",
  2474. "mkv",
  2475. "rmvb",
  2476. "wmv",
  2477. "avi",
  2478. "flv",
  2479. "mov",
  2480. "m4v",
  2481. ];
  2482. result = videolist.find((item) => item === suffix);
  2483. if (result) {
  2484. return "video";
  2485. }
  2486. // 其他 文件类型
  2487. return "other";
  2488. },
  2489. //直接购买
  2490. toAloneBuy() {
  2491. goProductDetail(this.productInfo.id, 0, "");
  2492. },
  2493. videoPause() {},
  2494. goVideoDetail(noteDetails) {
  2495. if (noteDetails.type === 2) {
  2496. uni.navigateTo({
  2497. //#ifdef APP
  2498. url: '/pages/discover/discover_video/appVideo/index?noteId=' + noteDetails.id + `&sd=${this.uid}`,
  2499. //#endif
  2500. //#ifndef APP
  2501. url: '/pages/discover/discover_video/routineVideo/index?noteId=' + noteDetails.id + `&sd=${this.uid}`,
  2502. //#endif
  2503. });
  2504. }
  2505. },
  2506. },
  2507. };
  2508. </script>
  2509. <style scoped lang="scss">
  2510. .icon-ic_share1 {
  2511. font-size: 30rpx;
  2512. background: rgba(255, 255, 255, 0.6);
  2513. border: 1rpx solid rgba(0, 0, 0, 0.1);
  2514. /* #ifdef H5 || APP-PLUS */
  2515. width: 50rpx;
  2516. height: 50rpx;
  2517. line-height: 48rpx;
  2518. border-radius: 25rpx;
  2519. /* #endif */
  2520. /* #ifdef MP */
  2521. width: 60rpx;
  2522. height: 60rpx;
  2523. line-height: 56rpx;
  2524. border-radius: 30rpx;
  2525. padding-left: 4rpx;
  2526. /* #endif */
  2527. position: fixed;
  2528. text-align: center;
  2529. z-index: 999;
  2530. }
  2531. .w-640rpx {
  2532. width: 640rpx !important;
  2533. }
  2534. .icon-fanhui2,
  2535. .icon-shouye7 {
  2536. font-size: 30rpx !important;
  2537. font-weight: 600;
  2538. }
  2539. .mb10 {
  2540. margin-bottom: 10rpx;
  2541. }
  2542. .coupon_label {
  2543. height: 34rpx;
  2544. line-height: 32rpx;
  2545. border-radius: 4rpx;
  2546. padding: 0 10rpx;
  2547. font-size: 22rpx;
  2548. margin-right: 10rpx;
  2549. @include main_color(theme);
  2550. @include cate-two-btn(theme);
  2551. }
  2552. .coupon_more {
  2553. font-size: 22rpx;
  2554. @include main_color(theme);
  2555. .iconfont {
  2556. font-size: 24rpx;
  2557. }
  2558. }
  2559. .longBnts {
  2560. width: 444rpx;
  2561. text-align: center;
  2562. line-height: 76rpx;
  2563. color: #fff;
  2564. font-size: 28rpx;
  2565. display: inline-block;
  2566. border-radius: 50rpx !important;
  2567. }
  2568. .mtop {
  2569. margin-top: -162rpx;
  2570. }
  2571. .lineWidth {
  2572. width: 588rpx;
  2573. }
  2574. .superior {
  2575. /deep/.name,
  2576. /deep/.icon-jiantou {
  2577. color: #333 !important;
  2578. }
  2579. /deep/.store {
  2580. padding: 0 !important;
  2581. }
  2582. /deep/image,
  2583. .easy-loadimage,
  2584. image,
  2585. uni-image {
  2586. width: 86rpx;
  2587. height: 86rpx;
  2588. border-radius: 6px;
  2589. opacity: 1;
  2590. }
  2591. }
  2592. .product-con {
  2593. height: 100%;
  2594. }
  2595. .ensure {
  2596. width: 100%;
  2597. background-color: #fff;
  2598. padding-bottom: 22rpx;
  2599. padding-bottom: calc(22rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  2600. padding-bottom: calc(22rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  2601. .title {
  2602. font-size: 32rpx;
  2603. color: #282828;
  2604. text-align: center;
  2605. margin: 38rpx 0 36rpx 0;
  2606. position: relative;
  2607. .iconfont {
  2608. position: absolute;
  2609. right: 30rpx;
  2610. top: 0;
  2611. font-size: 36rpx;
  2612. }
  2613. }
  2614. .list {
  2615. height: 750rpx;
  2616. margin: 0 30rpx;
  2617. overflow-x: hidden;
  2618. overflow-y: auto;
  2619. .item {
  2620. margin-bottom: 52rpx;
  2621. .pictrue {
  2622. width: 36rpx;
  2623. height: 36rpx;
  2624. border-radius: 50%;
  2625. margin-right: 30rpx;
  2626. /deep/image,
  2627. .easy-loadimage,
  2628. image,
  2629. uni-image {
  2630. width: 100%;
  2631. height: 100%;
  2632. border-radius: 50%;
  2633. }
  2634. }
  2635. .text {
  2636. width: 618rpx;
  2637. color: #999999;
  2638. font-size: 28rpx;
  2639. .name {
  2640. color: #333333;
  2641. font-weight: bold;
  2642. margin-bottom: 20rpx;
  2643. }
  2644. }
  2645. }
  2646. }
  2647. .bnt,
  2648. .activityBtn {
  2649. width: 690rpx;
  2650. height: 86rpx;
  2651. text-align: center;
  2652. line-height: 86rpx;
  2653. border-radius: 43rpx;
  2654. font-size: 30rpx;
  2655. color: #fff;
  2656. margin: 0 auto;
  2657. }
  2658. .bnt {
  2659. @include main_bg_color(theme);
  2660. }
  2661. }
  2662. .ensure.on {
  2663. transform: translate3d(0, 0, 0);
  2664. }
  2665. /deep/ .tui-drawer-container_bottom {
  2666. border-radius: 16rpx 16rpx 0 0;
  2667. }
  2668. .product-con {
  2669. height: 100%;
  2670. }
  2671. .x-money {
  2672. font-size: 40rpx;
  2673. @include price_color(theme);
  2674. }
  2675. .bg-color-hui {
  2676. background: #bbb !important;
  2677. border-radius: 0 25px 25px 0;
  2678. }
  2679. .lang {
  2680. width: 170rpx !important;
  2681. height: 60rpx !important;
  2682. border-radius: 33rpx;
  2683. }
  2684. .circle {
  2685. width: 58rpx !important;
  2686. height: 58rpx !important;
  2687. border-radius: 50%;
  2688. }
  2689. .select_nav {
  2690. background: rgba(255, 255, 255, 0.6);
  2691. border: 1rpx solid rgba(0, 0, 0, 0.1);
  2692. color: #000;
  2693. position: fixed;
  2694. font-size: 18px;
  2695. line-height: 62rpx;
  2696. z-index: 1000;
  2697. left: 14rpx;
  2698. }
  2699. .px-20 {
  2700. padding: 0 20rpx 0;
  2701. }
  2702. .nav_line {
  2703. content: "";
  2704. display: inline-block;
  2705. width: 1rpx;
  2706. height: 30rpx;
  2707. background: #e8dfdf;
  2708. position: absolute;
  2709. left: 0;
  2710. right: 0;
  2711. margin: auto;
  2712. }
  2713. .bgwhite {
  2714. background: #fff;
  2715. }
  2716. .input {
  2717. display: flex;
  2718. align-items: center;
  2719. /* #ifdef MP */
  2720. width: 300rpx;
  2721. /* #endif */
  2722. /* #ifndef MP */
  2723. width: 460rpx;
  2724. /* #endif */
  2725. height: 58rpx;
  2726. padding: 0 0 0 30rpx;
  2727. border: 1px solid rgba(0, 0, 0, 0.07);
  2728. border-radius: 33rpx;
  2729. color: #666;
  2730. font-size: 26rpx;
  2731. position: fixed;
  2732. left: 0;
  2733. right: 0;
  2734. margin: auto;
  2735. background: rgba(255, 255, 255, 0.3);
  2736. .iconfont {
  2737. margin-right: 20rpx;
  2738. font-size: 26rpx;
  2739. color: #666666;
  2740. }
  2741. }
  2742. .container_detail {
  2743. /* #ifdef MP */
  2744. margin-top: 32rpx;
  2745. /* #endif */
  2746. }
  2747. .tab_nav {
  2748. width: 100%;
  2749. height: 48px;
  2750. /* #ifdef MP */
  2751. margin-left: 220rpx;
  2752. /* #endif */
  2753. }
  2754. .right_select {
  2755. width: 50rpx;
  2756. height: 50rpx;
  2757. background: rgba(255, 255, 255, 0.3);
  2758. border: 1px solid rgba(0, 0, 0, 0.1);
  2759. border-radius: 50%;
  2760. position: fixed;
  2761. right: 20rpx;
  2762. text-align: center;
  2763. line-height: 50rpx;
  2764. }
  2765. .dialog_nav {
  2766. position: absolute;
  2767. /* #ifdef MP */
  2768. left: 14rpx;
  2769. /* #endif */
  2770. /* #ifdef H5 || APP-PLUS*/
  2771. right: 14rpx;
  2772. /* #endif */
  2773. width: 240rpx;
  2774. background: #ffffff;
  2775. box-shadow: 0px 0px 16rpx rgba(0, 0, 0, 0.08);
  2776. z-index: 310;
  2777. border-radius: 14rpx;
  2778. &::before {
  2779. content: "";
  2780. width: 0;
  2781. height: 0;
  2782. position: absolute;
  2783. /* #ifdef MP */
  2784. left: 0;
  2785. right: 0;
  2786. margin: auto;
  2787. /* #endif */
  2788. /* #ifdef H5 || APP-PLUS */
  2789. right: 8px;
  2790. /* #endif */
  2791. top: -9px;
  2792. border-bottom: 10px solid #f5f5f5;
  2793. border-left: 10px solid transparent;
  2794. /*transparent 表示透明*/
  2795. border-right: 10px solid transparent;
  2796. }
  2797. }
  2798. .dialog_nav_item {
  2799. width: 100%;
  2800. height: 84rpx;
  2801. line-height: 84rpx;
  2802. padding: 0 20rpx 0;
  2803. box-sizing: border-box;
  2804. border-bottom: #eee;
  2805. font-size: 28rpx;
  2806. color: #333;
  2807. position: relative;
  2808. .iconfont {
  2809. font-size: 32rpx;
  2810. }
  2811. }
  2812. .dialog_after {
  2813. ::after {
  2814. content: "";
  2815. position: absolute;
  2816. width: 172rpx;
  2817. height: 1px;
  2818. background-color: #eeeeee;
  2819. bottom: 0;
  2820. right: 0;
  2821. }
  2822. }
  2823. .pl-20 {
  2824. padding-left: 20rpx;
  2825. }
  2826. .activity {
  2827. padding: 0 20rpx;
  2828. @include coupons_border_color(theme);
  2829. @include main_color(theme);
  2830. font-size: 24rpx;
  2831. line-height: 32rpx;
  2832. position: relative;
  2833. margin-left: 4rpx;
  2834. }
  2835. .product-con .wrapper .coupon .activity:before {
  2836. content: " ";
  2837. position: absolute;
  2838. width: 7rpx;
  2839. height: 10rpx;
  2840. border-radius: 0 7rpx 7rpx 0;
  2841. @include coupons_border_color(theme);
  2842. background-color: #fff !important;
  2843. bottom: 50%;
  2844. left: -3rpx;
  2845. margin-bottom: -6rpx;
  2846. @include white_left_border;
  2847. }
  2848. .product-con .wrapper .coupon .activity:after {
  2849. content: " ";
  2850. position: absolute;
  2851. width: 7rpx;
  2852. height: 10rpx;
  2853. border-radius: 7rpx 0 0 7rpx;
  2854. @include coupons_border_color(theme);
  2855. background-color: #fff;
  2856. right: -3rpx;
  2857. bottom: 50%;
  2858. margin-bottom: -6rpx;
  2859. @include white_right_border;
  2860. }
  2861. .justify-center {
  2862. justify-content: center;
  2863. }
  2864. .align-center {
  2865. align-items: center;
  2866. }
  2867. .align-baseline {
  2868. align-items: baseline;
  2869. }
  2870. .bg_color {
  2871. @include main_bg_color(theme);
  2872. }
  2873. .vip_icon {
  2874. width: 44rpx;
  2875. height: 28rpx;
  2876. }
  2877. .pl-2 {
  2878. padding-left: 20rpx;
  2879. }
  2880. .vip_money {
  2881. background: #ffe7b9;
  2882. border-radius: 4px;
  2883. font-size: 22rpx;
  2884. color: #333;
  2885. line-height: 28rpx;
  2886. text-align: center;
  2887. padding: 0 6rpx;
  2888. box-sizing: border-box;
  2889. margin-left: -4rpx;
  2890. }
  2891. .theme_price {
  2892. @include price_color(theme);
  2893. margin-top: 5rpx;
  2894. }
  2895. .activityName {
  2896. line-height: 44rpx;
  2897. }
  2898. .userEvaluation {
  2899. i {
  2900. display: inline-block;
  2901. }
  2902. }
  2903. .bntVideo {
  2904. width: auto !important;
  2905. .buy {
  2906. border-radius: 50rpx !important;
  2907. }
  2908. }
  2909. .attribute {
  2910. .line1 {
  2911. width: 600rpx;
  2912. }
  2913. .acea-row {
  2914. overflow: hidden;
  2915. }
  2916. }
  2917. .chat-btn {
  2918. background-color: antiquewhite !important;
  2919. }
  2920. .activity_pin {
  2921. width: auto;
  2922. height: 44rpx;
  2923. line-height: 44rpx;
  2924. @include linear-gradient(theme);
  2925. opacity: 1;
  2926. border-radius: 22rpx;
  2927. padding: 0 15rpx;
  2928. }
  2929. .activity_miao {
  2930. width: auto;
  2931. height: 44rpx;
  2932. line-height: 44rpx;
  2933. padding: 0 15rpx;
  2934. // background: linear-gradient(90deg, rgba(250, 102, 24, 1) 0%, rgba(254, 161, 15, 1) 100%);
  2935. @include linear-gradient(theme);
  2936. opacity: 1;
  2937. border-radius: 22rpx;
  2938. margin-left: 19rpx;
  2939. }
  2940. .iconfonts {
  2941. color: #fff !important;
  2942. font-size: 28rpx;
  2943. }
  2944. .activity_title {
  2945. font-size: 24rpx;
  2946. color: #fff;
  2947. }
  2948. .activity_kan {
  2949. width: auto;
  2950. height: 44rpx;
  2951. line-height: 44rpx;
  2952. padding: 0 15rpx;
  2953. @include linear-gradient(theme);
  2954. opacity: 1;
  2955. border-radius: 22rpx;
  2956. margin-left: 19rpx;
  2957. }
  2958. .mask {
  2959. z-index: 300 !important;
  2960. }
  2961. .head-bar {
  2962. background: #fff;
  2963. }
  2964. .generate-posters {
  2965. width: 100%;
  2966. height: 318rpx;
  2967. background-color: #fff;
  2968. position: fixed;
  2969. left: 0;
  2970. bottom: 0;
  2971. z-index: 388;
  2972. transform: translate3d(0, 100%, 0);
  2973. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  2974. border-top: 1rpx solid #eee;
  2975. .generateCon {
  2976. height: 220rpx;
  2977. }
  2978. .generateClose {
  2979. height: 98rpx;
  2980. font-size: 28rpx;
  2981. color: #333333;
  2982. border-top: 1px solid #eee;
  2983. }
  2984. .item {
  2985. .pictrue {
  2986. width: 96rpx;
  2987. height: 96rpx;
  2988. border-radius: 50%;
  2989. margin: 0 auto 6rpx auto;
  2990. /deep/image,
  2991. .easy-loadimage,
  2992. image,
  2993. uni-image {
  2994. width: 100%;
  2995. height: 100%;
  2996. border-radius: 50%;
  2997. }
  2998. }
  2999. }
  3000. }
  3001. .generate-posters.on {
  3002. transform: translate3d(0, 0, 0);
  3003. }
  3004. .generate-posters .item {
  3005. flex: 1;
  3006. text-align: center;
  3007. font-size: 30rpx;
  3008. }
  3009. .generate-posters .item .iconfont {
  3010. font-size: 80rpx;
  3011. color: #5eae72;
  3012. }
  3013. .generate-posters .item .iconfont.icon-haibao {
  3014. color: #5391f1;
  3015. }
  3016. .generate-posters .item .iconfont.icon-haowuquan1 {
  3017. color: #ff954d;
  3018. }
  3019. .product-con .footer {
  3020. padding: 0 20rpx 0 30rpx;
  3021. position: fixed;
  3022. bottom: 0;
  3023. width: 100%;
  3024. box-sizing: border-box;
  3025. background-color: #fff;
  3026. display: flex;
  3027. justify-content: flex-end;
  3028. z-index: 277;
  3029. border-top: 1rpx solid #f0f0f0;
  3030. height: 100rpx;
  3031. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  3032. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  3033. }
  3034. .product-con .footer .item {
  3035. font-size: 18rpx;
  3036. color: #666;
  3037. }
  3038. .product-con .footer .item .iconfont {
  3039. text-align: center;
  3040. font-size: 40rpx;
  3041. }
  3042. .color-change {
  3043. @include main_color(theme);
  3044. }
  3045. .color-normal {
  3046. color: #e93323 !important;
  3047. }
  3048. .product-con .footer .item .iconfont.icon-gouwuche1 {
  3049. font-size: 40rpx;
  3050. position: relative;
  3051. }
  3052. .product-con .footer .item .iconfont.icon-gouwuche1 .num {
  3053. color: #fff;
  3054. position: absolute;
  3055. font-size: 18rpx;
  3056. padding: 2rpx 8rpx 3rpx;
  3057. border-radius: 200rpx;
  3058. top: -10rpx;
  3059. right: -10rpx;
  3060. }
  3061. .product-con .footer .bnt {
  3062. height: 76rpx;
  3063. }
  3064. .product-con .footer .bnt .bnts {
  3065. width: 222rpx;
  3066. text-align: center;
  3067. line-height: 76rpx;
  3068. color: #fff;
  3069. font-size: 28rpx;
  3070. }
  3071. .product-con .footer .bnt .joinCart {
  3072. border-radius: 50rpx 0 0 50rpx;
  3073. @include left_color(theme);
  3074. }
  3075. .product-con .footer .bnt .joinCart.groupJoin {
  3076. background-color: #FE960F !important;
  3077. }
  3078. .product-con .footer .bnt .buy {
  3079. border-radius: 0 50rpx 50rpx 0;
  3080. @include main_bg_color(theme);
  3081. }
  3082. .product-con .store-info {
  3083. margin-top: 20rpx;
  3084. background-color: #fff;
  3085. }
  3086. .product-con .store-info .title {
  3087. padding: 0 30rpx;
  3088. font-size: 28rpx;
  3089. color: #282828;
  3090. height: 80rpx;
  3091. line-height: 80rpx;
  3092. border-bottom: 1px solid #f5f5f5;
  3093. }
  3094. .product-con .store-info .info {
  3095. padding: 0 30rpx;
  3096. height: 126rpx;
  3097. }
  3098. .product-con .store-info .info .picTxt {
  3099. width: 615rpx;
  3100. }
  3101. .product-con .store-info .info .picTxt .pictrue {
  3102. width: 76rpx;
  3103. height: 76rpx;
  3104. }
  3105. .product-con .store-info .info .picTxt .pictrue image {
  3106. width: 100%;
  3107. height: 100%;
  3108. border-radius: 6rpx;
  3109. }
  3110. .product-con .store-info .info .picTxt .text {
  3111. width: 522rpx;
  3112. }
  3113. .product-con .store-info .info .picTxt .text .name {
  3114. font-size: 30rpx;
  3115. color: #282828;
  3116. }
  3117. .product-con .store-info .info .picTxt .text .address {
  3118. font-size: 24rpx;
  3119. color: #666;
  3120. margin-top: 3rpx;
  3121. }
  3122. .product-con .store-info .info .picTxt .text .address .iconfont {
  3123. color: #707070;
  3124. font-size: 18rpx;
  3125. margin-left: 10rpx;
  3126. }
  3127. .product-con .store-info .info .picTxt .text .address .addressTxt {
  3128. max-width: 480rpx;
  3129. }
  3130. .product-con .store-info .info .iconfont {
  3131. font-size: 40rpx;
  3132. }
  3133. .product-con .superior {
  3134. background-color: #fff;
  3135. margin-top: 20rpx;
  3136. padding: 24rpx;
  3137. .title {
  3138. height: 98rpx;
  3139. image {
  3140. width: 20rpx;
  3141. height: 20rpx;
  3142. }
  3143. .titleTxt {
  3144. margin: 0 10rpx;
  3145. font-size: 30rpx;
  3146. color: #333333;
  3147. }
  3148. }
  3149. .slider-banner {
  3150. width: 100%;
  3151. margin: 0 auto;
  3152. position: relative;
  3153. .list {
  3154. width: 100%;
  3155. .item {
  3156. width: 204rpx;
  3157. margin: 24rpx 3.2% 0 0;
  3158. font-size: 26rpx;
  3159. .pictrue {
  3160. position: relative;
  3161. width: 204rpx;
  3162. height: 204rpx;
  3163. border-radius: 6rpx;
  3164. overflow: hidden;
  3165. /deep/image,
  3166. .easy-loadimage,
  3167. image,
  3168. uni-image {
  3169. width: 100% !important;
  3170. height: 100% !important;
  3171. border-radius: 6rpx;
  3172. }
  3173. }
  3174. .name {
  3175. color: #282828;
  3176. margin-top: 10rpx;
  3177. }
  3178. }
  3179. .item:nth-of-type(3n) {
  3180. margin-right: 0;
  3181. }
  3182. }
  3183. }
  3184. }
  3185. button {
  3186. padding: 0;
  3187. margin: 0;
  3188. line-height: normal;
  3189. background-color: #fff;
  3190. }
  3191. button::after {
  3192. border: 0;
  3193. }
  3194. action-sheet-item {
  3195. padding: 0;
  3196. height: 240rpx;
  3197. align-items: center;
  3198. display: flex;
  3199. }
  3200. .contact {
  3201. font-size: 16px;
  3202. width: 50%;
  3203. background-color: #fff;
  3204. padding: 8rpx 0;
  3205. border-radius: 0;
  3206. margin: 0;
  3207. line-height: 2;
  3208. }
  3209. .contact::after {
  3210. border: none;
  3211. }
  3212. .action-sheet {
  3213. font-size: 17px;
  3214. line-height: 1.8;
  3215. width: 50%;
  3216. position: absolute;
  3217. top: 0;
  3218. right: 0;
  3219. padding: 25rpx 0;
  3220. }
  3221. .canvas {
  3222. position: fixed;
  3223. z-index: -5;
  3224. opacity: 0;
  3225. }
  3226. .poster-pop {
  3227. position: fixed;
  3228. width: 500rpx;
  3229. height: 714rpx;
  3230. top: 50%;
  3231. left: 50%;
  3232. transform: translateX(-50%);
  3233. margin-top: -432rpx;
  3234. z-index: 399;
  3235. // background-image: url('https://api.admin.merchant.crmeb.xbdzz.cn/crmebimage/public/product/2024/08/13/8a25e3c98d864299b7a5201f70ea24edkoj7sce8za.png');
  3236. // background-size: cover;
  3237. }
  3238. .poster-pop image {
  3239. width: 100%;
  3240. height: 100%;
  3241. display: block;
  3242. }
  3243. .poster-pop .close {
  3244. width: 46rpx;
  3245. height: 75rpx;
  3246. position: fixed;
  3247. right: 0;
  3248. top: -73rpx;
  3249. display: block;
  3250. }
  3251. .poster-pop .save-poster {
  3252. background-color: #df2d0a;
  3253. font-size: :22rpx;
  3254. color: #fff;
  3255. text-align: center;
  3256. height: 76rpx;
  3257. line-height: 76rpx;
  3258. width: 100%;
  3259. }
  3260. .poster-pop .keep {
  3261. color: #fff;
  3262. text-align: center;
  3263. font-size: 25rpx;
  3264. margin-top: 10rpx;
  3265. }
  3266. .mask {
  3267. position: fixed;
  3268. top: 0;
  3269. left: 0;
  3270. right: 0;
  3271. bottom: 0;
  3272. background-color: rgba(0, 0, 0, 0.6);
  3273. }
  3274. .pro-wrapper .iconn {
  3275. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAYKElEQVR4nO2deXhTVfrHP0nTlpautHSjZSkt+x42UTYVF5C4gsKIOqOjIxJHZdTfyG+eEZ1xxgVHjeLo6KiIKKsYcAUEBQooASxQKC1QulPolm50S+aPJPXmZm2a3BTo53n6QM49956T+8259yzv+x7ZmC8WcbGjU2migBFAGpAK9AGSgBjzX3dAAYSbT6kBWoA6oNz8VwycAU4BuUCmUquuku5beIZOpXF6XCFRPbyGTqUJAsYCVwCTgTFASjsvYxE6Gkh2UlYBcADYCewB9iu16qb21tmfXBQC61SaeGA2cANwHb8K5GtSzH83mz/X6lSarcCXwCalVn1Wonp4TKcVWKfSRAJzgLuAaUCAXytkIgy4xfzXqlNpfgA+A9Yotepqv9bMAbLO9g7WqTTjgYcxidvdnXNaDK3k1Z4lt6aEorrzFDdUUFpfQXljDfrmehpaGmkxtlLf0ghAqCIYhSyAEEUw4YEhxAZHkBDag6SQHvTqHktaeCJ9w+JRyN3+TdUBa4F3lFr13vZ/a89x9Q7uFALrVBo5plaxGJjkKn9lUy37zmVzqPwkmZWnOVlTQouh1at1UsgD6B+eyIjofozqkcqEuEFEB4W5c2oGsAzYqNSqDV6tlB06tcA6lUYG3Ao8Cwx3lveEvojvS34h42wWx6rzMRiNUlSxDblMxuDI3kyKH8LViSMZENHL1SmHMX2vz5Vatc8q22kF1qk004BXAKWjPGUXqtDm7+Xrwv3k1Xau/kzfsHhuTB6LqvdE4rpFOcuqA/6k1Kp3+KIenU5gnUqTDLwEzHOUZ9+5bD47vYNdZ7MwGH3+lOsQcpmcq+KHcFe/aUz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JOB98THrogbzNrpS7ir31Sx4dgliVwm465+U1k7fYm9RzKYpn4nezrOdYVszBeLXOfqADqV5m5MS1s2241lVxey7OgGdOdzbE+8BFDGprN46G2O+h96QK3Uqld0pAydSuP0uM8FNlciFViBaBtbCztKM1l+bDMna0p8Xhcp6B+eyMLBNzEtYYSjLBmYlvw6vM1rpxDYXBE5poWKvyPaRgBMvj7fFR9gRe7WDgcj9RcDI5O5J+1arksa4+j1UwMsAd5ydz3XFZ1GYAs6lSYFeBVwuMa471w2q05tJ6PsmOSbhLQXuUzOpLjBzE+d7mrjj/XA4+6Y2bSHTiewBZ1KMw1YBtj4YFg421DFpoK9fFX4s9v+u1LRJyyOmcnjmJ0yUezCKeYAsFipVe/wRT06rcAAOpVGhmnpcSng1IM6u7qQrcUH2V2WxYnqIkm3oAfTGHZAZC+uih/KNYmj3Jm4OQI8C2ww25j7hE4tsAXz+/kWTGagLheVyxv1/HzuBAcrTnG48jQna0q8HltTIQ+gf3giw6P7MapHKuN7DnC477CIDExPpo3ees8646IQWIhOpZkIPIRpbtutSewWQyuna0s5WVNKUd15iuvLKWmopLxRT01zAw0tjTQbWto21QgJCCJQriBEEUx4YAgxwREkhESRFBpLcvdY+ocn0C8sQRz70Rn1wBrgHbP7rWRcdAJb0Kk0kZhEnodp+tPtuy0RrZi8Cj4F1ii1ammCQotwJbDrXSv8hPmG/Qf4j06liQdmAzcA12FnmCURtcBWTHGoNim1aum2S/eQTiuwEPONfA94T6fSBAFjgSswTYeOQRAp18sUYOoF78TkQb9fqVU3OT+lc9FpH9HtQafSRAMjgHRMW9b3xbRVUIz5LxQIAizbktQDjeZ/y81/xUCe+S8HyFRq1TY7Lnc2XD2i/wckBEniScYuwQAAAABJRU5ErkJggg==");
  3276. width: 100rpx;
  3277. height: 100rpx;
  3278. background-repeat: no-repeat;
  3279. background-size: 100% 100%;
  3280. margin: 0 auto;
  3281. }
  3282. .pro-wrapper .iconn.iconn1 {
  3283. background-image: url("data:image/png;base64,iVBORw0K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VvP7f3tM7zm0JsP94448yP6CHy0Dgp0sKBCuABJaAuTeYeQX/0+M9pF9h8iL7AUmzb2IbZcFDj37eG3Hbuykr6FQjcO0py834MU4Ix5Rf3rFAkPCGw+SAixkTFU9i2EQBjv4F/7NdYuj2U8SWZ9WVgJ4G7R0hMGiBGan4qgZ8DL8Q7nxsLzwgcJuiXewKLgBmR8nxUqvHqxxolR7Wk9kFqCEQBinuLzP26yA09o3Zp/gI8FI+bTSJ4TuAwQb88AXgOKIqU51SVzppPNd76XOPYeW8p3audwG2DRaZeFzNc8Q7gYSWgbkjHc3hWYICgXxYwph6fAL4WLe++0zrrD2iUHNHYd7rht6AXMKrgMX1Ebu4vxmO42QM8Drxh+pinBU8LHMZsn6djuIEWx8hO+SWdYKnOJ2Uau07qHCp3bI6cND4R+hYIFHYRGNZNROnpCFUUiRKMmml1qtrZaGSFwFaCfnkU8C8Ytu2W8VxTo8HhszqHzup8cUGnrELnZCWUX9SpVOErVadag6/MfYVa5EGeCC1kgTYyFLQSuKa1EUq5R1uBvh0Eru2QUFDWS8Aq4EVz+W2DkXUChwn65bYYIs/FMH96bf4xhLGq4FVglRJQL8TInxayVmArQb98DTAFuBWYjMswq4GoAtZjxKFaqwTUL2PkTzuNQmArQb8sAyOB0Rjm0CKgZ5puV4rRC96EsYJ+mxJQPbX5X6MT2I2gX24PFAIDMLas7wN0AwrMT0tABlqZl1wCrpj/lpufMuCI+dkP7FIC6rmG+Qb1J5bA/w8QrL/zy2ZeXQAAAABJRU5ErkJggg==");
  3284. }
  3285. .pictrue_log {
  3286. width: 80upx;
  3287. height: 40upx;
  3288. border-radius: 10upx 0 12upx 0;
  3289. line-height: 40upx;
  3290. font-size: 24upx;
  3291. }
  3292. .pictrue_log_class {
  3293. z-index: 3;
  3294. background: -webkit-gradient(linear,
  3295. left top,
  3296. right top,
  3297. from(rgba(246, 122, 56, 1)),
  3298. to(rgba(241, 27, 9, 1)));
  3299. background: linear-gradient(90deg,
  3300. rgba(246, 122, 56, 1) 0%,
  3301. rgba(241, 27, 9, 1) 100%);
  3302. opacity: 1;
  3303. position: absolute;
  3304. top: 0;
  3305. left: 0;
  3306. color: #fff;
  3307. text-align: center;
  3308. }
  3309. .tab_nav .header {
  3310. /* #ifdef H5 || APP-PLUS */
  3311. width: 77%;
  3312. justify-content: space-around;
  3313. /* #endif */
  3314. /* #ifdef MP */
  3315. width: 100%;
  3316. /* #endif */
  3317. height: 96rpx;
  3318. font-size: 28rpx;
  3319. color: #050505;
  3320. margin: auto;
  3321. background-color: #fff;
  3322. }
  3323. .navbar .header .item {
  3324. position: relative;
  3325. margin: 0 25rpx;
  3326. }
  3327. .navbar .header .item.on:before {
  3328. position: absolute;
  3329. width: 60rpx;
  3330. height: 5rpx;
  3331. background-repeat: no-repeat;
  3332. content: "";
  3333. @include linear-gradient(theme);
  3334. bottom: -10rpx;
  3335. left: 50%;
  3336. margin-left: -28rpx;
  3337. }
  3338. .navbar {
  3339. position: fixed;
  3340. // background-color: #fff;
  3341. top: 0;
  3342. left: 0;
  3343. z-index: 99;
  3344. width: 100%;
  3345. }
  3346. .navbar .navbarH {
  3347. position: relative;
  3348. width: 100%;
  3349. }
  3350. .navbar .navbarH .navbarCon {
  3351. position: absolute;
  3352. bottom: 0;
  3353. height: 100rpx;
  3354. width: 100%;
  3355. }
  3356. .h5_back {
  3357. color: #000;
  3358. position: fixed;
  3359. left: 20rpx;
  3360. font-size: 26rpx;
  3361. text-align: center;
  3362. width: 50rpx;
  3363. height: 50rpx;
  3364. line-height: 50rpx;
  3365. background: rgba(255, 255, 255, 0.3);
  3366. border: 1px solid rgba(0, 0, 0, 0.1);
  3367. border-radius: 50%;
  3368. }
  3369. .share-box {
  3370. z-index: 1000;
  3371. position: fixed;
  3372. left: 0;
  3373. top: 0;
  3374. width: 100%;
  3375. height: 100%;
  3376. image {
  3377. width: 100%;
  3378. height: 100%;
  3379. }
  3380. }
  3381. .mask_transparent {
  3382. position: fixed;
  3383. top: 0;
  3384. left: 0;
  3385. right: 0;
  3386. bottom: 0;
  3387. background: transparent;
  3388. z-index: 300;
  3389. }
  3390. .px-12 {
  3391. padding-left: 12rpx;
  3392. padding-right: 12rpx;
  3393. }
  3394. .font-44 {
  3395. font-size: 44rpx;
  3396. }
  3397. .font_color {
  3398. @include main_color(theme);
  3399. }
  3400. .attrImg {
  3401. width: 66rpx;
  3402. height: 66rpx;
  3403. border-radius: 6rpx;
  3404. display: block;
  3405. margin-right: 14rpx;
  3406. }
  3407. .switchTxt {
  3408. height: 60rpx;
  3409. flex: 1;
  3410. line-height: 60rpx;
  3411. box-sizing: border-box;
  3412. background: #eeeeee;
  3413. padding-right: 0 24rpx 0;
  3414. border-radius: 8rpx;
  3415. text-align: center;
  3416. }
  3417. .text-666 {
  3418. color: #666;
  3419. }
  3420. .text-333 {
  3421. color: #333 !important;
  3422. }
  3423. .iconColor {
  3424. @include main_color(theme);
  3425. }
  3426. .activityIcon {
  3427. color: #e93323;
  3428. }
  3429. .detailText {
  3430. padding-bottom: 30rpx;
  3431. }
  3432. .spredGroupStyle {
  3433. width: 450rpx;
  3434. height: 76rpx;
  3435. line-height: 76rpx;
  3436. background: #e93323;
  3437. border-radius: 40rpx;
  3438. font-weight: 400;
  3439. font-size: 28rpx;
  3440. color: #ffffff;
  3441. }
  3442. .group-buy {
  3443. background: #e93323;
  3444. border-radius: 0px 76rpx 76rpx 0px;
  3445. }
  3446. .group-buy2 {
  3447. width: 450rpx !important;
  3448. background: #e93323;
  3449. border-radius: 76rpx;
  3450. }
  3451. .navbar .header .item.groupTabOn:before {
  3452. position: absolute;
  3453. width: 60rpx;
  3454. height: 5rpx;
  3455. background-repeat: no-repeat;
  3456. content: "";
  3457. background: #e93323;
  3458. bottom: -10rpx;
  3459. left: 50%;
  3460. margin-left: -28rpx;
  3461. }
  3462. .groupColor {
  3463. color: #e93323;
  3464. }
  3465. .imageBox {
  3466. width: 702rpx;
  3467. // height: 702rpx;
  3468. position: relative;
  3469. swiper {
  3470. width: 100%;
  3471. height: 100%;
  3472. position: relative;
  3473. }
  3474. .cover {
  3475. width: 702rpx;
  3476. position: relative;
  3477. border-radius: 10px 10px 10px 10px;
  3478. /deep/image,
  3479. /deep/.easy-loadimage,
  3480. uni-image {
  3481. width: 702rpx;
  3482. border-radius: 10px 10px 10px 10px;
  3483. overflow: hidden;
  3484. }
  3485. .circle {
  3486. width: 100rpx;
  3487. height: 100rpx;
  3488. border-radius: 50%;
  3489. background: rgba(0, 0, 0, .5);
  3490. position: absolute;
  3491. top: 50%;
  3492. left: 50%;
  3493. margin-left: -50rpx;
  3494. margin-top: -50rpx;
  3495. z-index: 10;
  3496. line-height: 50px;
  3497. text-align: center;
  3498. color: #fff;
  3499. }
  3500. }
  3501. .slide-image {
  3502. width: 100%;
  3503. height: 100%;
  3504. border-radius: 16rpx;
  3505. }
  3506. .pages {
  3507. position: absolute;
  3508. background-color: #fff;
  3509. height: 34rpx;
  3510. padding: 0 10rpx;
  3511. border-radius: 3rpx;
  3512. right: 30rpx;
  3513. bottom: 30rpx;
  3514. line-height: 34rpx;
  3515. font-size: 24rpx;
  3516. color: #050505;
  3517. }
  3518. }
  3519. .follow_btn {
  3520. color: #282828 !important;
  3521. border: 1px solid #282828 !important;
  3522. line-height: 76rpx;
  3523. }
  3524. .manage {
  3525. width: 100%;
  3526. background: #ffffff;
  3527. box-shadow: 0 2rpx 15rpx rgba(0, 0, 0, 0.1);
  3528. padding: 30rpx 24rpx;
  3529. z-index: 10;
  3530. border-radius: 40rpx 40rpx 0 0;
  3531. .items {
  3532. // border-bottom: 1px solid #EEEEEE;
  3533. color: #333333;
  3534. font-size: 28rpx;
  3535. display: flex;
  3536. justify-content: center;
  3537. margin-bottom: 64rpx;
  3538. &:last-child {
  3539. border-bottom: none;
  3540. }
  3541. .iconfont {
  3542. margin: 0 16rpx 0;
  3543. }
  3544. }
  3545. }
  3546. .flex-between-center-sc {
  3547. justify-content: space-between !important;
  3548. }
  3549. .approval_status {
  3550. padding: 24rpx 24rpx 0 24rpx;
  3551. .status_count {
  3552. padding: 26rpx 30rpx 20rpx;
  3553. border-radius: 10rpx;
  3554. .title {
  3555. margin-left: 10rpx;
  3556. font-size: 28rpx;
  3557. font-weight: bold;
  3558. }
  3559. &.status0 {
  3560. background: #FDF3F2;
  3561. .title {
  3562. color: #E93323;
  3563. }
  3564. }
  3565. &.status1 {
  3566. background: #FFF4EB;
  3567. .title {
  3568. color: #FC8327;
  3569. }
  3570. }
  3571. .iconfont {
  3572. font-size: 30rpx;
  3573. }
  3574. .icon-shijian {
  3575. color: #FC8327;
  3576. }
  3577. .icon-tishi {
  3578. color: #E93323;
  3579. }
  3580. .status_info {
  3581. font-size: 22rpx;
  3582. color: #666666;
  3583. margin: 10rpx 0 0 36rpx;
  3584. }
  3585. }
  3586. }
  3587. </style>