goodsDetail.vue 69 KB

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