index.vue 116 KB

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