product.vue 70 KB

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