product.vue 73 KB

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