product.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300
  1. <template>
  2. <view class="product" :style="{paddingBottom: userIdentity==1 && userIdentity == 3 ? '0rpx' :'188rpx',paddingTop:CustomBar+'px'}">
  3. <custom-p v-if="isHeaderPoduct"
  4. :systeminfo='systeminfo'
  5. :navbar-data='nvabarData'
  6. :headerBtnPosi ="headerBtnPosi"
  7. :headerColor="headerColor"
  8. :type="isShareType"
  9. :page='backPage'>
  10. </custom-p>
  11. <view class="product-topnav" v-if='isNavbarFiexd' :class="navbarFiexd" :style="{top:CustomBar +'px'}">
  12. <view class="search-input">
  13. <view class="gosearch-btn" :class="navbarFiexd" @click="this.$api.navigateTo(clickPath)">
  14. <view class="search-icon">
  15. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  16. </view>
  17. <view class="search-text">搜索商品/项目仪器</view>
  18. </view>
  19. </view>
  20. <view class="navbar">
  21. <view class="nav-item tui-skeleton-fillet" :class="{ current: tabCurrentIndex === 0 }" @click="tabClick(0)">
  22. <text>详情</text>
  23. <text class="line"></text>
  24. </view>
  25. <view class="nav-item tui-skeleton-fillet" :class="{ current: tabCurrentIndex === 1 }" @click="tabClick(1)">
  26. <text>服务项目</text>
  27. <text class="line"></text>
  28. </view>
  29. <view class="nav-item tui-skeleton-fillet" :class="{ current: tabCurrentIndex === 2 }" @click="tabClick(2)">
  30. <text>推荐</text>
  31. <text class="line"></text>
  32. </view>
  33. </view>
  34. </view>
  35. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="5"></tui-skeleton>
  36. <template v-else >
  37. <view class="cart-content empty" v-if="isInvalid">
  38. <view class="empty-container">
  39. <image class="empty-container-image" :src="productNoneImage" mode="aspectFit"></image>
  40. <text class="error-text">商品已失效,去商城逛逛别的吧~</text>
  41. <view class="login-btn" @click="goIndex">去商城</view>
  42. </view>
  43. </view>
  44. <view class="container-product tui-skeleton" v-else>
  45. <view class="container-product-main">
  46. <view class="product-top">
  47. <view class="banner-section">
  48. <uni-swiper-dot :info="productImage" :current="current" field="content" :mode="mode" >
  49. <swiper class="banner tui-banner tui-skeleton-rect" @change="swiperChange" :duration='800' :autoplay="false" :circular="true" >
  50. <swiper-item v-for="(item, index) in productImage" :key="index" class="banner-item">
  51. <image :src="item" @click="previewImg(index)" class="product-img" />
  52. </swiper-item>
  53. </swiper>
  54. <view class="swiper__dots-box">
  55. <tui-tag padding="12rpx 24rpx"
  56. type="translucent"
  57. shape="circleLeft"
  58. size="32rpx"
  59. :scaleMultiple="0.82" originRight>
  60. {{ current + 1 }}/{{ productImage.length }}
  61. </tui-tag>
  62. </view>
  63. </uni-swiper-dot>
  64. </view>
  65. <view class="product-wrap clearfix">
  66. <view class="wrap-top" :class="goodsData.isNoneDisabled ? 'none' : ''">
  67. <view class="wrap-top-price">
  68. <cm-price v-if="isRequest"
  69. :product="product"
  70. :userIdentity="userIdentity"
  71. :shopID= "shopID"
  72. :promotions="product.promotions"
  73. :ladderPriceList="ladderPriceList"/>
  74. </view>
  75. <view class="p-title tui-skeleton-fillet">
  76. <view class="mclap-tag" v-if="product.beautyActFlag == '1'">美博会</view>
  77. <view class="p-title-name" :class="product.beautyActFlag == '1' ? 'indent' : ''">
  78. {{product.name == undefined ? '' : product.name}}
  79. </view>
  80. <button open-type="share" class="p-title-share tui-share-position" @tap="onShare">
  81. <view class=""><text class="iconfont icon-fenxiang1"></text></view>
  82. <view class="">分享</view>
  83. </button>
  84. </view>
  85. <view class="wrap-label" v-if="product.tagsList.length>0">
  86. <view class="label-a tui-skeleton-fillet" v-for="(label,index) in product.tagsList" :key="index">{{label}}</view>
  87. </view>
  88. <view class="product-seve" v-if="hasLogin">
  89. <text class="label">采美承诺:</text>
  90. <text class="iconfont icon-dui tui-skeleton-rect"><text class="text">无忧退货</text></text>
  91. <text class="iconfont icon-dui tui-skeleton-rect"><text class="text">快速退款</text></text>
  92. <text class="iconfont icon-dui tui-skeleton-rect"><text class="text">正品保证</text></text>
  93. </view>
  94. <view class="productRemarks" v-if="product.productRemarks!=''&&product.productRemarks!=null">
  95. 备注:{{product.productRemarks}}
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="product-item-none" v-if="goodsData.isNoneDisabled">
  101. <image class="none-image" :src="productNoneImage" mode=""></image>
  102. <view class="none-text">此商品已{{goodsData.disabledText}},请浏览以下推荐商品~</view>
  103. </view>
  104. <!-- 参数 -->
  105. <view class="product-parameter" @click="showPopup(0)" v-if="!goodsData.isNoneDisabled">
  106. <text class="title">参数:</text>
  107. <text class="name">品牌 起订量 分类...</text>
  108. <text class="iconfont icon-xiayibu"></text>
  109. </view>
  110. <!-- 优惠券 -->
  111. <view class="product-parameter coupon" @click="showPopup(2)">
  112. <text class="title">优惠券:</text>
  113. <view class="coupon">
  114. <text class="tags"> 满5000减100 </text>
  115. <text class="tags"> 满5000减100 </text>
  116. <text class="tags"> 满5000减100 </text>
  117. </view>
  118. <text class="iconfont icon-xiayibu"></text>
  119. </view>
  120. <!-- 仪器培训方案 -->
  121. <view class="product-parameter" @click="showPopup(1)" v-if='product.commodityType == 2 && product.trainingMethod'>
  122. <text class="title">培训方案:</text>
  123. <text class="name">{{ product.trainingMethod == 1 ? '线上培训' : '线下培训' }}</text>
  124. <text class="iconfont icon-xiayibu"></text>
  125. </view>
  126. <!-- 供应商 -->
  127. <view class="product-supplier" v-if="isNoneSupplier" @click="goSupplier">
  128. <view class="logo"><img :src="shop.logo ? shop.logo :'https://static.caimei365.com/app/img/icon/icon-shoplogo.png'" alt=""></view>
  129. <view class="main">
  130. <view class="name">{{shop.name}}</view>
  131. <view class="massgs">
  132. <view class="label">满意度:</view>
  133. <view class="p-stars">
  134. <uni-stars :stars="6" :iconClass="iconClass" :iconColor="iconColor" :fontSize="36" :widthInfo="176"></uni-stars>
  135. </view>
  136. <view class="acount">
  137. <text>{{ shop.normalNum }}</text>件商品
  138. </view>
  139. </view>
  140. </view>
  141. <view class="right"><text class="iconfont icon-xiayibu"></text></view>
  142. </view>
  143. </view>
  144. <view class="product-details product-details0">
  145. <!-- 商品详情 -->
  146. <view class="title">
  147. <view class="title-tab">商品详情</view>
  148. </view>
  149. <view class="content tui-banner product-rich-text tui-skeleton-rect">
  150. <parser :html="html" :img-mode="widthFix" v-if="!goodsData.isNoneDisabled && product.productDetail.detailInfo"></parser>
  151. <view class="product-rich-text-none" v-else>暂无商品信息</view>
  152. </view>
  153. </view>
  154. <view class="product-details service product-details1">
  155. <!-- 服务项目 -->
  156. <view class="title">
  157. <view class="title-tab">服务项目</view>
  158. </view>
  159. <view class="content service" v-if="product.productDetail.orderInfo || product.productDetail.serviceInfo">
  160. <cm-service :product="product.productDetail" v-if="isRequest"></cm-service>
  161. </view>
  162. <view class="content-none" v-else>
  163. <text>暂无服务项目</text>
  164. </view>
  165. </view>
  166. <view class="product-details recommend product-details2">
  167. <!-- 相关推荐 -->
  168. <view class="title">
  169. <view class="title-tab">相关推荐</view>
  170. </view>
  171. <view class="content hot">
  172. <recommend :query-productid="product.productId" :query-type="product.recommendType" v-if="isRequest"></recommend>
  173. </view>
  174. </view>
  175. <!-- 商品参数 -->
  176. <tui-bottom-popup :radius="true" :show="popupShow0" @close="hidePopup(0)">
  177. <view class="tui-popup-box clearfix">
  178. <view class="title">商品参数</view>
  179. <div class="tui-popup-main">
  180. <scroll-view class="tui-popup-scroll" scroll-y="true">
  181. <view class="content-tr">
  182. <view class="content-td">起订量</view>
  183. <view class="content-th">{{product.minBuyNumber}}</view>
  184. </view>
  185. <view class="content-tr">
  186. <view class="content-td">品牌</view>
  187. <view class="content-th">{{product.brandName == null? '其他' : product.brandName}}</view>
  188. </view>
  189. <view class="content-tr">
  190. <view class="content-td">分类</view>
  191. <view class="content-th">{{product.typeName == null? '暂无' : product.typeName}}</view>
  192. </view>
  193. <view class="content-tr">
  194. <view class="content-td">包装规格</view>
  195. <view class="content-th">{{product.unit}}</view>
  196. </view>
  197. <view class="content-tr">
  198. <view class="content-td">商品编码</view>
  199. <view class="content-th">{{product.productCode}}</view>
  200. </view>
  201. <view class="content-tr">
  202. <view class="content-td">库存</view>
  203. <view class="content-th">{{product.stock}}</view>
  204. </view>
  205. <view class="content-tr" v-if="product.parametersList.length>0" v-for="(item, index) in product.parametersList" :key="index">
  206. <view class="content-td">{{item.paramsName}}</view>
  207. <view class="content-th">{{item.paramsContent}}</view>
  208. </view>
  209. </scroll-view>
  210. </div>
  211. <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom :isIphoneX ? '68rpx' : '0rpx' }">
  212. <view class="tui-flex-1">
  213. <view class="tui-button" @click="hidePopup(0)">收起</view>
  214. </view>
  215. </view>
  216. </view>
  217. </tui-bottom-popup>
  218. <!-- 优惠券 -->
  219. <tui-bottom-popup :radius="true" :show="popupShow2" @close="hidePopup(2)">
  220. <view class="tui-popup-box clearfix">
  221. <view class="title">优惠券</view>
  222. <view class="tui-popup-close" @click="hidePopup(2)">
  223. <text class="iconfont icon-iconfontguanbi"></text>
  224. </view>
  225. <view class="tui-popup-tabs">
  226. <coupon-tabs :tabs="navbar"
  227. :currentTab="currentTab>2?0:currentTab"
  228. @change="couponChange"
  229. :itemWidth="(100/navbar.length)+'%'"
  230. selectedColor="#e15616"
  231. sliderBgColor="#e15616">
  232. </coupon-tabs>
  233. </view>
  234. <div class="tui-popup-main coupon">
  235. <scroll-view class="tui-popup-scroll" scroll-y="true">
  236. <view v-for="(coupon,index) in dataList" :key="index" :id="coupon.id" class="coupon-list">
  237. <view class="list-cell-le">
  238. <view class="coupon-maxMoney">
  239. <text class="small">¥</text>
  240. {{ coupon.maxMoney }}
  241. </view>
  242. <view class="coupon-minMoney">
  243. 满{{ coupon.minMoney }}可用
  244. </view>
  245. </view>
  246. <view class="list-cell-ri">
  247. <view class="list-cell-top">
  248. <view class="list-cell-type">
  249. <view class="list-cell-tags">
  250. <text class="tags">{{ coupon.couponType | TypeFormat }}</text>
  251. </view>
  252. <view class="list-cell-texts" :class="currentTab == 1 || currentTab == 2 ? 'none' : ''">
  253. <text v-if="coupon.useType == 1">{{ coupon.useType | TypeFormatText }}</text>
  254. <text v-if="coupon.useType == 2">{{ coupon.useType | TypeFormatText }}</text>
  255. <text v-if="coupon.useType == 3">{{ coupon.useType | TypeFormatText }}{{ coupon.couponText }}的商品</text>
  256. </view>
  257. </view>
  258. <view class="list-cell-btn">
  259. <view class="icon-used">
  260. <view class="icon-used-btn receive" v-if="currentTab == 0" @click="receiveCoupon(coupon)">领取</view>
  261. <view class="icon-used-btn make" v-if="currentTab == 1">已领取</view>
  262. </view>
  263. </view>
  264. </view>
  265. <view class="list-cell-time">{{ coupon.couponTime }}</view>
  266. </view>
  267. </view>
  268. </scroll-view>
  269. </div>
  270. </view>
  271. </tui-bottom-popup>
  272. <!-- 培训方案 -->
  273. <tui-bottom-popup :radius="true" :show="popupShow1" @close="hidePopup(1)">
  274. <view class="tui-popup-box clearfix">
  275. <view class="title">培训方案</view>
  276. <div class="tui-popup-main">
  277. <scroll-view class="tui-popup-scroll train" scroll-y="true">
  278. <view class="content-tr">
  279. <view class="content-td">培训方式:</view>
  280. <view class="content-th">{{ product.trainingMethod == 1 ? '线上培训' : '线下培训' }}</view>
  281. </view>
  282. <view class="content-tr">
  283. <view class="content-td">培训费用:</view>
  284. <view class="content-th">{{ product.trainingType == 1 ? '¥'+product.trainingFee : '售价已包含' }}</view>
  285. </view>
  286. </scroll-view>
  287. </div>
  288. <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom :isIphoneX ? '68rpx' : '0rpx' }">
  289. <view class="tui-flex-1">
  290. <view class="tui-button" @click="hidePopup(1)">收起</view>
  291. </view>
  292. </view>
  293. </view>
  294. </tui-bottom-popup>
  295. <!-- 底部按钮 -->
  296. <view class="menu" v-if="isShowButton">
  297. <view class="bottom-btn" :style="{paddingBottom :isIphoneX ? '68rpx' : '0rpx'}">
  298. <view class="bottom-le">
  299. <view class="item-bt" @click="this.$api.switchTabTo('/pages/tabBar/home/index')">
  300. <image src="../../static/icon-home-active@3x.png"></image>
  301. <text>首页</text>
  302. </view>
  303. <button class="item-bt" open-type="contact" @click="handleContact">
  304. <image src="../../static/severs@3x.png"></image>
  305. <text>客服</text>
  306. </button>
  307. <view class="item-bt" @click="buyProductCart()">
  308. <image src="https://static.caimei365.com/app/img/icon/icon-cart-active@3x.png"></image>
  309. <text>购物车</text>
  310. <text v-if="hasLogin && goodsData.cartCount>0"
  311. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  312. :class="[goodsData.cartCount < 10 ? 'goleft':'']">
  313. {{ goodsData.cartCount >= 100 ? '99+': goodsData.cartCount}}
  314. </text>
  315. <view class="animation-num" :class="isAnimation ? 'animation' : 'restion'">+1</view>
  316. </view>
  317. </view>
  318. <view class="bottom-ri">
  319. <button
  320. :disabled="goodsData.disabled"
  321. class="btn btn-cart"
  322. :class="[goodsData.disabled ? 'disabled':'']"
  323. @tap.stop="btnGetConfirm('add')">加入购物车</button>
  324. <button
  325. :disabled="goodsData.disabled"
  326. class="btn btn-bay"
  327. :class="[goodsData.disabled ? 'disabled':'']"
  328. @tap.stop="btnGetConfirm('buy')">立即购买</button>
  329. </view>
  330. </view>
  331. </view>
  332. <!--底部选择模态层弹窗组件 -->
  333. <view class="popup spec" :class="specClass" @touchmove.stop.prevent="discard" @tap="hideSpec">
  334. <!-- 遮罩层 -->
  335. <view class="mask"></view>
  336. <view class="layer" @tap.stop="discard" :style="{paddingBottom :isIphoneX ? '68rpx' : '36rpx',bottom:isIphoneX ?'-352rpx' : '-296rpx'}">
  337. <view class="content">
  338. <view class="layer-smimg">
  339. <image :src="product.mainImage" mode=""></image>
  340. </view>
  341. <view class="layer-nunbox">
  342. <view class="layer-nunbox-t" v-if="product.step === 2">
  343. <view class="text">*该商品只能以起订量的整数倍购买</view>
  344. </view>
  345. <view class="layer-nunbox-t">
  346. <view class="layer-nunbox-text">数量:</view>
  347. <view class="number-box">
  348. <view class="iconfont icon-jianhao" :class="[isQuantity==true?'disabled':'']" @click="changeCountSub()"></view>
  349. <input class="btn-input" type="number" v-model="number" maxlength='4' @blur="changeNumber($event)">
  350. <view class="iconfont icon-jiahao" :class="[isStock==true?'disabled':'']" @click="changeCountAdd()"></view>
  351. </view>
  352. </view>
  353. <view class="layer-nunbox-b">
  354. <view class="text">单价:
  355. <text class="p sm">¥</text>
  356. <text class="p bg">{{buyRetailPrice.toFixed(2)}}</text>
  357. </view>
  358. </view>
  359. </view>
  360. </view>
  361. <view class="btn"><view class="button" @click.stop="btnConfirm">确定</view></view>
  362. </view>
  363. </view>
  364. <!-- 侧边 -->
  365. <scroll-top :isScrollTop="isScrollTop" :bottom="200"></scroll-top>
  366. </view>
  367. </template>
  368. </view>
  369. </template>
  370. <script>
  371. import { mapState,mapMutations } from 'vuex'
  372. import customP from '@/components/cm-module/headerNavbar/header-poduct' //自定义导航
  373. import cmPrice from "@/components/cm-module/productDetails/cm-price.vue" //价格显示
  374. import cmAttributes from "@/components/cm-module/productDetails/cm-attributes.vue" //规格信息
  375. import parser from "@/components/jyf-Parser/index" //富文本处理
  376. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  377. import recommend from "@/components/cm-module/productDetails/recommend" //相关推荐
  378. import cmParameter from "@/components/cm-module/productDetails/cm-parameter" //相关参数
  379. import cmService from "@/components/cm-module/productDetails/cm-service" //服务项目
  380. import couponTabs from '@/components/cm-module/coupon/tui-tabs.vue'
  381. import authorize from '@/common/config/authorize.js'
  382. import wxLogin from "@/common/config/wxLogin.js"
  383. import { debounce } from '@/common/config/common.js'
  384. var isPreviewImg;
  385. export default{
  386. components:{
  387. customP,
  388. parser,
  389. tuiSkeleton,
  390. recommend,
  391. cmPrice,
  392. cmAttributes,
  393. cmParameter,
  394. cmService,
  395. couponTabs
  396. },
  397. data(){
  398. return{
  399. clickPath:'/search/pages/search/search',
  400. html:'<div style="text-align: center;color:#333333;">暂无内容</div>',
  401. productNoneImage:'https://static.caimei365.com/app/img/icon/icon-pnone.png',
  402. mode:'round',
  403. iconClass:'icon-aixin',
  404. iconColor:'#ff9100',
  405. specClass: '', // 规格弹窗css类,控制开关动画
  406. isBtnType:'',
  407. isRequest:false,
  408. isScrollTop:false,
  409. current:0,
  410. shopId:0,
  411. isShareType:'',
  412. isHeaderPoduct:false,
  413. isNavbarFiexd:false,
  414. navbarFiexd:'none',
  415. ladderPriceFlag:'',
  416. ladderPriceList:'',
  417. isInvalid:false,
  418. isEvaluate:false,
  419. isAnimation:false,
  420. skeletonShow:true,
  421. isQuantity:false,
  422. isStock:false,
  423. disabled:false,
  424. isNoneDisabled:false,
  425. tabCurrentIndex:0,
  426. userId:'',
  427. shopID:'',
  428. productId:0,
  429. userIdentity:0, // 用户类型
  430. goodsData:{}, // 自定义数据
  431. shop:{},//供应商信息
  432. product:{},//采美
  433. productImage:[],
  434. retailPrice:0,
  435. buyRetailPrice:0,
  436. buyRetailPriceStep:1,
  437. stock:0,
  438. number:0,
  439. minBuyNumber:0,
  440. productsList:[],
  441. goodListData:[],
  442. headerBtnPosi: this.setHeaderBtnPosi(), // 获取设备顶部胶囊高度
  443. systeminfo: this.setSysteminfo(), // 获取设备信息
  444. isIphoneX:this.$store.state.isIphoneX,
  445. windowHeight: '',
  446. headerColor:false,
  447. backPage:1,
  448. nvabarData: { // 顶部自定义导航
  449. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  450. title: '' // 导航栏 中间的标题
  451. },
  452. linkPath:'',
  453. CustomBar:this.CustomBar, // 顶部导航栏高度
  454. popupShow0:false, // 参数弹窗
  455. popupShow1:false, // 培训方案
  456. popupShow2:false, // 优惠券
  457. tabSelectFlag:false,
  458. sectionPropsArr: [],
  459. scrollTopArray:[],
  460. sectionTopRangeArr: [],
  461. winHeight:'',
  462. isShowButton:true,
  463. isNoneSupplier:false,
  464. currentTab: 0,
  465. navbar: [
  466. { name: "未领取",num:3 },
  467. { name: "已领取",num:4 }
  468. ],
  469. dataList:[
  470. {
  471. maxMoney:5000,
  472. minMoney:1000,
  473. couponType:1,
  474. couponTime:'2021.06.28~2021.07.28',
  475. couponText:'华熙生物技术有限公司',
  476. useType:1,
  477. couponBtnType:0
  478. },
  479. {
  480. maxMoney:2000,
  481. minMoney:200,
  482. couponType:2,
  483. couponTime:'2021.06.28~2021.07.28',
  484. couponText:'华熙生物技术有限公司',
  485. useType:2,
  486. couponBtnType:0
  487. },
  488. {
  489. maxMoney:4000,
  490. minMoney:800,
  491. couponType:3,
  492. couponTime:'2021.06.28~2021.07.28',
  493. couponText:'华熙生物技术有限公司',
  494. useType:3,
  495. couponBtnType:0
  496. },
  497. {
  498. maxMoney:6000,
  499. minMoney:1000,
  500. couponType:4,
  501. couponTime:'2021.06.28~2021.07.28',
  502. couponText:'华熙生物技术有限公司',
  503. useType:1,
  504. couponBtnType:0
  505. },
  506. {
  507. maxMoney:6000,
  508. minMoney:1000,
  509. couponType:5,
  510. couponTime:'2021.06.28~2021.07.28',
  511. couponText:'华熙生物技术有限公司',
  512. useType:2,
  513. couponBtnType:0
  514. }
  515. ],
  516. }
  517. },
  518. computed: {
  519. ...mapState(['hasLogin','isWxAuthorize','identity'])
  520. },
  521. filters: {
  522. TypeFormat:function(value) {
  523. switch (value) {
  524. case 1:
  525. return '活动券';
  526. break;
  527. case 2:
  528. return '品类券';
  529. break;
  530. case 3:
  531. return '店铺券';
  532. break;
  533. case 4:
  534. return '专享券';
  535. break;
  536. case 5:
  537. return '新用户券';
  538. break;
  539. }
  540. },
  541. TypeFormatText:function(value) {
  542. switch (value) {
  543. case 1:
  544. return '全商城商品通用';
  545. break;
  546. case 2:
  547. return '仅限购买仪器类商品';
  548. break;
  549. case 3:
  550. return '仅可购买店铺';
  551. break;
  552. }
  553. }
  554. },
  555. onLoad(option) {
  556. this.productId = option.id;//获取商品ID
  557. this.isShareType = option.type
  558. this.linkPath = option.path
  559. this.isHeaderPoduct = true
  560. if(option.page == 2){
  561. this.backPage = option.page
  562. }
  563. if(this.isShareType =='share'){
  564. wxLogin.wxLoginAuthorize()
  565. }
  566. this.getWinHeight()
  567. },
  568. methods:{
  569. initData(){// 初始化商品详情查询
  570. this.ProductService.QueryProductDetils(
  571. {
  572. userId:this.userId,
  573. productId:this.productId,
  574. identity:this.identity,
  575. }
  576. )
  577. .then(response =>{
  578. this.skeletonShow = false
  579. this.productImage=[];
  580. this.shop = response.data.shop
  581. this.shopId = response.data.shopID
  582. this.product = response.data
  583. //已删除/已冻结
  584. if(this.product.validFlag === 0 || this.product.validFlag ==10){
  585. this.isInvalid = true
  586. }else if(this.product.validFlag === 9){
  587. if(this.userIdentity == 1){
  588. this.isInvalid = false
  589. }else{
  590. this.isInvalid = true
  591. }
  592. }
  593. this.ladderPriceFlag = this.product.ladderPriceFlag;
  594. this.html = this.product.productDetail == null ? this.html : this.$api.adaptRichTextImg(this.product.productDetail.detailInfo)
  595. this.stock = this.product.stock
  596. this.buyRetailPriceStep = this.product.step
  597. this.number = this.product.minBuyNumber
  598. this.minBuyNumber = this.product.minBuyNumber
  599. //处理商品图片列表
  600. this.product.imageList.forEach(item =>{
  601. this.productImage.push(item.image);
  602. })
  603. //购物车数量
  604. this.goodsData.cartCount = this.product.productCount
  605. //处理阶梯价格
  606. if(this.product.ladderPriceList!=null){
  607. this.ladderPriceList = this.product.ladderPriceList;
  608. }
  609. //拆分金额并转千分位格式显示
  610. if(this.product.price!=null){
  611. this.retailPrice = this.product.price.toFixed(2);
  612. this.buyRetailPrice = this.product.price;
  613. }
  614. //处理下架商品和售罄商品
  615. if(this.product.validFlag ==3 || this.stock == 0){
  616. this.isNoneDisabled = true
  617. this.disabled = true
  618. }else{
  619. this.disabled = false
  620. this.isNoneDisabled = false
  621. this.goodsData.disabledText = ''
  622. }
  623. if(this.product.priceFlag == 1){
  624. this.disabled = true
  625. }else if(this.product.priceFlag == 2){
  626. if(this.userIdentity == 4){
  627. this.disabled = true
  628. }else{
  629. this.disabled = false
  630. }
  631. }else{
  632. this.disabled = false
  633. }
  634. this.goodsData.disabled = this.disabled
  635. this.goodsData.isNoneDisabled = this.isNoneDisabled
  636. if(this.product.validFlag ==3){
  637. this.goodsData.disabledText = '下架'
  638. }
  639. if(this.product.validFlag ==10){
  640. this.goodsData.disabledText = '停售'
  641. }
  642. if(this.stock == 0){
  643. this.goodsData.disabledText = '售罄'
  644. }
  645. console.log(this.disabled);
  646. setTimeout(()=>{
  647. this.getSectionProps();
  648. },2000)
  649. this.isRequest = true
  650. })
  651. .catch(error =>{
  652. this.$util.msg(error.msg,2000);
  653. })
  654. },
  655. swiperChange(e) {//顶部商品图片切换
  656. const index = e.detail.current;
  657. this.current = index;
  658. },
  659. previewImg (index) {//顶部商品图片预览
  660. isPreviewImg = true
  661. let previewUrls = this.productImage
  662. uni.previewImage({
  663. current: index, //图片索引
  664. urls: previewUrls, //必须是http图片,本地图片无效
  665. longPressActions:''
  666. })
  667. },
  668. tabClick(index) {//商品详情&&供应商信息tab切换
  669. this.tabSelectFlag = true
  670. this.tabCurrentIndex = index;
  671. let classIndex = '.product-details'+index;
  672. uni.createSelectorQuery().select('.container-product-main').boundingClientRect((data)=>{//最外层盒子节点
  673.   uni.createSelectorQuery().select(classIndex).boundingClientRect((res)=>{//最外层盒子节点
  674.     uni.pageScrollTo({
  675.       duration:300,//过渡时间必须为0,uniapp bug,否则运行到手机会报错
  676.       scrollTop:res.top - data.top - 150,//滚动到实际距离是元素距离顶部的距离减去最外层盒子的滚动距离
  677.     })
  678. setTimeout(()=>{
  679. this.tabSelectFlag = false;
  680. },500)
  681.   }).exec()
  682. }).exec()
  683. },
  684. handleContact(e){//跳转小程序客服
  685. console.log(e.detail.path)
  686. console.log(e.detail.query)
  687. },
  688. buyProductCart(){//底部购物车按钮点击
  689. if(this.hasLogin){
  690. // 友盟埋点商品详情购物车入口点击事件
  691. if(process.env.NODE_ENV != 'development'){
  692. this.$uma.trackEvent('Um_Event_ProductShoppingCart', {
  693. Um_Key_PageName: '去购物车',
  694. Um_Key_SourcePage: '商品详情购物车入口',
  695. })
  696. }
  697. this.$api.navigateTo('/pages/goods/cart')
  698. }else{
  699. this.$api.navigateTo('/pages/login/login?type=1')
  700. }
  701. },
  702. btnGetConfirm(type){//加入购物车&&立即购买点击
  703. if(this.hasLogin){
  704. switch(type){
  705. case 'add':
  706. // 友盟埋点商品详情加入购物车点击事件
  707. if(process.env.NODE_ENV != 'development'){
  708. this.$uma.trackEvent('Um_Event_ProductAddCart', {
  709. Um_Key_PageName: '加入购物车',
  710. Um_Key_SourcePage: '商品详情',
  711. Um_Key_ProductID:`${this.product.productId}`
  712. })
  713. }
  714. break;
  715. case 'buy':
  716. // 友盟埋点商品详情立即购买点击事件
  717. if(process.env.NODE_ENV != 'development'){
  718. this.$uma.trackEvent('Um_Event_ProductBuyConfirm', {
  719. Um_Key_PageName: '立即购买',
  720. Um_Key_SourcePage: '商品详情',
  721. Um_Key_ProductID:`${this.product.productId}`
  722. })
  723. }
  724. break;
  725. }
  726. this.showSpec(type);
  727. }else{
  728. this.$api.navigateTo('/pages/login/login?type=1')
  729. }
  730. },
  731. changeCountAdd(){//popup弹窗数量增加按钮
  732. if(this.buyRetailPriceStep == 2){
  733. this.number+=this.minBuyNumber
  734. }else{
  735. this.number++
  736. }
  737. this.processActivityPrice()
  738. },
  739. changeCountSub(){//popup弹窗数量减按钮
  740. if(this.number<=this.minBuyNumber){
  741. this.number= this.minBuyNumber
  742. this.isQuantity =true
  743. this.$util.msg(`该商品最小起订量为${this.minBuyNumber}`,2000);
  744. return
  745. }else{
  746. if(this.buyRetailPriceStep == 2){
  747. this.number-=this.minBuyNumber
  748. }else{
  749. this.number--
  750. }
  751. this.processActivityPrice()
  752. this.isQuantity =false
  753. }
  754. },
  755. changeNumber(e){
  756. let _value = e.detail.value;
  757. if(!this.$api.isNumber(_value)){
  758. this.number = this.minBuyNumber
  759. }else if(_value < this.minBuyNumber){
  760. this.$util.msg(`该商品最小起订量为${this.minBuyNumber}`,2000);
  761. this.number = this.minBuyNumber
  762. }else if( _value % this.minBuyNumber !=0 ){
  763. this.$util.msg(`购买量必须为起订量的整数倍`,2000);
  764. this.number = this.minBuyNumber
  765. }else{
  766. this.number = e.detail.value
  767. }
  768. this.processActivityPrice()
  769. },
  770. processActivityPrice(){//单独处理活动价格和阶梯价格
  771. if(this.ladderPriceFlag == '0' && this.product.actStatus == 0 || this.product.actStatus == 1){
  772. this.buyRetailPrice = this.product.price
  773. }else{
  774. this.ladderPriceList.forEach((item,index)=>{
  775. if(this.number>=item.buyNum){
  776. this.buyRetailPrice = item.buyPrice
  777. }
  778. })
  779. }
  780. },
  781. receiveCoupon(coupon){//用户领取优惠券
  782. coupon.couponBtnType = 1;
  783. },
  784. showSpec(type) {//显示选择数量确认弹窗
  785. this.isBtnType = type
  786. this.specClass = 'show';
  787. if (this.ladderPriceFlag) {
  788. this.processActivityPrice()
  789. }
  790. },
  791. hideSpec() {//关闭选择数量确认弹窗
  792. this.specClass = 'hide';
  793. setTimeout(() => {
  794. this.specClass = 'none';
  795. }, 200);
  796. },
  797. btnConfirm() {//加入购物车&&立即购买跳转订单页并关闭弹窗
  798. // 友盟埋点商品详情确认购买商品点击事件
  799. if(process.env.NODE_ENV != 'development'){
  800. this.$uma.trackEvent('Um_Event_ProductShoppingConfirm', {
  801. Um_Key_PageName: '商品购买确认',
  802. Um_Key_SourcePage: '商品详情',
  803. Um_Key_ProductID:`${this.product.productId}`
  804. })
  805. }
  806. if(this.isBtnType == 'add'){
  807. this.getAddProductCart()
  808. }else{
  809. this.toConfirmation()
  810. }
  811. },
  812. toConfirmation(){//跳转确认订单页面
  813. this.specClass = 'hide';
  814. let productStp ={
  815. allPrice:this.number*this.buyRetailPrice,
  816. allCount:this.number,
  817. productID:this.product.productId,
  818. productCount:this.number
  819. }
  820. this.$api.navigateTo(`/pages/user/order/create-order?type=prodcut&data=${JSON.stringify({data:productStp})}`)
  821. setTimeout(() => {
  822. this.specClass = 'none';
  823. }, 200);
  824. },
  825. getAddProductCart(){//增加购物车成功和toast弹窗提示成功
  826. this.ProductService.shoppingAddCart({productID:this.productId,userID:this.userId,productCount:this.number}).then(response => {
  827. this.specClass = 'hide';
  828. this.$util.msg('加入购物车成功',1500,true,'success')
  829. this.isAnimation = true
  830. setTimeout(() => {this.specClass = 'none'}, 200)
  831. setTimeout(() => {this.isAnimation = false},2000)
  832. this.goodsData.cartCount = response.data;
  833. }).catch(error =>{
  834. this.$util.msg(error.msg,2000);
  835. })
  836. },
  837. setHeaderBtnPosi(){
  838. // 获得胶囊按钮位置信息
  839. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  840. return headerBtnPosi
  841. },
  842. setSysteminfo(){
  843. let systeminfo;
  844. uni.getSystemInfo({ // 获取设备信息
  845. success: (res) => {
  846. systeminfo = res
  847. },
  848. })
  849. return systeminfo
  850. },
  851. goIndex(){//商城首页
  852. uni.switchTab({
  853. url: '/pages/tabBar/home/index'
  854. });
  855. },
  856. goSupplier(){//跳供应商资料页
  857. this.$api.navigateTo('/supplier/pages/user/my-shop?shopId='+this.shopId)
  858. },
  859. discard(){
  860. //丢弃
  861. },
  862. onShare(res){//分享转发
  863. if (res.from === 'button') {
  864. // 来自页面内转发按钮
  865. }
  866. return {
  867. title: `${this.product.name}`,
  868. path: `pages/goods/product?type=share&id=${this.productId}`,
  869. imageUrl:`${this.productImage[0]}`
  870. }
  871. },
  872. showPopup(index){
  873. switch(index){
  874. case 0:
  875. this.popupShow0 = true
  876. break;
  877. case 1:
  878. this.popupShow1 = true
  879. break;
  880. case 2:
  881. this.popupShow2 = true
  882. break;
  883. }
  884. },
  885. hidePopup(index){
  886. switch(index){
  887. case 0:
  888. this.popupShow0 = false
  889. break;
  890. case 1:
  891. this.popupShow1 = false
  892. break;
  893. case 2:
  894. this.popupShow2 = false
  895. break;
  896. }
  897. },
  898. couponChange(e) {
  899. this.currentTab = e.index
  900. console.log('currentTab',this.currentTab)
  901. switch(this.currentTab){
  902. case 0:
  903. this.listClass = 'list-used'
  904. break;
  905. case 1:
  906. this.listClass = 'list-none'
  907. break;
  908. case 2:
  909. this.listClass = 'list-none'
  910. break;
  911. }
  912. },
  913. getSectionProps() {//获取每个tab对应区域的scrollTop值
  914. let className = '.product-details',
  915. sectionPropsArr = [];
  916. uni.createSelectorQuery().select('.container-product-main').boundingClientRect((data)=>{//最外层盒子节点
  917.   uni.createSelectorQuery().selectAll(className).boundingClientRect((res)=>{//最外层盒子节点
  918. res.forEach((item, index) => {
  919. sectionPropsArr.push({
  920. className: `${className}${index}`,
  921. scrollTop: item.top - data.top - 150
  922. })
  923. })
  924. this.sectionPropsArr = sectionPropsArr;
  925. this.sectionTopRangeArr = this.getSectionRange(sectionPropsArr);
  926.   }).exec()
  927. }).exec()
  928. },
  929. getSectionRange(arr) {// 获取每个tab对应区域的区间
  930. let sectionScrollTopList = [];
  931. for(let i = 0; i < arr.length; i++) {
  932. let thisScrollTop = arr[i].scrollTop;
  933. if(i < arr.length - 1) {
  934. let nextScrollTop = arr[i+1].scrollTop;
  935. if(i == 0) {
  936. sectionScrollTopList.push(`0-${thisScrollTop}`);
  937. } else if(i == arr.length - 1){
  938. sectionScrollTopList.push(`${thisScrollTop}-${nextScrollTop - this.winHeight}`);
  939. } else {
  940. sectionScrollTopList.push(`${thisScrollTop}-${nextScrollTop}`);
  941. }
  942. } else {
  943. sectionScrollTopList.push(`${thisScrollTop}-${thisScrollTop+500}`);
  944. }
  945. }
  946. return sectionScrollTopList;
  947. },
  948. activeTab: debounce((top, _this)=> {//当滑动时也能同步激活tab
  949. const { sectionTopRangeArr } = _this;
  950. if(sectionTopRangeArr.length > 0) {
  951. sectionTopRangeArr.forEach((item, index) => {
  952. let splitItem = item.split('-'),
  953. openInterval = Number(splitItem[0]),
  954. closedInterval = Number(splitItem[1]);
  955. if(top >= openInterval && top < closedInterval) {
  956. _this.tabCurrentIndex = index;
  957. }
  958. })
  959. }
  960. },100, true),
  961. getWinHeight() {
  962. this.winHeight = wx.getSystemInfoSync().windowHeight;
  963. },
  964. },
  965. onPageScroll(e){//实时获取到滚动的值
  966. const { scrollTop } = e;
  967. if(!this.tabSelectFlag) {
  968. this.activeTab(scrollTop, this);
  969. }
  970. if(e.scrollTop>60){
  971. this.headerColor = true
  972. this.navbarFiexd = 'fixed'
  973. this.isNavbarFiexd = true
  974. this.nvabarData={
  975. showCapsule: 1,
  976. title: '商品详情',
  977. }
  978. }else{
  979. this.headerColor = false
  980. this.isNavbarFiexd = false
  981. this.navbarFiexd = 'none'
  982. this.nvabarData={
  983. showCapsule: 1,
  984. title: '',
  985. }
  986. }
  987. if(e.scrollTop>700){
  988. this.isScrollTop = true
  989. }else{
  990. this.isScrollTop = false
  991. }
  992. },
  993. onShareAppMessage(res){//分享转发
  994. if (res.from === 'button') {
  995. // 来自页面内转发按钮
  996. }
  997. return {
  998. title: `${this.product.name}`,
  999. path: `pages/goods/product?type=share&id=${this.productId}`,
  1000. imageUrl:`${this.productImage[0]}`
  1001. }
  1002. },
  1003. onShow() {
  1004. this.$api.getStorage().then((resolve) => {
  1005. this.userId = resolve.userId ? resolve.userId : '';
  1006. this.userIdentity = resolve.userIdentity ? resolve.userIdentity : 0
  1007. this.shopID = resolve.shopId ? resolve.shopId : '';
  1008. if(this.userIdentity == 0 || this.userIdentity == 2 || this.userIdentity == 4){
  1009. this.isShowButton = true
  1010. }else{
  1011. this.isShowButton = false
  1012. }
  1013. if (isPreviewImg) {
  1014. isPreviewImg = false;
  1015. return;
  1016. } else {
  1017. this.initData();
  1018. }
  1019. }).catch(error =>{
  1020. this.initData();
  1021. })
  1022. }
  1023. }
  1024. </script>
  1025. <style lang="scss">
  1026. page{
  1027. background-color: #FFFFFF;
  1028. }
  1029. .banner-section{
  1030. width: 100%;
  1031. height: 750rpx;
  1032. position: relative;
  1033. }
  1034. .banner{
  1035. width: 100%;
  1036. height: 750rpx;
  1037. .product-img{
  1038. width: 750rpx;
  1039. }
  1040. image {
  1041. width: 100%;
  1042. height: 100%;
  1043. }
  1044. }
  1045. .swiper__dots-box{
  1046. position: absolute;
  1047. color: #fff;
  1048. bottom: 30rpx;
  1049. right: 0;
  1050. }
  1051. .product-wrap{
  1052. width: 100%;
  1053. height: auto;
  1054. padding: 24rpx 0 0 0;
  1055. background-color: #FFFFFF;
  1056. border-bottom: 20rpx solid #F7F7F7;
  1057. .productRemarks{
  1058. height: 48rpx;
  1059. width: 100%;
  1060. float: left;
  1061. line-height: 48rpx;
  1062. font-size: 24rpx;
  1063. color: #999999;
  1064. text-align: left;
  1065. }
  1066. .wrap-top{
  1067. width: 702rpx;
  1068. padding: 0 24rpx;
  1069. height: auto;
  1070. float: left;
  1071. padding-bottom:20rpx;
  1072. border-bottom: 1px solid #F8F8F8;
  1073. &.none{
  1074. .p-title{
  1075. color:#999999
  1076. }
  1077. }
  1078. .p-title{
  1079. width: 100%;
  1080. height: auto;
  1081. float: left;
  1082. position: relative;
  1083. .p-title-name{
  1084. width:602rpx;
  1085. height: auto;
  1086. float: left;
  1087. line-height:48rpx;
  1088. font-size: $font-size-28;
  1089. color: $text-color;
  1090. -o-text-overflow: ellipsis;
  1091. text-overflow: ellipsis;
  1092. display: -webkit-box;
  1093. word-break: break-all;
  1094. -webkit-box-orient: vertical;
  1095. -webkit-line-clamp: 2;
  1096. overflow: hidden;
  1097. &.indent{
  1098. text-indent: 95rpx;
  1099. }
  1100. }
  1101. .mclap-tag{
  1102. display: block;
  1103. width: 84rpx;
  1104. height: 32rpx;
  1105. background-image: linear-gradient(270deg, #f9c023 0%, #f83600 100%);
  1106. border-radius: 4rpx 48rpx 4px 4px;
  1107. line-height: 32rpx;
  1108. font-size: $font-size-22;
  1109. color: #FFFFFF;
  1110. text-align: center;
  1111. position: absolute;
  1112. left: 0;
  1113. top: 6rpx;
  1114. }
  1115. .p-title-share{
  1116. width: 96rpx;
  1117. height: 96rpx;
  1118. position: absolute;
  1119. right: 0;
  1120. text-align: center;
  1121. color: #999999;
  1122. font-size: $font-size-24;
  1123. box-sizing: border-box;
  1124. display: block;
  1125. background: transparent;
  1126. border-radius: 0;
  1127. border: 0;
  1128. margin: 0;
  1129. padding: 8rpx 0;
  1130. z-index: 990;
  1131. .icon-fenxiang1{
  1132. font-size: $font-size-34;
  1133. }
  1134. }
  1135. .tui-share-btn::after {
  1136. border: 0;
  1137. }
  1138. }
  1139. .wrap-main-text{
  1140. line-height: 56rpx;
  1141. color: #FF2A2A;
  1142. font-size: $font-size-26;
  1143. display: block;
  1144. float: left;
  1145. font-weight: normal;
  1146. }
  1147. .wrap-main-none{
  1148. display: block;
  1149. width: 256rpx;
  1150. height: 44rpx;
  1151. padding-left: 20rpx;
  1152. border-radius: 11rpx;
  1153. background: $btn-confirm;
  1154. float: right;
  1155. line-height: 44rpx;
  1156. color: #FFFFFF;
  1157. text-align: center;
  1158. font-size: $font-size-24;
  1159. }
  1160. .p-price-none{
  1161. height: 44rpx;
  1162. line-height: 44rpx;
  1163. float: left;
  1164. font-size: $font-size-24;
  1165. color: #666;
  1166. text-decoration: line-through;
  1167. margin-left: 8rpx;
  1168. }
  1169. .p-minBuy{
  1170. height: 44rpx;
  1171. line-height: 44rpx;
  1172. float: right;
  1173. padding: 0 18rpx;
  1174. border-radius: 22rpx;
  1175. background-color: #f7f7f7;
  1176. color: #7F7F7F;
  1177. font-size: 24rpx;
  1178. text-align: center;
  1179. .min-text{
  1180. margin: 0 6rpx;
  1181. }
  1182. }
  1183. .p-login{
  1184. height: 56rpx;
  1185. line-height: 56rpx;
  1186. color: $color-system;
  1187. font-size: $font-size-24;
  1188. &.grade{
  1189. .price-left{
  1190. float: left;
  1191. .none{
  1192. display: block;
  1193. font-size: $font-size-20;
  1194. line-height: 48rpx;
  1195. color: #4A4B54;
  1196. float: left;
  1197. font-weight: bold;
  1198. margin-left: 5rpx;
  1199. text{
  1200. letter-spacing: 4rpx;
  1201. font-size: $font-size-32;
  1202. }
  1203. }
  1204. }
  1205. }
  1206. .p-no{
  1207. float: left;
  1208. margin-right: 5rpx;
  1209. font-size: $font-size-28;
  1210. color: $text-color;
  1211. }
  1212. .p-login-btn{
  1213. display: block;
  1214. height: 44rpx;
  1215. padding: 0 10rpx 0 20rpx;
  1216. border-radius: 11rpx;
  1217. background: $btn-confirm;
  1218. float: right;
  1219. line-height: 44rpx;
  1220. color: #FFFFFF;
  1221. text-align: center;
  1222. font-size: $font-size-24;
  1223. }
  1224. }
  1225. }
  1226. .wrap-label{
  1227. float: left;
  1228. width: 100%;
  1229. box-sizing: border-box;
  1230. .label-a{
  1231. padding: 0 18rpx;
  1232. line-height: 32rpx;
  1233. font-size: $font-size-20;
  1234. color:$color-system;
  1235. text-align: center;
  1236. border-radius: 6rpx;
  1237. background:#ffe6dc;
  1238. margin: 0 20rpx 15rpx 0;
  1239. display: inline-block;
  1240. }
  1241. }
  1242. .wrap-top-price{
  1243. float: left;
  1244. width: 100%;
  1245. box-sizing: border-box;
  1246. .wrap-main-item{
  1247. width: 100%;
  1248. height: 56rpx;
  1249. .p-price{
  1250. height: 56rpx;
  1251. line-height: 56rpx;
  1252. float: left;
  1253. color: #FF2A2A;
  1254. font-weight: bold;
  1255. &.none{
  1256. text-decoration: line-through;
  1257. color: #999999;
  1258. font-weight: normal;
  1259. }
  1260. .txt{
  1261. margin:0 2rpx;
  1262. }
  1263. .txt.sm{
  1264. font-size: $font-size-26;
  1265. }
  1266. .txt.big{
  1267. font-size: $font-size-34;
  1268. }
  1269. }
  1270. }
  1271. .floor-item-act{
  1272. height: 56rpx;
  1273. text-align: center;
  1274. box-sizing: border-box;
  1275. float: left;
  1276. padding:10rpx 0;
  1277. margin-left: 10rpx;
  1278. .floor-tags{
  1279. float: right;
  1280. height: 28rpx;
  1281. border-radius: 6rpx;
  1282. background-color: #FFFFFF;
  1283. line-height: 28rpx;
  1284. color: $color-system;
  1285. text-align: center;
  1286. display: inline-block;
  1287. padding:0 16rpx;
  1288. font-size: $font-size-20;
  1289. margin-left: 15rpx;
  1290. border: 1px solid #E15616;
  1291. }
  1292. }
  1293. .floor-item-btn{
  1294. float: left;
  1295. height: 40rpx;
  1296. margin-top: 8rpx;
  1297. margin-left: 10rpx;
  1298. .btn{
  1299. line-height: 40rpx;
  1300. padding: 0 20rpx;
  1301. height: 40rpx;
  1302. background: $btn-confirm;
  1303. color: #FFFFFF;
  1304. font-size: $font-size-20;
  1305. border-radius: 4rpx;
  1306. }
  1307. }
  1308. }
  1309. .wrap-info{
  1310. float: left;
  1311. width: 702rpx;
  1312. padding: 24rpx 24rpx 0 24rpx;
  1313. border-bottom: 1px solid #F8F8F8;
  1314. .info-viewT{
  1315. width: 100%;
  1316. min-height: 40rpx;
  1317. font-size: $font-size-28;
  1318. color: $text-color;
  1319. line-height: 40rpx;
  1320. text-align: left;
  1321. &.none{
  1322. color: #999999;
  1323. }
  1324. .info-viewL{
  1325. min-width: 350rpx;
  1326. float: left;
  1327. margin-bottom: 24rpx;
  1328. }
  1329. .info-viewR{
  1330. min-width: 352rpx;
  1331. float: left;
  1332. margin-bottom: 24rpx;
  1333. }
  1334. }
  1335. .info-viewB{
  1336. width: 100%;
  1337. height: auto;
  1338. }
  1339. .info-f{
  1340. width: 50%;
  1341. float: left;
  1342. font-size: $font-size-28;
  1343. color: $text-color;
  1344. line-height: 40rpx;
  1345. margin-bottom: 24rpx;
  1346. text-align: left;
  1347. }
  1348. }
  1349. }
  1350. .product-seve{
  1351. width: 100%;
  1352. height: 60rpx;
  1353. background-color: #FFFFFF;
  1354. position: relative;
  1355. display: flex;
  1356. line-height: 60rpx;
  1357. .label{
  1358. font-size: $font-size-28;
  1359. color: #333333;
  1360. }
  1361. .iconfont{
  1362. color: #fea785;
  1363. margin-right: 20rpx;
  1364. font-size: $font-size-22;
  1365. }
  1366. .text{
  1367. font-size: $font-size-22;
  1368. color: #fea785;
  1369. margin-left: 10rpx;
  1370. }
  1371. }
  1372. .product-item-none{
  1373. min-height: 348rpx;
  1374. display: flex;
  1375. flex-direction: column;
  1376. align-items: center;
  1377. border-bottom: 20rpx solid #F7F7F7;
  1378. box-sizing: border-box;
  1379. padding: 40rpx 0;
  1380. .none-image{
  1381. width: 284rpx;
  1382. height: 225rpx;
  1383. }
  1384. .none-text{
  1385. text-align: center;
  1386. font-size: $font-size-28;
  1387. color: #fea785;
  1388. line-height: 40rpx;
  1389. }
  1390. }
  1391. .product-parameter{
  1392. width: 702rpx;
  1393. height: 90rpx;
  1394. padding: 0 24rpx;
  1395. background-color: #FFFFFF;
  1396. position: relative;
  1397. border-bottom: 20rpx solid #F7F7F7;
  1398. &.coupon{
  1399. .title{
  1400. color: #f94b4b;
  1401. }
  1402. .icon-xiayibu{
  1403. color: #f94b4b;
  1404. }
  1405. .coupon{
  1406. float: right;
  1407. box-sizing: border-box;
  1408. padding: 29rpx 0;
  1409. padding-right: 35rpx;
  1410. .tags{
  1411. height: 32rpx;
  1412. box-sizing: border-box;
  1413. border-radius: 8rpx;
  1414. background-color: #fff1eb;
  1415. line-height: 28rpx;
  1416. color: #f94b4b;
  1417. text-align: center;
  1418. display: inline-block;
  1419. padding:0 10rpx;
  1420. font-size: $font-size-20;
  1421. border: 1px solid #f94b4b;
  1422. float: right;
  1423. margin:0 6rpx;
  1424. }
  1425. }
  1426. }
  1427. .title{
  1428. line-height: 90rpx;
  1429. display: inline-block;
  1430. float: left;
  1431. font-size: $font-size-28;
  1432. color: #666666;
  1433. }
  1434. .name{
  1435. line-height: 90rpx;
  1436. display: inline-block;
  1437. float: left;
  1438. font-size: $font-size-28;
  1439. color: $text-color;
  1440. padding-right: 48rpx;
  1441. overflow: hidden;
  1442. text-overflow:ellipsis;
  1443. white-space: nowrap;
  1444. text-align: right;
  1445. }
  1446. .icon-xiayibu{
  1447. line-height: 90rpx;
  1448. display: inline-block;
  1449. position: absolute;
  1450. width: 48rpx;
  1451. top: 0;
  1452. right: 0;
  1453. color: #b2b2b2;
  1454. }
  1455. }
  1456. .product-supplier{
  1457. width: 100%;
  1458. height: 174rpx;
  1459. padding: 30rpx 24rpx;
  1460. box-sizing: border-box;
  1461. background-color: #FFFFFF;
  1462. position: relative;
  1463. box-sizing: border-box;
  1464. border-bottom: 20rpx solid #F7F7F7;
  1465. .logo{
  1466. width: 128rpx;
  1467. height: 92rpx;
  1468. float: left;
  1469. border: 1px solid #efefef;
  1470. border-radius: 6rpx;
  1471. image{
  1472. width: 100%;
  1473. height: 100%;
  1474. display: block;
  1475. border-radius: 6rpx;
  1476. }
  1477. }
  1478. .main{
  1479. width: 470rpx;
  1480. height: 92rpx;
  1481. float: left;
  1482. margin-left: 20rpx;
  1483. .name{
  1484. width: 100%;
  1485. line-height: 46rpx;
  1486. float: left;
  1487. font-size: $font-size-28;
  1488. color: $text-color;
  1489. float: right;
  1490. overflow: hidden;
  1491. text-overflow:ellipsis;
  1492. white-space: nowrap;
  1493. text-align: left;
  1494. }
  1495. .massgs{
  1496. width: 100%;
  1497. line-height: 46rpx;
  1498. float: left;
  1499. font-size: $font-size-24;
  1500. color: #999999;
  1501. .label{
  1502. float: left;
  1503. }
  1504. .p-stars{
  1505. float: left;
  1506. margin-left: 20rpx;
  1507. }
  1508. .acount{
  1509. float: right;
  1510. text{
  1511. color: $color-system;
  1512. }
  1513. }
  1514. }
  1515. }
  1516. .icon-xiayibu{
  1517. line-height: 154rpx;
  1518. display: inline-block;
  1519. position: absolute;
  1520. width: 48rpx;
  1521. top: 0;
  1522. right: 0;
  1523. color: #b2b2b2;
  1524. }
  1525. }
  1526. .product-details {
  1527. width: 100%;
  1528. background: #FFFFFF;
  1529. border-bottom: 20rpx solid #F7F7F7;
  1530. &.service{
  1531. border-bottom: none;
  1532. }
  1533. &.recommend{
  1534. background-color: #F7F7F7;
  1535. border-bottom: none;
  1536. .title{
  1537. .title-tab{
  1538. background-color: #F7F7F7;
  1539. color: $text-color;
  1540. }
  1541. }
  1542. }
  1543. .product-rich-text-none{
  1544. box-sizing: border-box;
  1545. padding: 0 24rpx;
  1546. text-align: left;
  1547. font-size: 24rpx;
  1548. color: #999999;
  1549. line-height: 60rpx;
  1550. }
  1551. .content-none{
  1552. width: 100%;
  1553. height: 80rpx;
  1554. line-height: 80rpx;
  1555. text-align: left;
  1556. font-size: $font-size-26;
  1557. color: #999999;
  1558. box-sizing: border-box;
  1559. padding: 0 24rpx;
  1560. }
  1561. .title{
  1562. width: 100%;
  1563. box-sizing: border-box;
  1564. padding: 0 24rpx;
  1565. .title-tab{
  1566. width: 100%;
  1567. height: 100rpx;
  1568. background: #fff;
  1569. z-index: 10;
  1570. font-size: $font-size-30;
  1571. text-align: left;
  1572. color: $text-color;
  1573. line-height: 100rpx;
  1574. font-weight: 600;
  1575. }
  1576. .title-msg{
  1577. width: 100%;
  1578. height: 236rpx;
  1579. padding: 18rpx;
  1580. background-color: rgba(225,86,22, 0.1);
  1581. color: $color-system;
  1582. box-sizing: border-box;
  1583. margin-bottom: 30rpx;
  1584. .tit{
  1585. line-height: 46rpx;
  1586. font-size: $font-size-24;
  1587. text-align: left;
  1588. }
  1589. .txt{
  1590. line-height: 38rpx;
  1591. font-size: $font-size-20;
  1592. text-align: justify;
  1593. }
  1594. }
  1595. }
  1596. .content{
  1597. width: 100%;
  1598. background-color: #FFFFFF;
  1599. }
  1600. }
  1601. .isLower{
  1602. width: 100%;
  1603. height: 116rpx;
  1604. line-height: 116rpx;
  1605. text-align: center;
  1606. color: #000000;
  1607. font-size: $font-size-32;
  1608. font-weight: bold;
  1609. }
  1610. .bottom-btn{
  1611. width: 100%;
  1612. height: 100rpx;
  1613. position: fixed;
  1614. bottom: 0;
  1615. left: 0;
  1616. background: #FFFFFF;
  1617. z-index: 99;
  1618. .bottom-le{
  1619. width: 300rpx;
  1620. height: 100rpx;
  1621. padding:10rpx 20rpx 10rpx 0;
  1622. float: left;
  1623. box-sizing: border-box;
  1624. .item-bt{
  1625. width: 80rpx;
  1626. height: 100%;
  1627. margin-right:15rpx;
  1628. display: flex;
  1629. float: left;
  1630. flex-direction: column;
  1631. align-items: center;
  1632. justify-content: center;
  1633. font-size: $font-size-22;
  1634. color: $text-color;
  1635. line-height: 34rpx;
  1636. position: relative;
  1637. .animation-num{
  1638. font-size:$font-size-32 ;
  1639. color: #FF2A2A;
  1640. position: absolute;
  1641. top: -12rpx;
  1642. right: 4rpx;
  1643. font-weight: bold;
  1644. }
  1645. .animation{
  1646. animation: showAmnation 2.2s ease-in-out both;
  1647. }
  1648. .restion{
  1649. animation: hideAmnation 1s ease-in-out both;
  1650. }
  1651. .icon-num{
  1652. position: absolute;
  1653. right:-12rpx;
  1654. top: -5rpx;
  1655. }
  1656. .icon-num.goleft{
  1657. right: 2rpx;
  1658. }
  1659. &:last-child{
  1660. margin-right: 0;
  1661. }
  1662. image {
  1663. width: 44rpx;
  1664. height: 44rpx;
  1665. }
  1666. button.contact-btn{
  1667. width: 100%;
  1668. height: 100%;
  1669. margin: 0;
  1670. padding: 0;
  1671. display: flex;
  1672. flex-direction: column;
  1673. align-items: center;
  1674. justify-content: center;
  1675. box-sizing: border-box;
  1676. font-size: $font-size-24;
  1677. text-align: center;
  1678. text-decoration: none;
  1679. line-height: 34rpx;
  1680. border-radius: 0;
  1681. -webkit-tap-highlight-color: transparent;
  1682. overflow: hidden;
  1683. color: $text-color;
  1684. background-color:#FFFFFF;
  1685. }
  1686. }
  1687. }
  1688. .bottom-ri{
  1689. width: 450rpx;
  1690. height: 100%;
  1691. float: right;
  1692. display: flex;
  1693. box-sizing: border-box;
  1694. padding: 13rpx 20rpx 13rpx 0;
  1695. .btn{
  1696. flex: 1;
  1697. width: 200rpx;
  1698. line-height: 80rpx;
  1699. text-align: center;
  1700. font-size: $font-size-24;
  1701. color: #FFFFFF;
  1702. }
  1703. .btn-cart{
  1704. background-color: #ffe6dc;
  1705. color: $color-system;
  1706. border-radius: 42rpx 0 0 42rpx;
  1707. }
  1708. .btn-cart.disabled{
  1709. background-color: #E1E1E1;
  1710. color: #FFFFFF;
  1711. }
  1712. .btn-bay{
  1713. background:linear-gradient(to right, #f28f31 0%, #e15616 100%);
  1714. border-radius: 0 42rpx 42rpx 0;
  1715. }
  1716. .btn-bay.disabled{
  1717. background: linear-gradient(135deg,rgba(242,143,49,0.5) 0%,rgba(225,86,22,0.5) 100%);
  1718. }
  1719. }
  1720. }
  1721. .uni-badge--small {
  1722. -webkit-transform: scale(.8);
  1723. -ms-transform: scale(.8);
  1724. transform: scale(.8);
  1725. -webkit-transform-origin: center center;
  1726. -ms-transform-origin: center center;
  1727. transform-origin: center center;
  1728. }
  1729. .uni-badge {
  1730. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  1731. -webkit-box-sizing: border-box;
  1732. box-sizing: border-box;
  1733. font-size: 12px;
  1734. line-height: 1;
  1735. display: inline-block;
  1736. padding: 3px 6px;
  1737. color: #333;
  1738. border-radius: 100px;
  1739. background-color: #f1f1f1;
  1740. }
  1741. .uni-badge-error {
  1742. color: #fff;
  1743. background-color: #dd524d;
  1744. }
  1745. .product-topnav{
  1746. width: 100%;
  1747. height: 174rpx;
  1748. box-sizing: border-box;
  1749. background: #FFFFFF;
  1750. z-index: 990;
  1751. position: fixed;
  1752. opacity: 1;
  1753. left: 0;
  1754. &.fixed{
  1755. animation: showFixedColor 0.1s ease-in-out both;
  1756. }
  1757. &.none{
  1758. animation: hideFixedColor 0.1s ease-in-out both;
  1759. }
  1760. .navbar {
  1761. width: 100%;
  1762. height: 60rpx;
  1763. box-sizing: border-box;
  1764. padding: 0 24rpx;
  1765. display: flex;
  1766. .nav-item {
  1767. display: flex;
  1768. flex: 1;
  1769. justify-content: center;
  1770. align-items: center;
  1771. height: 60rpx;
  1772. font-size: $font-size-28;
  1773. color: $text-color;
  1774. position: relative;
  1775. float: left;
  1776. position: relative;
  1777. .line{
  1778. width: 60rpx;
  1779. height: 2px;
  1780. border-radius: 1px;
  1781. background: #FFFFFF;
  1782. position: absolute;
  1783. bottom: 0;
  1784. left: 50%;
  1785. margin-left: -30rpx;
  1786. }
  1787. &.current{
  1788. color:$color-system;
  1789. .line{
  1790. background: $color-system;
  1791. }
  1792. }
  1793. }
  1794. }
  1795. .search-input{
  1796. width: 100%;
  1797. height: 114rpx;
  1798. padding:24rpx;
  1799. box-sizing: border-box;
  1800. .gosearch-btn{
  1801. width: 100%;
  1802. height: 100%;
  1803. border-radius: 40rpx;
  1804. margin: 0 auto;
  1805. font-size: 26rpx;
  1806. line-height: 66rpx;
  1807. color: #B2B2B2;
  1808. position: relative;
  1809. box-sizing: border-box;
  1810. padding-left: 66rpx;
  1811. &.fixed{
  1812. background: rgba(70,70,70,0.1);
  1813. }
  1814. &.none{
  1815. background: rgba(70,70,70,0.1);
  1816. }
  1817. .search-icon{
  1818. width: 66rpx;
  1819. height: 66rpx;
  1820. position:absolute ;
  1821. left: 0;
  1822. top: 2rpx;
  1823. text-align: center;
  1824. line-height: 66rpx;
  1825. .icon-iconfonticonfontsousuo1{
  1826. margin:0 6rpx;
  1827. font-size: $font-size-34;
  1828. color: #B2B2B2;
  1829. z-index: 10;
  1830. }
  1831. }
  1832. .search-text{
  1833. font-size: $font-size-24;
  1834. line-height: 66rpx;
  1835. color: #B2B2B2;
  1836. }
  1837. }
  1838. }
  1839. }
  1840. @keyframes showFixedColor {
  1841. 0% {background: rgba(255,255,255,0);}
  1842. 50% {background: rgba(255,255,255,0.5);}
  1843. 100% {background: rgba(255,255,255,1);}
  1844. }
  1845. @keyframes hideFixedColor {
  1846. 0% {background: rgba(255,255,255,1);}
  1847. 50% {background: rgba(255,255,255,0.5);}
  1848. 100% {background: rgba(255,255,255,0);}
  1849. }
  1850. /* 加入购物模态层*/
  1851. @keyframes showPopup {
  1852. 0% {
  1853. opacity: 0;
  1854. }
  1855. 100% {
  1856. opacity: 1;
  1857. }
  1858. }
  1859. @keyframes hidePopup {
  1860. 0% {
  1861. opacity: 1;
  1862. }
  1863. 100% {
  1864. opacity: 0;
  1865. }
  1866. }
  1867. @keyframes showLayer {
  1868. 0% {
  1869. transform: translateY(0);
  1870. }
  1871. 100% {
  1872. transform: translateY(-100%);
  1873. }
  1874. }
  1875. @keyframes hideLayer {
  1876. 0% {
  1877. transform: translateY(-100%);
  1878. }
  1879. 100% {
  1880. transform: translateY(0);
  1881. }
  1882. }
  1883. @keyframes showAmnation {
  1884. 0% {
  1885. top: -12rpx;
  1886. opacity: 0;
  1887. }
  1888. 50% {
  1889. top: -60rpx;
  1890. opacity: 1;
  1891. }
  1892. 100% {
  1893. top: -100rpx;
  1894. opacity: 0;
  1895. }
  1896. }
  1897. @keyframes hideAmnation {
  1898. 0% {
  1899. top: -100rpx;
  1900. opacity: 0;
  1901. }
  1902. 100% {
  1903. top: -12rpx;
  1904. opacity: 0;
  1905. }
  1906. }
  1907. .popup {
  1908. position: fixed;
  1909. top: 0;
  1910. width: 100%;
  1911. height: 100%;
  1912. z-index: 999;
  1913. display: none;
  1914. .mask{
  1915. position: fixed;
  1916. top: 0;
  1917. width: 100%;
  1918. height: 100%;
  1919. z-index: 21;
  1920. background-color: rgba(0, 0, 0, 0.6);
  1921. }
  1922. .layer {
  1923. position: fixed;
  1924. z-index: 22;
  1925. bottom: -294rpx;
  1926. width: 702rpx;
  1927. padding: 24rpx 24rpx 36rpx 24rpx;
  1928. height: 260rpx;
  1929. border-radius: 20rpx 20rpx 0 0;
  1930. background-color: #fff;
  1931. display: flex;
  1932. flex-wrap: wrap;
  1933. align-content: space-between;
  1934. .content {
  1935. width: 100%;
  1936. }
  1937. .btn {
  1938. width: 100%;
  1939. height: 88rpx;
  1940. margin-top: 20rpx;
  1941. .button {
  1942. width: 100%;
  1943. height: 88rpx;
  1944. color: #fff;
  1945. display: flex;
  1946. align-items: center;
  1947. justify-content: center;
  1948. background: $btn-confirm;
  1949. font-size: $font-size-28;
  1950. border-radius: 44rpx;
  1951. }
  1952. }
  1953. }
  1954. &.show {
  1955. display: block;
  1956. .mask{
  1957. animation: showPopup 0.2s linear both;
  1958. }
  1959. .layer {
  1960. animation: showLayer 0.2s linear both;
  1961. }
  1962. }
  1963. &.hide {
  1964. display: block;
  1965. .mask{
  1966. animation: hidePopup 0.2s linear both;
  1967. }
  1968. .layer {
  1969. animation: hideLayer 0.2s linear both;
  1970. }
  1971. }
  1972. &.none {
  1973. display: none;
  1974. }
  1975. &.service {
  1976. .row {
  1977. margin: 30upx 0;
  1978. .title {
  1979. font-size: 30upx;
  1980. margin: 10upx 0;
  1981. }
  1982. .description {
  1983. font-size: 28upx;
  1984. color: #999;
  1985. }
  1986. }
  1987. }
  1988. .layer-smimg{
  1989. width: 114rpx;
  1990. height: 114rpx;
  1991. float: left;
  1992. border-radius: 10rpx;
  1993. margin-right: 24rpx;
  1994. image{
  1995. width: 114rpx;
  1996. height: 114rpx;
  1997. border-radius: 10rpx;
  1998. }
  1999. }
  2000. .layer-nunbox{
  2001. justify-content: space-between;
  2002. align-items: center;
  2003. width: 536rpx;
  2004. height: auto;
  2005. float: left;
  2006. .layer-nunbox-t{
  2007. width: 100%;
  2008. height:44rpx;
  2009. position:relative;
  2010. display: flex;
  2011. margin-bottom: 10rpx;
  2012. .text{
  2013. font-size: $font-size-24;
  2014. line-height: 48rpx;
  2015. color: #999999;
  2016. }
  2017. .layer-nunbox-text{
  2018. line-height: 44rpx;
  2019. font-size: $font-size-28;
  2020. }
  2021. .number-box{
  2022. display: flex;
  2023. justify-content: center;
  2024. align-items: center;
  2025. border:2rpx solid #ffe6dc;
  2026. border-radius: 30rpx;
  2027. height: 48rpx;
  2028. margin-left: 20rpx;
  2029. .iconfont{
  2030. font-size: $font-size-24;
  2031. padding:0 18rpx;
  2032. color: #999999;
  2033. text-align: center;
  2034. line-height: 48rpx;
  2035. font-weight: bold;
  2036. background: #fef6f3;
  2037. &.icon-jianhao{
  2038. border-radius: 30rpx 0 0 30rpx;
  2039. }
  2040. &.icon-jiahao{
  2041. border-radius: 0 30rpx 30rpx 0;
  2042. }
  2043. }
  2044. .btn-input{
  2045. width: 62rpx;
  2046. height: 48rpx;
  2047. line-height: 48rpx;
  2048. background: #FFFFFF;
  2049. border-radius: 4rpx;
  2050. text-align: center;
  2051. font-size: $font-size-28;
  2052. }
  2053. }
  2054. .product-step{
  2055. position: absolute;
  2056. left: 45rpx;
  2057. bottom: 0;
  2058. height: 44rpx;
  2059. background: #FFFFFF;
  2060. }
  2061. }
  2062. .layer-nunbox-b{
  2063. width: 100%;
  2064. height:44rpx;
  2065. margin-top: 13rpx;
  2066. }
  2067. .text{
  2068. line-height: 44rpx;
  2069. font-size: $font-size-28;
  2070. .p{
  2071. color: #FF2A2A;
  2072. }
  2073. .p:first-child{
  2074. margin-left: 30rpx;
  2075. }
  2076. .p.sm{
  2077. font-size: $font-size-24;
  2078. }
  2079. }
  2080. }
  2081. }
  2082. .tui-popup-box {
  2083. position: relative;
  2084. box-sizing: border-box;
  2085. min-height: 220rpx;
  2086. padding:24rpx 24rpx 0 24rpx;
  2087. .tui-popup-close{
  2088. width: 90rpx;
  2089. height: 90rpx;
  2090. position: absolute;
  2091. right: 0;
  2092. top: 24rpx;
  2093. line-height: 90rpx;
  2094. text-align: center;
  2095. color: #b2b2b2;
  2096. .icon-iconfontguanbi{
  2097. font-size: $font-size-40;
  2098. }
  2099. }
  2100. .title{
  2101. font-size: $font-size-34;
  2102. color: $text-color;
  2103. line-height: 88rpx;
  2104. text-align: center;
  2105. float: left;
  2106. width: 100%;
  2107. height: 88rpx;
  2108. font-weight: bold;
  2109. }
  2110. .tui-popup-main{
  2111. width: 100%;
  2112. float: left;
  2113. &.coupon{
  2114. padding-bottom: 24rpx;
  2115. }
  2116. .tui-popup-scroll{
  2117. width: 100%;
  2118. height: 500rpx;
  2119. .coupon-list{
  2120. width: 100%;
  2121. height: 200rpx;
  2122. margin-top: 24rpx;
  2123. box-sizing: border-box;
  2124. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-uesb@2x.png);
  2125. background-size: cover;
  2126. .list-cell-le{
  2127. width: 224rpx;
  2128. height: 100%;
  2129. box-sizing: border-box;
  2130. padding: 37rpx 0;
  2131. float: left;
  2132. .coupon-maxMoney{
  2133. width: 100%;
  2134. height: 78rpx;
  2135. line-height: 78rpx;
  2136. font-size: 56rpx;
  2137. color: #FFFFFF;
  2138. text-align: center;
  2139. .small{
  2140. font-size: $font-size-24;
  2141. }
  2142. }
  2143. .coupon-minMoney{
  2144. width: 100%;
  2145. height: 33rpx;
  2146. line-height: 33rpx;
  2147. font-size: $font-size-24;
  2148. color: #FFFFFF;
  2149. text-align: center;
  2150. }
  2151. }
  2152. .list-cell-ri{
  2153. width: 478rpx;
  2154. height: 100%;
  2155. box-sizing: border-box;
  2156. padding: 20rpx 24rpx 0 24rpx;
  2157. float: right;
  2158. .list-cell-top{
  2159. width: 100%;
  2160. height: 121rpx;
  2161. float: left;
  2162. border-bottom: 1px solid #e1e1e1;
  2163. .list-cell-type{
  2164. width: 286rpx;
  2165. height: 100%;
  2166. float: left;
  2167. .list-cell-tags{
  2168. width: 100%;
  2169. height: 32rpx;
  2170. margin-bottom: 7rpx;
  2171. .tags{
  2172. display: inline-block;
  2173. padding: 0 10rpx;
  2174. height: 32rpx;
  2175. line-height: 32rpx;
  2176. background-color: #ffdcce;
  2177. color: #f94b4b;
  2178. font-size: $font-size-20;
  2179. border-radius: 8rpx;
  2180. text-align: center;
  2181. float: left;
  2182. }
  2183. }
  2184. .list-cell-texts{
  2185. width: 100%;
  2186. height: auto;
  2187. line-height:35rpx;
  2188. text-overflow:ellipsis;
  2189. display: -webkit-box;
  2190. word-break: break-all;
  2191. -webkit-box-orient: vertical;
  2192. -webkit-line-clamp: 2;
  2193. overflow: hidden;
  2194. font-size: 26rpx;
  2195. color: #333333;
  2196. }
  2197. }
  2198. .list-cell-btn{
  2199. width: 128rpx;
  2200. height: 100%;
  2201. float: right;
  2202. .icon-used{
  2203. width: 100%;
  2204. height: 100%;
  2205. box-sizing: border-box;
  2206. padding-top: 57rpx;
  2207. .icon-used-btn{
  2208. width: 128rpx;
  2209. height: 48rpx;
  2210. border-radius: 28rpx;
  2211. line-height: 48rpx;
  2212. font-size: $font-size-26;
  2213. text-align: center;
  2214. &.receive{
  2215. background-image: linear-gradient(270deg, #f94b4b 0%, #feb673 100%);;
  2216. color: #FFFFFF;
  2217. }
  2218. &.make{
  2219. border: solid 1px #f94b4b;
  2220. color: #f94b4b;
  2221. }
  2222. }
  2223. }
  2224. }
  2225. }
  2226. .list-cell-time{
  2227. width: 100%;
  2228. height: 58rpx;
  2229. line-height: 58rpx;
  2230. text-align: left;
  2231. font-size: $font-size-20;
  2232. color: #999999;
  2233. }
  2234. }
  2235. }
  2236. &.train{
  2237. height: 240rpx;
  2238. }
  2239. .content-tr{
  2240. width: 100%;
  2241. min-height: 58rpx;
  2242. line-height: 58rpx;
  2243. display: flex;
  2244. .content-td{
  2245. display: flex;
  2246. flex: 3;
  2247. font-size: $font-size-26;
  2248. color: #999999;
  2249. line-height: 58rpx;
  2250. text-align: left;
  2251. }
  2252. .content-th{
  2253. display: flex;
  2254. flex: 7;
  2255. font-size: $font-size-26;
  2256. color: #333333;
  2257. line-height: 58rpx;
  2258. text-align: left;
  2259. padding-left: 10rpx;
  2260. }
  2261. }
  2262. }
  2263. }
  2264. }
  2265. .tui-popup-btn {
  2266. width: 100%;
  2267. height: auto;
  2268. float: left;
  2269. margin-top: 24rpx;
  2270. .tui-button{
  2271. width: 100%;
  2272. height: 88rpx;
  2273. background: $btn-confirm;
  2274. line-height: 88rpx;
  2275. text-align: center;
  2276. color: #FFFFFF;
  2277. font-size: $font-size-28;
  2278. border-radius: 44rpx;
  2279. }
  2280. }
  2281. /*富文本样式*/
  2282. rich-text.p{
  2283. width: 702rpx !important;
  2284. padding: 0 24rpx;
  2285. text-align: justify;
  2286. }
  2287. rich-text.img{
  2288. width: 100%;
  2289. height: auto;
  2290. }
  2291. </style>