index.vue 116 KB

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