product.vue 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961
  1. <template>
  2. <view
  3. class="product "
  4. :style="{
  5. paddingBottom: userIdentity == 1 && userIdentity == 3 ? '0rpx' : '188rpx',
  6. paddingTop: CustomBar + 'px'
  7. }"
  8. >
  9. <custom-p
  10. v-if="isHeaderPoduct"
  11. :systeminfo="systeminfo"
  12. :navbar-data="nvabarData"
  13. :headerBtnPosi="headerBtnPosi"
  14. :headerColor="headerColor"
  15. :type="isShareType"
  16. :page="backPage"
  17. >
  18. </custom-p>
  19. <view
  20. class="product-topnav"
  21. id="topBar"
  22. v-show="isNavbarFiexd"
  23. :class="navbarFiexd"
  24. :style="{ top: CustomBar - 2 + 'px' }"
  25. >
  26. <view class="search-input">
  27. <view class="gosearch-btn" :class="navbarFiexd" @click="this.$api.navigateTo(clickPath)">
  28. <view class="search-icon"> <text class="iconfont icon-iconfonticonfontsousuo1"></text> </view>
  29. <view class="search-text">搜索商品/项目仪器</view>
  30. </view>
  31. </view>
  32. <view class="navbar">
  33. <view
  34. class="nav-item tui-skeleton-fillet"
  35. :class="{ current: tabCurrentIndex === 0 }"
  36. @click="tabClick(0)"
  37. >
  38. <text>详情</text> <text class="line"></text>
  39. </view>
  40. <view
  41. class="nav-item tui-skeleton-fillet"
  42. :class="{ current: tabCurrentIndex === 1 }"
  43. @click="tabClick(1)"
  44. >
  45. <text>服务项目</text> <text class="line"></text>
  46. </view>
  47. <view
  48. class="nav-item tui-skeleton-fillet"
  49. :class="{ current: tabCurrentIndex === 2 }"
  50. @click="tabClick(2)"
  51. v-if="product.qualificationImg"
  52. >
  53. <text>商品资质</text> <text class="line"></text>
  54. </view>
  55. <view
  56. class="nav-item tui-skeleton-fillet"
  57. :class="{ current: tabCurrentIndex === 3 }"
  58. @click="tabClick(3)"
  59. >
  60. <text>推荐</text> <text class="line"></text>
  61. </view>
  62. <view
  63. class="nav-item tui-skeleton-fillet"
  64. :class="{ current: tabCurrentIndex === 4 }"
  65. @click="tabClick(4)"
  66. v-if="product.archiveId !== 0"
  67. >
  68. <text>相关资料</text> <text class="line"></text>
  69. </view>
  70. </view>
  71. </view>
  72. <tui-skeleton
  73. v-if="skeletonShow"
  74. backgroundColor="#fafafa"
  75. borderRadius="10rpx"
  76. :isLoading="true"
  77. :loadingType="5"
  78. ></tui-skeleton>
  79. <template v-else>
  80. <view class="cart-content empty" v-if="isInvalid">
  81. <view class="empty-container">
  82. <image class="empty-container-image" :src="productNoneImage" mode="aspectFit"></image>
  83. <text class="error-text">商品已失效,去商城逛逛别的吧~</text>
  84. <view class="login-btn" @click="goIndex">去商城</view>
  85. </view>
  86. </view>
  87. <view class="container-product tui-skeleton" v-else>
  88. <view class="container-product-main">
  89. <view class="product-top">
  90. <view class="banner-section">
  91. <!-- <view class="cm-product-tags"> -->
  92. <!-- <view class="cm-product-cover" v-if="product.appletsActType === 1"
  93. >云上美博会</view
  94. > -->
  95. <view class="cm-product-type" v-if="product.productType == 2">医疗器械</view>
  96. <view class="cm-product-cover" v-if="product.appletsActType === 1"></view>
  97. <!-- </view> -->
  98. <uni-swiper-dot :info="productImage" :current="current" field="content" :mode="mode">
  99. <swiper
  100. class="banner tui-banner tui-skeleton-rect"
  101. @change="swiperChange"
  102. :duration="800"
  103. :autoplay="false"
  104. :circular="true"
  105. >
  106. <swiper-item v-for="(item, index) in productImage" :key="index" class="banner-item">
  107. <image :src="item" @click="previewImg(index)" class="product-img" />
  108. </swiper-item>
  109. </swiper>
  110. <view class="swiper__dots-box">
  111. <tui-tag
  112. padding="12rpx 24rpx"
  113. type="translucent"
  114. shape="circleLeft"
  115. size="32rpx"
  116. :scaleMultiple="0.82"
  117. originRight
  118. >
  119. {{ current + 1 }}/{{ productImage.length }}
  120. </tui-tag>
  121. </view>
  122. </uni-swiper-dot>
  123. </view>
  124. <view class="product-wrap clearfix">
  125. <view class="wrap-top" :class="goodsData.isNoneDisabled ? 'none' : ''">
  126. <view class="wrap-top-price">
  127. <cm-price
  128. v-if="isRequest"
  129. :product="product"
  130. :userIdentity="userIdentity"
  131. :shopID="shopID"
  132. :promotions="product.promotions"
  133. :ladderPriceList="ladderPriceList"
  134. />
  135. </view>
  136. <view class="p-title tui-skeleton-fillet">
  137. <view class="mclap-tag" v-if="product.beautyActFlag == '1'">美博会</view>
  138. <view class="p-title-name" :class="product.beautyActFlag == '1' ? 'indent' : ''">
  139. {{ product.name == undefined ? '' : product.name }}
  140. </view>
  141. <button open-type="share" class="p-title-share tui-share-position" @tap="onShare">
  142. <view class=""><text class="iconfont icon-fenxiang1"></text></view>
  143. <view class="">分享</view>
  144. </button>
  145. </view>
  146. <view class="wrap-label" v-if="product.tagsList.length > 0">
  147. <view
  148. class="label-a tui-skeleton-fillet"
  149. v-for="(label, index) in product.tagsList"
  150. :key="index"
  151. >{{ label }}</view
  152. >
  153. </view>
  154. <view class="product-seve" v-if="hasLogin">
  155. <text class="label">采美承诺:</text>
  156. <text class="iconfont icon-dui tui-skeleton-rect"
  157. ><text class="text">无忧退货</text></text
  158. >
  159. <text class="iconfont icon-dui tui-skeleton-rect"
  160. ><text class="text">快速退款</text></text
  161. >
  162. <text class="iconfont icon-dui tui-skeleton-rect"
  163. ><text class="text">正品保证</text></text
  164. >
  165. </view>
  166. <view
  167. class="productRemarks"
  168. v-if="product.productRemarks != '' && product.productRemarks != null"
  169. >
  170. 备注:{{ product.productRemarks }}
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. <view class="product-item-none" v-if="goodsData.isNoneDisabled">
  176. <image class="none-image" :src="productNoneImage" mode=""></image>
  177. <view class="none-text">此商品已{{ goodsData.disabledText }},请浏览以下推荐商品~</view>
  178. <view class="none-text">咨询类似商品,请联系客服!</view>
  179. </view>
  180. <!-- 选择规格 -->
  181. <view class="product-parameter" v-if="isShowButton || userIdentity === 1" @click="showPopup(3)">
  182. <text class="title">选择:</text> <text class="name">共{{ skusCount }}种规格可选</text>
  183. <text class="iconfont icon-xiayibu"></text>
  184. </view>
  185. <!-- 参数 -->
  186. <view class="product-parameter" @click="showPopup(0)" v-if="!goodsData.isNoneDisabled">
  187. <text class="title">参数:</text> <text class="name">品牌 分类...</text>
  188. <text class="iconfont icon-xiayibu"></text>
  189. </view>
  190. <!-- 特殊商品退货须知 -->
  191. <view class="return-instructions">
  192. <cm-return-instructions></cm-return-instructions>
  193. </view>
  194. <!-- 配套商品 -->
  195. <view
  196. class="product-supporting"
  197. v-if="!goodsData.isNoneDisabled && isShowSupportingList && supportingList.length > 0"
  198. @click.stop="handleSupporting"
  199. >
  200. <view class="product-supporting-title">配套商品({{ supportingNum }})</view>
  201. <view class="product-supporting-list">
  202. <view
  203. class="list"
  204. v-for="(supporting, index) in supportingList"
  205. :key="index"
  206. v-if="index < 4"
  207. >
  208. <image class="list-image" :src="supporting.image" mode=""></image>
  209. </view>
  210. <text class="iconfont icon-xiayibu"></text>
  211. </view>
  212. </view>
  213. <!-- 优惠券 -->
  214. <view
  215. class="product-parameter coupon"
  216. v-if="isShowButton && productCoupon.length > 0"
  217. @click="showPopup(2)"
  218. >
  219. <text class="title">优惠券:</text>
  220. <view class="coupon">
  221. <text class="tags" v-for="(coupon, index) in productCoupon.slice(0, 3)" :key="index">
  222. 满{{ coupon.touchPrice }}减{{ coupon.couponAmount }}
  223. </text>
  224. </view>
  225. <text class="iconfont icon-xiayibu"></text>
  226. </view>
  227. <!-- 仪器培训方案 -->
  228. <view
  229. class="product-parameter"
  230. @click="showPopup(1)"
  231. v-if="product.commodityType == 2 && product.trainingMethod"
  232. >
  233. <text class="title">培训方案:</text>
  234. <text class="name">{{ product.trainingMethod == 1 ? '线上培训' : '线下培训' }}</text>
  235. <text class="iconfont icon-xiayibu"></text>
  236. </view>
  237. <!-- 供应商 -->
  238. <view class="product-supplier" @click="goSupplier">
  239. <view class="logo">
  240. <img
  241. :src="
  242. shop.logo
  243. ? shop.logo
  244. : 'https://static.caimei365.com/app/img/icon/icon-shoplogo.png'
  245. "
  246. alt=""
  247. /></view>
  248. <view class="main">
  249. <view class="name">{{ shop.name }}</view>
  250. <view class="massgs">
  251. <view class="label">满意度:</view>
  252. <view class="p-stars">
  253. <uni-stars
  254. :stars="6"
  255. :iconClass="iconClass"
  256. :iconColor="iconColor"
  257. :fontSize="36"
  258. :widthInfo="176"
  259. ></uni-stars>
  260. </view>
  261. <view class="acount">
  262. <text>{{ shop.normalNum }}</text
  263. >件商品
  264. </view>
  265. </view>
  266. </view>
  267. <view class="right" v-if="!isShowCaimeiShop"><text class="iconfont icon-xiayibu"></text></view>
  268. </view>
  269. </view>
  270. <!-- 商品详情 -->
  271. <view v-show="tabCurrentIndex !== 3">
  272. <view class="product-details product-details0">
  273. <view class="title"> <view class="title-tab">商品详情</view> </view>
  274. <view class="content tui-banner product-rich-text tui-skeleton-rect">
  275. <template v-if="!goodsData.isNoneDisabled && product.productDetail.detailInfo">
  276. <parser :html="html" :img-mode="widthFix"></parser>
  277. </template>
  278. <view class="product-rich-text-none" v-else>暂无商品信息</view>
  279. </view>
  280. </view>
  281. <!-- 服务项目 -->
  282. <view class="product-details service product-details1">
  283. <view class="title"> <view class="title-tab">服务项目</view> </view>
  284. <view
  285. class="content service"
  286. v-if="product.productDetail.orderInfo || product.productDetail.serviceInfo"
  287. >
  288. <cm-service :product="product.productDetail" v-if="isRequest"></cm-service>
  289. </view>
  290. <view class="content-none" v-else> <text>暂无服务项目</text> </view>
  291. </view>
  292. <!-- 商品资质 -->
  293. <view class="product-details qualifications product-details2" v-if="product.qualificationImg">
  294. <view class="title"><view class="title-tab">商品资质</view></view>
  295. <view class="product-details-image">
  296. <view class="product-details-table clearfix" v-if="product.qualificationNo">
  297. <view class="ladder-tr">
  298. <view class="ladder-item-td th">证书编号</view>
  299. <view class="ladder-item-td th">产品名称</view>
  300. <view class="ladder-item-td th">详情</view>
  301. </view>
  302. <view class="ladder-tr">
  303. <view class="ladder-item-td">
  304. <view class="te-text">{{ product.qualificationNo }}</view>
  305. </view>
  306. <view class="ladder-item-td">
  307. <view class="te-text">{{ product.productName }}</view>
  308. </view>
  309. <view class="ladder-item-td">
  310. <view class="te-text last">{{ product.qualificationLink }}</view>
  311. <view class="te-copy">
  312. <text class="clipboard" @click.stop="clipboard(product.qualificationLink)"
  313. >复制</text
  314. >
  315. </view>
  316. </view>
  317. </view>
  318. </view>
  319. <image
  320. class="qualificationImg-image"
  321. :src="product.qualificationImg"
  322. mode="aspectFill"
  323. @click="previewImg1(product.qualificationImg)"
  324. ></image>
  325. </view>
  326. </view>
  327. <!-- 相关推荐 -->
  328. <view class="product-details recommend product-details3">
  329. <view class="title"> <view class="title-tab">相关推荐</view> </view>
  330. <view class="content hot">
  331. <cm-recommend
  332. :query-productid="product.productId"
  333. :query-type="product.recommendType"
  334. v-if="isRequest"
  335. ></cm-recommend>
  336. </view>
  337. </view>
  338. </view>
  339. <!-- 相关资料 -->
  340. <view class="product-details recommend product-details4" v-show="tabCurrentIndex === 4">
  341. <cm-product-doc
  342. @previewImage="changePreViewImageStatus"
  343. :archiveId="product.archiveId"
  344. :userId="userId"
  345. ></cm-product-doc>
  346. </view>
  347. <!-- 优惠券 -->
  348. <tui-bottom-popup :radius="true" :show="popupShow2" @close="hidePopup(2)">
  349. <view class="tui-popup-box clearfix">
  350. <view class="title">优惠券</view>
  351. <view class="tui-popup-close" @click="hidePopup(2)">
  352. <text class="iconfont icon-iconfontguanbi"></text>
  353. </view>
  354. <view class="tui-popup-tabs">
  355. <coupon-tabs
  356. :tabs="navbar"
  357. :currentTab="currentTab > 2 ? 0 : currentTab"
  358. @change="couponChange"
  359. :itemWidth="100 / navbar.length + '%'"
  360. selectedColor="#e15616"
  361. sliderBgColor="#e15616"
  362. >
  363. </coupon-tabs>
  364. </view>
  365. <div class="tui-popup-main coupon">
  366. <scroll-view class="tui-popup-scroll" scroll-y="true">
  367. <view class="coupon-empty" v-if="isCouponEmpty">
  368. <image
  369. class="empty-container-image"
  370. :src="StaticUrl + '/icon/icon-coupon-empty@2x.png'"
  371. ></image>
  372. <text class="error-text">暂无可领的优惠券~</text>
  373. </view>
  374. <template v-else>
  375. <view
  376. v-for="(coupon, index) in productCouponList"
  377. :key="index"
  378. :id="coupon.couponId"
  379. class="coupon-list"
  380. >
  381. <view class="list-cell-le">
  382. <view class="coupon-maxMoney"
  383. ><text class="small">¥</text>{{ coupon.couponAmount }}</view
  384. >
  385. <view class="coupon-minMoney">满{{ coupon.touchPrice }}可用</view>
  386. </view>
  387. <view class="list-cell-ri">
  388. <view class="list-cell-top">
  389. <view class="list-cell-type">
  390. <view class="list-cell-tags">
  391. <template v-if="coupon.moneyCouponFlag == 1">
  392. <text class="tags" v-if="coupon.moneyCouponType == 1"
  393. >意向{{ coupon.couponType | TypeFormat }}</text
  394. >
  395. <text class="tags" v-else
  396. >定向{{ coupon.couponType | TypeFormat }}</text
  397. >
  398. </template>
  399. <template v-else>
  400. <text class="tags">{{
  401. coupon.couponType | TypeFormat
  402. }}</text>
  403. </template>
  404. </view>
  405. <view class="list-cell-texts">
  406. <text v-if="coupon.couponType == 0">
  407. {{
  408. coupon.productType && coupon.productType == 1
  409. ? '全商城商品通用'
  410. : '仅可购买指定商品'
  411. }}
  412. </text>
  413. <text v-if="coupon.couponType == 1">
  414. {{
  415. coupon.categoryType == 1
  416. ? '仅限购买产品类商品'
  417. : '仅限购买仪器类商品'
  418. }}
  419. </text>
  420. <text v-if="coupon.couponType == 3"
  421. >仅限购买店铺【{{ coupon.shopName }}】的商品</text
  422. >
  423. <text v-if="coupon.couponType == 4 || coupon.couponType == 2"
  424. >全商城商品通用</text
  425. >
  426. </view>
  427. </view>
  428. <view class="list-cell-btn">
  429. <view class="icon-used">
  430. <template v-if="coupon.couponBtnType == 0">
  431. <template v-if="coupon.couponPayWay == 2">
  432. <view class="icon-used-text"
  433. >{{ coupon.moneyCouponPrice }}采美豆</view
  434. >
  435. <view
  436. class="icon-used-btn receive"
  437. @click="toDeductCoupon(coupon)"
  438. >抵扣</view
  439. >
  440. </template>
  441. <template v-else-if="coupon.couponPayWay == 1">
  442. <view class="icon-used-text">购买</view>
  443. <view
  444. class="icon-used-btn receive"
  445. @click="toPayCoupon(coupon)"
  446. >¥{{ coupon.moneyCouponPrice }}</view
  447. >
  448. </template>
  449. <template v-else>
  450. <view
  451. class="icon-used-btn receive"
  452. @click="receiveCoupon(coupon)"
  453. >领取</view
  454. >
  455. </template>
  456. </template>
  457. <view
  458. class="icon-used-btn make"
  459. v-if="coupon.couponBtnType == 1"
  460. >已领取</view
  461. >
  462. </view>
  463. </view>
  464. </view>
  465. <view class="list-cell-time"
  466. >{{ coupon.startDate }} - {{ coupon.endDate }}</view
  467. >
  468. </view>
  469. </view>
  470. </template>
  471. </scroll-view>
  472. </div>
  473. </view>
  474. </tui-bottom-popup>
  475. <!-- 培训方案 -->
  476. <tui-bottom-popup :radius="true" :show="popupShow1" @close="hidePopup(1)">
  477. <view class="tui-popup-box clearfix">
  478. <view class="title">培训方案</view>
  479. <div class="tui-popup-main">
  480. <scroll-view class="tui-popup-scroll train" scroll-y="true">
  481. <view class="content-tr">
  482. <view class="content-td">培训方式:</view>
  483. <view class="content-th">{{
  484. product.trainingMethod == 1 ? '线上培训' : '线下培训'
  485. }}</view>
  486. </view>
  487. <view class="content-tr">
  488. <view class="content-td">培训费用:</view>
  489. <view class="content-th">{{
  490. product.trainingType == 1 ? '¥' + product.trainingFee : '售价已包含'
  491. }}</view>
  492. </view>
  493. </scroll-view>
  494. </div>
  495. <view
  496. class="tui-right-flex tui-popup-btn"
  497. :style="{ paddingBottom: isIphoneX ? '68rpx' : '.34rpx' }"
  498. >
  499. <view class="tui-flex-1"> <view class="tui-button" @click="hidePopup(1)">收起</view> </view>
  500. </view>
  501. </view>
  502. </tui-bottom-popup>
  503. <!-- 底部按钮 -->
  504. <view class="menu" v-if="isShowButton">
  505. <view class="bottom-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
  506. <view class="bottom-le">
  507. <view class="item-bt" @click="this.$api.switchTabTo('/pages/tabBar/home/index')">
  508. <image src="../../static/icon-home-active@3x.png"></image> <text>首页</text>
  509. </view>
  510. <view class="item-bt" @click="handleCollection">
  511. <image
  512. :src="
  513. collectionType
  514. ? StaticUrl + 'icon/icon-collection@2x.png'
  515. : StaticUrl + 'icon/icon-collection-none@2x.png'
  516. "
  517. ></image>
  518. <text>{{ collectionType ? '已收藏' : '收藏' }}</text>
  519. </view>
  520. <view class="item-bt" @click="buyProductCart()">
  521. <image src="https://static.caimei365.com/app/img/icon/icon-cart-active@3x.png"></image>
  522. <text>购物车</text>
  523. <text
  524. v-if="hasLogin && bottomCartNumber > 0"
  525. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  526. :class="[bottomCartNumber < 10 ? 'goleft' : '']"
  527. >
  528. {{ bottomCartNumber >= 100 ? '99+' : bottomCartNumber }}
  529. </text>
  530. <view class="animation-num" :class="isAnimation ? 'animation' : 'restion'">+1</view>
  531. </view>
  532. </view>
  533. <view class="bottom-ri">
  534. <button
  535. :disabled="goodsData.disabled"
  536. class="btn btn-cart"
  537. :class="[goodsData.disabled ? 'disabled' : '']"
  538. @tap.stop="btnGetConfirm('add')"
  539. >
  540. 加入购物车
  541. </button>
  542. <button
  543. :disabled="goodsData.disabled"
  544. class="btn btn-bay"
  545. :class="[goodsData.disabled ? 'disabled' : '']"
  546. @tap.stop="btnGetConfirm('buy')"
  547. >
  548. 立即购买
  549. </button>
  550. </view>
  551. </view>
  552. </view>
  553. <!-- 侧边 -->
  554. <scroll-top :isScrollTop="isScrollTop" :bottom="200" v-show="tabCurrentIndex !== 3"></scroll-top>
  555. </view>
  556. </template>
  557. <!-- 商品参数 -->
  558. <cm-prams-popup v-if="popupShow0" :popupShow="popupShow0" :product="product"></cm-prams-popup>
  559. <!-- 选择规格弹窗 -->
  560. <cm-unit-popup
  561. v-if="popupShow3"
  562. :popupShow="popupShow3"
  563. :skuProduct="skuProduct"
  564. :type="unitPopupType"
  565. :btnType="btnType"
  566. :goodsData="goodsData"
  567. @buyConfirm="handleBuyConfirm"
  568. @skuClick="handleSkuClick"
  569. ></cm-unit-popup>
  570. <!-- 弹窗提示 -->
  571. <tui-modal
  572. :show="modal"
  573. @click="handleClick"
  574. @cancel="hideMobel"
  575. :content="contentModalText"
  576. :button="modalButton"
  577. color="#333"
  578. :size="32"
  579. shape="circle"
  580. :maskClosable="false"
  581. >
  582. </tui-modal>
  583. <!-- 商品详情可见度弹窗提醒 -->
  584. <cm-product-modal
  585. v-if="showModal"
  586. :showModal="showModal"
  587. :commodityDetailsFlag="product.commodityDetailsFlag"
  588. :isShareType="isShareType"
  589. :userIdentity="userIdentity"
  590. :firstClubType="firstClubType"
  591. />
  592. <!-- ross弹窗 -->
  593. <cmRossPopup v-if="showRossHtml" :popupShow="showRossHtml"></cmRossPopup>
  594. </view>
  595. </template>
  596. <script>
  597. import { mapState, mapMutations } from 'vuex'
  598. import customP from './components/cm-header.vue' //自定义导航
  599. import parser from '@/components/jyf-Parser/index' //富文本处理
  600. import cmPrice from './components/cm-price.vue' //价格显示
  601. import cmAttributes from './components/cm-attributes.vue' //规格信息
  602. import cmRecommend from './components/recommend' //相关推荐
  603. import cmParameter from './components/cm-parameter' //相关参数
  604. import cmService from './components/cm-service' //服务项目
  605. import cmProductDoc from './components/cm-product-doc.vue'
  606. import cmProductModal from './components/cm-product-modal.vue'
  607. import cmPramsPopup from './components/cm-prams-popup.vue'
  608. import cmUnitPopup from './components/cm-unit-popup.vue'
  609. import couponTabs from '@/components/cm-module/coupon/tui-tabs.vue'
  610. import cmRossPopup from '@/components/cm-module/cm-ross/cm-ross-popup'
  611. import cmReturnInstructions from './components/cm-return-instructions.vue'
  612. import authorize from '@/common/config/authorize.js'
  613. import wxLogin from '@/common/config/wxLogin.js'
  614. import { debounce } from '@/common/config/common.js'
  615. import payMixins from '@/mixins/payMixins.js'
  616. import proMixins from './mixins/proMixins.js'
  617. import cmSrsMixins from '@/mixins/cmSrsMixins.js'
  618. import thorui from '@/components/clipboard/clipboard.thorui.js'
  619. var isPreviewImg
  620. export default {
  621. mixins: [payMixins,proMixins,cmSrsMixins],
  622. components: {
  623. customP,
  624. parser,
  625. cmRecommend,
  626. cmPrice,
  627. cmAttributes,
  628. cmParameter,
  629. cmService,
  630. couponTabs,
  631. cmProductDoc,
  632. cmPramsPopup,
  633. cmUnitPopup,
  634. cmProductModal,
  635. cmRossPopup,
  636. cmReturnInstructions
  637. },
  638. data() {
  639. return {
  640. StaticUrl: this.$Static, //静态图片路径
  641. clickPath: '/pages/search/search',
  642. html: '',
  643. productNoneImage: 'https://static.caimei365.com/app/img/icon/icon-pnone.png',
  644. mode: 'round',
  645. iconClass: 'icon-aixin',
  646. iconColor: '#ff9100',
  647. specClass: '', // 规格弹窗css类,控制开关动画
  648. isBtnType: '',
  649. isRequest: false,
  650. isScrollTop: false,
  651. current: 0,
  652. isShareType: '',
  653. isHeaderPoduct: false,
  654. isNavbarFiexd: false,
  655. navbarFiexd: 'none',
  656. ladderPriceFlag: '',
  657. ladderPriceList: '',
  658. isInvalid: false,
  659. isEvaluate: false,
  660. isAnimation: false,
  661. skeletonShow: true,
  662. isStock: false,
  663. disabled: false,
  664. isNoneDisabled: false,
  665. tabCurrentIndex: 0,
  666. userId: 0,
  667. shopId: 0,
  668. shopID: 0,
  669. typeId: 0,
  670. vipFlag: 0,
  671. firstClubType: 0,
  672. productId: 0,
  673. skusCount: 0, // 规格种类
  674. userIdentity: 0, // 用户类型
  675. goodsData: {}, // 自定义数据
  676. shop: {}, //供应商信息
  677. product: {}, //采美
  678. productImage: [],
  679. retailPrice: 0,
  680. stock: 0,
  681. number: 0,
  682. minBuyNumber: 0,
  683. productsList: [],
  684. goodListData: [],
  685. productCoupon: [], // 优惠券
  686. productCouponList: [], // 优惠券弹窗列表
  687. headerBtnPosi: this.setHeaderBtnPosi(), // 获取设备顶部胶囊高度
  688. systeminfo: this.setSysteminfo(), // 获取设备信息
  689. windowHeight: '',
  690. headerColor: false,
  691. backPage: 1,
  692. nvabarData: {
  693. // 顶部自定义导航
  694. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  695. title: '' // 导航栏 中间的标题
  696. },
  697. linkPath: '',
  698. CustomBar: this.CustomBar, // 顶部导航栏高度
  699. popupShow0: false, // 参数弹窗
  700. popupShow1: false, // 培训方案
  701. popupShow2: false, // 优惠券
  702. popupShow3: false, // 购买弹窗
  703. tabSelectFlag: false,
  704. sectionPropsArr: [],
  705. scrollTopArray: [],
  706. winHeight: '',
  707. isShowButton: true,
  708. isCouponEmpty: false,
  709. currentTab: 0,
  710. couponParam: {
  711. // 获取弹窗优惠券领取参数
  712. userId: 0,
  713. productId: 0,
  714. status: 1,
  715. source: 2
  716. },
  717. bottomCartNumber: 0,
  718. navbar: [{ name: '未领取', num: 0 }, { name: '已领取', num: 0 }],
  719. isPreviewImage: false,
  720. opentype: '',
  721. collectionType: false,
  722. isShowSupportingList: false,
  723. supportingList: [],
  724. supportingNum: 0, // 组合商品总数
  725. contentModalText: '', //操作文字提示语句
  726. modal: false,
  727. modalButton: [
  728. {
  729. text: '取消',
  730. type: 'gray',
  731. plain: true //是否空心
  732. },
  733. {
  734. text: '去升级',
  735. customStyle: {
  736. color: '#fff',
  737. bgColor: 'linear-gradient(90deg, #F28F31 0%, #E15616 100%)'
  738. },
  739. plain: false
  740. }
  741. ],
  742. showModal: false,
  743. isShowCaimeiShop: false,
  744. unitPopupType: 0 // 选择类型 1 点击加入购物车 立即购买 2:点击规格选择
  745. }
  746. },
  747. computed: {
  748. ...mapState(['hasLogin', 'clubType', 'identity', 'isIphoneX'])
  749. },
  750. filters: {
  751. TypeFormat(value) {
  752. switch (value) {
  753. case 0:
  754. return '活动券'
  755. break
  756. case 1:
  757. return '品类券'
  758. break
  759. case 2:
  760. return '用户专享券'
  761. break
  762. case 3:
  763. return '店铺券'
  764. break
  765. case 4:
  766. return '新用户券'
  767. break
  768. }
  769. }
  770. },
  771. watch: {
  772. isNavbarFiexd(val) {
  773. if (!this.isRequest || !val) return
  774. let timer = null
  775. clearTimeout(timer)
  776. timer = setTimeout(() => {
  777. if (this.sectionPropsArr.length > 0) return
  778. this.getSectionProps()
  779. }, 200)
  780. }
  781. },
  782. onLoad(option) {
  783. this.productId = this.couponParam.productId = this.addParams.productId = this.handleProsId = option.id //获取商品ID
  784. if (option.typeId) {
  785. this.typeId = option.typeId
  786. }
  787. this.opentype = option.open
  788. this.isShareType = option.type
  789. this.linkPath = option.path
  790. this.isHeaderPoduct = true
  791. if (option.page == 2) {
  792. this.backPage = option.page
  793. }
  794. this.getWinHeight()
  795. },
  796. onReady() {
  797. if (this.opentype == 'caimei') {
  798. // 跳转到资料详情
  799. uni.showLoading({
  800. title: '加载中'
  801. })
  802. setTimeout(() => {
  803. this.isNavbarFiexd = true
  804. this.tabClick(3)
  805. uni.hideLoading()
  806. }, 2000)
  807. }
  808. console.log('是iPhoneX', this.isIphoneX)
  809. },
  810. methods: {
  811. async initGetStotage() {
  812. // 初始化
  813. const userInfo = await this.$api.getStorage()
  814. this.userId = this.couponParam.userId = this.addParams.userId = userInfo.userId ? userInfo.userId : 0
  815. this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
  816. this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
  817. this.shopID = userInfo.shopId ? userInfo.shopId : 0
  818. this.firstClubType = this.clubType
  819. if (this.userIdentity == 0 || this.userIdentity == 2 || this.userIdentity == 4) {
  820. this.isShowButton = true
  821. } else {
  822. this.isShowButton = false
  823. }
  824. if (isPreviewImg) {
  825. isPreviewImg = false
  826. return
  827. } else {
  828. this.initData()
  829. }
  830. },
  831. initData() {
  832. // 初始化商品详情查询
  833. this.ProductService.QueryProductDetils({
  834. userId: this.userId,
  835. productId: this.productId,
  836. identity: this.identity,
  837. typeId: this.typeId
  838. })
  839. .then(response => {
  840. let productLabel = ''
  841. this.productImage = []
  842. this.shop = response.data.shop
  843. this.shopId = response.data.shopId
  844. this.product = this.skuProduct = response.data
  845. this.skusCount = this.product.skus.length
  846. this.addParams.skuId = this.product.skuId
  847. if (this.product.tinyTypeName) {
  848. productLabel = this.product.tinyTypeName
  849. } else if (!this.product.tinyTypeName && this.product.smallTypeName) {
  850. productLabel = this.product.smallTypeName
  851. } else {
  852. productLabel = this.product.bigTypeName
  853. }
  854. //设置统计数据标签
  855. uni.setStorageSync(
  856. 'productLabel',
  857. `${productLabel}-${this.product.brandName ? this.product.brandName : ''}`
  858. )
  859. //校验是否为ross
  860. this.checkedIsRossSet()
  861. //判断是否可以跳转供应商主页
  862. if (this.product.shopType === 2) {
  863. this.isShowCaimeiShop = true
  864. }
  865. // 判断是否显示已收藏
  866. if (this.product.userLike && this.product.userLike == 1) {
  867. this.collectionType = true
  868. } else {
  869. this.collectionType = false
  870. }
  871. //已删除/已冻结
  872. if (this.product.validFlag === 0 || this.product.validFlag == 10) {
  873. this.isInvalid = true
  874. } else if (this.product.validFlag === 9) {
  875. if (this.userIdentity == 1) {
  876. this.isInvalid = false
  877. } else {
  878. this.isInvalid = true
  879. }
  880. }
  881. this.ladderPriceFlag = this.product.ladderPriceFlag
  882. this.html = this.adaptRichTextImg(this.product)
  883. this.stock = this.product.stock
  884. this.number = this.product.minBuyNumber
  885. this.minBuyNumber = this.product.minBuyNumber
  886. //处理商品图片列表
  887. this.product.imageList.forEach(item => {
  888. this.productImage.push(item.image)
  889. })
  890. //处理阶梯价格
  891. if (this.product.ladderPriceList != null) {
  892. this.ladderPriceList = this.product.ladderPriceList
  893. }
  894. //拆分金额并转千分位格式显示
  895. if (this.product.price != null) {
  896. this.retailPrice = this.product.price.toFixed(2)
  897. }
  898. //处理下架商品和售罄商品
  899. if (this.product.validFlag == 3 || this.product.saleOutFlag === 1) {
  900. this.isNoneDisabled = true
  901. this.disabled = true
  902. } else {
  903. this.disabled = false
  904. this.isNoneDisabled = false
  905. this.goodsData.disabledText = ''
  906. }
  907. if (this.product.priceFlag == 1) {
  908. this.disabled = true
  909. } else if (this.product.priceFlag == 2) {
  910. if (this.userIdentity == 4 && this.vipFlag != 1) {
  911. this.disabled = true
  912. } else {
  913. this.disabled = false
  914. }
  915. } else if (this.product.priceFlag == 3) {
  916. if (this.userIdentity == 4) {
  917. this.disabled = true
  918. } else if (this.userIdentity == 2 && this.firstClubType != 1) {
  919. this.disabled = true
  920. } else {
  921. this.disabled = false
  922. }
  923. } else {
  924. this.disabled = false
  925. }
  926. this.goodsData.disabled = this.disabled
  927. this.goodsData.isNoneDisabled = this.isNoneDisabled
  928. if (this.product.validFlag == 3) {
  929. this.goodsData.disabledText = '下架'
  930. }
  931. if (this.product.validFlag == 10) {
  932. this.goodsData.disabledText = '停售'
  933. }
  934. if (this.product.saleOutFlag === 1) {
  935. this.goodsData.disabledText = '售罄'
  936. }
  937. console.log(this.disabled)
  938. // setTimeout(() => {
  939. // this.getSectionProps()
  940. // }, 2000)
  941. this.handleShowProductType(this.product.commodityDetailsFlag)
  942. if ((this.hasLogin && this.userIdentity == 2) || this.userIdentity == 4) {
  943. this.ProductCartNumber()
  944. }
  945. this.queryProductDetilsCoupons()
  946. this.getCommodityCombinationList()
  947. setTimeout(() => {
  948. this.skeletonShow = false
  949. this.isRequest = true
  950. }, 1000)
  951. })
  952. .catch(error => {
  953. this.$util.msg(error.msg, 2000)
  954. })
  955. },
  956. handleShowProductType(flag = '') {
  957. // 根据商品详情可见度显示弹窗 flag 1.所有人可见 2.所有机构可见 3.仅会员机构可见 4.仅医美机构可见
  958. const flagMap = {
  959. '2': true,
  960. '3': true,
  961. '4': true
  962. }
  963. if (!this.hasLogin) {
  964. this.showModal = flagMap[flag]
  965. return
  966. }
  967. if (this.vipFlag === 1) {
  968. this.showModal = false
  969. return
  970. }
  971. if (flag === 3 && this.userIdentity === 4) {
  972. this.showModal = true
  973. return
  974. }
  975. if (flag === 4 && this.userIdentity === 4) {
  976. this.showModal = true
  977. return
  978. }
  979. if (flag === 4 && this.userIdentity === 2 && this.firstClubType !== 1) {
  980. this.showModal = true
  981. return
  982. }
  983. },
  984. hideMobel1() {
  985. this.modal1 = false
  986. this.$api.navigateBack(1)
  987. },
  988. adaptRichTextImg(product) {
  989. // 商品详情
  990. let defaulHtml = '<div style="text-align: center;color:#333333;">暂无内容</div>'
  991. let html = ''
  992. if (product.productDetailChose == 1) {
  993. // 同资质机构显示商品详情
  994. html = product.productDetail ? this.$api.adaptRichTextImg(product.productDetail.detailInfo) : defaulHtml
  995. } else {
  996. if (this.hasLogin && this.userIdentity != 4) {
  997. html = product.productDetail
  998. ? this.$api.adaptRichTextImg(product.productDetail.detailInfo)
  999. : defaulHtml
  1000. } else {
  1001. if (product.productDetail.commonDetailInfo) {
  1002. html = product.productDetail
  1003. ? this.$api.adaptRichTextImg(product.productDetail.commonDetailInfo)
  1004. : defaulHtml
  1005. } else {
  1006. html = defaulHtml
  1007. }
  1008. }
  1009. }
  1010. return html
  1011. },
  1012. getCommodityCombinationList() {
  1013. // 初始化商品详情配套商品
  1014. this.ProductService.getCommodityCombinationList({
  1015. userId: this.userId,
  1016. productId: this.productId,
  1017. source: 2,
  1018. pageNum: 1,
  1019. pageSize: 4
  1020. })
  1021. .then(response => {
  1022. const data = response.data
  1023. this.supportingList = data.results
  1024. this.supportingNum = data.totalRecord
  1025. if (this.supportingList.length > 0) {
  1026. if (!this.hasLogin || this.userIdentity == 2 || this.userIdentity == 4) {
  1027. this.isShowSupportingList = true
  1028. }
  1029. }
  1030. })
  1031. .catch(error => {
  1032. console.log('获取组合商品列表失败')
  1033. })
  1034. },
  1035. queryProductDetilsCoupons() {
  1036. // 初始化商品详情优惠券信息
  1037. this.ProductService.QueryProductDetilsCoupons(this.couponParam)
  1038. .then(response => {
  1039. this.productCoupon = response.data.list
  1040. })
  1041. .catch(error => {
  1042. console.log('获取优惠券列表失败')
  1043. })
  1044. },
  1045. queryPopupCoupons() {
  1046. // 获取弹窗优惠券列表
  1047. this.ProductService.QueryProductDetilsCoupons(this.couponParam)
  1048. .then(response => {
  1049. let data = response.data
  1050. this.navbar[0].num = data.notCouponNum
  1051. this.navbar[1].num = data.couponNum
  1052. if (data.couponList && data.couponList.length > 0) {
  1053. this.productCouponList = data.couponList
  1054. this.isCouponEmpty = false
  1055. } else {
  1056. this.isCouponEmpty = true
  1057. }
  1058. })
  1059. .catch(error => {
  1060. console.log('获取优惠券列表失败')
  1061. })
  1062. },
  1063. ProductCartNumber() {
  1064. // 获取用户购物车储量
  1065. this.ProductService.ProductCartNumber({ userId: this.userId })
  1066. .then(response => {
  1067. this.bottomCartNumber = response.data
  1068. })
  1069. .catch(error => {
  1070. console.log('获取购物车数量失败')
  1071. })
  1072. },
  1073. receiveCoupon(coupon) {
  1074. // 点击优惠券领取按钮,友盟埋点收集领取优惠券
  1075. if (process.env.NODE_ENV != 'development') {
  1076. this.$uma.trackEvent('Um_Event_productCouponReceive', {
  1077. Um_Key_PageName: '商品详情',
  1078. Um_Key_EvenName: '领取优惠券',
  1079. Um_Key_CouponId: `${coupon.couponId}`
  1080. })
  1081. }
  1082. this.ProductService.ReceiveCoupon({
  1083. userId: this.couponParam.userId,
  1084. couponId: coupon.couponId,
  1085. source: 1
  1086. })
  1087. .then(response => {
  1088. this.$util.msg('领取成功', 1500, true, 'success')
  1089. setTimeout(() => {
  1090. this.currentTab = 1
  1091. this.couponParam.status = 2
  1092. this.queryPopupCoupons()
  1093. }, 1500)
  1094. })
  1095. .catch(error => {
  1096. this.$util.msg(error.msg, 2000)
  1097. })
  1098. },
  1099. toDeductCoupon(coupon) {
  1100. // 点击采美豆抵扣优惠券
  1101. if (process.env.NODE_ENV != 'development') {
  1102. this.$uma.trackEvent('Um_Event_userCouponCollectionBuy', {
  1103. Um_Key_PageName: '领券中心',
  1104. Um_Key_EvenName: '抵扣优惠券',
  1105. Um_Key_CouponId: `${coupon.couponId}`
  1106. })
  1107. }
  1108. if (this.hasLogin) {
  1109. if (this.userIdentity === 1 || this.userIdentity === 3) {
  1110. this.$util.msg('您的身份暂不支持领取优惠券', 2000)
  1111. return
  1112. }
  1113. this.WeChatPayCouponBeans(coupon)
  1114. } else {
  1115. this.$api.navigateTo('/pages/login/login')
  1116. }
  1117. },
  1118. WeChatPayCouponBeans(coupon) {
  1119. // 采美豆抵扣优惠券
  1120. this.PayService.WeChatPayCouponBeans({
  1121. source: 1, //领取渠道 1 小程序 2 网站
  1122. userId: this.couponParam.userId,
  1123. couponId: coupon.couponId
  1124. })
  1125. .then(response => {
  1126. this.$util.msg('抵扣成功', 1500)
  1127. setTimeout(() => {
  1128. this.currentTab = 1
  1129. this.couponParam.status = 2
  1130. this.queryPopupCoupons()
  1131. }, 1500)
  1132. })
  1133. .catch(error => {
  1134. this.$util.msg(error.msg, 2000)
  1135. })
  1136. },
  1137. toPayCoupon(coupon) {
  1138. // 点击购买优惠券,友盟埋点收集购买优惠券
  1139. if (process.env.NODE_ENV != 'development') {
  1140. this.$uma.trackEvent('Um_Event_productCouponBuy', {
  1141. Um_Key_PageName: '商品详情',
  1142. Um_Key_EvenName: '购买优惠券',
  1143. Um_Key_CouponId: `${coupon.couponId}`
  1144. })
  1145. }
  1146. this.createCouponRecord(coupon)
  1147. },
  1148. createCouponRecord(coupon) {
  1149. // 生成购买优惠券记录Id
  1150. this.PayService.WeChatCouponRecord({
  1151. userId: this.userId,
  1152. couponId: coupon.couponId
  1153. })
  1154. .then(response => {
  1155. this.MiniWxPayFor(coupon, response.data.couponRecordId)
  1156. })
  1157. .catch(error => {
  1158. if (error.code == -1) {
  1159. //个人机构不能购买
  1160. this.contentModalText = '该优惠券仅限医美机构购买,请升级为医美机构后再次购买。'
  1161. this.modal = true
  1162. } else if (error.code == -2) {
  1163. //会员机构不是医美机构不能购买
  1164. this.$util.msg('该优惠券仅限医美机构购买', 2000)
  1165. }
  1166. })
  1167. },
  1168. async MiniWxPayFor(coupon, couponRecordId) {
  1169. const wechatcode = await authorize.getCode('weixin')
  1170. const params = {
  1171. userId: this.userId,
  1172. couponId: coupon.couponId,
  1173. couponRecordId: couponRecordId,
  1174. payType: 'XCX',
  1175. code: wechatcode,
  1176. source: 1 //支付来源 1 小程序 2 WWW
  1177. }
  1178. this.weChatMiniCouponWxPay(
  1179. params,
  1180. 'Um_Event_productCouponPay',
  1181. '商品详情',
  1182. '线上支付优惠券',
  1183. coupon.couponId,
  1184. this.userId
  1185. )
  1186. },
  1187. hideMobel() {
  1188. this.modal = false
  1189. },
  1190. handleClick(e) {
  1191. //个人机构跳转升级页面
  1192. if (e.index == 1) {
  1193. this.$api.navigateTo('/pages/login/apply')
  1194. }
  1195. this.modal = false
  1196. },
  1197. swiperChange(e) {
  1198. //顶部商品图片切换
  1199. const index = e.detail.current
  1200. this.current = index
  1201. },
  1202. previewImg1(url) {
  1203. let mentuzArray = []
  1204. mentuzArray.push(url)
  1205. uni.previewImage({
  1206. urls: mentuzArray,
  1207. current: 0
  1208. })
  1209. },
  1210. previewImg(index) {
  1211. //顶部商品图片预览
  1212. isPreviewImg = true
  1213. let previewUrls = this.productImage
  1214. uni.previewImage({
  1215. current: index, //图片索引
  1216. urls: previewUrls, //必须是http图片,本地图片无效
  1217. longPressActions: ''
  1218. })
  1219. },
  1220. //商品详情&&供应商信息tab切换
  1221. tabClick(index) {
  1222. // 重新标记
  1223. this.getSectionProps()
  1224. this.tabCurrentIndex = index
  1225. this.tabSelectFlag = true
  1226. let timer = null
  1227. clearTimeout(timer)
  1228. // 点击tab 300ms才执行跳转,避免出错(来回跳动)
  1229. timer = setTimeout(() => {
  1230. this.tabClickAction(index)
  1231. }, 500)
  1232. },
  1233. // 跳转执行
  1234. tabClickAction(index) {
  1235. const that = this
  1236. if (index === 3) {
  1237. return uni.pageScrollTo({
  1238. duration: 300, //过渡时间必须为0,uniapp bug,否则运行到手机会报错
  1239. scrollTop: this.sectionPropsArr[0].scrollTop
  1240. })
  1241. }
  1242. uni.pageScrollTo({
  1243. duration: 300, //过渡时间必须为0,uniapp bug,否则运行到手机会报错
  1244. scrollTop: this.sectionPropsArr[index].scrollTop,
  1245. success() {
  1246. setTimeout(() => {
  1247. that.tabSelectFlag = false
  1248. }, 300)
  1249. }
  1250. })
  1251. },
  1252. handleContact(e) {
  1253. //跳转小程序客服
  1254. console.log(e.detail.path)
  1255. console.log(e.detail.query)
  1256. },
  1257. buyProductCart() {
  1258. //底部购物车按钮点击
  1259. if (this.hasLogin) {
  1260. // 友盟埋点商品详情购物车入口点击事件
  1261. if (process.env.NODE_ENV != 'development') {
  1262. this.$uma.trackEvent('Um_Event_ProductShoppingCart', {
  1263. Um_Key_PageName: '去购物车',
  1264. Um_Key_SourcePage: '商品详情购物车入口'
  1265. })
  1266. }
  1267. this.$api.navigateTo('/pages/goods/cart')
  1268. } else {
  1269. this.$api.navigateTo('/pages/login/login?type=1')
  1270. }
  1271. },
  1272. btnGetConfirm(type) {
  1273. //加入购物车&&立即购买点击
  1274. if (this.hasLogin) {
  1275. this.btnType = type
  1276. this.popupShow3 = true
  1277. this.unitPopupType = 1
  1278. } else {
  1279. this.$api.navigateTo('/pages/login/login?type=1')
  1280. }
  1281. },
  1282. getAddProductCart() {
  1283. //增加购物车成功和toast弹窗提示成功
  1284. this.ProductService.shoppingAddCart({
  1285. productId: this.productId,
  1286. userId: this.userId,
  1287. productCount: this.number,
  1288. source: 2
  1289. })
  1290. .then(response => {
  1291. this.specClass = 'hide'
  1292. this.$util.msg('加入购物车成功', 1500, true, 'success')
  1293. this.isAnimation = true
  1294. setTimeout(() => {
  1295. this.specClass = 'none'
  1296. }, 200)
  1297. setTimeout(() => {
  1298. this.isAnimation = false
  1299. }, 2000)
  1300. this.bottomCartNumber = response.data
  1301. })
  1302. .catch(error => {
  1303. console.log('error', error.msg)
  1304. })
  1305. },
  1306. setHeaderBtnPosi() {
  1307. // 获得胶囊按钮位置信息
  1308. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  1309. return headerBtnPosi
  1310. },
  1311. setSysteminfo() {
  1312. let systeminfo
  1313. uni.getSystemInfo({
  1314. // 获取设备信息
  1315. success: res => {
  1316. systeminfo = res
  1317. }
  1318. })
  1319. return systeminfo
  1320. },
  1321. goIndex() {
  1322. //商城首页
  1323. uni.switchTab({
  1324. url: '/pages/tabBar/home/index'
  1325. })
  1326. },
  1327. goSupplier() {
  1328. //跳供应商资料页
  1329. if (!this.isShowCaimeiShop) {
  1330. this.$api.navigateTo('/pages/supplier/user/my-shop?shopId=' + this.shopId)
  1331. }
  1332. },
  1333. discard() {
  1334. //丢弃
  1335. },
  1336. onShare(res) {
  1337. //分享转发
  1338. if (res.from === 'button') {
  1339. // 来自页面内转发按钮
  1340. }
  1341. return {
  1342. title: `${this.product.name}`,
  1343. path: `pages/goods/product?type=share&id=${this.productId}`,
  1344. imageUrl: `${this.productImage[0]}`
  1345. }
  1346. },
  1347. handleCollection() {
  1348. // 收藏
  1349. if (this.hasLogin) {
  1350. this.ProductService.getProductUserLike({
  1351. userId: this.userId,
  1352. productId: this.product.productId
  1353. })
  1354. .then(response => {
  1355. this.collectionType = !this.collectionType
  1356. this.$util.msg(response.data, 1500, true, 'success')
  1357. })
  1358. .catch(error => {
  1359. this.$util.msg(error.msg, 2000)
  1360. })
  1361. } else {
  1362. this.$api.navigateTo('/pages/login/login')
  1363. }
  1364. },
  1365. showPopup(index) {
  1366. switch (index) {
  1367. case 0:
  1368. this.popupShow0 = true
  1369. break
  1370. case 1:
  1371. this.popupShow1 = true
  1372. break
  1373. case 2:
  1374. if (this.hasLogin) {
  1375. this.queryPopupCoupons()
  1376. this.popupShow2 = true
  1377. } else {
  1378. this.$api.navigateTo('/pages/login/login')
  1379. }
  1380. break
  1381. case 3:
  1382. this.popupShow3 = true
  1383. this.unitPopupType = 2
  1384. break
  1385. }
  1386. },
  1387. hidePopup(index) {
  1388. switch (index) {
  1389. case 0:
  1390. this.popupShow0 = false
  1391. break
  1392. case 1:
  1393. this.popupShow1 = false
  1394. break
  1395. case 2:
  1396. this.popupShow2 = false
  1397. break
  1398. case 3:
  1399. this.popupShow3 = false
  1400. break
  1401. }
  1402. },
  1403. couponChange(e) {
  1404. this.currentTab = e.index
  1405. switch (this.currentTab) {
  1406. case 0:
  1407. this.couponParam.status = 1
  1408. this.queryPopupCoupons()
  1409. break
  1410. case 1:
  1411. this.couponParam.status = 2
  1412. this.queryPopupCoupons()
  1413. break
  1414. }
  1415. },
  1416. handleSupporting() {
  1417. // 跳转组合商品页面
  1418. this.$api.navigateTo(`/pages/goods/goods-supporting?productId=${this.productId}`)
  1419. },
  1420. // 获取每个tab对应区域的区间
  1421. async getSectionProps() {
  1422. const sectionPropsArr = [],
  1423. scrollTopArray = [],
  1424. className = 'product-details'
  1425. // 获取相关节点元素信息
  1426. const productMain = await this.$util.boundingClientRect(this, '.container-product-main', false)
  1427. const productDetail = await this.$util.boundingClientRect(this, '.product-details', true)
  1428. const topBar = await this.$util.boundingClientRect(this, '#topBar', false)
  1429. /*
  1430. 说明:采用累加方式来计算每一个 prdocut-details 的 scrollTop 定位
  1431. scrollTop = 上一个的scrollTop + 上一个的高度
  1432. */
  1433. productDetail.forEach((item, index) => {
  1434. // 上一个 prdocut-details 的 scrollTop 值
  1435. const prev = sectionPropsArr[index - 1]
  1436. const prevScrollTop = prev ? prev.scrollTop : productMain.height
  1437. // 上一个 prdocut-details 的高度
  1438. const add = productDetail[index - 1]
  1439. // 第一个需要减去tabs的高度
  1440. const addHeight = index === 0 ? (add ? add.height : 0) - topBar.height : add ? add.height : 0
  1441. sectionPropsArr.push({
  1442. className: `${className}-${index}`,
  1443. scrollTop: prevScrollTop + addHeight
  1444. })
  1445. // - topBar.height
  1446. })
  1447. this.sectionPropsArr = sectionPropsArr
  1448. console.log('更新tab影响区域')
  1449. },
  1450. //当滑动时也能同步激活tab
  1451. activeTab: debounce(
  1452. (top, _this) => {
  1453. const { sectionPropsArr } = _this
  1454. if (sectionPropsArr && sectionPropsArr.length > 0) {
  1455. sectionPropsArr.forEach((item, index) => {
  1456. // 当前位置为开始位置, 下个起始位置为结束位置
  1457. const openInterval = (index === 0 ? 0 : item.scrollTop) - 20 // 自定义偏移
  1458. const next = sectionPropsArr[index + 1]
  1459. const closedInterval = (next ? next.scrollTop : 10000000) - 20 // 自定义偏移
  1460. if (top >= openInterval && top < closedInterval) {
  1461. _this.tabCurrentIndex = index
  1462. }
  1463. })
  1464. }
  1465. },
  1466. 100,
  1467. true
  1468. ),
  1469. debounce(fn, delay) {
  1470. let timer = null //借助闭包
  1471. return function() {
  1472. if (timer) {
  1473. clearTimeout(timer)
  1474. }
  1475. timer = setTimeout(fn, delay) // 简化写法
  1476. }
  1477. },
  1478. clipboard(data) {
  1479. thorui.getClipboardData(data, res => {
  1480. if (res) {
  1481. this.$util.msg('复制成功', 2000, true, 'success')
  1482. } else {
  1483. this.$util.msg('复制失败', 2000, true, 'none')
  1484. }
  1485. })
  1486. },
  1487. getWinHeight() {
  1488. this.winHeight = wx.getSystemInfoSync().windowHeight
  1489. },
  1490. changePreViewImageStatus(falg) {
  1491. this.isPreviewImage = falg
  1492. }
  1493. },
  1494. onPageScroll(e) {
  1495. //实时获取到滚动的值
  1496. const { scrollTop } = e
  1497. this.debounce(this.getSectionProps(), 1000)
  1498. if (!this.tabSelectFlag) {
  1499. this.activeTab(scrollTop, this)
  1500. }
  1501. if (e.scrollTop > 60) {
  1502. this.headerColor = true
  1503. this.navbarFiexd = 'fixed'
  1504. this.isNavbarFiexd = true
  1505. this.nvabarData = {
  1506. showCapsule: 1,
  1507. title: '商品详情'
  1508. }
  1509. } else {
  1510. this.headerColor = false
  1511. this.isNavbarFiexd = false
  1512. this.navbarFiexd = 'none'
  1513. this.nvabarData = {
  1514. showCapsule: 1,
  1515. title: ''
  1516. }
  1517. }
  1518. if (e.scrollTop > 700) {
  1519. this.isScrollTop = true
  1520. } else {
  1521. this.isScrollTop = false
  1522. }
  1523. },
  1524. onShareAppMessage(res) {
  1525. //分享转发
  1526. if (res.from === 'button') {
  1527. // 来自页面内转发按钮
  1528. }
  1529. return {
  1530. title: `${this.product.name}`,
  1531. path: `pages/goods/product?type=share&id=${this.productId}`,
  1532. imageUrl: `${this.productImage[0]}`
  1533. }
  1534. },
  1535. onShow() {
  1536. wxLogin.wxLoginAuthorize()
  1537. // 是否开启图片预览 true 不刷新调用接口 false刷新调用接口
  1538. if (!this.isPreviewImage) {
  1539. this.initGetStotage()
  1540. }
  1541. this.isPreviewImage = false
  1542. }
  1543. }
  1544. </script>
  1545. <style lang="scss">
  1546. page {
  1547. background-color: #ffffff;
  1548. }
  1549. .banner-section {
  1550. width: 100%;
  1551. height: 750rpx;
  1552. position: relative;
  1553. .cm-product-tags {
  1554. position: absolute;
  1555. right: 30rpx;
  1556. top: 0;
  1557. z-index: 999;
  1558. }
  1559. .cm-product-type {
  1560. width: 64rpx;
  1561. height: 64rpx;
  1562. text-align: justify;
  1563. box-sizing: border-box;
  1564. padding: 10rpx;
  1565. border-radius: 0 0 8rpx 8rpx;
  1566. background-color: #33ccbf;
  1567. font-size: $font-size-22;
  1568. color: #ffffff;
  1569. line-height: 25rpx;
  1570. position: absolute;
  1571. left: 30rpx;
  1572. top: 0;
  1573. z-index: 999;
  1574. }
  1575. .cm-product-cover {
  1576. width: 120rpx;
  1577. height: 77rpx;
  1578. line-height: 57rpx;
  1579. font-size: 24rpx;
  1580. color: #fff;
  1581. text-align: center;
  1582. background: url(https://static.caimei365.com/app/img/icon2/cm_cover_bg_app.png) no-repeat center;
  1583. background-size: 120rpx;
  1584. float: left;
  1585. position: absolute;
  1586. right: 30rpx;
  1587. top: 0;
  1588. z-index: 999;
  1589. }
  1590. }
  1591. .banner {
  1592. width: 100%;
  1593. height: 750rpx;
  1594. .product-img {
  1595. width: 750rpx;
  1596. }
  1597. image {
  1598. width: 100%;
  1599. height: 100%;
  1600. }
  1601. .banner-item {
  1602. position: relative;
  1603. }
  1604. }
  1605. .swiper__dots-box {
  1606. position: absolute;
  1607. color: #fff;
  1608. bottom: 30rpx;
  1609. right: 0;
  1610. }
  1611. .product-wrap {
  1612. width: 100%;
  1613. height: auto;
  1614. padding: 24rpx 0 0 0;
  1615. background-color: #ffffff;
  1616. border-bottom: 20rpx solid #f7f7f7;
  1617. .productRemarks {
  1618. height: 48rpx;
  1619. width: 100%;
  1620. float: left;
  1621. line-height: 48rpx;
  1622. font-size: 24rpx;
  1623. color: #999999;
  1624. text-align: left;
  1625. }
  1626. .wrap-top {
  1627. width: 702rpx;
  1628. padding: 0 24rpx;
  1629. height: auto;
  1630. float: left;
  1631. padding-bottom: 20rpx;
  1632. border-bottom: 1px solid #f8f8f8;
  1633. &.none {
  1634. .p-title {
  1635. color: #999999;
  1636. }
  1637. }
  1638. .p-title {
  1639. width: 100%;
  1640. height: auto;
  1641. float: left;
  1642. position: relative;
  1643. .p-title-name {
  1644. width: 602rpx;
  1645. height: auto;
  1646. float: left;
  1647. line-height: 48rpx;
  1648. font-size: $font-size-28;
  1649. color: $text-color;
  1650. -o-text-overflow: ellipsis;
  1651. text-overflow: ellipsis;
  1652. display: -webkit-box;
  1653. word-break: break-all;
  1654. -webkit-box-orient: vertical;
  1655. -webkit-line-clamp: 2;
  1656. overflow: hidden;
  1657. &.indent {
  1658. text-indent: 95rpx;
  1659. }
  1660. }
  1661. .mclap-tag {
  1662. display: block;
  1663. width: 84rpx;
  1664. height: 32rpx;
  1665. background-image: linear-gradient(270deg, #f9c023 0%, #f83600 100%);
  1666. border-radius: 4rpx 48rpx 4px 4px;
  1667. line-height: 32rpx;
  1668. font-size: $font-size-22;
  1669. color: #ffffff;
  1670. text-align: center;
  1671. position: absolute;
  1672. left: 0;
  1673. top: 6rpx;
  1674. }
  1675. .p-title-share {
  1676. width: 96rpx;
  1677. height: 96rpx;
  1678. position: absolute;
  1679. right: 0;
  1680. text-align: center;
  1681. color: #999999;
  1682. font-size: $font-size-24;
  1683. box-sizing: border-box;
  1684. display: block;
  1685. background: transparent;
  1686. border-radius: 0;
  1687. border: 0;
  1688. margin: 0;
  1689. padding: 8rpx 0;
  1690. z-index: 20;
  1691. .icon-fenxiang1 {
  1692. font-size: $font-size-34;
  1693. }
  1694. }
  1695. .tui-share-btn::after {
  1696. border: 0;
  1697. }
  1698. }
  1699. .wrap-main-text {
  1700. line-height: 56rpx;
  1701. color: #ff2a2a;
  1702. font-size: $font-size-26;
  1703. display: block;
  1704. float: left;
  1705. font-weight: normal;
  1706. }
  1707. .wrap-main-none {
  1708. display: block;
  1709. width: 256rpx;
  1710. height: 44rpx;
  1711. padding-left: 20rpx;
  1712. border-radius: 11rpx;
  1713. background: $btn-confirm;
  1714. float: right;
  1715. line-height: 44rpx;
  1716. color: #ffffff;
  1717. text-align: center;
  1718. font-size: $font-size-24;
  1719. }
  1720. .p-price-none {
  1721. height: 44rpx;
  1722. line-height: 44rpx;
  1723. float: left;
  1724. font-size: $font-size-24;
  1725. color: #666;
  1726. text-decoration: line-through;
  1727. margin-left: 8rpx;
  1728. }
  1729. .p-minBuy {
  1730. height: 44rpx;
  1731. line-height: 44rpx;
  1732. float: right;
  1733. padding: 0 18rpx;
  1734. border-radius: 22rpx;
  1735. background-color: #f7f7f7;
  1736. color: #7f7f7f;
  1737. font-size: 24rpx;
  1738. text-align: center;
  1739. .min-text {
  1740. margin: 0 6rpx;
  1741. }
  1742. }
  1743. .p-login {
  1744. height: 56rpx;
  1745. line-height: 56rpx;
  1746. color: $color-system;
  1747. font-size: $font-size-24;
  1748. &.grade {
  1749. .price-left {
  1750. float: left;
  1751. .none {
  1752. display: block;
  1753. font-size: $font-size-20;
  1754. line-height: 48rpx;
  1755. color: #4a4b54;
  1756. float: left;
  1757. font-weight: bold;
  1758. margin-left: 5rpx;
  1759. text {
  1760. letter-spacing: 4rpx;
  1761. font-size: $font-size-32;
  1762. }
  1763. }
  1764. }
  1765. }
  1766. .p-no {
  1767. float: left;
  1768. margin-right: 5rpx;
  1769. font-size: $font-size-28;
  1770. color: $text-color;
  1771. }
  1772. .p-login-btn {
  1773. display: block;
  1774. height: 44rpx;
  1775. padding: 0 10rpx 0 20rpx;
  1776. border-radius: 11rpx;
  1777. background: $btn-confirm;
  1778. float: right;
  1779. line-height: 44rpx;
  1780. color: #ffffff;
  1781. text-align: center;
  1782. font-size: $font-size-24;
  1783. }
  1784. }
  1785. }
  1786. .wrap-label {
  1787. float: left;
  1788. width: 85%;
  1789. box-sizing: border-box;
  1790. .label-a {
  1791. padding: 0 18rpx;
  1792. line-height: 32rpx;
  1793. font-size: $font-size-20;
  1794. color: $color-system;
  1795. text-align: center;
  1796. border-radius: 6rpx;
  1797. background: #ffe6dc;
  1798. margin: 0 20rpx 15rpx 0;
  1799. display: inline-block;
  1800. }
  1801. }
  1802. .wrap-top-price {
  1803. float: left;
  1804. width: 100%;
  1805. box-sizing: border-box;
  1806. .wrap-main-item {
  1807. width: 100%;
  1808. height: 56rpx;
  1809. .p-price {
  1810. height: 56rpx;
  1811. line-height: 56rpx;
  1812. float: left;
  1813. color: #ff2a2a;
  1814. font-weight: bold;
  1815. &.none {
  1816. text-decoration: line-through;
  1817. color: #999999;
  1818. font-weight: normal;
  1819. }
  1820. .txt {
  1821. margin: 0 2rpx;
  1822. }
  1823. .txt.sm {
  1824. font-size: $font-size-26;
  1825. }
  1826. .txt.big {
  1827. font-size: $font-size-34;
  1828. }
  1829. }
  1830. .p-right-price{
  1831. height: 56rpx;
  1832. line-height: 56rpx;
  1833. float: right;
  1834. color: #999999;
  1835. font-size: $font-size-30;
  1836. .none{
  1837. font-size: $font-size-26;
  1838. text-decoration: line-through;
  1839. }
  1840. }
  1841. }
  1842. .floor-item-act {
  1843. height: 56rpx;
  1844. text-align: center;
  1845. box-sizing: border-box;
  1846. float: left;
  1847. padding: 10rpx 0;
  1848. margin-left: 10rpx;
  1849. }
  1850. .floor-item-btn {
  1851. float: right;
  1852. height: 40rpx;
  1853. margin-top: 8rpx;
  1854. margin-left: 10rpx;
  1855. .btn {
  1856. line-height: 40rpx;
  1857. padding: 0 20rpx;
  1858. height: 40rpx;
  1859. background: $btn-confirm;
  1860. color: #ffffff;
  1861. font-size: $font-size-20;
  1862. border-radius: 4rpx;
  1863. }
  1864. }
  1865. }
  1866. .wrap-info {
  1867. float: left;
  1868. width: 702rpx;
  1869. padding: 24rpx 24rpx 0 24rpx;
  1870. border-bottom: 1px solid #f8f8f8;
  1871. .info-viewT {
  1872. width: 100%;
  1873. min-height: 40rpx;
  1874. font-size: $font-size-28;
  1875. color: $text-color;
  1876. line-height: 40rpx;
  1877. text-align: left;
  1878. &.none {
  1879. color: #999999;
  1880. }
  1881. .info-viewL {
  1882. min-width: 350rpx;
  1883. float: left;
  1884. margin-bottom: 24rpx;
  1885. }
  1886. .info-viewR {
  1887. min-width: 352rpx;
  1888. float: left;
  1889. margin-bottom: 24rpx;
  1890. }
  1891. }
  1892. .info-viewB {
  1893. width: 100%;
  1894. height: auto;
  1895. }
  1896. .info-f {
  1897. width: 50%;
  1898. float: left;
  1899. font-size: $font-size-28;
  1900. color: $text-color;
  1901. line-height: 40rpx;
  1902. margin-bottom: 24rpx;
  1903. text-align: left;
  1904. }
  1905. }
  1906. }
  1907. .product-seve {
  1908. width: 100%;
  1909. height: 60rpx;
  1910. background-color: #ffffff;
  1911. position: relative;
  1912. display: flex;
  1913. line-height: 60rpx;
  1914. .label {
  1915. font-size: $font-size-28;
  1916. color: #333333;
  1917. }
  1918. .iconfont {
  1919. color: #fea785;
  1920. margin-right: 20rpx;
  1921. font-size: $font-size-22;
  1922. }
  1923. .text {
  1924. font-size: $font-size-22;
  1925. color: #fea785;
  1926. margin-left: 10rpx;
  1927. }
  1928. }
  1929. .product-item-none {
  1930. min-height: 348rpx;
  1931. display: flex;
  1932. flex-direction: column;
  1933. align-items: center;
  1934. border-bottom: 20rpx solid #f7f7f7;
  1935. box-sizing: border-box;
  1936. padding: 40rpx 0;
  1937. .none-image {
  1938. width: 284rpx;
  1939. height: 225rpx;
  1940. }
  1941. .none-text {
  1942. text-align: center;
  1943. font-size: $font-size-28;
  1944. color: #fea785;
  1945. line-height: 40rpx;
  1946. }
  1947. }
  1948. .product-supporting {
  1949. width: 100%;
  1950. height: 274rpx;
  1951. box-sizing: border-box;
  1952. padding: 30rpx 24rpx;
  1953. background-color: #ffffff;
  1954. border-bottom: 20rpx solid #f7f7f7;
  1955. .product-supporting-title {
  1956. width: 100%;
  1957. height: 40rpx;
  1958. text-align: left;
  1959. line-height: 40rpx;
  1960. font-size: $font-size-28;
  1961. color: #333333;
  1962. }
  1963. .product-supporting-list {
  1964. width: 100%;
  1965. height: 154rpx;
  1966. box-sizing: border-box;
  1967. padding: 13rpx 0;
  1968. position: relative;
  1969. .icon-xiayibu {
  1970. line-height: 154rpx;
  1971. display: inline-block;
  1972. position: absolute;
  1973. width: 80rpx;
  1974. top: 0;
  1975. right: 0;
  1976. color: #b2b2b2;
  1977. text-align: right;
  1978. }
  1979. .list {
  1980. width: 128rpx;
  1981. height: 128rpx;
  1982. margin-right: 24rpx;
  1983. float: left;
  1984. border: 1px solid #e1e1e1;
  1985. border-radius: 8rpx;
  1986. .list-image {
  1987. width: 100%;
  1988. height: 100%;
  1989. display: block;
  1990. border-radius: 8rpx;
  1991. }
  1992. }
  1993. }
  1994. }
  1995. .return-instructions{
  1996. padding: 0 24rpx;
  1997. border-bottom: 20rpx solid #f7f7f7;
  1998. }
  1999. .product-parameter {
  2000. width: 702rpx;
  2001. height: 90rpx;
  2002. padding: 0 24rpx;
  2003. background-color: #ffffff;
  2004. position: relative;
  2005. border-bottom: 20rpx solid #f7f7f7;
  2006. &.coupon {
  2007. .title {
  2008. color: #f94b4b;
  2009. }
  2010. .icon-xiayibu {
  2011. color: #f94b4b;
  2012. }
  2013. .coupon {
  2014. float: right;
  2015. box-sizing: border-box;
  2016. padding: 29rpx 0;
  2017. padding-right: 35rpx;
  2018. .tags {
  2019. height: 32rpx;
  2020. box-sizing: border-box;
  2021. border-radius: 8rpx;
  2022. background-color: #fff1eb;
  2023. line-height: 28rpx;
  2024. color: #f94b4b;
  2025. text-align: center;
  2026. display: inline-block;
  2027. padding: 0 10rpx;
  2028. font-size: $font-size-20;
  2029. border: 1px solid #f94b4b;
  2030. float: right;
  2031. margin: 0 6rpx;
  2032. }
  2033. }
  2034. }
  2035. .title {
  2036. line-height: 90rpx;
  2037. display: inline-block;
  2038. float: left;
  2039. font-size: $font-size-28;
  2040. color: #666666;
  2041. }
  2042. .name {
  2043. line-height: 90rpx;
  2044. display: inline-block;
  2045. float: left;
  2046. font-size: $font-size-28;
  2047. color: $text-color;
  2048. padding-right: 48rpx;
  2049. overflow: hidden;
  2050. text-overflow: ellipsis;
  2051. white-space: nowrap;
  2052. text-align: right;
  2053. }
  2054. .icon-xiayibu {
  2055. line-height: 90rpx;
  2056. display: inline-block;
  2057. position: absolute;
  2058. width: 48rpx;
  2059. top: 0;
  2060. right: 0;
  2061. color: #b2b2b2;
  2062. }
  2063. }
  2064. .product-supplier {
  2065. width: 100%;
  2066. height: 174rpx;
  2067. padding: 30rpx 24rpx;
  2068. box-sizing: border-box;
  2069. background-color: #ffffff;
  2070. position: relative;
  2071. box-sizing: border-box;
  2072. border-bottom: 20rpx solid #f7f7f7;
  2073. .logo {
  2074. width: 128rpx;
  2075. height: 92rpx;
  2076. float: left;
  2077. border: 1px solid #efefef;
  2078. border-radius: 6rpx;
  2079. image {
  2080. width: 100%;
  2081. height: 100%;
  2082. display: block;
  2083. border-radius: 6rpx;
  2084. }
  2085. }
  2086. .main {
  2087. width: 470rpx;
  2088. height: 92rpx;
  2089. float: left;
  2090. margin-left: 20rpx;
  2091. .name {
  2092. width: 100%;
  2093. line-height: 46rpx;
  2094. float: left;
  2095. font-size: $font-size-28;
  2096. color: $text-color;
  2097. float: right;
  2098. overflow: hidden;
  2099. text-overflow: ellipsis;
  2100. white-space: nowrap;
  2101. text-align: left;
  2102. }
  2103. .massgs {
  2104. width: 100%;
  2105. line-height: 46rpx;
  2106. float: left;
  2107. font-size: $font-size-24;
  2108. color: #999999;
  2109. .label {
  2110. float: left;
  2111. }
  2112. .p-stars {
  2113. float: left;
  2114. margin-left: 20rpx;
  2115. }
  2116. .acount {
  2117. float: right;
  2118. text {
  2119. color: $color-system;
  2120. }
  2121. }
  2122. }
  2123. }
  2124. .icon-xiayibu {
  2125. line-height: 154rpx;
  2126. display: inline-block;
  2127. position: absolute;
  2128. width: 48rpx;
  2129. top: 0;
  2130. right: 0;
  2131. color: #b2b2b2;
  2132. }
  2133. }
  2134. .product-details {
  2135. width: 100%;
  2136. background: #ffffff;
  2137. border-bottom: 20rpx solid #f7f7f7;
  2138. &.recommend {
  2139. background-color: #f7f7f7;
  2140. border-bottom: none;
  2141. .title {
  2142. .title-tab {
  2143. background-color: #f7f7f7;
  2144. color: $text-color;
  2145. }
  2146. }
  2147. }
  2148. .product-details-image {
  2149. width: 100%;
  2150. min-height: 856rpx;
  2151. box-sizing: border-box;
  2152. padding: 0 24rpx;
  2153. .product-details-table {
  2154. width: 100%;
  2155. min-height: 160rpx;
  2156. border: 1px solid #e1e1e1;
  2157. border-radius: 10rpx;
  2158. .ladder-tr {
  2159. display: flex;
  2160. width: 100%;
  2161. justify-content: center;
  2162. height: 80rpx;
  2163. align-items: center;
  2164. border-bottom: 1px solid #e1e1e1;
  2165. &:last-child {
  2166. border-bottom: none;
  2167. }
  2168. .ladder-item-td {
  2169. height: 80rpx;
  2170. justify-content: center;
  2171. text-align: center;
  2172. box-sizing: border-box;
  2173. padding: 10rpx;
  2174. float: left;
  2175. .te-text {
  2176. line-height: 28rpx;
  2177. font-size: $font-size-24;
  2178. text-overflow: ellipsis;
  2179. display: -webkit-box;
  2180. word-break: break-all;
  2181. -webkit-box-orient: vertical;
  2182. -webkit-line-clamp: 2;
  2183. overflow: hidden;
  2184. color: #999999;
  2185. &.last {
  2186. width: 60%;
  2187. float: left;
  2188. }
  2189. }
  2190. .te-copy {
  2191. width: 40%;
  2192. float: right;
  2193. font-size: $font-size-24;
  2194. padding-top: 10rpx;
  2195. .clipboard {
  2196. width: 84rpx;
  2197. height: 36rpx;
  2198. background: #4688fa;
  2199. text-align: center;
  2200. font-size: $font-size-24;
  2201. color: #ffffff;
  2202. border-radius: 18rpx;
  2203. line-height: 36rpx;
  2204. display: inline-block;
  2205. }
  2206. }
  2207. &.th {
  2208. display: flex;
  2209. height: 80rpx;
  2210. align-items: center;
  2211. line-height: 80rpx;
  2212. font-size: 26rpx;
  2213. color: #666;
  2214. }
  2215. &:nth-child(1) {
  2216. width: 25%;
  2217. border-right: 1px solid #e1e1e1;
  2218. }
  2219. &:nth-child(2) {
  2220. width: 35%;
  2221. border-right: 1px solid #e1e1e1;
  2222. }
  2223. &:nth-child(3) {
  2224. width: 40%;
  2225. }
  2226. }
  2227. }
  2228. }
  2229. .qualificationImg-image {
  2230. width: 100%;
  2231. height: 856rpx;
  2232. display: block;
  2233. }
  2234. }
  2235. .product-rich-text-none {
  2236. box-sizing: border-box;
  2237. padding: 0 24rpx;
  2238. text-align: left;
  2239. font-size: 24rpx;
  2240. color: #999999;
  2241. line-height: 60rpx;
  2242. &.bold {
  2243. font-weight: bold;
  2244. color: #333333;
  2245. }
  2246. }
  2247. .content-none {
  2248. width: 100%;
  2249. height: 80rpx;
  2250. line-height: 80rpx;
  2251. text-align: left;
  2252. font-size: $font-size-26;
  2253. color: #999999;
  2254. box-sizing: border-box;
  2255. padding: 0 24rpx;
  2256. }
  2257. .title {
  2258. width: 100%;
  2259. box-sizing: border-box;
  2260. padding: 0 24rpx;
  2261. .title-tab {
  2262. width: 100%;
  2263. height: 100rpx;
  2264. background: #fff;
  2265. z-index: 10;
  2266. font-size: $font-size-30;
  2267. text-align: left;
  2268. color: $text-color;
  2269. line-height: 100rpx;
  2270. font-weight: 600;
  2271. }
  2272. .title-msg {
  2273. width: 100%;
  2274. height: 236rpx;
  2275. padding: 18rpx;
  2276. background-color: rgba(225, 86, 22, 0.1);
  2277. color: $color-system;
  2278. box-sizing: border-box;
  2279. margin-bottom: 30rpx;
  2280. .tit {
  2281. line-height: 46rpx;
  2282. font-size: $font-size-24;
  2283. text-align: left;
  2284. }
  2285. .txt {
  2286. line-height: 38rpx;
  2287. font-size: $font-size-20;
  2288. text-align: justify;
  2289. }
  2290. }
  2291. }
  2292. .content {
  2293. width: 100%;
  2294. background-color: #ffffff;
  2295. }
  2296. }
  2297. .isLower {
  2298. width: 100%;
  2299. height: 116rpx;
  2300. line-height: 116rpx;
  2301. text-align: center;
  2302. color: #000000;
  2303. font-size: $font-size-32;
  2304. font-weight: bold;
  2305. }
  2306. .bottom-btn {
  2307. width: 100%;
  2308. height: 100rpx;
  2309. position: fixed;
  2310. bottom: 0;
  2311. left: 0;
  2312. background: #ffffff;
  2313. z-index: 99;
  2314. .bottom-le {
  2315. width: 300rpx;
  2316. height: 100rpx;
  2317. padding: 10rpx 20rpx 10rpx 0;
  2318. float: left;
  2319. box-sizing: border-box;
  2320. .item-bt {
  2321. width: 80rpx;
  2322. height: 100%;
  2323. margin-right: 15rpx;
  2324. display: flex;
  2325. float: left;
  2326. flex-direction: column;
  2327. align-items: center;
  2328. justify-content: center;
  2329. font-size: $font-size-22;
  2330. color: $text-color;
  2331. line-height: 34rpx;
  2332. position: relative;
  2333. .animation-num {
  2334. font-size: $font-size-32;
  2335. color: #ff2a2a;
  2336. position: absolute;
  2337. top: -12rpx;
  2338. right: 4rpx;
  2339. font-weight: bold;
  2340. }
  2341. .animation {
  2342. animation: showAmnation 2.2s ease-in-out both;
  2343. }
  2344. .restion {
  2345. animation: hideAmnation 1s ease-in-out both;
  2346. }
  2347. .icon-num {
  2348. position: absolute;
  2349. right: -12rpx;
  2350. top: -5rpx;
  2351. }
  2352. .icon-num.goleft {
  2353. right: 2rpx;
  2354. }
  2355. &:last-child {
  2356. margin-right: 0;
  2357. }
  2358. image {
  2359. width: 44rpx;
  2360. height: 44rpx;
  2361. }
  2362. button.contact-btn {
  2363. width: 100%;
  2364. height: 100%;
  2365. margin: 0;
  2366. padding: 0;
  2367. display: flex;
  2368. flex-direction: column;
  2369. align-items: center;
  2370. justify-content: center;
  2371. box-sizing: border-box;
  2372. font-size: $font-size-24;
  2373. text-align: center;
  2374. text-decoration: none;
  2375. line-height: 34rpx;
  2376. border-radius: 0;
  2377. -webkit-tap-highlight-color: transparent;
  2378. overflow: hidden;
  2379. color: $text-color;
  2380. background-color: #ffffff;
  2381. }
  2382. }
  2383. }
  2384. .bottom-ri {
  2385. width: 450rpx;
  2386. height: 100%;
  2387. float: right;
  2388. display: flex;
  2389. box-sizing: border-box;
  2390. padding: 13rpx 20rpx 13rpx 0;
  2391. .btn {
  2392. flex: 1;
  2393. width: 200rpx;
  2394. line-height: 80rpx;
  2395. text-align: center;
  2396. font-size: $font-size-24;
  2397. color: #ffffff;
  2398. }
  2399. .btn-cart {
  2400. background-color: #ffe6dc;
  2401. color: $color-system;
  2402. border-radius: 42rpx 0 0 42rpx;
  2403. }
  2404. .btn-cart.disabled {
  2405. background-color: #e1e1e1;
  2406. color: #ffffff;
  2407. }
  2408. .btn-bay {
  2409. background: linear-gradient(to right, #f28f31 0%, #e15616 100%);
  2410. border-radius: 0 42rpx 42rpx 0;
  2411. }
  2412. .btn-bay.disabled {
  2413. background: linear-gradient(135deg, rgba(242, 143, 49, 0.5) 0%, rgba(225, 86, 22, 0.5) 100%);
  2414. }
  2415. }
  2416. }
  2417. .uni-badge--small {
  2418. -webkit-transform: scale(0.8);
  2419. -ms-transform: scale(0.8);
  2420. transform: scale(0.8);
  2421. -webkit-transform-origin: center center;
  2422. -ms-transform-origin: center center;
  2423. transform-origin: center center;
  2424. }
  2425. .uni-badge {
  2426. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  2427. -webkit-box-sizing: border-box;
  2428. box-sizing: border-box;
  2429. font-size: 12px;
  2430. line-height: 1;
  2431. display: inline-block;
  2432. padding: 3px 6px;
  2433. color: #333;
  2434. border-radius: 100px;
  2435. background-color: #f1f1f1;
  2436. }
  2437. .uni-badge-error {
  2438. color: #fff;
  2439. background-color: #dd524d;
  2440. }
  2441. .product-topnav {
  2442. width: 100%;
  2443. height: 174rpx;
  2444. box-sizing: border-box;
  2445. background: #ffffff;
  2446. z-index: 990;
  2447. position: fixed;
  2448. opacity: 1;
  2449. left: 0;
  2450. &.fixed {
  2451. animation: showFixedColor 0.1s ease-in-out both;
  2452. }
  2453. &.none {
  2454. animation: hideFixedColor 0.1s ease-in-out both;
  2455. }
  2456. .navbar {
  2457. width: 100%;
  2458. height: 60rpx;
  2459. box-sizing: border-box;
  2460. padding: 0 24rpx;
  2461. display: flex;
  2462. .nav-item {
  2463. display: flex;
  2464. flex: 1;
  2465. justify-content: center;
  2466. align-items: center;
  2467. height: 60rpx;
  2468. font-size: $font-size-28;
  2469. color: $text-color;
  2470. position: relative;
  2471. float: left;
  2472. position: relative;
  2473. .line {
  2474. width: 60rpx;
  2475. height: 2px;
  2476. border-radius: 1px;
  2477. background: #ffffff;
  2478. position: absolute;
  2479. bottom: 0;
  2480. left: 50%;
  2481. margin-left: -30rpx;
  2482. }
  2483. &.current {
  2484. color: $color-system;
  2485. .line {
  2486. background: $color-system;
  2487. }
  2488. }
  2489. }
  2490. }
  2491. .search-input {
  2492. width: 100%;
  2493. height: 114rpx;
  2494. padding: 24rpx;
  2495. box-sizing: border-box;
  2496. .gosearch-btn {
  2497. width: 100%;
  2498. height: 100%;
  2499. border-radius: 40rpx;
  2500. margin: 0 auto;
  2501. font-size: 26rpx;
  2502. line-height: 66rpx;
  2503. color: #b2b2b2;
  2504. position: relative;
  2505. box-sizing: border-box;
  2506. padding-left: 66rpx;
  2507. &.fixed {
  2508. background: rgba(70, 70, 70, 0.1);
  2509. }
  2510. &.none {
  2511. background: rgba(70, 70, 70, 0.1);
  2512. }
  2513. .search-icon {
  2514. width: 66rpx;
  2515. height: 66rpx;
  2516. position: absolute;
  2517. left: 0;
  2518. top: 2rpx;
  2519. text-align: center;
  2520. line-height: 66rpx;
  2521. .icon-iconfonticonfontsousuo1 {
  2522. margin: 0 6rpx;
  2523. font-size: $font-size-34;
  2524. color: #b2b2b2;
  2525. z-index: 10;
  2526. }
  2527. }
  2528. .search-text {
  2529. font-size: $font-size-24;
  2530. line-height: 66rpx;
  2531. color: #b2b2b2;
  2532. }
  2533. }
  2534. }
  2535. }
  2536. @keyframes showFixedColor {
  2537. 0% {
  2538. background: rgba(255, 255, 255, 0);
  2539. }
  2540. 50% {
  2541. background: rgba(255, 255, 255, 0.5);
  2542. }
  2543. 100% {
  2544. background: rgba(255, 255, 255, 1);
  2545. }
  2546. }
  2547. @keyframes hideFixedColor {
  2548. 0% {
  2549. background: rgba(255, 255, 255, 1);
  2550. }
  2551. 50% {
  2552. background: rgba(255, 255, 255, 0.5);
  2553. }
  2554. 100% {
  2555. background: rgba(255, 255, 255, 0);
  2556. }
  2557. }
  2558. /* 加入购物模态层*/
  2559. @keyframes showPopup {
  2560. 0% {
  2561. opacity: 0;
  2562. }
  2563. 100% {
  2564. opacity: 1;
  2565. }
  2566. }
  2567. @keyframes hidePopup {
  2568. 0% {
  2569. opacity: 1;
  2570. }
  2571. 100% {
  2572. opacity: 0;
  2573. }
  2574. }
  2575. @keyframes showLayer {
  2576. 0% {
  2577. transform: translateY(0);
  2578. }
  2579. 100% {
  2580. transform: translateY(-100%);
  2581. }
  2582. }
  2583. @keyframes hideLayer {
  2584. 0% {
  2585. transform: translateY(-100%);
  2586. }
  2587. 100% {
  2588. transform: translateY(0);
  2589. }
  2590. }
  2591. @keyframes showAmnation {
  2592. 0% {
  2593. top: -12rpx;
  2594. opacity: 0;
  2595. }
  2596. 50% {
  2597. top: -60rpx;
  2598. opacity: 1;
  2599. }
  2600. 100% {
  2601. top: -100rpx;
  2602. opacity: 0;
  2603. }
  2604. }
  2605. @keyframes hideAmnation {
  2606. 0% {
  2607. top: -100rpx;
  2608. opacity: 0;
  2609. }
  2610. 100% {
  2611. top: -12rpx;
  2612. opacity: 0;
  2613. }
  2614. }
  2615. .tui-popup-box {
  2616. position: relative;
  2617. box-sizing: border-box;
  2618. min-height: 220rpx;
  2619. padding: 40rpx 24rpx 0 24rpx;
  2620. .tui-popup-close {
  2621. width: 90rpx;
  2622. height: 90rpx;
  2623. position: absolute;
  2624. right: 0;
  2625. top: 24rpx;
  2626. line-height: 90rpx;
  2627. text-align: center;
  2628. color: #b2b2b2;
  2629. .icon-iconfontguanbi {
  2630. font-size: $font-size-40;
  2631. }
  2632. }
  2633. .title {
  2634. font-size: $font-size-34;
  2635. color: $text-color;
  2636. line-height: 88rpx;
  2637. text-align: center;
  2638. float: left;
  2639. width: 100%;
  2640. height: 88rpx;
  2641. font-weight: bold;
  2642. }
  2643. .tui-popup-main {
  2644. width: 100%;
  2645. float: left;
  2646. &.coupon {
  2647. padding-bottom: 40rpx;
  2648. .coupon-empty {
  2649. width: 100%;
  2650. height: 600rpx;
  2651. display: flex;
  2652. align-items: center;
  2653. justify-content: center;
  2654. flex-direction: column;
  2655. position: fixed;
  2656. background: $bg-color;
  2657. .empty-container-image {
  2658. width: 150rpx;
  2659. height: 150rpx;
  2660. margin-bottom: 0;
  2661. margin-top: 0;
  2662. }
  2663. .error-text {
  2664. font-size: $font-size-28;
  2665. color: #999999;
  2666. line-height: 88rpx;
  2667. }
  2668. }
  2669. }
  2670. .tui-popup-scroll {
  2671. width: 100%;
  2672. height: 600rpx;
  2673. .coupon-list {
  2674. width: 100%;
  2675. height: 200rpx;
  2676. margin-top: 24rpx;
  2677. box-sizing: border-box;
  2678. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-uesb@2x.png);
  2679. background-size: cover;
  2680. &:last-child {
  2681. margin-bottom: 24rpx;
  2682. }
  2683. .list-cell-le {
  2684. width: 224rpx;
  2685. height: 100%;
  2686. box-sizing: border-box;
  2687. padding: 37rpx 0;
  2688. float: left;
  2689. .coupon-maxMoney {
  2690. width: 100%;
  2691. height: 78rpx;
  2692. line-height: 78rpx;
  2693. font-size: 56rpx;
  2694. color: #ffffff;
  2695. text-align: center;
  2696. .small {
  2697. font-size: $font-size-24;
  2698. }
  2699. }
  2700. .coupon-minMoney {
  2701. width: 100%;
  2702. height: 33rpx;
  2703. line-height: 33rpx;
  2704. font-size: $font-size-24;
  2705. color: #ffffff;
  2706. text-align: center;
  2707. }
  2708. }
  2709. .list-cell-ri {
  2710. width: 478rpx;
  2711. height: 100%;
  2712. box-sizing: border-box;
  2713. padding: 20rpx 24rpx 0 24rpx;
  2714. float: right;
  2715. .list-cell-top {
  2716. width: 100%;
  2717. height: 121rpx;
  2718. float: left;
  2719. border-bottom: 1px solid #e1e1e1;
  2720. .list-cell-type {
  2721. width: 286rpx;
  2722. height: 100%;
  2723. float: left;
  2724. .list-cell-tags {
  2725. width: 100%;
  2726. height: 32rpx;
  2727. margin-bottom: 7rpx;
  2728. .tags {
  2729. display: inline-block;
  2730. padding: 0 10rpx;
  2731. height: 32rpx;
  2732. line-height: 32rpx;
  2733. background-color: #ffdcce;
  2734. color: #f94b4b;
  2735. font-size: $font-size-20;
  2736. border-radius: 8rpx;
  2737. text-align: center;
  2738. float: left;
  2739. }
  2740. }
  2741. .list-cell-texts {
  2742. width: 100%;
  2743. height: auto;
  2744. line-height: 35rpx;
  2745. text-overflow: ellipsis;
  2746. display: -webkit-box;
  2747. word-break: break-all;
  2748. -webkit-box-orient: vertical;
  2749. -webkit-line-clamp: 2;
  2750. overflow: hidden;
  2751. font-size: 26rpx;
  2752. color: #333333;
  2753. }
  2754. }
  2755. .list-cell-btn {
  2756. width: 128rpx;
  2757. height: 100%;
  2758. float: right;
  2759. .icon-used {
  2760. width: 100%;
  2761. height: 100%;
  2762. box-sizing: border-box;
  2763. padding-top: 28rpx;
  2764. .icon-used-text {
  2765. width: 100%;
  2766. text-align: center;
  2767. line-height: 26rpx;
  2768. font-size: $font-size-20;
  2769. color: #f94b4b;
  2770. }
  2771. .icon-used-btn {
  2772. width: 128rpx;
  2773. height: 48rpx;
  2774. border-radius: 28rpx;
  2775. line-height: 48rpx;
  2776. font-size: $font-size-26;
  2777. text-align: center;
  2778. &.receive {
  2779. background-image: linear-gradient(270deg, #f94b4b 0%, #feb673 100%);
  2780. color: #ffffff;
  2781. }
  2782. &.make {
  2783. border: solid 1px #f94b4b;
  2784. color: #f94b4b;
  2785. }
  2786. }
  2787. }
  2788. }
  2789. }
  2790. .list-cell-time {
  2791. width: 100%;
  2792. height: 58rpx;
  2793. line-height: 58rpx;
  2794. text-align: left;
  2795. font-size: $font-size-20;
  2796. color: #999999;
  2797. }
  2798. }
  2799. }
  2800. &.train {
  2801. height: 240rpx;
  2802. }
  2803. .content-tr {
  2804. width: 100%;
  2805. min-height: 58rpx;
  2806. line-height: 58rpx;
  2807. display: flex;
  2808. .content-td {
  2809. display: flex;
  2810. flex: 3;
  2811. font-size: $font-size-26;
  2812. color: #999999;
  2813. line-height: 58rpx;
  2814. text-align: left;
  2815. }
  2816. .content-th {
  2817. display: flex;
  2818. flex: 7;
  2819. font-size: $font-size-26;
  2820. color: #333333;
  2821. line-height: 58rpx;
  2822. text-align: left;
  2823. padding-left: 10rpx;
  2824. }
  2825. }
  2826. }
  2827. }
  2828. .tui-shopping-main {
  2829. width: 100%;
  2830. .layer-smimg {
  2831. width: 114rpx;
  2832. height: 114rpx;
  2833. float: left;
  2834. border-radius: 10rpx;
  2835. margin-right: 24rpx;
  2836. image {
  2837. width: 114rpx;
  2838. height: 114rpx;
  2839. border-radius: 10rpx;
  2840. }
  2841. }
  2842. .layer-nunbox {
  2843. justify-content: space-between;
  2844. align-items: center;
  2845. width: 536rpx;
  2846. height: auto;
  2847. float: left;
  2848. .layer-nunbox-t {
  2849. width: 100%;
  2850. height: 44rpx;
  2851. position: relative;
  2852. display: flex;
  2853. margin-bottom: 10rpx;
  2854. .text {
  2855. font-size: $font-size-24;
  2856. line-height: 48rpx;
  2857. color: #999999;
  2858. }
  2859. .layer-nunbox-text {
  2860. line-height: 44rpx;
  2861. font-size: $font-size-28;
  2862. }
  2863. .number-box {
  2864. display: flex;
  2865. justify-content: center;
  2866. align-items: center;
  2867. border: 2rpx solid #ffe6dc;
  2868. border-radius: 30rpx;
  2869. height: 48rpx;
  2870. margin-left: 20rpx;
  2871. .iconfont {
  2872. font-size: $font-size-24;
  2873. padding: 0 18rpx;
  2874. color: #999999;
  2875. text-align: center;
  2876. line-height: 48rpx;
  2877. font-weight: bold;
  2878. background: #fef6f3;
  2879. &.icon-jianhao {
  2880. border-radius: 30rpx 0 0 30rpx;
  2881. }
  2882. &.icon-jiahao {
  2883. border-radius: 0 30rpx 30rpx 0;
  2884. }
  2885. }
  2886. .btn-input {
  2887. width: 62rpx;
  2888. height: 48rpx;
  2889. line-height: 48rpx;
  2890. background: #ffffff;
  2891. border-radius: 4rpx;
  2892. text-align: center;
  2893. font-size: $font-size-28;
  2894. }
  2895. }
  2896. .product-step {
  2897. position: absolute;
  2898. left: 45rpx;
  2899. bottom: 0;
  2900. height: 44rpx;
  2901. background: #ffffff;
  2902. }
  2903. }
  2904. .layer-nunbox-b {
  2905. width: 100%;
  2906. height: 44rpx;
  2907. margin-top: 13rpx;
  2908. }
  2909. .text {
  2910. line-height: 44rpx;
  2911. font-size: $font-size-28;
  2912. .p {
  2913. color: #ff2a2a;
  2914. }
  2915. .p:first-child {
  2916. margin-left: 30rpx;
  2917. }
  2918. .p.sm {
  2919. font-size: $font-size-24;
  2920. }
  2921. }
  2922. }
  2923. }
  2924. }
  2925. .tui-popup-btn {
  2926. width: 100%;
  2927. height: auto;
  2928. float: left;
  2929. margin-top: 24rpx;
  2930. .tui-button {
  2931. width: 100%;
  2932. height: 88rpx;
  2933. background: $btn-confirm;
  2934. line-height: 88rpx;
  2935. text-align: center;
  2936. color: #ffffff;
  2937. font-size: $font-size-28;
  2938. border-radius: 44rpx;
  2939. }
  2940. }
  2941. /*富文本样式*/
  2942. rich-text.p {
  2943. width: 702rpx !important;
  2944. padding: 0 24rpx;
  2945. text-align: justify;
  2946. }
  2947. rich-text.img {
  2948. width: 100%;
  2949. height: auto;
  2950. }
  2951. </style>