goodsDetail.vue 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808
  1. <template>
  2. <view class="container">
  3. <!--banner-->
  4. <view class="tui-banner-swiper">
  5. <swiper :autoplay="true" :interval="5000" :duration="150" :circular="true"
  6. :style="{ height: swiperHeight + 'px' }" @change="bannerChange">
  7. <block v-for="(item, index) in banner" :key="index">
  8. <swiper-item class="swiper" :data-index="index" @tap.stop="previewImage">
  9. <image mode="widthFix" :src="item.pic" class="tui-slide-image" @load="setswiperHeight" />
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. <!-- 视频-->
  14. <view v-if="goodsDetail.videourl" class="tui-video__box" @tap.stop="play">
  15. <image src="/static/images/mall/video.png" mode="widthFix"></image>
  16. </view>
  17. <view class="tui-banner-tag">
  18. <tui-tag padding="12rpx 18rpx" type="translucent" shape="circleLeft" :scaleMultiple="0.82" originRight>
  19. {{ bannerIndex + 1 }}/{{ banner.length }}
  20. </tui-tag>
  21. </view>
  22. </view>
  23. <!--banner-->
  24. <view class="tui-pro-detail">
  25. <view class="tui-product-title tui-border-radius">
  26. <view v-if="tuanid>0" class="tui-price__box">
  27. <view class="tuan-pro-pricebox tui-padding">
  28. <view class="tui-pro-price">
  29. <view>
  30. <text>¥</text>
  31. <text class="tuan-price">{{goodsDetail.price}}
  32. <block v-if="goodsDetail.ptype==2">
  33. <text v-if="goodsDetail.time_amount > 0"
  34. class="f-30">/{{goodsDetail.time_amount}}{{goodsDetail.quantity_unit}}</text>
  35. <text v-else class="f-30">/<text
  36. v-if="goodsDetail.is_times">{{goodsDetail.timesmum}}</text>次</text>
  37. </block>
  38. </text>
  39. </view>
  40. <view v-if="goodsDetail.original_price>0" class="tui-original-price tui-white__gray">
  41. ¥{{goodsDetail.original_price}}</view>
  42. </view>
  43. <view class="tui-sold tui-white__gray">
  44. <view class="tui-price-tag">{{tuangoods.people_num}}人团</view>
  45. <text>已拼{{goodsDetail.sale_count}}件</text>
  46. </view>
  47. </view>
  48. <view class="tui-right__box">
  49. <tui-button v-if="tuangoods.auto_initiate==0" width="168rpx" height="54rpx" :size="26" shadow
  50. type="danger" shape="circle" @click="showPopup">
  51. 发起拼团
  52. </tui-button>
  53. <tui-button v-else width="168rpx" height="54rpx" :size="26" shadow type="danger" shape="circle"
  54. @click="showPopup">
  55. 拼团
  56. </tui-button>
  57. </view>
  58. </view>
  59. <view v-else-if="msid>0" class="tui-price__box">
  60. <view class="ms-pro-pricebox tui-padding">
  61. <view class="tui-pro-price">
  62. <view>
  63. <text>¥</text>
  64. <text class="tuan-price">{{goodsDetail.price}}
  65. <block v-if="goodsDetail.ptype==2">
  66. <block v-if="goodsDetail.is_times == 0">
  67. <text v-if="goodsDetail.time_amount > 0"
  68. class="f-24">/{{goodsDetail.time_amount}}{{goodsDetail.quantity_unit}}</text>
  69. <text v-if="goodsDetail.time_amount == 0"
  70. class="f-24">/{{goodsDetail.quantity_unit}}1</text>
  71. </block>
  72. <text v-if="goodsDetail.is_times == 1" class="f-24">
  73. /<text v-if="goodsDetail.is_times">{{goodsDetail.timesmum}}</text>
  74. 次</text>
  75. </block>
  76. </text>
  77. </view>
  78. <view class="tui-original-price tui-white__gray">¥{{goodsDetail.original_price}}</view>
  79. </view>
  80. <view class="tui-sold tui-white__gray">
  81. <text>已抢{{goodsDetail.sale_count}}件</text>
  82. <tui-tag v-if="goodsDetail.miaosha.status==1" type="white" plain size="24rpx" padding="8rpx"
  83. :scaleMultiple="0.94">限时秒杀</tui-tag>
  84. </view>
  85. </view>
  86. <view class="tui-right__box">
  87. <tui-button v-if="goodsDetail.miaosha.status!=1" type="danger" disabled shape="circle"
  88. width="140rpx" height="42rpx" :size="24">{{goodsDetail.miaosha.status==0?'活动已结束':'即将开抢'}}
  89. </tui-button>
  90. <text v-if="goodsDetail.miaosha.status==1" class="tui-color-red">距结束还剩:</text>
  91. <tui-countdown v-if="goodsDetail.miaosha.status==1" :width="28" :height="28" :time="3880"
  92. backgroundColor="#EB0909" borderColor="#EB0909" colonColor="#EB0909" color="#fff">
  93. </tui-countdown>
  94. </view>
  95. </view>
  96. <view v-else class="toplndsie">
  97. <view class="tui-pro-pricebox tui-padding">
  98. <view class="tui-pro-price">
  99. <view v-if="goodsDetail.is_points_goods!=1">
  100. <text>¥</text>
  101. <text class="tui-price">{{goodsDetail.price}}
  102. <block v-if="goodsDetail.ptype==2">
  103. <block v-if="goodsDetail.is_times == 0">
  104. <text v-if="goodsDetail.time_amount > 0"
  105. class="f-24">/{{goodsDetail.time_amount}}{{goodsDetail.quantity_unit}}</text>
  106. <text v-if="goodsDetail.time_amount == 0"
  107. class="f-24">/{{goodsDetail.quantity_unit}}</text>
  108. </block>
  109. <text v-if="goodsDetail.is_times == 1" class="f-24">
  110. /<text v-if="goodsDetail.is_times">{{goodsDetail.timesmum}}</text>
  111. 次</text>
  112. </block>
  113. </text>
  114. <text v-if="goodsDetail.is_additional==1" class="dingjing">(定金)</text>
  115. <text v-if="goodsDetail.original_price>0" class="tui-original-price tui-gray">
  116. 原价
  117. <text class="tui-line-through">¥{{goodsDetail.original_price}}</text>
  118. </text>
  119. </view>
  120. <view v-if="goodsDetail.is_points_goods==1">
  121. <text>{{lang.points}}:</text>
  122. <text class="tui-price">{{goodsDetail.pay_points}}</text>
  123. </view>
  124. <!--<tui-tag padding="10rpx 20rpx" size="24rpx" plain type="high-green" shape="circle"
  125. :scaleMultiple="0.8">新品</tui-tag>-->
  126. </view>
  127. <view class="tui-collection tui-size" @tap="collecting">
  128. <tui-icon :name="collected ? 'like-fill' : 'like'" :color="collected ? '#ff201f' : '#333'"
  129. :size="20"></tui-icon>
  130. <view class="tui-scale-collection" :class="{'tui-icon-red':collected}">收藏</view>
  131. </view>
  132. </view>
  133. <view class="points_goods" v-if="goodsDetail.pay_points>0 && goodsDetail.points_price>0">
  134. 可以用{{goodsDetail.pay_points}}{{lang.points}}抵扣{{goodsDetail.points_price}}元
  135. </view>
  136. </view>
  137. <view class="tui-pro-titbox">
  138. <view class="tui-pro-title">{{goodsDetail.name}}</view>
  139. <view class="tui-share-position" @tap="showSharePopup">
  140. <tui-tag type="gray" shape="circleLeft" padding="12rpx 16rpx">
  141. <view class="tui-share-box">
  142. <tui-icon name="partake" color="#333" :size="15"></tui-icon>
  143. <text class="tui-share-text tui-size">分享</text>
  144. </view>
  145. </tui-tag>
  146. </view>
  147. </view>
  148. <view class="tui-padding">
  149. <view class="tui-sale-info tui-size tui-gray">
  150. <view>人气:{{viewed}}</view>
  151. <view>月销:{{goodsDetail.sale_count}}</view>
  152. <view v-if="goodsDetail.ptype==1">库存:{{quantity}}</view>
  153. </view>
  154. </view>
  155. </view>
  156. <view v-if="goodsDetail.combination && goodsDetail.combination.length>0" class="tui-radius-all tui-mtop">
  157. <tui-list-cell padding="30rpx">
  158. <view class="tui-combination-text tui-between">
  159. <view class="tui-combination-title">套装商品</view>
  160. </view>
  161. </tui-list-cell>
  162. <block v-for="(item, index) in goodsDetail.combination" :key="index">
  163. <view class="border-flex">
  164. <!-- 图片 -->
  165. <view class="border-left">
  166. <image mode="scaleToFill" :src="item.goods.image" />
  167. </view>
  168. <!-- 文字 -->
  169. <view class="border-right">
  170. <view>{{item.goods.name}}</view>
  171. <view>单价:{{item.goods.price}}</view>
  172. <view>数量:{{item.numbers}}{{item.goods.quantity_unit}}</view>
  173. </view>
  174. </view>
  175. </block>
  176. </view>
  177. <!--
  178. <view class="tui-discount-box tui-radius-all tui-mtop">
  179. <view class="tui-list-cell" @tap="coupon">
  180. <view class="tui-bold tui-cell-title">领券</view>
  181. <view class="tui-flex-center">
  182. <tui-tag type="red" shape="circle" padding="12rpx 24rpx" size="24rpx">满99减8</tui-tag>
  183. <tui-tag margin="0 0 0 20rpx" type="red" padding="12rpx 24rpx" size="24rpx" shape="circle">满59减5
  184. </tui-tag>
  185. </view>
  186. <view class="tui-ml-auto">
  187. <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
  188. </view>
  189. </view>
  190. <view class="tui-list-cell tui-last" @tap="showPopup">
  191. <view class="tui-bold tui-cell-title">促销</view>
  192. <view>
  193. <view class="tui-promotion-box">
  194. <tui-tag originLeft padding="12rpx 24rpx" :scaleMultiple="0.8" shape="circle" type="red"
  195. plain>多买优惠</tui-tag>
  196. <text>满1件,立减最低1件商品价格,包邮(限中国内地)</text>
  197. </view>
  198. <view class="tui-promotion-box">
  199. <tui-tag originLeft padding="12rpx 24rpx" :scaleMultiple="0.8" shape="circle" type="red"
  200. plain>满额返券</tui-tag>
  201. <text>满2件,立减最低2件商品价格,包邮(限中国内地)</text>
  202. </view>
  203. <view class="tui-promotion-box">
  204. <tui-tag originLeft padding="12rpx 24rpx" :scaleMultiple="0.8" shape="circle" type="red"
  205. plain>特别赠品</tui-tag>
  206. <text>满3件,立减最低3件商品价格,包邮(限中国内地)</text>
  207. </view>
  208. </view>
  209. <view class="tui-right">
  210. <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
  211. </view>
  212. </view>
  213. </view>-->
  214. <view class="tui-basic-info tui-mtop tui-radius-all">
  215. <view v-if="hasMoreSelect" class="tui-list-cell" @tap="showPopup">
  216. <view class="tui-bold tui-cell-title">选项</view>
  217. <view class="tui-selected-box">{{selectSize}}</view>
  218. <view class="tui-ml-auto">
  219. <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
  220. </view>
  221. </view>
  222. <!--
  223. <view class="tui-list-cell" @tap="showPopup">
  224. <view class="tui-bold tui-cell-title">送至</view>
  225. <view class="tui-addr-box">
  226. <view class="tui-addr-item">北京朝阳区三环到四环之间</view>
  227. <view class="tui-addr-item">今日23:59前完成下单,预计6月28日23:30前发货,7月1日24:00前送达</view>
  228. </view>
  229. <view class="tui-right">
  230. <tui-icon name="more-fill" :size="20" color="#666"></tui-icon>
  231. </view>
  232. </view>
  233. <view class="tui-list-cell tui-last">
  234. <view class="tui-bold tui-cell-title">运费</view>
  235. <view class="tui-selected-box">在线支付免运费</view>
  236. </view>-->
  237. <view class="tui-guarantee" v-if="goodsDetail.keyword.length>0">
  238. <view v-for="(item, index) in goodsDetail.keyword" :key="index" class="tui-guarantee-item">
  239. <tui-icon name="circle-selected" :size="14" color="#999"></tui-icon>
  240. <text class="tui-pl">{{item}}</text>
  241. </view>
  242. </view>
  243. </view>
  244. <!--正在拼团中-->
  245. <view v-if="tuanid>0">
  246. <view v-if="tuangoods.TuanFound.length>0 && tuangoods.auto_initiate==0" class="tui-radius-all tui-mtop">
  247. <tui-list-cell padding="30rpx">
  248. <view class="tui-group-text tui-between">
  249. <view class="tui-group-title">{{tuangoods.TuanFound.length}}人正在拼团,可直接参与</view>
  250. </view>
  251. </tui-list-cell>
  252. <!-- :style="{ height: list.length === 1 ? '156rpx' : '312rpx' }" -->
  253. <!-- :display-multiple-items="list.length === 1 ? 1 : 2" -->
  254. <swiper :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500" :circular="true"
  255. :display-multiple-items="tuangoods.TuanFound.length < 2 ? 1 : 2" :vertical="true"
  256. class="tui-group-swiper"
  257. :style="{ height: tuangoods.TuanFound.length < 2 ? '156rpx' : '312rpx' }">
  258. <block v-for="(item, index) in tuangoods.TuanFound" :key="index">
  259. <swiper-item>
  260. <view class="tui-group-user">
  261. <view class="tui-user-left">
  262. <image :src="item.avatar || '/static/images/my/img_not_tuxedo.png'"
  263. :lazy-load="true"></image>
  264. <view class="tui-user-anme">{{item.nickname}}</view>
  265. </view>
  266. <view class="tui-user-right">
  267. <view class="tui-user-countdown">
  268. <view class="tui-group-num">
  269. {{item.need}}人成团,还差<text
  270. class="tui-color-red">{{item.difference}}</text>人拼成
  271. </view>
  272. <view class="tui-group-countdown">
  273. <view class="tui-countdown-right">剩余</view>
  274. <tui-countdown :time="3800" scale colonColor="#EB0909"
  275. borderColor="#EB0909" color="#EB0909"></tui-countdown>
  276. <view class="tui-countdown-left">结束</view>
  277. </view>
  278. </view>
  279. <tui-button width="128rpx" height="54rpx" :size="26" shadow type="danger"
  280. shape="circle" @click="jointuan(item.id)">
  281. 去参团
  282. </tui-button>
  283. </view>
  284. </view>
  285. </swiper-item>
  286. </block>
  287. </swiper>
  288. </view>
  289. <!-- 自动开团 -->
  290. <view v-else class="tui-radius-all tui-mtop">
  291. <tui-list-cell padding="30rpx">
  292. <view class="tui-group-text tui-between">
  293. <view v-if="tuangoods.TuanFollow && tuangoods.TuanFollow.length" class="tui-group-title">
  294. {{tuangoods.TuanFollow.length}}人正在拼团,还差{{tuangoods.TuanFound[0].difference}}人成团,可直接参与
  295. </view>
  296. <view v-else class="tui-group-title">0人正在拼团,还差{{tuangoods.people_num}}人成团,可直接参与
  297. </view>
  298. </view>
  299. </tui-list-cell>
  300. <block v-if="tuangoods.TuanFollow && tuangoods.TuanFollow.length">
  301. <!-- :style="{ height: list.length === 1 ? '156rpx' : '312rpx' }" -->
  302. <!-- :display-multiple-items="list.length === 1 ? 1 : 2" -->
  303. <swiper :indicator-dots="false" :autoplay="true" :interval="5000" :duration="500"
  304. :circular="true" :display-multiple-items="tuangoods.TuanFollow.length < 2 ? 1 : 2"
  305. :vertical="true" class="tui-group-swiper"
  306. :style="{ height: tuangoods.TuanFollow.length < 2 ? '156rpx' : '312rpx' }">
  307. <block v-for="(item, index) in tuangoods.TuanFollow" :key="index">
  308. <swiper-item>
  309. <view class="tui-group-user">
  310. <view class="tui-user-left">
  311. <image :src="item.avatar || '/static/images/my/img_not_tuxedo.png'"
  312. :lazy-load="true"></image>
  313. <view class="tui-user-anme-auto">{{item.nickname}}</view>
  314. </view>
  315. <view class="tui-user-right">
  316. <view class="tui-user-countdown">
  317. <view class="tui-group-countdown">
  318. <view class="tui-countdown-right">剩余</view>
  319. <tui-countdown :time="3800" scale colonColor="#EB0909"
  320. borderColor="#EB0909" color="#EB0909"></tui-countdown>
  321. <view class="tui-countdown-left">结束</view>
  322. </view>
  323. </view>
  324. </view>
  325. </view>
  326. </swiper-item>
  327. </block>
  328. </swiper>
  329. </block>
  330. </view>
  331. <!--拼团规则玩法介绍-->
  332. <view class="tui-group-rule tui-mtop tui-radius-all">
  333. <tui-list-cell padding="30rpx" arrow @click="showModal">
  334. <view class="tui-group-text tui-between">
  335. <view class="tui-group-title">拼团规则</view>
  336. <view class="tui-sub__title">拼团玩法介绍</view>
  337. </view>
  338. </tui-list-cell>
  339. <view v-if="tuangoods.auto_initiate==0" class="tui-step__box">
  340. <view class="tui-step-item">
  341. <image src="/static/images/mall/img_opengroup_3x.png"></image>
  342. <view class="tui-step-text">团长开团</view>
  343. </view>
  344. <view class="tui-step-arrow">
  345. <image src="/static/images/mall/img_arrow_3x.png"></image>
  346. </view>
  347. <view class="tui-step-item">
  348. <image src="/static/images/mall/img_invitefriends_3x.png"></image>
  349. <view class="tui-step-text">邀请好友</view>
  350. </view>
  351. <view class="tui-step-arrow">
  352. <image src="/static/images/mall/img_arrow_3x.png"></image>
  353. </view>
  354. <view class="tui-step-item">
  355. <image src="/static/images/mall/img_spellgroupsuccess_3x.png"></image>
  356. <view class="tui-step-text">拼团成功</view>
  357. </view>
  358. </view>
  359. <view v-if="tuangoods.auto_initiate==1" class="tui-step__box">
  360. <view class="tui-step-item">
  361. <image src="/static/images/mall/img_opengroup_3x.png"></image>
  362. <view class="tui-step-text">参与拼团</view>
  363. <view class="tui-step-text">{{tuangoods.people_num}}人成团</view>
  364. </view>
  365. <view class="tui-step-arrow">
  366. <image src="/static/images/mall/img_arrow_3x.png"></image>
  367. </view>
  368. <view class="tui-step-item">
  369. <image src="/static/images/mall/img_invitefriends_3x.png"></image>
  370. <view class="tui-step-text">拼中发货</view>
  371. </view>
  372. <view class="tui-step-arrow">
  373. <image src="/static/images/mall/img_arrow_3x.png"></image>
  374. </view>
  375. <view class="tui-step-item">
  376. <image src="/static/images/mall/img_spellgroupsuccess_3x.png"></image>
  377. <view class="tui-step-text">未拼中获得奖励</view>
  378. <view v-if="tuangoods.not_winning_ptype==2" class="tui-step-text">
  379. <text>¥</text>
  380. <text class="redenvelope">{{tuangoods.not_winning_redenvelope}}</text>红包
  381. </view>
  382. <view v-if="tuangoods.not_winning_ptype==3" class="tui-step-text">
  383. 优惠券
  384. </view>
  385. <view v-if="tuangoods.not_winning_ptype==4" class="tui-step-text">
  386. <text>¥</text>
  387. <text class="redenvelope">{{tuangoods.not_winning_points}}</text>{{lang.points}}
  388. </view>
  389. </view>
  390. </view>
  391. </view>
  392. </view>
  393. <!--正在拼团中end-->
  394. <view v-if="goodscomment && goodscomment.length>0 && goodsDetail.ptype==1"
  395. class="tui-cmt-box tui-mtop tui-radius-all">
  396. <view class="tui-list-cell tui-last tui-between">
  397. <view class="tui-bold tui-cell-title">评价</view>
  398. <!--<view class="tui-flex-center" @tap="evaluate">
  399. <text class="tui-cmt-all">查看全部</text>
  400. <tui-icon name="more-fill" :size="20" color="#ff201f"></tui-icon>
  401. </view>-->
  402. </view>
  403. <view v-for="(item, index) in goodscomment" :key="index" class="tui-cmt-content tui-padding">
  404. <view class="tui-cmt-user">
  405. <image :src="item.head_img_url" class="tui-acatar"></image>
  406. <view class="tui-attr">{{item.nick_name}}</view>
  407. </view>
  408. <tui-rate :current="item.level"></tui-rate>
  409. <view class="tui-cmt">{{item.content}}</view>
  410. <!--<view class="tui-attr">颜色:叠层钛钢流苏耳环(A74)</view>-->
  411. </view>
  412. <view class="tui-cmt-btn">
  413. <!--<tui-button width="240rpx" height="64rpx" :size="24" type="black" plain shape="circle"
  414. @click="evaluate">查看全部评价</tui-button>-->
  415. </view>
  416. </view>
  417. <view class="tui-product-img overflowhidden">
  418. <view class="pro_detailImg">
  419. <uParse :html="goodsDetail.content" ref="article" :tag-style="tagStyle"></uParse>
  420. </view>
  421. </view>
  422. <tui-nomore text="已经到最底了" backgroundColor="#f7f7f7"></tui-nomore>
  423. <view class="tui-safearea-bottom"></view>
  424. </view>
  425. <!--底部操作栏-->
  426. <view class="tui-operation">
  427. <view class="tui-operation-left" :class="{'tui-col-4':ptype==1,'tui-col-3':ptype==2}">
  428. <view class="tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150" @tap="goindex">
  429. <tui-icon name="shop" :size="22" color="#333"></tui-icon>
  430. <view class="tui-operation-text tui-scale-small">首页</view>
  431. </view>
  432. <!-- #ifdef MP-WEIXIN -->
  433. <button v-if="configkefu.minionline==1 || configkefu.minionline==3" @click="toim"
  434. class="item-button tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150">
  435. <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
  436. <view class="tui-operation-text tui-scale-small">客服</view>
  437. </button>
  438. <button v-else-if="configkefu.minionline==2" @click="toimwebview(configkefu.kefuurl)"
  439. class="item-button tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150">
  440. <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
  441. <view class="tui-operation-text tui-scale-small">客服</view>
  442. </button>
  443. <button v-else open-type="contact" class="item-button tui-operation-item" hover-class="tui-opcity"
  444. :hover-stay-time="150">
  445. <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
  446. <view class="tui-operation-text tui-scale-small">客服</view>
  447. </button>
  448. <!-- #endif -->
  449. <!-- #ifndef MP-WEIXIN -->
  450. <button v-if="configkefu.minionline==1 || configkefu.minionline==2 || configkefu.minionline==3"
  451. @click="toim" class="item-button tui-operation-item" hover-class="tui-opcity"
  452. :hover-stay-time="150">
  453. <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
  454. <view class="tui-operation-text tui-scale-small">客服</view>
  455. </button>
  456. <button v-else @click="tokefuTel" class="item-button tui-operation-item" hover-class="tui-opcity"
  457. :hover-stay-time="150">
  458. <tui-icon name="kefu" :size="22" color="#333"></tui-icon>
  459. <view class="tui-operation-text tui-scale-small">客服</view>
  460. </button>
  461. <!-- #endif -->
  462. <view v-if="goodsDetail.sid>0" class="tui-operation-item" hover-class="tui-opcity"
  463. :hover-stay-time="150" @tap="goshop">
  464. <tui-icon name="shop" :size="22" color="#333"></tui-icon>
  465. <view class="tui-operation-text tui-scale-small">店铺</view>
  466. </view>
  467. <view v-if="ptype==1" class="tui-operation-item" hover-class="tui-opcity" :hover-stay-time="150"
  468. @tap="goShopCar">
  469. <tui-icon name="cart" :size="22" color="#333"></tui-icon>
  470. <view class="tui-operation-text tui-scale-small">购物车</view>
  471. <tui-badge type="red" absolute :scaleRatio="0.8" right="10rpx" top="-4rpx">{{shopNum}}</tui-badge>
  472. </view>
  473. </view>
  474. <view :class="{'tui-col-6':ptype==1,'tui-col-7':ptype==2}">
  475. <view v-if="goodsDetail.is_points_goods==1" class="tui-operation-right tui-right-flex tui-btnbox-4">
  476. <view class="tui-flex-1">
  477. <tui-button height="68rpx" :size="32" type="warning" shape="circle" @click="buyNow">立即兑换
  478. </tui-button>
  479. </view>
  480. </view>
  481. <view v-else-if="tuanid>0" class="tuan-operation-right tui-right-flex tui-btnbox-4">
  482. <view class="tuan-flex">
  483. <button class="itembutton100" @click="tuanfound"
  484. :style="'opacity: 0.8;background:'+ pagestyleconfig.appstylecolor">
  485. <view class="tuan-btn__box">
  486. <view>单独购买</view>
  487. <view class="tui-flex-end">
  488. <view class="tui-size-26">¥</view>
  489. <view class="tui-size-32">{{goodsDetail.original_price}}</view>
  490. </view>
  491. </view>
  492. </button>
  493. </view>
  494. <view class="tuan-flex">
  495. <button class="itembutton100" @click="tuanfound"
  496. :style="'background:'+ pagestyleconfig.appstylecolor">
  497. <view class="tuan-btn__box">
  498. <view v-if="tuangoods.auto_initiate==0">发起拼团</view>
  499. <view v-else>拼团</view>
  500. <view class="tui-flex-end">
  501. <view class="tui-size-26">¥</view>
  502. <view class="tui-price-large .tui-size-32">{{goodsDetail.price}}</view>
  503. </view>
  504. </view>
  505. </button>
  506. </view>
  507. </view>
  508. <view v-else-if="ptype==1" class="tui-operation-right tui-right-flex tui-btnbox-4">
  509. <view v-if="goodsDetail.is_skumore!=1" class="tui-flex-1">
  510. <button class="itembutton68" @click="toAddShopCar"
  511. :style="'background:'+ pagestyleconfig.appstylecolor">加入购物车</button>
  512. </view>
  513. <view class="tui-flex-1">
  514. <button class="itembutton68" @click="tobuy"
  515. :style="'background:'+ pagestyleconfig.appstylecolor">立即购买</button>
  516. </view>
  517. </view>
  518. <view v-else-if="ptype==2" class="tui-operation-right tui-right-flex tui-btnbox-4">
  519. <view v-if="goodsDetail.tel" class="tui-flex-1">
  520. <button class="itembutton68" @click="phoneCall"
  521. :style="'background:'+ pagestyleconfig.appstylecolor">预约电话</button>
  522. </view>
  523. <view class="tui-flex-1">
  524. <button v-if="is_binding==1 && !uuid" class="itembutton68" @click="selecttechnical"
  525. :style="'background:'+ pagestyleconfig.appstylecolor">选择{{lang.technical}}</button>
  526. <button v-else class="itembutton68" @click="tobuy"
  527. :style="'background:'+ pagestyleconfig.appstylecolor">立即预约</button>
  528. </view>
  529. </view>
  530. </view>
  531. </view>
  532. <!--底部操作栏-->
  533. <!--规格选项开始-->
  534. <tui-bottom-popup :show="popupShow" @close="hidePopup">
  535. <view class="tui-popup-box">
  536. <view class="tui-product-box tui-padding">
  537. <image :src="goodsoptionImgSelect" mode="widthFix" class="tui-popup-img"></image>
  538. <view class="tui-popup-price">
  539. <view class="popup-box-goodsname">{{goodsDetail.name}}</view>
  540. <view class="tui-amount tui-bold">¥{{selectSizePrice}}</view>
  541. <view class="tui-number">起售量:{{goodsDetail.minimum}}</view>
  542. </view>
  543. </view>
  544. <scroll-view scroll-y class="tui-popup-scroll">
  545. <view v-if="goodsDetail.is_skumore==1" class="tui-scrollview-box">
  546. <view v-for="(skuvo, idx) in goodsDetail.skumore" :key="idx"
  547. class="tui-number-box tui-attr-title">
  548. <view class="tui-attr-title">{{skuvo.sku}}</view>
  549. <view class="tui-amount">¥{{skuvo.price}}</view>
  550. <tui-numberbox :max="9999" :min="0" :index="idx" :value="skuvo.number"
  551. @change="skumorenumberchange"></tui-numberbox>
  552. </view>
  553. </view>
  554. <view v-else class="tui-scrollview-box">
  555. <block v-for="(goodso, idx) in goodsDetail.attribute" :key="idx">
  556. <view class="tui-bold tui-attr-title">{{goodso.name}}</view>
  557. <view class="tui-attr-box">
  558. <view class="tui-attr-item" :class="[goodso.checked==item? 'tui-attr-active' : '']"
  559. v-for="(item, index) in goodso.item" :key="index" @tap="labelItemTap"
  560. :data-idx="idx" :data-item="item">
  561. {{item}}
  562. </view>
  563. </view>
  564. </block>
  565. <view class="tui-number-box tui-bold tui-attr-title">
  566. <view class="tui-attr-title">数量</view>
  567. <tui-numberbox :max="9999" :min="1" :value="buyNumber" @change="change"></tui-numberbox>
  568. </view>
  569. <!--
  570. <view class="tui-bold tui-attr-title">保障服务</view>
  571. <view class="tui-attr-box">
  572. <view class="tui-attr-item">半年掉钻保 ¥4.0</view>
  573. </view>
  574. <view class="tui-bold tui-attr-title">只换不修</view>
  575. <view class="tui-attr-box">
  576. <view class="tui-attr-item">三月意外换¥2.0</view>
  577. <view class="tui-attr-item">半年意外换¥2.0</view>
  578. </view>
  579. -->
  580. </view>
  581. </scroll-view>
  582. <view v-if="tuanid>0" class="tui-operation tui-operation-right tui-right-flex tui-popup-btn">
  583. <view class="tui-flex-1">
  584. <button class="itembutton72" @click="buyNow"
  585. :style="'background:'+ pagestyleconfig.appstylecolor">立即拼团</button>
  586. </view>
  587. </view>
  588. <view v-else-if="ptype==1" class="tui-operation tui-operation-right tui-right-flex tui-popup-btn">
  589. <view v-if="goodsDetail.is_skumore!=1" class="tui-flex-1">
  590. <button class="itembutton72" @click="addShopCar"
  591. :style="'background:'+ pagestyleconfig.appstylecolor">加入购物车</button>
  592. </view>
  593. <view class="tui-flex-1">
  594. <button class="itembutton72" @click="buyNow"
  595. :style="'background:'+ pagestyleconfig.appstylecolor">立即购买</button>
  596. </view>
  597. </view>
  598. <view v-else-if="ptype==2" class="tui-operation tui-operation-right tui-right-flex tui-popup-btn">
  599. <view class="tui-flex-1">
  600. <button class="itembutton72" @click="buyNow"
  601. :style="'background:'+ pagestyleconfig.appstylecolor">立即预约</button>
  602. </view>
  603. </view>
  604. <view class="tui-right">
  605. <tui-icon name="close-fill" color="#999" :size="20" @click="hidePopup"></tui-icon>
  606. </view>
  607. </view>
  608. </tui-bottom-popup>
  609. <!--规格选项结束-->
  610. <!--购买权限-->
  611. <tui-bottom-popup :show="openbuy" @close="hideopenbuy">
  612. <view class="tui-share__box">
  613. <view class="tui-share__header">
  614. <text>您还没有开通购买权限,请联客服</text>
  615. <view class="tui-close__box" @tap="hideopenbuy">
  616. <tui-icon name="shut" :size="20" color="#C9C9C9"></tui-icon>
  617. </view>
  618. </view>
  619. <view class="tui-share__list">
  620. <!-- #ifdef MP-WEIXIN -->
  621. <button open-type="contact" class="tui-share-btn">
  622. <view class="tui-share__item">
  623. <view class="tui-grid-icon">
  624. <tui-icon name="wechat" :size="60" color="#4dae6b"></tui-icon>
  625. </view>
  626. <view class="tui-share__text">在线客服</view>
  627. </view>
  628. </button>
  629. <!-- #endif -->
  630. <!-- #ifndef MP-WEIXIN -->
  631. <button @click="toim" class="tui-share-btn">
  632. <view class="tui-share__item">
  633. <view class="tui-grid-icon">
  634. <tui-icon name="wechat" :size="60" color="#4dae6b"></tui-icon>
  635. </view>
  636. <view class="tui-share__text">在线客服</view>
  637. </view>
  638. </button>
  639. <!-- #endif -->
  640. <button class="tui-share-btn" @tap="tokefuTel">
  641. <view class="tui-share__item">
  642. <view class="tui-grid-icon">
  643. <tui-icon name="mobile" :size="60" color="#4dae6b"></tui-icon>
  644. </view>
  645. <view class="tui-share__text">电话客服</view>
  646. </view>
  647. </button>
  648. </view>
  649. </view>
  650. </tui-bottom-popup>
  651. <!--底部分享弹层-->
  652. <tui-bottom-popup :show="sharePopup" @close="hideSharePopup">
  653. <view class="tui-share__box">
  654. <view class="tui-share__header">
  655. <text>分享</text>
  656. <view class="tui-close__box" @tap="hideSharePopup">
  657. <tui-icon name="shut" :size="20" color="#C9C9C9"></tui-icon>
  658. </view>
  659. </view>
  660. <view class="tui-share__list">
  661. <button open-type="share" class="tui-share-btn" @tap="onShare">
  662. <view class="tui-share__item">
  663. <image src="/static/images/mall/icon_popup_share.png"></image>
  664. <view class="tui-share__text">分享给好友</view>
  665. </view>
  666. </button>
  667. <view class="tui-share__item" @tap="createPoster">
  668. <image src="/static/images/mall/icon_popup_poster.png"></image>
  669. <view class="tui-share__text">生成分享海报</view>
  670. </view>
  671. </view>
  672. </view>
  673. </tui-bottom-popup>
  674. <!--底部分享弹层-->
  675. <canvas :style="{ width: winWidth + 'px', height: winHeight + 'px' }" canvas-id="posterId" id="posterId"
  676. class="tui-poster__canvas"></canvas>
  677. <tui-modal custom :show="modalShow" backgroundColor="transparent" padding="0" @cancel="hideModal">
  678. <view class="tui-poster__box" :style="{marginTop:height+'px'}">
  679. <image src="/static/images/mall/icon_popup_closed.png" class="tui-close__img" @tap.stop="hideModal">
  680. </image>
  681. <image :src="posterImg" v-if="posterImg" class="tui-poster__img"></image>
  682. <button class="itembutton72" @click="savePic"
  683. :style="'width:460rpx;background:'+ pagestyleconfig.appstylecolor">保存图片</button>
  684. <view class="tui-share__tips">保存图片到手机相册后,将图片分享到您的圈子</view>
  685. </view>
  686. </tui-modal>
  687. <!--拼团玩法介绍-->
  688. <tui-modal :show="tuanmodal" shape="circle" padding="30rpx 40rpx" custom>
  689. <view class="tui-modal__title">拼团玩法</view>
  690. <view class="tui-modal__p">1.全民拼团,所有用户都可直接参团或开团;</view>
  691. <view class="tui-modal__p">2.拼团成功,指开团在规定时间内达到规定成团人数;</view>
  692. <view class="tui-modal__p">3.拼团失败,指开团后在规定时间内未能找到相应的人数的好友参团,该团失败,系统取消该团订单,退款原路退回。</view>
  693. <view class="tui-modal__btn">
  694. <tui-button type="danger" shape="circle" width="280rpx" height="68rpx" :size="26"
  695. @click="tuanmodal = false">我知道了</tui-button>
  696. </view>
  697. </tui-modal>
  698. </view>
  699. </template>
  700. <script>
  701. const thorui = require('@/components/common/tui-clipboard/tui-clipboard.js');
  702. const poster = require('@/components/common/tui-poster/tui-poster.js');
  703. import uParse from '@/components/jyf-parser/jyf-parser';
  704. export default {
  705. components: {
  706. uParse
  707. },
  708. data() {
  709. return {
  710. lang: {},
  711. uid: '',
  712. config: {},
  713. configkefu: {},
  714. pagestyleconfig: [],
  715. msid: '',
  716. tuanid: '',
  717. jointuanid: '',
  718. windowWidth: 0,
  719. height: 64, //header高度
  720. top: 26, //标题图标距离顶部距离
  721. scrollH: 0, //滚动总高度
  722. swiperHeight: 343,
  723. opcity: 0,
  724. iconOpcity: 0.5,
  725. tagStyle: {
  726. img: 'width:100%;display:block;',
  727. table: 'width:100%',
  728. video: 'width:100%'
  729. },
  730. banner: [],
  731. bannerIndex: 0,
  732. popupShow: false,
  733. openbuy: false,
  734. collected: false,
  735. sharePopup: false,
  736. posterImg: '',
  737. winWidth: uni.upx2px(560 * 2),
  738. winHeight: uni.upx2px(890 * 2),
  739. modalShow: false,
  740. tuanmodal: false,
  741. hasMoreSelect: false,
  742. goodsDetail: [],
  743. tuangoods: {
  744. TuanFound: {},
  745. TuanFollow: {}
  746. },
  747. is_binding: 0,
  748. ptype: 2,
  749. viewed: 1,
  750. quantity: 1,
  751. sku: [],
  752. goodsoptionImgSelect: '',
  753. selectSize: "请选择:",
  754. selectSizePrice: 0,
  755. totalPayPoints: 0,
  756. shopNum: 0,
  757. buyNumber: 1,
  758. buyNumMin: 1,
  759. buyNumMax: 9999,
  760. canSubmit: false, // 选中规格尺寸时候是否允许加入购物车
  761. goodscomment: [],
  762. tel: '',
  763. uuid: '',
  764. current: '',
  765. };
  766. },
  767. onLoad: function(e) {
  768. let _this = this;
  769. let obj = {};
  770. // #ifdef MP-WEIXIN
  771. this.current = "/" + this.__route__;
  772. // #endif
  773. //#ifdef H5
  774. this.current = '/pages/goodsDetail/goodsDetail';
  775. //#endif
  776. uni.setStorageSync('servicetime', '');
  777. uni.setStorageSync('NewMessage', '');
  778. // #ifdef MP-WEIXIN
  779. obj = wx.getMenuButtonBoundingClientRect();
  780. // #endif
  781. // #ifdef MP-BAIDU
  782. obj = swan.getMenuButtonBoundingClientRect();
  783. // #endif
  784. // #ifdef MP-ALIPAY
  785. my.hideAddToDesktopMenu();
  786. // #endif
  787. setTimeout(() => {
  788. uni.getSystemInfo({
  789. success: res => {
  790. //console.log(res);
  791. this.width = obj.left || res.windowWidth;
  792. this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight +
  793. 44;
  794. this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res
  795. .statusBarHeight + 6;
  796. this.scrollH = res.windowWidth;
  797. this.windowWidth = res.windowWidth;
  798. }
  799. });
  800. }, 0);
  801. _this.$request.get('Lang.getlang').then(res => {
  802. if (res.errno == 0) {
  803. _this.lang = res.data;
  804. }
  805. });
  806. if (e && e.scene) {
  807. const scene = decodeURIComponent(e.scene) // 处理扫码进商品详情页面的逻辑
  808. if (scene) {
  809. e.id = scene.split(',')[0]
  810. if (scene.split(',')[1]) {
  811. e.reid = scene.split(',')[1];
  812. }
  813. if (scene.split(',')[2]) {
  814. e.msid = scene.split(',')[2];
  815. }
  816. if (scene.split(',')[3]) {
  817. e.tuanid = scene.split(',')[3];
  818. }
  819. }
  820. }
  821. if (e.msid) {
  822. _this.msid = e.msid;
  823. }
  824. if (e.tuanid) {
  825. _this.tuanid = e.tuanid;
  826. }
  827. if (e.reid) {
  828. uni.setStorageSync('reid', e.reid)
  829. }
  830. _this.sam.login().then(res => {
  831. if (res.uid > 0) {
  832. _this.uid = res.uid;
  833. if (uni.getStorageSync('reid')) {
  834. _this.$request.get('member.bindpid', {
  835. samkey: (new Date()).valueOf(),
  836. pid: uni.getStorageSync('reid')
  837. }).then(res => {
  838. if (res.errno == 0) {
  839. console.log('pid绑定成功');
  840. }
  841. })
  842. }
  843. }
  844. });
  845. _this.$config.init(function() {
  846. if (_this.$config.getConf("kefu")) {
  847. _this.configkefu = _this.$config.getConf("kefu");
  848. }
  849. _this.tel = _this.$config.getConf("TELEPHONE");
  850. });
  851. _this.$request.post('config', {
  852. mo: 'pagestyle'
  853. }).then(res => {
  854. if (res.errno == 0) {
  855. _this.pagestyleconfig = res.data
  856. }
  857. });
  858. _this.getGoodsDetailInfo(e.id);
  859. // 获取购物车数量
  860. _this.$request.get('cart.total').then(res => {
  861. var total = res.data.total;
  862. if (total == null) {
  863. total = 0;
  864. }
  865. _this.shopNum = total;
  866. });
  867. _this.uuid = e.uuid;
  868. _this.getgoodscomment(e.id);
  869. this.current = this.current + '?id=' + e.id + " & reid = " + _this.uid + " & msid =" +_this.msid + "&tuanid=" + _this.tuanid;
  870. _this.$request.post('Config.memberislogin', {
  871. samkey: (new Date()).valueOf()
  872. }).then(res => {
  873. if (res.data) {
  874. if (res.data.goodsdetail_is_login == 1) {
  875. _this.sam.checktelephone().then(res => {});
  876. _this.sam.login();
  877. }
  878. }
  879. });
  880. },
  881. onShow() {},
  882. methods: {
  883. bannerChange: function(e) {
  884. this.bannerIndex = e.detail.current;
  885. },
  886. previewImage: function(e) {
  887. let index = e.currentTarget.dataset.index;
  888. uni.previewImage({
  889. current: this.banner[index],
  890. urls: this.banner
  891. });
  892. },
  893. toimwebview(url) {
  894. this.tui.href("/pages/webview/h5?url=" + url)
  895. },
  896. toim() {
  897. if (this.configkefu.minionline == 2 && this.configkefu.kefuurl) {
  898. this.tui.href(this.configkefu.kefuurl);
  899. } else if (this.configkefu.minionline == 3) {
  900. var telstr = this.configkefu.kefutel;
  901. uni.makePhoneCall({
  902. phoneNumber: telstr
  903. });
  904. } else {
  905. this.tui.href("/pages/im/h5");
  906. }
  907. },
  908. back: function() {
  909. //console.log('sdsd');
  910. uni.navigateBack({});
  911. },
  912. hideopenbuy() {
  913. this.openbuy = false
  914. },
  915. tokefuTel: function(e) { //客服电话
  916. const _this = this;
  917. var telstr = _this.tel;
  918. uni.makePhoneCall({
  919. phoneNumber: telstr,
  920. })
  921. },
  922. phoneCall: function(e) {
  923. var that = this; //console.log(that.data.inputVal);
  924. uni.showModal({
  925. title: '拔打客户电话',
  926. content: '确定要拔打' + that.goodsDetail.tel,
  927. showCancel: true,
  928. //是否显示取消按钮
  929. cancelText: "取消",
  930. //默认是“取消”
  931. confirmText: "拔号",
  932. //默认是“确定”
  933. success: function(res) {
  934. if (res.cancel) { //点击取消,默认隐藏弹框
  935. } else {
  936. //点击确定
  937. uni.makePhoneCall({
  938. phoneNumber: that.goodsDetail.tel
  939. });
  940. }
  941. },
  942. fail: function(res) {},
  943. //接口调用失败的回调函数
  944. complete: function(res) {} //接口调用结束的回调函数(调用成功、失败都会执行)
  945. });
  946. },
  947. showPopup: function() {
  948. this.sam.checktelephone().then(res => {
  949. if (this.goodsDetail.noprice == 1) {
  950. this.openbuy = true;
  951. return;
  952. }
  953. this.popupShow = true;
  954. });
  955. },
  956. hidePopup: function() {
  957. this.popupShow = false;
  958. },
  959. skumorenumberchange: function(e) {
  960. //console.log(e);
  961. this.goodsDetail.skumore[e.index].number = e.value;
  962. },
  963. change: function(e) {
  964. if (e.value > parseInt(this.buyNumMax)) {
  965. uni.showModal({
  966. title: '提示',
  967. content: '购买数量已超出可购买数量!',
  968. showCancel: false
  969. })
  970. return;
  971. }
  972. this.buyNumber = e.value;
  973. },
  974. collecting: function() {
  975. const _this = this;
  976. _this.$request.post('memberwishlist.add', {
  977. goods_id: _this.goodsDetail.id,
  978. ptype: 'goods',
  979. title: _this.goodsDetail.name,
  980. image: _this.goodsDetail.image,
  981. url: _this.current,
  982. samkey: (new Date()).valueOf()
  983. }).then(res => {
  984. this.collected = !this.collected;
  985. })
  986. },
  987. evaluate() {
  988. this.tui.href('/pages/goodsEvaluate/goodsEvaluate')
  989. },
  990. common: function() {
  991. this.tui.toast('功能开发中~');
  992. },
  993. coupon() {
  994. this.sam.navigateTo('/pages/coupon/coupon');
  995. },
  996. onShare() {
  997. this.hideSharePopup()
  998. //#ifdef APP-PLUS
  999. plus.share.sendWithSystem({
  1000. content: this.goodsDetail.name,
  1001. href: window.location
  1002. },
  1003. function() {
  1004. console.log('分享成功');
  1005. },
  1006. function(e) {
  1007. console.log('分享失败:' + JSON.stringify(e));
  1008. }
  1009. );
  1010. //#endif
  1011. // #ifdef H5
  1012. thorui.getClipboardData(window.location, res => {
  1013. if (res) {
  1014. this.tui.toast('链接复制成功,赶快去分享吧~');
  1015. } else {
  1016. this.tui.toast('链接复制失败');
  1017. }
  1018. });
  1019. // #endif
  1020. },
  1021. gooriginal() {
  1022. this.sam.navigateTo('/pages/goodsDetail/goodsDetail?id=' + this.goodsDetail.id)
  1023. },
  1024. goindex() {
  1025. this.sam.navigateTo('/pages/index/index')
  1026. },
  1027. goshop() {
  1028. this.sam.navigateTo('/pages/store_details/store_details?id=' + this.goodsDetail.sid)
  1029. },
  1030. play() {
  1031. uni.navigateTo({
  1032. url: '/pages/video/video?videourl=' + this.goodsDetail.videourl,
  1033. animationType: 'zoom-out'
  1034. })
  1035. },
  1036. showSharePopup() {
  1037. this.sharePopup = true
  1038. },
  1039. hideSharePopup() {
  1040. this.sharePopup = false
  1041. },
  1042. async createPoster() {
  1043. const _this = this;
  1044. this.hideSharePopup()
  1045. if (this.posterImg) {
  1046. this.modalShow = true;
  1047. return;
  1048. }
  1049. uni.showLoading({
  1050. mask: true,
  1051. title: '图片生成中...'
  1052. });
  1053. let localpic = await _this.$request.post('localpic.index', {
  1054. pic: this.goodsDetail.pic,
  1055. })
  1056. let mainPic = await poster.getImage(localpic.data);
  1057. let qrdata = await _this.$request.post('qrcode', {
  1058. msid: _this.msid,
  1059. tuanid: _this.tuanid,
  1060. goodsid: _this.goodsDetail.id,
  1061. page: 'pages/goodsDetail/goodsDetail',
  1062. is_hyaline: true,
  1063. expireHours: 1
  1064. })
  1065. let qrcode = await poster.getImage(qrdata.data);
  1066. // #ifdef MP-WEIXIN
  1067. await poster.removeSavedFile();
  1068. // #endif
  1069. if (mainPic && qrcode) {
  1070. const imgs = {
  1071. mainPic: mainPic,
  1072. qrcode: qrcode
  1073. };
  1074. let text = this.goodsDetail.name;
  1075. let price = this.goodsDetail.price;
  1076. let original_price = this.goodsDetail.original_price;
  1077. poster.drawGoodsPoster('posterId', this.winWidth, this.winHeight, imgs, text, price,
  1078. original_price, '',
  1079. res => {
  1080. uni.hideLoading();
  1081. if (res) {
  1082. this.posterImg = res;
  1083. setTimeout(() => {
  1084. this.modalShow = true;
  1085. }, 60);
  1086. } else {
  1087. this.tui.toast('生成海报失败,请稍后再试');
  1088. }
  1089. });
  1090. } else {
  1091. uni.hideLoading();
  1092. this.tui.toast('生成海报图片下载失败,请稍后再试');
  1093. }
  1094. },
  1095. hideModal() {
  1096. this.modalShow = false;
  1097. },
  1098. savePic() {
  1099. if (this.posterImg) {
  1100. // #ifdef H5
  1101. uni.previewImage({
  1102. urls: [this.posterImg]
  1103. });
  1104. // #endif
  1105. // #ifndef H5
  1106. poster.saveImage(this.posterImg);
  1107. // #endif
  1108. this.hideModal();
  1109. }
  1110. },
  1111. getGoodsDetailInfo: function(goodsId) {
  1112. const _this = this;
  1113. _this.$request.get('goods.detail', {
  1114. id: goodsId,
  1115. msid: _this.msid,
  1116. tuanid: _this.tuanid,
  1117. showLoading: true
  1118. }).then(res => {
  1119. //console.log(res);
  1120. if (res.errno == 0) {
  1121. var selectSizeTemp = "";
  1122. if (res.data.attribute) {
  1123. if (res.data.attribute.length > 0) {
  1124. for (var i = 0; i < res.data.attribute.length; i++) {
  1125. selectSizeTemp = selectSizeTemp + " " + res.data.attribute[i].name;
  1126. }
  1127. _this.hasMoreSelect = true;
  1128. _this.selectSize = _this.selectSize + selectSizeTemp;
  1129. }
  1130. _this.selectSizePrice = res.data.minPrice;
  1131. _this.totalPayPoints = res.data.minPoints;
  1132. }
  1133. _this.goodsDetail = res.data;
  1134. if (_this.goodsDetail.tuan) {
  1135. _this.tuangoods = _this.goodsDetail.tuan;
  1136. }
  1137. if (_this.goodsDetail.category) {
  1138. _this.is_binding = _this.goodsDetail.category.is_binding
  1139. }
  1140. var minimum = res.data.minimum;
  1141. _this.buyNumber = (minimum <= res.data.stores) ? minimum : 0;
  1142. _this.buyNumMax = res.data.stores;
  1143. _this.banner = res.data.pics;
  1144. _this.goodsoptionImgSelect = res.data.pic;
  1145. _this.selectSizePrice = res.data.minPrice;
  1146. _this.ptype = _this.goodsDetail.ptype;
  1147. if (_this.goodsDetail.viewed) {
  1148. _this.viewed = _this.goodsDetail.viewed;
  1149. }
  1150. if (_this.goodsDetail.quantity > 0) {
  1151. _this.quantity = _this.goodsDetail.quantity;
  1152. }
  1153. uni.setStorageSync('gotopage', '/pages/goodsDetail/goodsDetail?id=' + _this.goodsDetail
  1154. .id +
  1155. '&msid=' +
  1156. _this.msid + '&tuanid=' + _this.tuanid + '&uuid=' + _this.uuid);
  1157. }
  1158. });
  1159. },
  1160. /**
  1161. * 选择商品规格
  1162. * @param {Object} e
  1163. */
  1164. labelItemTap: function(e) {
  1165. var _this = this;
  1166. _this.goodsDetail.attribute[e.currentTarget.dataset.idx].checked = e.currentTarget.dataset.item;
  1167. // 获取所有的选中规格尺寸数据
  1168. var curSelectNum = 0;
  1169. var sku = [];
  1170. if (_this.goodsDetail.attribute) {
  1171. for (var i = 0; i < _this.goodsDetail.attribute.length; i++) {
  1172. if (_this.goodsDetail.attribute[i].checked) {
  1173. sku.push(_this.goodsDetail.attribute[i].checked);
  1174. curSelectNum++;
  1175. }
  1176. }
  1177. }
  1178. var canSubmit = false;
  1179. if (_this.goodsDetail.attribute.length == curSelectNum) {
  1180. canSubmit = true;
  1181. }
  1182. _this.sku = sku;
  1183. // 计算当前价格
  1184. if (canSubmit) {
  1185. _this.$request.post('goods.price', {
  1186. goodsId: _this.goodsDetail.id,
  1187. msid: _this.msid,
  1188. tuanid: _this.tuanid,
  1189. sku: sku,
  1190. samkey: (new Date()).valueOf()
  1191. }).then(res => {
  1192. //console.log(res.data.price)
  1193. _this.selectSizePrice = res.data.price;
  1194. _this.totalPayPoints = res.data.score;
  1195. _this.buyNumMax = res.data.stores;
  1196. _this.buyNumber = (res.data.stores > 0) ? 1 : 0;
  1197. _this.goodsoptionImgSelect = res.data.image;
  1198. })
  1199. }
  1200. _this.canSubmit = canSubmit;
  1201. },
  1202. goShopCar: function() {
  1203. this.sam.navigateTo("/pages/cart/cart");
  1204. },
  1205. toAddShopCar: function() {
  1206. this.showPopup();
  1207. },
  1208. tuanfound: function() {
  1209. this.jointuanid = '';
  1210. this.showPopup();
  1211. },
  1212. jointuan: function(id) {
  1213. this.jointuanid = id;
  1214. this.showPopup();
  1215. },
  1216. selecttechnical: function() {
  1217. this.sam.navigateTo('/pages/technical/list?goodsid=' + this.goodsDetail.id + '&cid=' + this.goodsDetail
  1218. .category.id)
  1219. },
  1220. tobuy: function() {
  1221. this.selectSizePrice = this.goodsDetail.minPrice;
  1222. this.showPopup();
  1223. },
  1224. /**
  1225. * 加入购物车
  1226. */
  1227. addShopCar: function() {
  1228. var _this = this;
  1229. if (this.goodsDetail.attribute && this.goodsDetail.attribute.length > 0 && !this.canSubmit) {
  1230. if (!this.canSubmit) {
  1231. wx.showModal({
  1232. title: '提示',
  1233. content: '请选择或填写商品规格!',
  1234. showCancel: false
  1235. })
  1236. }
  1237. this.showPopup();
  1238. return;
  1239. }
  1240. if (this.buyNumber < 1) {
  1241. wx.showModal({
  1242. title: '提示',
  1243. content: '购买数量不能为0!',
  1244. showCancel: false
  1245. })
  1246. return;
  1247. }
  1248. if (this.buyNumber > parseInt(this.buyNumMax)) {
  1249. uni.showModal({
  1250. title: '提示',
  1251. content: '购买数量已超出可购买数量!',
  1252. showCancel: false
  1253. })
  1254. return;
  1255. }
  1256. if (this.buyNumber < this.goodsDetail.minimum) {
  1257. uni.showModal({
  1258. title: '提示',
  1259. content: '购买数量不能于小起售量!',
  1260. showCancel: false
  1261. })
  1262. return;
  1263. }
  1264. //组建购物车
  1265. _this.$request.post('cart.add', {
  1266. goodsId: this.goodsDetail.id,
  1267. sku: this.sku,
  1268. quantity: this.buyNumber
  1269. }).then(res => {
  1270. wx.showToast({
  1271. title: '加入购物车成功',
  1272. icon: 'success',
  1273. duration: 2000
  1274. })
  1275. _this.hidePopup();
  1276. _this.shopNum = res.data.total;
  1277. })
  1278. },
  1279. /**
  1280. * 立即购买
  1281. */
  1282. buyNow: function() {
  1283. let _this = this
  1284. if (this.goodsDetail.attribute && this.goodsDetail.attribute.length > 0 && !this.canSubmit) {
  1285. if (!this.canSubmit) {
  1286. uni.showModal({
  1287. title: '提示',
  1288. content: '请选择或填写商品规格!',
  1289. showCancel: false
  1290. })
  1291. }
  1292. this.showPopup();
  1293. return;
  1294. }
  1295. if (this.buyNumber < 1) {
  1296. uni.showModal({
  1297. title: '提示',
  1298. content: '购买数量不能为0!',
  1299. showCancel: false
  1300. })
  1301. return;
  1302. }
  1303. let x = parseInt(_this.buyNumMax);
  1304. if (this.buyNumber > x) {
  1305. uni.showModal({
  1306. title: '提示',
  1307. content: '购买数量不能超过超出可购买数量!',
  1308. showCancel: false
  1309. })
  1310. return;
  1311. }
  1312. if (this.buyNumber < this.goodsDetail.minimum) {
  1313. uni.showModal({
  1314. title: '提示',
  1315. content: '购买数量不能于小起售量!',
  1316. showCancel: false
  1317. })
  1318. return;
  1319. }
  1320. _this.$request.post('goods.buynowinfo', {
  1321. goodsId: _this.goodsDetail.id,
  1322. msid: _this.msid,
  1323. tuanid: _this.tuanid,
  1324. uuid: _this.uuid,
  1325. jointuanid: _this.jointuanid,
  1326. buyNumber: _this.buyNumber,
  1327. sku: _this.sku,
  1328. is_skumore: _this.goodsDetail.is_skumore,
  1329. skumore: JSON.stringify(_this.goodsDetail.skumore)
  1330. }).then(res => {
  1331. if (res.errno != 0) {
  1332. uni.showModal({
  1333. title: '错误',
  1334. content: res.msg,
  1335. showCancel: false
  1336. })
  1337. return;
  1338. }
  1339. _this.sam.navigateTo("/pagesA/submitOrder/submitOrder?orderType=buyNow&buynowinfoid=" + res
  1340. .data.buynowinfoid);
  1341. _this.hidePopup();
  1342. return;
  1343. })
  1344. },
  1345. navigateTo(url) {
  1346. this.sam.navigateTo(url);
  1347. },
  1348. urlTo(url) {
  1349. window.open(url, '_self');
  1350. },
  1351. getgoodscomment: function(goodsId) {
  1352. var _this = this;
  1353. _this.$request.get('comment.getgoodscomment', {
  1354. goodsId: goodsId
  1355. }).then(res => {
  1356. if (res.errno == 0) {
  1357. _this.goodscomment = res.data
  1358. }
  1359. })
  1360. },
  1361. setswiperHeight(e) {
  1362. //console.log(e);
  1363. this.swiperHeight = e.detail.height * (this.windowWidth / e.detail.width);
  1364. },
  1365. showModal() {
  1366. this.tuanmodal = true
  1367. }
  1368. },
  1369. onPageScroll(e) {
  1370. let scroll = e.scrollTop <= 0 ? 0 : e.scrollTop;
  1371. let opcity = scroll / this.scrollH;
  1372. if (this.opcity >= 1 && opcity >= 1) {
  1373. return;
  1374. }
  1375. this.opcity = opcity;
  1376. this.iconOpcity = 0.5 * (1 - opcity < 0 ? 0 : 1 - opcity);
  1377. },
  1378. /**
  1379. * 页面相关事件处理函数--监听用户下拉动作
  1380. */
  1381. onPullDownRefresh: function() {
  1382. setTimeout(() => {
  1383. uni.stopPullDownRefresh()
  1384. }, 200);
  1385. },
  1386. //发送给朋友
  1387. onShareAppMessage: function() {
  1388. let _this = this;
  1389. //console.log(_this.uid);
  1390. return {
  1391. title: _this.goodsDetail.name || "",
  1392. path: _this.current,
  1393. };
  1394. },
  1395. onShareTimeline(res) { //分享到朋友圈
  1396. return {}
  1397. }
  1398. };
  1399. </script>
  1400. <style>
  1401. /* 商品详情图样式 */
  1402. .pro_detailImg {
  1403. width: 100%;
  1404. }
  1405. .pro_detailImg img {
  1406. width: 100%;
  1407. height: auto;
  1408. display: block;
  1409. }
  1410. .pro_detailImg {
  1411. display: flex;
  1412. flex-direction: column;
  1413. transform: translateZ(0);
  1414. }
  1415. .pro_detailImg image {
  1416. width: 100%;
  1417. display: block;
  1418. }
  1419. page {
  1420. background-color: #f7f7f7;
  1421. }
  1422. .container {
  1423. padding-bottom: 110rpx;
  1424. }
  1425. .tui-header-box {
  1426. width: 100%;
  1427. position: fixed;
  1428. left: 0;
  1429. top: 0;
  1430. z-index: 995;
  1431. }
  1432. .tui-header {
  1433. width: 100%;
  1434. font-size: 18px;
  1435. line-height: 18px;
  1436. font-weight: 500;
  1437. height: 32px;
  1438. display: flex;
  1439. align-items: center;
  1440. justify-content: center;
  1441. }
  1442. .tui-header-icon {
  1443. position: fixed;
  1444. top: 0;
  1445. left: 10px;
  1446. display: flex;
  1447. align-items: flex-start;
  1448. justify-content: space-between;
  1449. height: 32px;
  1450. transform: translateZ(0);
  1451. z-index: 9999;
  1452. }
  1453. .tui-header-icon .tui-badge {
  1454. background: #e41f19 !important;
  1455. position: absolute;
  1456. right: -4px;
  1457. }
  1458. .tui-icon-ml {
  1459. margin-left: 20rpx;
  1460. }
  1461. .tui-icon-box {
  1462. position: relative;
  1463. height: 20px !important;
  1464. width: 20px !important;
  1465. padding: 6px !important;
  1466. border-radius: 50%;
  1467. display: flex;
  1468. align-items: center;
  1469. justify-content: center;
  1470. }
  1471. .tui-banner-swiper {
  1472. position: relative;
  1473. }
  1474. .tui-video__box {
  1475. width: 130rpx;
  1476. height: 130rpx;
  1477. position: absolute;
  1478. left: 50%;
  1479. bottom: 40%;
  1480. transform: translateX(-50%);
  1481. z-index: 2;
  1482. }
  1483. .tui-video__box image {
  1484. width: 130rpx;
  1485. height: 130rpx;
  1486. -webkit-filter: opacity(60%);
  1487. /* Chrome, Safari, Opera */
  1488. filter: opacity(60%);
  1489. }
  1490. .tui-video__box view {
  1491. width: 100%;
  1492. height: 100%;
  1493. font-size: 24rpx;
  1494. position: absolute;
  1495. left: 0;
  1496. top: 0;
  1497. display: flex;
  1498. align-items: center;
  1499. padding-left: 66rpx;
  1500. box-sizing: border-box;
  1501. }
  1502. .tui-banner-tag {
  1503. position: absolute;
  1504. color: #fff;
  1505. bottom: 30rpx;
  1506. right: 0;
  1507. }
  1508. .tui-slide-image {
  1509. width: 100%;
  1510. display: block;
  1511. }
  1512. /*顶部菜单*/
  1513. .tui-menu-box {
  1514. box-sizing: border-box;
  1515. }
  1516. .tui-menu-header {
  1517. font-size: 34rpx;
  1518. color: #fff;
  1519. height: 32px;
  1520. display: flex;
  1521. align-items: center;
  1522. }
  1523. .tui-menu-itembox {
  1524. color: #fff;
  1525. padding: 40rpx 10rpx 0 10rpx;
  1526. box-sizing: border-box;
  1527. display: flex;
  1528. flex-wrap: wrap;
  1529. font-size: 26rpx;
  1530. }
  1531. .tui-menu-item {
  1532. width: 22%;
  1533. height: 160rpx;
  1534. border-radius: 24rpx;
  1535. display: flex;
  1536. align-items: center;
  1537. flex-direction: column;
  1538. justify-content: center;
  1539. background: rgba(0, 0, 0, 0.4);
  1540. margin-right: 4%;
  1541. margin-bottom: 4%;
  1542. }
  1543. .tui-menu-item:nth-of-type(4n) {
  1544. margin-right: 0;
  1545. }
  1546. .tui-badge-box {
  1547. position: relative;
  1548. }
  1549. .tui-badge-box .tui-badge-class {
  1550. position: absolute;
  1551. top: -8px;
  1552. right: -8px;
  1553. }
  1554. .tui-msg-badge {
  1555. top: -10px;
  1556. }
  1557. .tui-icon-up_box {
  1558. width: 100%;
  1559. display: flex;
  1560. align-items: center;
  1561. justify-content: center;
  1562. }
  1563. .tui-menu-text {
  1564. padding-top: 12rpx;
  1565. }
  1566. .tui-opcity .tui-menu-text,
  1567. .tui-opcity .tui-badge-box {
  1568. opacity: 0.5;
  1569. transition: opacity 0.2s ease-in-out;
  1570. }
  1571. /*顶部菜单*/
  1572. /*内容 部分*/
  1573. .tui-padding {
  1574. padding: 0 30rpx;
  1575. box-sizing: border-box;
  1576. }
  1577. .tui-ml-auto {
  1578. margin-left: auto;
  1579. }
  1580. /* #ifdef H5 */
  1581. .tui-ptop {
  1582. padding-top: 44px;
  1583. }
  1584. /* #endif */
  1585. .tui-size {
  1586. font-size: 24rpx;
  1587. line-height: 24rpx;
  1588. }
  1589. .tui-gray {
  1590. color: #999;
  1591. }
  1592. .tui-icon-red {
  1593. color: #ff201f;
  1594. }
  1595. .tui-border-radius {
  1596. border-bottom-left-radius: 24rpx;
  1597. border-bottom-right-radius: 24rpx;
  1598. overflow: hidden;
  1599. }
  1600. .tui-radius-all {
  1601. border-radius: 24rpx;
  1602. overflow: hidden;
  1603. }
  1604. .overflowhidden {
  1605. overflow: hidden;
  1606. }
  1607. .tui-mtop {
  1608. margin-top: 26rpx;
  1609. }
  1610. .tui-pro-detail {
  1611. box-sizing: border-box;
  1612. color: #333;
  1613. }
  1614. .toplndsie {
  1615. padding-top: 30rpx;
  1616. }
  1617. .tui-product-title {
  1618. background: #fff;
  1619. padding-bottom: 30rpx;
  1620. }
  1621. .tui-price__box {
  1622. width: 100%;
  1623. height: 130rpx;
  1624. display: flex;
  1625. }
  1626. .tui-pro-pricebox {
  1627. display: flex;
  1628. align-items: center;
  1629. justify-content: space-between;
  1630. color: #ff201f;
  1631. font-size: 36rpx;
  1632. font-weight: bold;
  1633. line-height: 44rpx;
  1634. }
  1635. .tuan-pro-pricebox {
  1636. width: 540rpx;
  1637. height: 130rpx;
  1638. display: flex;
  1639. flex-direction: column;
  1640. justify-content: center;
  1641. color: #FFFFFF;
  1642. font-size: 26rpx;
  1643. line-height: 26rpx;
  1644. background: linear-gradient(-30deg, #FF1F2E, #F52C6C);
  1645. flex-shrink: 0;
  1646. }
  1647. .ms-pro-pricebox {
  1648. width: 540rpx;
  1649. height: 130rpx;
  1650. display: flex;
  1651. flex-direction: column;
  1652. justify-content: center;
  1653. color: #FFFFFF;
  1654. font-size: 26rpx;
  1655. line-height: 26rpx;
  1656. background: linear-gradient(-30deg, #FF1F2E, #F52C6C);
  1657. flex-shrink: 0;
  1658. }
  1659. .tui-pro-price {
  1660. display: flex;
  1661. align-items: center;
  1662. }
  1663. .tuan-price {
  1664. font-size: 44rpx;
  1665. line-height: 42rpx;
  1666. }
  1667. .tui-price {
  1668. font-size: 58rpx;
  1669. }
  1670. .redenvelope {
  1671. color: #EB0909;
  1672. font-size: 40rpx;
  1673. }
  1674. .dingjing {
  1675. font-size: 38rpx;
  1676. }
  1677. .tui-sold {
  1678. width: 100%;
  1679. height: 44rpx;
  1680. padding-left: 4rpx;
  1681. display: flex;
  1682. align-items: center;
  1683. padding-top: 10rpx;
  1684. }
  1685. .tui-price-tag {
  1686. height: 38rpx;
  1687. border: 1rpx solid #fff;
  1688. border-radius: 6rpx;
  1689. white-space: nowrap;
  1690. display: flex;
  1691. align-items: center;
  1692. justify-content: center;
  1693. font-size: 24rpx;
  1694. line-height: 24rpx;
  1695. transform: scale(0.8);
  1696. transform-origin: 0 center;
  1697. border-radius: 6rpx;
  1698. padding: 0 8rpx;
  1699. }
  1700. .tui-tuan-tag {
  1701. height: 48rpx;
  1702. border: 1rpx solid #FF1F2E;
  1703. border-radius: 6rpx;
  1704. white-space: nowrap;
  1705. display: flex;
  1706. align-items: center;
  1707. justify-content: center;
  1708. font-size: 28rpx;
  1709. line-height: 28rpx;
  1710. transform: scale(0.8);
  1711. transform-origin: 0 center;
  1712. border-radius: 6rpx;
  1713. padding: 0 20rpx;
  1714. }
  1715. .tui-right__box {
  1716. flex: 1;
  1717. background-color: #FFE5E5;
  1718. font-size: 28rpx;
  1719. display: flex;
  1720. flex-direction: column;
  1721. align-items: center;
  1722. justify-content: center;
  1723. color: #EB0909;
  1724. }
  1725. .tui-right__box text {
  1726. text-align: center;
  1727. padding-bottom: 12rpx;
  1728. }
  1729. .tui-seckill__img {
  1730. width: 146rpx;
  1731. height: 26rpx;
  1732. margin-bottom: 16rpx;
  1733. }
  1734. .tui-original-price {
  1735. font-size: 26rpx;
  1736. font-weight: normal;
  1737. line-height: 26rpx;
  1738. padding: 0 20rpx;
  1739. box-sizing: border-box;
  1740. text-decoration: line-through;
  1741. }
  1742. .points_goods {
  1743. font-size: 26rpx;
  1744. color: #ff201f;
  1745. line-height: 26rpx;
  1746. padding: 10rpx 30rpx;
  1747. box-sizing: border-box;
  1748. font-weight: normal;
  1749. }
  1750. .tui-line-through {
  1751. text-decoration: line-through;
  1752. }
  1753. .tui-collection {
  1754. color: #333;
  1755. display: flex;
  1756. align-items: center;
  1757. flex-direction: column;
  1758. justify-content: center;
  1759. height: 44rpx;
  1760. }
  1761. .tui-scale-collection {
  1762. transform: scale(0.7);
  1763. transform-origin: center 90%;
  1764. line-height: 24rpx;
  1765. font-weight: normal;
  1766. margin-top: 4rpx;
  1767. }
  1768. .tui-pro-titbox {
  1769. font-size: 32rpx;
  1770. font-weight: 500;
  1771. position: relative;
  1772. padding: 0 150rpx 0 30rpx;
  1773. box-sizing: border-box;
  1774. }
  1775. .tui-pro-title {
  1776. padding-top: 20rpx;
  1777. }
  1778. .tui-share-btn {
  1779. flex: 1;
  1780. display: block;
  1781. background: transparent;
  1782. margin: 0;
  1783. padding: 0;
  1784. border-radius: 0;
  1785. border: 0;
  1786. line-height: 1;
  1787. }
  1788. .tui-share-btn::after {
  1789. border: 0;
  1790. }
  1791. .tui-share-box {
  1792. display: flex;
  1793. align-items: center;
  1794. }
  1795. .tui-share-position {
  1796. position: absolute;
  1797. right: 0;
  1798. top: 12rpx;
  1799. }
  1800. .tui-share-text {
  1801. color: #333;
  1802. padding-left: 8rpx;
  1803. }
  1804. .tui-sub-title {
  1805. padding: 20rpx 0;
  1806. line-height: 32rpx;
  1807. }
  1808. .tui-sale-info {
  1809. display: flex;
  1810. align-items: center;
  1811. justify-content: space-between;
  1812. padding-top: 30rpx;
  1813. }
  1814. .tui-discount-box {
  1815. background: #fff;
  1816. }
  1817. .tui-list-cell {
  1818. width: 100%;
  1819. position: relative;
  1820. display: flex;
  1821. align-items: center;
  1822. font-size: 26rpx;
  1823. line-height: 26rpx;
  1824. padding: 36rpx 30rpx;
  1825. box-sizing: border-box;
  1826. }
  1827. .tui-right {
  1828. position: absolute;
  1829. right: 30rpx;
  1830. top: 30rpx;
  1831. }
  1832. .tui-top40 {
  1833. top: 40rpx !important;
  1834. }
  1835. .tui-bold {
  1836. font-weight: bold;
  1837. }
  1838. .tui-list-cell::after {
  1839. content: '';
  1840. position: absolute;
  1841. border-bottom: 1rpx solid #eaeef1;
  1842. -webkit-transform: scaleY(0.5);
  1843. transform: scaleY(0.5);
  1844. bottom: 0;
  1845. right: 0;
  1846. left: 126rpx;
  1847. }
  1848. .tui-last::after {
  1849. border-bottom: 0 !important;
  1850. }
  1851. .tui-flex-center {
  1852. display: flex;
  1853. align-items: center;
  1854. }
  1855. .tui-cell-title {
  1856. width: 66rpx;
  1857. padding-right: 30rpx;
  1858. flex-shrink: 0;
  1859. }
  1860. .tui-promotion-box {
  1861. display: flex;
  1862. align-items: center;
  1863. padding: 10rpx 0;
  1864. width: 80%;
  1865. }
  1866. .tui-promotion-box text {
  1867. width: 70%;
  1868. white-space: nowrap;
  1869. overflow: hidden;
  1870. text-overflow: ellipsis;
  1871. }
  1872. .tui-basic-info {
  1873. background: #fff;
  1874. }
  1875. .tui-addr-box {
  1876. width: 76%;
  1877. }
  1878. .tui-addr-item {
  1879. padding: 10rpx;
  1880. line-height: 34rpx;
  1881. }
  1882. .tui-guarantee {
  1883. background: #fdfdfd;
  1884. display: flex;
  1885. flex-wrap: wrap;
  1886. padding: 20rpx 30rpx 30rpx 30rpx;
  1887. font-size: 24rpx;
  1888. }
  1889. .tui-guarantee-item {
  1890. color: #999;
  1891. padding-right: 20rpx;
  1892. padding-top: 10rpx;
  1893. }
  1894. .tui-pl {
  1895. padding-left: 4rpx;
  1896. }
  1897. .tui-cmt-box {
  1898. background: #fff;
  1899. }
  1900. .tui-between {
  1901. justify-content: space-between !important;
  1902. }
  1903. .tui-cmt-all {
  1904. color: #ff201f;
  1905. padding-right: 8rpx;
  1906. }
  1907. .tui-cmt-content {
  1908. font-size: 26rpx;
  1909. }
  1910. .tui-cmt-user {
  1911. display: flex;
  1912. align-items: center;
  1913. }
  1914. .tui-acatar {
  1915. width: 60rpx;
  1916. height: 60rpx;
  1917. border-radius: 30rpx;
  1918. display: block;
  1919. margin-right: 16rpx;
  1920. }
  1921. .tui-cmt {
  1922. padding: 14rpx 0;
  1923. }
  1924. .tui-attr {
  1925. font-size: 24rpx;
  1926. color: #999;
  1927. padding: 6rpx 0;
  1928. }
  1929. .tui-cmt-btn {
  1930. padding: 50rpx 0 30rpx 0;
  1931. box-sizing: border-box;
  1932. display: flex;
  1933. align-items: center;
  1934. justify-content: center;
  1935. }
  1936. .tui-nomore-box {
  1937. padding-top: 10rpx;
  1938. }
  1939. .tui-product-img {
  1940. display: flex;
  1941. flex-direction: column;
  1942. transform: translateZ(0);
  1943. }
  1944. .tui-product-img image {
  1945. width: 100%;
  1946. display: block;
  1947. }
  1948. /*底部操作栏*/
  1949. .tui-col-6 {
  1950. width: 60%;
  1951. }
  1952. .tui-col-4 {
  1953. width: 40%;
  1954. }
  1955. .tui-col-7 {
  1956. width: 72%;
  1957. }
  1958. .tui-col-3 {
  1959. width: 28%;
  1960. }
  1961. .tui-operation {
  1962. width: 100%;
  1963. height: 100rpx;
  1964. background: rgba(255, 255, 255, 0.98);
  1965. position: fixed;
  1966. display: flex;
  1967. align-items: center;
  1968. justify-content: space-between;
  1969. z-index: 10;
  1970. bottom: 0;
  1971. left: 0;
  1972. padding-bottom: env(safe-area-inset-bottom);
  1973. }
  1974. .tui-safearea-bottom {
  1975. width: 100%;
  1976. height: env(safe-area-inset-bottom);
  1977. }
  1978. .tui-operation::before {
  1979. content: '';
  1980. position: absolute;
  1981. top: 0;
  1982. right: 0;
  1983. left: 0;
  1984. border-top: 1rpx solid #eaeef1;
  1985. -webkit-transform: scaleY(0.5);
  1986. transform: scaleY(0.5);
  1987. }
  1988. .tui-operation-left {
  1989. display: flex;
  1990. align-items: center;
  1991. }
  1992. .tui-operation-item {
  1993. flex: 1;
  1994. display: flex;
  1995. align-items: center;
  1996. justify-content: center;
  1997. flex-direction: column;
  1998. position: relative;
  1999. }
  2000. .item-button {
  2001. padding-top: 8rpx;
  2002. padding-bottom: 1rpx;
  2003. padding-left: 0px;
  2004. padding-right: 0px;
  2005. background-color: #fff;
  2006. margin-left: auto;
  2007. margin-right: auto;
  2008. box-sizing: border-box;
  2009. font-size: 18px;
  2010. text-align: center;
  2011. text-decoration: none;
  2012. line-height: 22px;
  2013. border-radius: 0px;
  2014. -webkit-tap-highlight-color: transparent;
  2015. overflow: hidden;
  2016. cursor: pointer;
  2017. color: #333;
  2018. }
  2019. .tui-operation-text {
  2020. font-size: 24rpx;
  2021. color: #333;
  2022. }
  2023. .tui-opacity {
  2024. opacity: 0.5;
  2025. }
  2026. .tui-scale-small {
  2027. transform: scale(0.9);
  2028. transform-origin: center center;
  2029. }
  2030. .tui-operation-right {
  2031. height: 100rpx;
  2032. padding: 0 6rpx;
  2033. box-sizing: border-box;
  2034. }
  2035. .tui-right-flex {
  2036. display: flex;
  2037. align-items: center;
  2038. justify-content: center;
  2039. }
  2040. .tuan-operation-right {
  2041. height: 100rpx;
  2042. padding-top: 0;
  2043. }
  2044. .tuan-btn__box {
  2045. height: 98rpx;
  2046. font-size: 26rpx;
  2047. display: flex;
  2048. align-items: center;
  2049. justify-content: space-between;
  2050. flex-direction: column;
  2051. line-height: 28rpx;
  2052. padding: 18rpx 0 14rpx 0;
  2053. box-sizing: border-box;
  2054. }
  2055. .tui-size-26 {
  2056. font-size: 26rpx;
  2057. line-height: 26rpx;
  2058. padding-top: 4rpx;
  2059. }
  2060. .tui-size-32 {
  2061. font-size: 32rpx;
  2062. line-height: 34rpx;
  2063. font-weight: 500;
  2064. }
  2065. .tui-flex-end {
  2066. display: flex;
  2067. align-items: flex-end;
  2068. }
  2069. .tuan-flex {
  2070. flex: 1;
  2071. }
  2072. .tui-flex-1 {
  2073. flex: 1;
  2074. padding: 6rpx;
  2075. }
  2076. /*底部操作栏*/
  2077. /*底部选择弹层*/
  2078. .tui-popup-class {
  2079. border-top-left-radius: 24rpx;
  2080. border-top-right-radius: 24rpx;
  2081. padding-bottom: env(safe-area-inset-bottom);
  2082. }
  2083. .tui-popup-box {
  2084. position: relative;
  2085. padding: 30rpx 0 100rpx 0;
  2086. }
  2087. .tui-popup-btn {
  2088. width: 100%;
  2089. position: absolute;
  2090. left: 0;
  2091. bottom: 0;
  2092. }
  2093. /* .tui-popup-btn .tui-btn-class {
  2094. width: 90% !important;
  2095. display: block !important;
  2096. font-size: 28rpx !important;
  2097. } */
  2098. /* .tui-icon-close {
  2099. position: absolute;
  2100. top: 30rpx;
  2101. right: 30rpx;
  2102. } */
  2103. .tui-product-box {
  2104. display: flex;
  2105. font-size: 24rpx;
  2106. padding-bottom: 30rpx;
  2107. }
  2108. .tui-popup-img {
  2109. width: 130px;
  2110. border-radius: 8rpx;
  2111. display: block;
  2112. }
  2113. .tui-popup-price {
  2114. padding-left: 20rpx;
  2115. padding-bottom: 8rpx;
  2116. }
  2117. .popup-box-goodsname {
  2118. font-size: 32rpx;
  2119. }
  2120. .tui-amount {
  2121. color: #ff201f;
  2122. font-size: 36rpx;
  2123. }
  2124. .tui-number {
  2125. font-size: 24rpx;
  2126. line-height: 24rpx;
  2127. padding-top: 12rpx;
  2128. color: #999;
  2129. }
  2130. .tui-popup-scroll {
  2131. height: 600rpx;
  2132. font-size: 26rpx;
  2133. }
  2134. .tui-scrollview-box {
  2135. padding: 0 30rpx 60rpx 30rpx;
  2136. box-sizing: border-box;
  2137. }
  2138. .tui-attr-title {
  2139. padding: 10rpx 0;
  2140. color: #333;
  2141. }
  2142. .tui-scrollview-box .label {
  2143. padding: 30rpx 0 20rpx 0rpx;
  2144. color: #333;
  2145. }
  2146. .tui-attr-box {
  2147. font-size: 0;
  2148. padding: 20rpx 0;
  2149. }
  2150. .tui-attr-item {
  2151. max-width: 100%;
  2152. min-width: 200rpx;
  2153. height: 64rpx;
  2154. display: -webkit-inline-flex;
  2155. display: inline-flex;
  2156. align-items: center;
  2157. justify-content: center;
  2158. background: #f7f7f7;
  2159. padding: 0 26rpx;
  2160. box-sizing: border-box;
  2161. border-radius: 32rpx;
  2162. margin-right: 20rpx;
  2163. margin-bottom: 20rpx;
  2164. font-size: 26rpx;
  2165. }
  2166. .text-item {
  2167. display: flex;
  2168. }
  2169. .text-item-input {
  2170. height: 50rpx;
  2171. margin-top: 18rpx;
  2172. margin-left: 16rpx;
  2173. padding-top: 6rpx;
  2174. padding-bottom: 6rpx;
  2175. padding-left: 18rpx;
  2176. font-size: 28rpx;
  2177. border: 1px solid #eee;
  2178. border-radius: 25rpx;
  2179. }
  2180. .tui-attr-active {
  2181. background: #fcedea !important;
  2182. color: #e41f19;
  2183. font-weight: bold;
  2184. position: relative;
  2185. }
  2186. .tui-attr-active::after {
  2187. content: '';
  2188. position: absolute;
  2189. border: 1rpx solid #e41f19;
  2190. width: 100%;
  2191. height: 100%;
  2192. border-radius: 40rpx;
  2193. left: 0;
  2194. top: 0;
  2195. }
  2196. .tui-number-box {
  2197. display: flex;
  2198. align-items: center;
  2199. justify-content: space-between;
  2200. padding: 20rpx 0 30rpx 0;
  2201. box-sizing: border-box;
  2202. }
  2203. /*底部选择弹层*/
  2204. /*分享弹层*/
  2205. .tui-share__box {
  2206. width: 100%;
  2207. height: 380rpx;
  2208. background-color: #fff;
  2209. }
  2210. .tui-share__header {
  2211. padding: 40rpx 0;
  2212. text-align: center;
  2213. font-size: 32rpx;
  2214. font-weight: 500;
  2215. color: #333333;
  2216. text-align: center;
  2217. position: relative;
  2218. }
  2219. .tui-close__box {
  2220. position: absolute;
  2221. right: 25rpx;
  2222. top: 25rpx;
  2223. }
  2224. .tui-share__list {
  2225. width: 100%;
  2226. padding-top: 20rpx;
  2227. display: flex;
  2228. align-items: center;
  2229. justify-content: center;
  2230. }
  2231. .tui-share__item {
  2232. flex: 1;
  2233. display: flex;
  2234. align-items: center;
  2235. flex-direction: column;
  2236. }
  2237. .tui-share__item image {
  2238. width: 120rpx;
  2239. height: 120rpx;
  2240. }
  2241. .tui-share__text {
  2242. font-size: 28rpx;
  2243. font-weight: 400;
  2244. color: #333333;
  2245. padding-top: 18rpx;
  2246. }
  2247. /*海报modal弹层*/
  2248. .tui-poster__canvas {
  2249. background-color: #fff;
  2250. position: absolute;
  2251. left: -9999px;
  2252. }
  2253. .tui-poster__box {
  2254. width: 100%;
  2255. position: relative;
  2256. display: flex;
  2257. justify-content: center;
  2258. align-items: center;
  2259. flex-direction: column;
  2260. }
  2261. .tui-close__img {
  2262. width: 48rpx;
  2263. height: 48rpx;
  2264. position: absolute;
  2265. right: 0;
  2266. top: -60rpx;
  2267. }
  2268. .tui-poster__img {
  2269. width: 560rpx;
  2270. height: 890rpx;
  2271. border-radius: 20rpx;
  2272. margin-bottom: 40rpx;
  2273. }
  2274. .tui-share__tips {
  2275. font-size: 24rpx;
  2276. transform: scale(0.8);
  2277. transform-origin: center center;
  2278. color: #ffffff;
  2279. padding-top: 12rpx;
  2280. }
  2281. .tui-combination-text {
  2282. width: 100%;
  2283. display: flex;
  2284. align-items: center;
  2285. }
  2286. .tui-combination-title {
  2287. font-size: 30rpx;
  2288. line-height: 30rpx;
  2289. font-weight: bold;
  2290. padding-left: 16rpx;
  2291. border-left: 2px solid #eb0909;
  2292. box-sizing: border-box;
  2293. }
  2294. .tui-sub__title {
  2295. font-size: 26rpx;
  2296. padding-right: 30rpx;
  2297. }
  2298. .tui-step__box {
  2299. width: 100%;
  2300. height: 210rpx;
  2301. background: #fff;
  2302. padding: 0 60rpx;
  2303. display: flex;
  2304. align-items: center;
  2305. justify-content: space-between;
  2306. box-sizing: border-box;
  2307. }
  2308. .tui-step-item {
  2309. display: flex;
  2310. align-items: center;
  2311. justify-content: center;
  2312. flex-direction: column;
  2313. font-size: 26rpx;
  2314. color: #666666;
  2315. }
  2316. .tui-step-item image {
  2317. width: 64rpx;
  2318. height: 55rpx;
  2319. flex-shrink: 0;
  2320. }
  2321. .tui-step-item image:first-child {
  2322. width: 60rpx !important;
  2323. }
  2324. .tui-step-arrow {
  2325. height: 90rpx;
  2326. }
  2327. .tui-step-arrow image {
  2328. width: 11rpx;
  2329. height: 20rpx;
  2330. flex-shrink: 0;
  2331. }
  2332. .tui-step-text {
  2333. line-height: 26rpx;
  2334. padding-top: 24rpx;
  2335. }
  2336. .tui-discount-box {
  2337. background: #fff;
  2338. }
  2339. .border-flex {
  2340. display: flex;
  2341. width: 100%;
  2342. background-color: #ffffff;
  2343. align-items: center;
  2344. padding: 30rpx 0;
  2345. }
  2346. .border-left image {
  2347. width: 160rpx;
  2348. height: 160rpx;
  2349. border-radius: 20%;
  2350. text-align: center;
  2351. }
  2352. .border-left,
  2353. .border-right,
  2354. .total,
  2355. .suit {
  2356. margin-left: 20rpx;
  2357. }
  2358. .suit {
  2359. font-weight: bold;
  2360. font-size: 26rpx;
  2361. margin-left: 20rpx;
  2362. }
  2363. .border-right {
  2364. line-height: 50rpx;
  2365. font-size: 26rpx;
  2366. width: 100%;
  2367. margin-right: 20rpx;
  2368. }
  2369. .tui-content-box {
  2370. width: 100%;
  2371. padding: 0 30rpx;
  2372. box-sizing: border-box;
  2373. }
  2374. .tui-box {
  2375. width: 100%;
  2376. background: #fff;
  2377. box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.1);
  2378. border-radius: 30rpx;
  2379. overflow: hidden;
  2380. }
  2381. .tui-tool-box {
  2382. margin-top: 20rpx;
  2383. }
  2384. .tui-tool-icon-box {
  2385. position: relative;
  2386. }
  2387. .tui-tool-text {
  2388. font-size: 24rpx;
  2389. font-weight: 400;
  2390. color: #666;
  2391. padding-top: 4rpx;
  2392. line-height: 24rpx;
  2393. }
  2394. .tui-flex-wrap {
  2395. flex-wrap: wrap;
  2396. height: auto;
  2397. }
  2398. .tui-tool-list {
  2399. width: 100%;
  2400. padding-top: 15rpx;
  2401. padding-bottom: 20rpx;
  2402. padding-left: 20rpx;
  2403. padding-right: 20rpx;
  2404. box-sizing: border-box;
  2405. display: flex;
  2406. align-items: center;
  2407. }
  2408. .tui-tool-item {
  2409. width: 25%;
  2410. display: flex;
  2411. align-items: center;
  2412. justify-content: center;
  2413. flex-direction: column;
  2414. padding-top: 15rpx;
  2415. padding-bottom: 15rpx;
  2416. background-color: #fff;
  2417. }
  2418. .tui-tool-icon {
  2419. width: 64rpx;
  2420. height: 64rpx;
  2421. display: block;
  2422. }
  2423. .tui-group-text {
  2424. width: 100%;
  2425. display: flex;
  2426. align-items: center;
  2427. }
  2428. .tui-group-title {
  2429. font-size: 30rpx;
  2430. line-height: 30rpx;
  2431. font-weight: bold;
  2432. padding-left: 16rpx;
  2433. border-left: 2px solid #eb0909;
  2434. box-sizing: border-box;
  2435. }
  2436. /*正在拼团*/
  2437. .tui-group-swiper {
  2438. width: 100%;
  2439. background-color: #fff;
  2440. }
  2441. .tui-group-user {
  2442. display: flex;
  2443. align-items: center;
  2444. justify-content: space-between;
  2445. padding: 35rpx 40rpx;
  2446. box-sizing: border-box;
  2447. }
  2448. .tui-user-left {
  2449. font-size: 30rpx;
  2450. display: flex;
  2451. align-items: center;
  2452. }
  2453. .tui-user-left image {
  2454. height: 80rpx;
  2455. width: 80rpx;
  2456. flex-shrink: 0;
  2457. border-radius: 50%;
  2458. margin-right: 16rpx;
  2459. }
  2460. .tui-user-right {
  2461. display: flex;
  2462. align-items: center;
  2463. justify-content: space-between;
  2464. }
  2465. .tui-user-anme {
  2466. max-width: 160rpx;
  2467. overflow: hidden;
  2468. white-space: nowrap;
  2469. text-overflow: ellipsis;
  2470. }
  2471. .tui-user-anme-auto {
  2472. max-width: 260rpx;
  2473. overflow: hidden;
  2474. white-space: nowrap;
  2475. text-overflow: ellipsis;
  2476. }
  2477. .tui-group-num {
  2478. font-size: 26rpx;
  2479. line-height: 26rpx;
  2480. padding-bottom: 12rpx;
  2481. }
  2482. .tui-user-countdown {
  2483. padding-right: 18rpx;
  2484. display: flex;
  2485. flex-direction: column;
  2486. align-items: center;
  2487. }
  2488. .tui-sub-title {
  2489. font-size: 28rpx;
  2490. padding-right: 30rpx;
  2491. }
  2492. .tui-group-countdown {
  2493. display: flex;
  2494. align-items: center;
  2495. font-size: 24rpx;
  2496. color: #666666;
  2497. white-space: nowrap;
  2498. }
  2499. .tui-countdown-right {
  2500. padding-right: 6rpx;
  2501. }
  2502. .tui-countdown-left {
  2503. padding-left: 6rpx;
  2504. }
  2505. /*拼团玩法介绍 modal*/
  2506. .tui-modal__title {
  2507. text-align: center;
  2508. font-weight: bold;
  2509. padding-bottom: 8rpx;
  2510. }
  2511. .tui-modal__p {
  2512. font-size: 26rpx;
  2513. color: #888;
  2514. padding-top: 20rpx;
  2515. }
  2516. .tui-modal__btn {
  2517. width: 100%;
  2518. padding: 60rpx 0 20rpx;
  2519. display: flex;
  2520. justify-content: center;
  2521. }
  2522. .itembutton68 {
  2523. height: 68rpx;
  2524. line-height: 68rpx;
  2525. font-size: 26rpx;
  2526. border-radius: 50rpx;
  2527. color: #ffffff;
  2528. align-items: center;
  2529. }
  2530. .itembutton72 {
  2531. height: 72rpx;
  2532. line-height: 72rpx;
  2533. font-size: 26rpx;
  2534. border-radius: 50rpx;
  2535. color: #ffffff;
  2536. align-items: center;
  2537. }
  2538. .itembutton100 {
  2539. height: 100rpx;
  2540. font-size: 26rpx;
  2541. border-radius: 0rpx;
  2542. color: #ffffff;
  2543. align-items: center;
  2544. }
  2545. </style>