product.vue 73 KB

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