product.vue 72 KB

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