product.vue 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969
  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 && 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 && 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 '@/utils/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. const dataStr = JSON.stringify(response.data)
  846. this.product = JSON.parse(dataStr)
  847. this.skuProduct = JSON.parse(dataStr)
  848. console.log('is same obj',this.product === this.skuProduct)
  849. this.skusCount = this.product.skus.length
  850. this.addParams.skuId = this.product.skuId
  851. if (this.product.tinyTypeName) {
  852. productLabel = this.product.tinyTypeName
  853. } else if (!this.product.tinyTypeName && this.product.smallTypeName) {
  854. productLabel = this.product.smallTypeName
  855. } else {
  856. productLabel = this.product.bigTypeName
  857. }
  858. //设置统计数据标签
  859. uni.setStorageSync(
  860. 'productLabel',
  861. `${productLabel}-${this.product.brandName ? this.product.brandName : ''}`
  862. )
  863. //校验是否为ross
  864. this.checkedIsRossSet()
  865. //判断是否可以跳转供应商主页
  866. if (this.product.shopType === 2) {
  867. this.isShowCaimeiShop = true
  868. }
  869. // 判断是否显示已收藏
  870. if (this.product.userLike && this.product.userLike == 1) {
  871. this.collectionType = true
  872. } else {
  873. this.collectionType = false
  874. }
  875. //已删除/已冻结
  876. if (this.product.validFlag === 0 || this.product.validFlag == 10) {
  877. this.isInvalid = true
  878. } else if (this.product.validFlag === 9) {
  879. if (this.userIdentity == 1) {
  880. this.isInvalid = false
  881. } else {
  882. this.isInvalid = true
  883. }
  884. }
  885. this.ladderPriceFlag = this.product.ladderPriceFlag
  886. this.html = this.adaptRichTextImg(this.product)
  887. this.stock = this.product.stock
  888. this.number = this.product.minBuyNumber
  889. this.minBuyNumber = this.product.minBuyNumber
  890. //处理商品图片列表
  891. this.product.imageList.forEach(item => {
  892. this.productImage.push(item.image)
  893. })
  894. //处理阶梯价格
  895. if (this.product.ladderPriceList != null) {
  896. this.ladderPriceList = this.product.ladderPriceList
  897. }
  898. //拆分金额并转千分位格式显示
  899. if (this.product.price != null) {
  900. this.retailPrice = this.product.price.toFixed(2)
  901. }
  902. //处理下架商品和售罄商品
  903. if (this.product.validFlag == 3 || this.product.saleOutFlag === 1) {
  904. this.isNoneDisabled = true
  905. this.disabled = true
  906. } else {
  907. this.disabled = false
  908. this.isNoneDisabled = false
  909. this.goodsData.disabledText = ''
  910. }
  911. if (this.product.priceFlag == 1) {
  912. this.disabled = true
  913. } else if (this.product.priceFlag == 2) {
  914. if (this.userIdentity == 4 && this.vipFlag != 1) {
  915. this.disabled = true
  916. } else {
  917. this.disabled = false
  918. }
  919. } else if (this.product.priceFlag == 3) {
  920. if (this.userIdentity == 4) {
  921. this.disabled = true
  922. } else if (this.userIdentity == 2 && this.firstClubType != 1) {
  923. this.disabled = true
  924. } else {
  925. this.disabled = false
  926. }
  927. } else {
  928. this.disabled = false
  929. }
  930. this.goodsData.disabled = this.disabled
  931. this.goodsData.isNoneDisabled = this.isNoneDisabled
  932. if (this.product.validFlag == 3) {
  933. this.goodsData.disabledText = '下架'
  934. }
  935. if (this.product.validFlag == 10) {
  936. this.goodsData.disabledText = '停售'
  937. }
  938. if (this.product.saleOutFlag === 1) {
  939. this.goodsData.disabledText = '售罄'
  940. }
  941. console.log(this.disabled)
  942. // setTimeout(() => {
  943. // this.getSectionProps()
  944. // }, 2000)
  945. this.handleShowProductType(this.product.commodityDetailsFlag)
  946. if ((this.hasLogin && this.userIdentity == 2) || this.userIdentity == 4) {
  947. this.ProductCartNumber()
  948. }
  949. this.queryProductDetilsCoupons()
  950. this.getCommodityCombinationList()
  951. // 特殊商品退货须知
  952. this.returnGoodsStutas = response.data.returnGoodsStutas && response.data.returnGoodsStutas === 2 // 1:可以 2:不可以
  953. this.helpContent = response.data.helpContent
  954. setTimeout(() => {
  955. this.skeletonShow = false
  956. this.isRequest = true
  957. }, 1000)
  958. })
  959. .catch(error => {
  960. this.$util.msg(error.msg, 2000)
  961. })
  962. },
  963. handleShowProductType(flag = '') {
  964. // 根据商品详情可见度显示弹窗 flag 1.所有人可见 2.所有机构可见 3.仅会员机构可见 4.仅医美机构可见
  965. const flagMap = {
  966. '2': true,
  967. '3': true,
  968. '4': true
  969. }
  970. if (!this.hasLogin) {
  971. this.showModal = flagMap[flag]
  972. return
  973. }
  974. if (this.vipFlag === 1) {
  975. this.showModal = false
  976. return
  977. }
  978. if (flag === 3 && this.userIdentity === 4) {
  979. this.showModal = true
  980. return
  981. }
  982. if (flag === 4 && this.userIdentity === 4) {
  983. this.showModal = true
  984. return
  985. }
  986. if (flag === 4 && this.userIdentity === 2 && this.firstClubType !== 1) {
  987. this.showModal = true
  988. return
  989. }
  990. },
  991. hideMobel1() {
  992. this.modal1 = false
  993. this.$api.navigateBack(1)
  994. },
  995. adaptRichTextImg(product) {
  996. // 商品详情
  997. let defaulHtml = '<div style="text-align: center;color:#333333;">暂无内容</div>'
  998. let html = ''
  999. if (product.productDetailChose == 1) {
  1000. // 同资质机构显示商品详情
  1001. html = product.productDetail ? this.$api.adaptRichTextImg(product.productDetail.detailInfo) : defaulHtml
  1002. } else {
  1003. if (this.hasLogin && this.userIdentity != 4) {
  1004. html = product.productDetail
  1005. ? this.$api.adaptRichTextImg(product.productDetail.detailInfo)
  1006. : defaulHtml
  1007. } else {
  1008. if (product.productDetail.commonDetailInfo) {
  1009. html = product.productDetail
  1010. ? this.$api.adaptRichTextImg(product.productDetail.commonDetailInfo)
  1011. : defaulHtml
  1012. } else {
  1013. html = defaulHtml
  1014. }
  1015. }
  1016. }
  1017. return html
  1018. },
  1019. getCommodityCombinationList() {
  1020. // 初始化商品详情配套商品
  1021. this.ProductService.getCommodityCombinationList({
  1022. userId: this.userId,
  1023. productId: this.productId,
  1024. source: 2,
  1025. pageNum: 1,
  1026. pageSize: 4
  1027. })
  1028. .then(response => {
  1029. const data = response.data
  1030. this.supportingList = data.results
  1031. this.supportingNum = data.totalRecord
  1032. if (this.supportingList.length > 0) {
  1033. if (!this.hasLogin || this.userIdentity == 2 || this.userIdentity == 4) {
  1034. this.isShowSupportingList = true
  1035. }
  1036. }
  1037. })
  1038. .catch(error => {
  1039. console.log('获取组合商品列表失败')
  1040. })
  1041. },
  1042. queryProductDetilsCoupons() {
  1043. // 初始化商品详情优惠券信息
  1044. this.ProductService.QueryProductDetilsCoupons(this.couponParam)
  1045. .then(response => {
  1046. this.productCoupon = response.data.list
  1047. })
  1048. .catch(error => {
  1049. console.log('获取优惠券列表失败')
  1050. })
  1051. },
  1052. queryPopupCoupons() {
  1053. // 获取弹窗优惠券列表
  1054. this.ProductService.QueryProductDetilsCoupons(this.couponParam)
  1055. .then(response => {
  1056. let data = response.data
  1057. this.navbar[0].num = data.notCouponNum
  1058. this.navbar[1].num = data.couponNum
  1059. if (data.couponList && data.couponList.length > 0) {
  1060. this.productCouponList = data.couponList
  1061. this.isCouponEmpty = false
  1062. } else {
  1063. this.isCouponEmpty = true
  1064. }
  1065. })
  1066. .catch(error => {
  1067. console.log('获取优惠券列表失败')
  1068. })
  1069. },
  1070. ProductCartNumber() {
  1071. // 获取用户购物车储量
  1072. this.ProductService.ProductCartNumber({ userId: this.userId })
  1073. .then(response => {
  1074. this.bottomCartNumber = response.data
  1075. })
  1076. .catch(error => {
  1077. console.log('获取购物车数量失败')
  1078. })
  1079. },
  1080. receiveCoupon(coupon) {
  1081. // 点击优惠券领取按钮,友盟埋点收集领取优惠券
  1082. if (process.env.NODE_ENV != 'development') {
  1083. this.$uma.trackEvent('Um_Event_productCouponReceive', {
  1084. Um_Key_PageName: '商品详情',
  1085. Um_Key_EvenName: '领取优惠券',
  1086. Um_Key_CouponId: `${coupon.couponId}`
  1087. })
  1088. }
  1089. this.ProductService.ReceiveCoupon({
  1090. userId: this.couponParam.userId,
  1091. couponId: coupon.couponId,
  1092. source: 1
  1093. })
  1094. .then(response => {
  1095. this.$util.msg('领取成功', 1500, true, 'success')
  1096. setTimeout(() => {
  1097. this.currentTab = 1
  1098. this.couponParam.status = 2
  1099. this.queryPopupCoupons()
  1100. }, 1500)
  1101. })
  1102. .catch(error => {
  1103. this.$util.msg(error.msg, 2000)
  1104. })
  1105. },
  1106. toDeductCoupon(coupon) {
  1107. // 点击采美豆抵扣优惠券
  1108. if (process.env.NODE_ENV != 'development') {
  1109. this.$uma.trackEvent('Um_Event_userCouponCollectionBuy', {
  1110. Um_Key_PageName: '领券中心',
  1111. Um_Key_EvenName: '抵扣优惠券',
  1112. Um_Key_CouponId: `${coupon.couponId}`
  1113. })
  1114. }
  1115. if (this.hasLogin) {
  1116. if (this.userIdentity === 1 || this.userIdentity === 3) {
  1117. this.$util.msg('您的身份暂不支持领取优惠券', 2000)
  1118. return
  1119. }
  1120. this.WeChatPayCouponBeans(coupon)
  1121. } else {
  1122. this.$api.navigateTo('/pages/login/login')
  1123. }
  1124. },
  1125. WeChatPayCouponBeans(coupon) {
  1126. // 采美豆抵扣优惠券
  1127. this.PayService.WeChatPayCouponBeans({
  1128. source: 1, //领取渠道 1 小程序 2 网站
  1129. userId: this.couponParam.userId,
  1130. couponId: coupon.couponId
  1131. })
  1132. .then(response => {
  1133. this.$util.msg('抵扣成功', 1500)
  1134. setTimeout(() => {
  1135. this.currentTab = 1
  1136. this.couponParam.status = 2
  1137. this.queryPopupCoupons()
  1138. }, 1500)
  1139. })
  1140. .catch(error => {
  1141. this.$util.msg(error.msg, 2000)
  1142. })
  1143. },
  1144. toPayCoupon(coupon) {
  1145. // 点击购买优惠券,友盟埋点收集购买优惠券
  1146. if (process.env.NODE_ENV != 'development') {
  1147. this.$uma.trackEvent('Um_Event_productCouponBuy', {
  1148. Um_Key_PageName: '商品详情',
  1149. Um_Key_EvenName: '购买优惠券',
  1150. Um_Key_CouponId: `${coupon.couponId}`
  1151. })
  1152. }
  1153. this.createCouponRecord(coupon)
  1154. },
  1155. createCouponRecord(coupon) {
  1156. // 生成购买优惠券记录Id
  1157. this.PayService.WeChatCouponRecord({
  1158. userId: this.userId,
  1159. couponId: coupon.couponId
  1160. })
  1161. .then(response => {
  1162. this.MiniWxPayFor(coupon, response.data.couponRecordId)
  1163. })
  1164. .catch(error => {
  1165. if (error.code == -1) {
  1166. //个人机构不能购买
  1167. this.contentModalText = '该优惠券仅限医美机构购买,请升级为医美机构后再次购买。'
  1168. this.modal = true
  1169. } else if (error.code == -2) {
  1170. //会员机构不是医美机构不能购买
  1171. this.$util.msg('该优惠券仅限医美机构购买', 2000)
  1172. }
  1173. })
  1174. },
  1175. async MiniWxPayFor(coupon, couponRecordId) {
  1176. const wechatcode = await authorize.getCode('weixin')
  1177. const params = {
  1178. userId: this.userId,
  1179. couponId: coupon.couponId,
  1180. couponRecordId: couponRecordId,
  1181. payType: 'XCX',
  1182. code: wechatcode,
  1183. source: 1 //支付来源 1 小程序 2 WWW
  1184. }
  1185. this.weChatMiniCouponWxPay(
  1186. params,
  1187. 'Um_Event_productCouponPay',
  1188. '商品详情',
  1189. '线上支付优惠券',
  1190. coupon.couponId,
  1191. this.userId
  1192. )
  1193. },
  1194. hideMobel() {
  1195. this.modal = false
  1196. },
  1197. handleClick(e) {
  1198. //个人机构跳转升级页面
  1199. if (e.index == 1) {
  1200. this.$api.navigateTo('/pages/login/apply')
  1201. }
  1202. this.modal = false
  1203. },
  1204. swiperChange(e) {
  1205. //顶部商品图片切换
  1206. const index = e.detail.current
  1207. this.current = index
  1208. },
  1209. previewImg1(url) {
  1210. let mentuzArray = []
  1211. mentuzArray.push(url)
  1212. uni.previewImage({
  1213. urls: mentuzArray,
  1214. current: 0
  1215. })
  1216. },
  1217. previewImg(index) {
  1218. //顶部商品图片预览
  1219. isPreviewImg = true
  1220. let previewUrls = this.productImage
  1221. uni.previewImage({
  1222. current: index, //图片索引
  1223. urls: previewUrls, //必须是http图片,本地图片无效
  1224. longPressActions: ''
  1225. })
  1226. },
  1227. //商品详情&&供应商信息tab切换
  1228. tabClick(index) {
  1229. // 重新标记
  1230. this.getSectionProps()
  1231. this.tabCurrentIndex = index
  1232. this.tabSelectFlag = true
  1233. let timer = null
  1234. clearTimeout(timer)
  1235. // 点击tab 300ms才执行跳转,避免出错(来回跳动)
  1236. timer = setTimeout(() => {
  1237. this.tabClickAction(index)
  1238. }, 500)
  1239. },
  1240. // 跳转执行
  1241. tabClickAction(index) {
  1242. const that = this
  1243. if (index === 3) {
  1244. return uni.pageScrollTo({
  1245. duration: 300, //过渡时间必须为0,uniapp bug,否则运行到手机会报错
  1246. scrollTop: this.sectionPropsArr[0].scrollTop
  1247. })
  1248. }
  1249. uni.pageScrollTo({
  1250. duration: 300, //过渡时间必须为0,uniapp bug,否则运行到手机会报错
  1251. scrollTop: this.sectionPropsArr[index].scrollTop,
  1252. success() {
  1253. setTimeout(() => {
  1254. that.tabSelectFlag = false
  1255. }, 300)
  1256. }
  1257. })
  1258. },
  1259. handleContact(e) {
  1260. //跳转小程序客服
  1261. console.log(e.detail.path)
  1262. console.log(e.detail.query)
  1263. },
  1264. buyProductCart() {
  1265. //底部购物车按钮点击
  1266. if (this.hasLogin) {
  1267. // 友盟埋点商品详情购物车入口点击事件
  1268. if (process.env.NODE_ENV != 'development') {
  1269. this.$uma.trackEvent('Um_Event_ProductShoppingCart', {
  1270. Um_Key_PageName: '去购物车',
  1271. Um_Key_SourcePage: '商品详情购物车入口'
  1272. })
  1273. }
  1274. this.$api.navigateTo('/pages/goods/cart')
  1275. } else {
  1276. this.$api.navigateTo('/pages/login/login?type=1')
  1277. }
  1278. },
  1279. btnGetConfirm(type) {
  1280. //加入购物车&&立即购买点击
  1281. if (this.hasLogin) {
  1282. this.btnType = type
  1283. this.popupShow3 = true
  1284. this.unitPopupType = 1
  1285. } else {
  1286. this.$api.navigateTo('/pages/login/login?type=1')
  1287. }
  1288. },
  1289. getAddProductCart() {
  1290. //增加购物车成功和toast弹窗提示成功
  1291. this.ProductService.shoppingAddCart({
  1292. productId: this.productId,
  1293. userId: this.userId,
  1294. productCount: this.number,
  1295. source: 2
  1296. })
  1297. .then(response => {
  1298. this.specClass = 'hide'
  1299. this.$util.msg('加入购物车成功', 1500, true, 'success')
  1300. this.isAnimation = true
  1301. setTimeout(() => {
  1302. this.specClass = 'none'
  1303. }, 200)
  1304. setTimeout(() => {
  1305. this.isAnimation = false
  1306. }, 2000)
  1307. this.bottomCartNumber = response.data
  1308. })
  1309. .catch(error => {
  1310. console.log('error', error.msg)
  1311. })
  1312. },
  1313. setHeaderBtnPosi() {
  1314. // 获得胶囊按钮位置信息
  1315. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  1316. return headerBtnPosi
  1317. },
  1318. setSysteminfo() {
  1319. let systeminfo
  1320. uni.getSystemInfo({
  1321. // 获取设备信息
  1322. success: res => {
  1323. systeminfo = res
  1324. }
  1325. })
  1326. return systeminfo
  1327. },
  1328. goIndex() {
  1329. //商城首页
  1330. uni.switchTab({
  1331. url: '/pages/tabBar/home/index'
  1332. })
  1333. },
  1334. goSupplier() {
  1335. //跳供应商资料页
  1336. if (!this.isShowCaimeiShop) {
  1337. this.$api.navigateTo('/pages/supplier/user/my-shop?shopId=' + this.shopId)
  1338. }
  1339. },
  1340. discard() {
  1341. //丢弃
  1342. },
  1343. onShare(res) {
  1344. //分享转发
  1345. if (res.from === 'button') {
  1346. // 来自页面内转发按钮
  1347. }
  1348. return {
  1349. title: `${this.product.name}`,
  1350. path: `pages/goods/product?type=share&id=${this.productId}`,
  1351. imageUrl: `${this.productImage[0]}`
  1352. }
  1353. },
  1354. handleCollection() {
  1355. // 收藏
  1356. if (this.hasLogin) {
  1357. this.ProductService.getProductUserLike({
  1358. userId: this.userId,
  1359. productId: this.product.productId
  1360. })
  1361. .then(response => {
  1362. this.collectionType = !this.collectionType
  1363. this.$util.msg(response.data, 1500, true, 'success')
  1364. })
  1365. .catch(error => {
  1366. this.$util.msg(error.msg, 2000)
  1367. })
  1368. } else {
  1369. this.$api.navigateTo('/pages/login/login')
  1370. }
  1371. },
  1372. showPopup(index) {
  1373. switch (index) {
  1374. case 0:
  1375. this.popupShow0 = true
  1376. break
  1377. case 1:
  1378. this.popupShow1 = true
  1379. break
  1380. case 2:
  1381. if (this.hasLogin) {
  1382. this.queryPopupCoupons()
  1383. this.popupShow2 = true
  1384. } else {
  1385. this.$api.navigateTo('/pages/login/login')
  1386. }
  1387. break
  1388. case 3:
  1389. this.popupShow3 = true
  1390. this.unitPopupType = 2
  1391. break
  1392. }
  1393. },
  1394. hidePopup(index) {
  1395. switch (index) {
  1396. case 0:
  1397. this.popupShow0 = false
  1398. break
  1399. case 1:
  1400. this.popupShow1 = false
  1401. break
  1402. case 2:
  1403. this.popupShow2 = false
  1404. break
  1405. case 3:
  1406. this.popupShow3 = false
  1407. break
  1408. }
  1409. },
  1410. couponChange(e) {
  1411. this.currentTab = e.index
  1412. switch (this.currentTab) {
  1413. case 0:
  1414. this.couponParam.status = 1
  1415. this.queryPopupCoupons()
  1416. break
  1417. case 1:
  1418. this.couponParam.status = 2
  1419. this.queryPopupCoupons()
  1420. break
  1421. }
  1422. },
  1423. handleSupporting() {
  1424. // 跳转组合商品页面
  1425. this.$api.navigateTo(`/pages/goods/goods-supporting?productId=${this.productId}`)
  1426. },
  1427. // 获取每个tab对应区域的区间
  1428. async getSectionProps() {
  1429. const sectionPropsArr = [],
  1430. scrollTopArray = [],
  1431. className = 'product-details'
  1432. // 获取相关节点元素信息
  1433. const productMain = await this.$util.boundingClientRect(this, '.container-product-main', false)
  1434. const productDetail = await this.$util.boundingClientRect(this, '.product-details', true)
  1435. const topBar = await this.$util.boundingClientRect(this, '#topBar', false)
  1436. /*
  1437. 说明:采用累加方式来计算每一个 prdocut-details 的 scrollTop 定位
  1438. scrollTop = 上一个的scrollTop + 上一个的高度
  1439. */
  1440. productDetail.forEach((item, index) => {
  1441. // 上一个 prdocut-details 的 scrollTop 值
  1442. const prev = sectionPropsArr[index - 1]
  1443. const prevScrollTop = prev ? prev.scrollTop : productMain.height
  1444. // 上一个 prdocut-details 的高度
  1445. const add = productDetail[index - 1]
  1446. // 第一个需要减去tabs的高度
  1447. const addHeight = index === 0 ? (add ? add.height : 0) - topBar.height : add ? add.height : 0
  1448. sectionPropsArr.push({
  1449. className: `${className}-${index}`,
  1450. scrollTop: prevScrollTop + addHeight
  1451. })
  1452. // - topBar.height
  1453. })
  1454. this.sectionPropsArr = sectionPropsArr
  1455. console.log('更新tab影响区域')
  1456. },
  1457. //当滑动时也能同步激活tab
  1458. activeTab: debounce(
  1459. (top, _this) => {
  1460. const { sectionPropsArr } = _this
  1461. if (sectionPropsArr && sectionPropsArr.length > 0) {
  1462. sectionPropsArr.forEach((item, index) => {
  1463. // 当前位置为开始位置, 下个起始位置为结束位置
  1464. const openInterval = (index === 0 ? 0 : item.scrollTop) - 20 // 自定义偏移
  1465. const next = sectionPropsArr[index + 1]
  1466. const closedInterval = (next ? next.scrollTop : 10000000) - 20 // 自定义偏移
  1467. if (top >= openInterval && top < closedInterval) {
  1468. _this.tabCurrentIndex = index
  1469. }
  1470. })
  1471. }
  1472. },
  1473. 100,
  1474. true
  1475. ),
  1476. debounce(fn, delay) {
  1477. let timer = null //借助闭包
  1478. return function() {
  1479. if (timer) {
  1480. clearTimeout(timer)
  1481. }
  1482. timer = setTimeout(fn, delay) // 简化写法
  1483. }
  1484. },
  1485. clipboard(data) {
  1486. thorui.getClipboardData(data, res => {
  1487. if (res) {
  1488. this.$util.msg('复制成功', 2000, true, 'success')
  1489. } else {
  1490. this.$util.msg('复制失败', 2000, true, 'none')
  1491. }
  1492. })
  1493. },
  1494. getWinHeight() {
  1495. this.winHeight = wx.getSystemInfoSync().windowHeight
  1496. },
  1497. changePreViewImageStatus(falg) {
  1498. this.isPreviewImage = falg
  1499. }
  1500. },
  1501. onPageScroll(e) {
  1502. //实时获取到滚动的值
  1503. const { scrollTop } = e
  1504. this.debounce(this.getSectionProps(), 1000)
  1505. if (!this.tabSelectFlag) {
  1506. this.activeTab(scrollTop, this)
  1507. }
  1508. if (e.scrollTop > 60) {
  1509. this.headerColor = true
  1510. this.navbarFiexd = 'fixed'
  1511. this.isNavbarFiexd = true
  1512. this.nvabarData = {
  1513. showCapsule: 1,
  1514. title: '商品详情'
  1515. }
  1516. } else {
  1517. this.headerColor = false
  1518. this.isNavbarFiexd = false
  1519. this.navbarFiexd = 'none'
  1520. this.nvabarData = {
  1521. showCapsule: 1,
  1522. title: ''
  1523. }
  1524. }
  1525. if (e.scrollTop > 700) {
  1526. this.isScrollTop = true
  1527. } else {
  1528. this.isScrollTop = false
  1529. }
  1530. },
  1531. onShareAppMessage(res) {
  1532. //分享转发
  1533. if (res.from === 'button') {
  1534. // 来自页面内转发按钮
  1535. }
  1536. return {
  1537. title: `${this.product.name}`,
  1538. path: `pages/goods/product?type=share&id=${this.productId}`,
  1539. imageUrl: `${this.productImage[0]}`
  1540. }
  1541. },
  1542. onShow() {
  1543. wxLogin.wxLoginAuthorize()
  1544. // 是否开启图片预览 true 不刷新调用接口 false刷新调用接口
  1545. if (!this.isPreviewImage) {
  1546. this.initGetStotage()
  1547. }
  1548. this.isPreviewImage = false
  1549. }
  1550. }
  1551. </script>
  1552. <style lang="scss">
  1553. page {
  1554. background-color: #ffffff;
  1555. }
  1556. .banner-section {
  1557. width: 100%;
  1558. height: 750rpx;
  1559. position: relative;
  1560. .cm-product-tags {
  1561. position: absolute;
  1562. right: 30rpx;
  1563. top: 0;
  1564. z-index: 999;
  1565. }
  1566. .cm-product-type {
  1567. width: 64rpx;
  1568. height: 64rpx;
  1569. text-align: justify;
  1570. box-sizing: border-box;
  1571. padding: 10rpx;
  1572. border-radius: 0 0 8rpx 8rpx;
  1573. background-color: #33ccbf;
  1574. font-size: $font-size-22;
  1575. color: #ffffff;
  1576. line-height: 25rpx;
  1577. position: absolute;
  1578. left: 30rpx;
  1579. top: 0;
  1580. z-index: 999;
  1581. }
  1582. .cm-product-cover {
  1583. width: 120rpx;
  1584. height: 77rpx;
  1585. line-height: 57rpx;
  1586. font-size: 24rpx;
  1587. color: #fff;
  1588. text-align: center;
  1589. background: url(https://static.caimei365.com/app/img/icon2/cm_cover_bg_app.png) no-repeat center;
  1590. background-size: 120rpx;
  1591. float: left;
  1592. position: absolute;
  1593. right: 30rpx;
  1594. top: 0;
  1595. z-index: 999;
  1596. }
  1597. }
  1598. .banner {
  1599. width: 100%;
  1600. height: 750rpx;
  1601. .product-img {
  1602. width: 750rpx;
  1603. }
  1604. image {
  1605. width: 100%;
  1606. height: 100%;
  1607. }
  1608. .banner-item {
  1609. position: relative;
  1610. }
  1611. }
  1612. .swiper__dots-box {
  1613. position: absolute;
  1614. color: #fff;
  1615. bottom: 30rpx;
  1616. right: 0;
  1617. }
  1618. .product-wrap {
  1619. width: 100%;
  1620. height: auto;
  1621. padding: 24rpx 0 0 0;
  1622. background-color: #ffffff;
  1623. border-bottom: 20rpx solid #f7f7f7;
  1624. .productRemarks {
  1625. height: 48rpx;
  1626. width: 100%;
  1627. float: left;
  1628. line-height: 48rpx;
  1629. font-size: 24rpx;
  1630. color: #999999;
  1631. text-align: left;
  1632. }
  1633. .wrap-top {
  1634. width: 702rpx;
  1635. padding: 0 24rpx;
  1636. height: auto;
  1637. float: left;
  1638. padding-bottom: 20rpx;
  1639. border-bottom: 1px solid #f8f8f8;
  1640. &.none {
  1641. .p-title {
  1642. color: #999999;
  1643. }
  1644. }
  1645. .p-title {
  1646. width: 100%;
  1647. height: auto;
  1648. float: left;
  1649. position: relative;
  1650. .p-title-name {
  1651. width: 602rpx;
  1652. height: auto;
  1653. float: left;
  1654. line-height: 48rpx;
  1655. font-size: $font-size-28;
  1656. color: $text-color;
  1657. -o-text-overflow: ellipsis;
  1658. text-overflow: ellipsis;
  1659. display: -webkit-box;
  1660. word-break: break-all;
  1661. -webkit-box-orient: vertical;
  1662. -webkit-line-clamp: 2;
  1663. overflow: hidden;
  1664. &.indent {
  1665. text-indent: 95rpx;
  1666. }
  1667. }
  1668. .mclap-tag {
  1669. display: block;
  1670. width: 84rpx;
  1671. height: 32rpx;
  1672. background-image: linear-gradient(270deg, #f9c023 0%, #f83600 100%);
  1673. border-radius: 4rpx 48rpx 4px 4px;
  1674. line-height: 32rpx;
  1675. font-size: $font-size-22;
  1676. color: #ffffff;
  1677. text-align: center;
  1678. position: absolute;
  1679. left: 0;
  1680. top: 6rpx;
  1681. }
  1682. .p-title-share {
  1683. width: 96rpx;
  1684. height: 96rpx;
  1685. position: absolute;
  1686. right: 0;
  1687. text-align: center;
  1688. color: #999999;
  1689. font-size: $font-size-24;
  1690. box-sizing: border-box;
  1691. display: block;
  1692. background: transparent;
  1693. border-radius: 0;
  1694. border: 0;
  1695. margin: 0;
  1696. padding: 8rpx 0;
  1697. z-index: 20;
  1698. .icon-fenxiang1 {
  1699. font-size: $font-size-34;
  1700. }
  1701. }
  1702. .tui-share-btn::after {
  1703. border: 0;
  1704. }
  1705. }
  1706. .wrap-main-text {
  1707. line-height: 56rpx;
  1708. color: #ff2a2a;
  1709. font-size: $font-size-26;
  1710. display: block;
  1711. float: left;
  1712. font-weight: normal;
  1713. }
  1714. .wrap-main-none {
  1715. display: block;
  1716. width: 256rpx;
  1717. height: 44rpx;
  1718. padding-left: 20rpx;
  1719. border-radius: 11rpx;
  1720. background: $btn-confirm;
  1721. float: right;
  1722. line-height: 44rpx;
  1723. color: #ffffff;
  1724. text-align: center;
  1725. font-size: $font-size-24;
  1726. }
  1727. .p-price-none {
  1728. height: 44rpx;
  1729. line-height: 44rpx;
  1730. float: left;
  1731. font-size: $font-size-24;
  1732. color: #666;
  1733. text-decoration: line-through;
  1734. margin-left: 8rpx;
  1735. }
  1736. .p-minBuy {
  1737. height: 44rpx;
  1738. line-height: 44rpx;
  1739. float: right;
  1740. padding: 0 18rpx;
  1741. border-radius: 22rpx;
  1742. background-color: #f7f7f7;
  1743. color: #7f7f7f;
  1744. font-size: 24rpx;
  1745. text-align: center;
  1746. .min-text {
  1747. margin: 0 6rpx;
  1748. }
  1749. }
  1750. .p-login {
  1751. height: 56rpx;
  1752. line-height: 56rpx;
  1753. color: $color-system;
  1754. font-size: $font-size-24;
  1755. &.grade {
  1756. .price-left {
  1757. float: left;
  1758. .none {
  1759. display: block;
  1760. font-size: $font-size-20;
  1761. line-height: 48rpx;
  1762. color: #4a4b54;
  1763. float: left;
  1764. font-weight: bold;
  1765. margin-left: 5rpx;
  1766. text {
  1767. letter-spacing: 4rpx;
  1768. font-size: $font-size-32;
  1769. }
  1770. }
  1771. }
  1772. }
  1773. .p-no {
  1774. float: left;
  1775. margin-right: 5rpx;
  1776. font-size: $font-size-28;
  1777. color: $text-color;
  1778. }
  1779. .p-login-btn {
  1780. display: block;
  1781. height: 44rpx;
  1782. padding: 0 10rpx 0 20rpx;
  1783. border-radius: 11rpx;
  1784. background: $btn-confirm;
  1785. float: right;
  1786. line-height: 44rpx;
  1787. color: #ffffff;
  1788. text-align: center;
  1789. font-size: $font-size-24;
  1790. }
  1791. }
  1792. }
  1793. .wrap-label {
  1794. float: left;
  1795. width: 85%;
  1796. box-sizing: border-box;
  1797. .label-a {
  1798. padding: 0 18rpx;
  1799. line-height: 32rpx;
  1800. font-size: $font-size-20;
  1801. color: $color-system;
  1802. text-align: center;
  1803. border-radius: 6rpx;
  1804. background: #ffe6dc;
  1805. margin: 0 20rpx 15rpx 0;
  1806. display: inline-block;
  1807. }
  1808. }
  1809. .wrap-top-price {
  1810. float: left;
  1811. width: 100%;
  1812. box-sizing: border-box;
  1813. .wrap-main-item {
  1814. width: 100%;
  1815. height: 56rpx;
  1816. .p-price {
  1817. height: 56rpx;
  1818. line-height: 56rpx;
  1819. float: left;
  1820. color: #ff2a2a;
  1821. font-weight: bold;
  1822. &.none {
  1823. text-decoration: line-through;
  1824. color: #999999;
  1825. font-weight: normal;
  1826. }
  1827. .txt {
  1828. margin: 0 2rpx;
  1829. }
  1830. .txt.sm {
  1831. font-size: $font-size-26;
  1832. }
  1833. .txt.big {
  1834. font-size: $font-size-34;
  1835. }
  1836. }
  1837. .p-right-price{
  1838. height: 56rpx;
  1839. line-height: 56rpx;
  1840. float: right;
  1841. color: #999999;
  1842. font-size: $font-size-30;
  1843. .none{
  1844. font-size: $font-size-26;
  1845. text-decoration: line-through;
  1846. }
  1847. }
  1848. }
  1849. .floor-item-act {
  1850. height: 56rpx;
  1851. text-align: center;
  1852. box-sizing: border-box;
  1853. float: left;
  1854. padding: 10rpx 0;
  1855. margin-left: 10rpx;
  1856. }
  1857. .floor-item-btn {
  1858. float: right;
  1859. height: 40rpx;
  1860. margin-top: 8rpx;
  1861. margin-left: 10rpx;
  1862. .btn {
  1863. line-height: 40rpx;
  1864. padding: 0 20rpx;
  1865. height: 40rpx;
  1866. background: $btn-confirm;
  1867. color: #ffffff;
  1868. font-size: $font-size-20;
  1869. border-radius: 4rpx;
  1870. }
  1871. }
  1872. }
  1873. .wrap-info {
  1874. float: left;
  1875. width: 702rpx;
  1876. padding: 24rpx 24rpx 0 24rpx;
  1877. border-bottom: 1px solid #f8f8f8;
  1878. .info-viewT {
  1879. width: 100%;
  1880. min-height: 40rpx;
  1881. font-size: $font-size-28;
  1882. color: $text-color;
  1883. line-height: 40rpx;
  1884. text-align: left;
  1885. &.none {
  1886. color: #999999;
  1887. }
  1888. .info-viewL {
  1889. min-width: 350rpx;
  1890. float: left;
  1891. margin-bottom: 24rpx;
  1892. }
  1893. .info-viewR {
  1894. min-width: 352rpx;
  1895. float: left;
  1896. margin-bottom: 24rpx;
  1897. }
  1898. }
  1899. .info-viewB {
  1900. width: 100%;
  1901. height: auto;
  1902. }
  1903. .info-f {
  1904. width: 50%;
  1905. float: left;
  1906. font-size: $font-size-28;
  1907. color: $text-color;
  1908. line-height: 40rpx;
  1909. margin-bottom: 24rpx;
  1910. text-align: left;
  1911. }
  1912. }
  1913. }
  1914. .product-seve {
  1915. width: 100%;
  1916. height: 60rpx;
  1917. background-color: #ffffff;
  1918. position: relative;
  1919. display: flex;
  1920. line-height: 60rpx;
  1921. .label {
  1922. font-size: $font-size-28;
  1923. color: #333333;
  1924. }
  1925. .iconfont {
  1926. color: #fea785;
  1927. margin-right: 20rpx;
  1928. font-size: $font-size-22;
  1929. }
  1930. .text {
  1931. font-size: $font-size-22;
  1932. color: #fea785;
  1933. margin-left: 10rpx;
  1934. }
  1935. }
  1936. .product-item-none {
  1937. min-height: 348rpx;
  1938. display: flex;
  1939. flex-direction: column;
  1940. align-items: center;
  1941. border-bottom: 20rpx solid #f7f7f7;
  1942. box-sizing: border-box;
  1943. padding: 40rpx 0;
  1944. .none-image {
  1945. width: 284rpx;
  1946. height: 225rpx;
  1947. }
  1948. .none-text {
  1949. text-align: center;
  1950. font-size: $font-size-28;
  1951. color: #fea785;
  1952. line-height: 40rpx;
  1953. }
  1954. }
  1955. .product-supporting {
  1956. width: 100%;
  1957. height: 274rpx;
  1958. box-sizing: border-box;
  1959. padding: 30rpx 24rpx;
  1960. background-color: #ffffff;
  1961. border-bottom: 20rpx solid #f7f7f7;
  1962. .product-supporting-title {
  1963. width: 100%;
  1964. height: 40rpx;
  1965. text-align: left;
  1966. line-height: 40rpx;
  1967. font-size: $font-size-28;
  1968. color: #333333;
  1969. }
  1970. .product-supporting-list {
  1971. width: 100%;
  1972. height: 154rpx;
  1973. box-sizing: border-box;
  1974. padding: 13rpx 0;
  1975. position: relative;
  1976. .icon-xiayibu {
  1977. line-height: 154rpx;
  1978. display: inline-block;
  1979. position: absolute;
  1980. width: 80rpx;
  1981. top: 0;
  1982. right: 0;
  1983. color: #b2b2b2;
  1984. text-align: right;
  1985. }
  1986. .list {
  1987. width: 128rpx;
  1988. height: 128rpx;
  1989. margin-right: 24rpx;
  1990. float: left;
  1991. border: 1px solid #e1e1e1;
  1992. border-radius: 8rpx;
  1993. .list-image {
  1994. width: 100%;
  1995. height: 100%;
  1996. display: block;
  1997. border-radius: 8rpx;
  1998. }
  1999. }
  2000. }
  2001. }
  2002. .return-instructions{
  2003. padding: 0 24rpx;
  2004. border-bottom: 20rpx solid #f7f7f7;
  2005. }
  2006. .product-parameter {
  2007. width: 702rpx;
  2008. height: 90rpx;
  2009. padding: 0 24rpx;
  2010. background-color: #ffffff;
  2011. position: relative;
  2012. border-bottom: 20rpx solid #f7f7f7;
  2013. &.coupon {
  2014. .title {
  2015. color: #f94b4b;
  2016. }
  2017. .icon-xiayibu {
  2018. color: #f94b4b;
  2019. }
  2020. .coupon {
  2021. float: right;
  2022. box-sizing: border-box;
  2023. padding: 29rpx 0;
  2024. padding-right: 35rpx;
  2025. .tags {
  2026. height: 32rpx;
  2027. box-sizing: border-box;
  2028. border-radius: 8rpx;
  2029. background-color: #fff1eb;
  2030. line-height: 28rpx;
  2031. color: #f94b4b;
  2032. text-align: center;
  2033. display: inline-block;
  2034. padding: 0 10rpx;
  2035. font-size: $font-size-20;
  2036. border: 1px solid #f94b4b;
  2037. float: right;
  2038. margin: 0 6rpx;
  2039. }
  2040. }
  2041. }
  2042. .title {
  2043. line-height: 90rpx;
  2044. display: inline-block;
  2045. float: left;
  2046. font-size: $font-size-28;
  2047. color: #666666;
  2048. }
  2049. .name {
  2050. line-height: 90rpx;
  2051. display: inline-block;
  2052. float: left;
  2053. font-size: $font-size-28;
  2054. color: $text-color;
  2055. padding-right: 48rpx;
  2056. overflow: hidden;
  2057. text-overflow: ellipsis;
  2058. white-space: nowrap;
  2059. text-align: right;
  2060. }
  2061. .icon-xiayibu {
  2062. line-height: 90rpx;
  2063. display: inline-block;
  2064. position: absolute;
  2065. width: 48rpx;
  2066. top: 0;
  2067. right: 0;
  2068. color: #b2b2b2;
  2069. }
  2070. }
  2071. .product-supplier {
  2072. width: 100%;
  2073. height: 174rpx;
  2074. padding: 30rpx 24rpx;
  2075. box-sizing: border-box;
  2076. background-color: #ffffff;
  2077. position: relative;
  2078. box-sizing: border-box;
  2079. border-bottom: 20rpx solid #f7f7f7;
  2080. .logo {
  2081. width: 128rpx;
  2082. height: 92rpx;
  2083. float: left;
  2084. border: 1px solid #efefef;
  2085. border-radius: 6rpx;
  2086. image {
  2087. width: 100%;
  2088. height: 100%;
  2089. display: block;
  2090. border-radius: 6rpx;
  2091. }
  2092. }
  2093. .main {
  2094. width: 470rpx;
  2095. height: 92rpx;
  2096. float: left;
  2097. margin-left: 20rpx;
  2098. .name {
  2099. width: 100%;
  2100. line-height: 46rpx;
  2101. float: left;
  2102. font-size: $font-size-28;
  2103. color: $text-color;
  2104. float: right;
  2105. overflow: hidden;
  2106. text-overflow: ellipsis;
  2107. white-space: nowrap;
  2108. text-align: left;
  2109. }
  2110. .massgs {
  2111. width: 100%;
  2112. line-height: 46rpx;
  2113. float: left;
  2114. font-size: $font-size-24;
  2115. color: #999999;
  2116. .label {
  2117. float: left;
  2118. }
  2119. .p-stars {
  2120. float: left;
  2121. margin-left: 20rpx;
  2122. }
  2123. .acount {
  2124. float: right;
  2125. text {
  2126. color: $color-system;
  2127. }
  2128. }
  2129. }
  2130. }
  2131. .icon-xiayibu {
  2132. line-height: 154rpx;
  2133. display: inline-block;
  2134. position: absolute;
  2135. width: 48rpx;
  2136. top: 0;
  2137. right: 0;
  2138. color: #b2b2b2;
  2139. }
  2140. }
  2141. .product-details {
  2142. width: 100%;
  2143. background: #ffffff;
  2144. border-bottom: 20rpx solid #f7f7f7;
  2145. &.recommend {
  2146. background-color: #f7f7f7;
  2147. border-bottom: none;
  2148. .title {
  2149. .title-tab {
  2150. background-color: #f7f7f7;
  2151. color: $text-color;
  2152. }
  2153. }
  2154. }
  2155. .product-details-image {
  2156. width: 100%;
  2157. min-height: 856rpx;
  2158. box-sizing: border-box;
  2159. padding: 0 24rpx;
  2160. .product-details-table {
  2161. width: 100%;
  2162. min-height: 160rpx;
  2163. border: 1px solid #e1e1e1;
  2164. border-radius: 10rpx;
  2165. .ladder-tr {
  2166. display: flex;
  2167. width: 100%;
  2168. justify-content: center;
  2169. height: 80rpx;
  2170. align-items: center;
  2171. border-bottom: 1px solid #e1e1e1;
  2172. &:last-child {
  2173. border-bottom: none;
  2174. }
  2175. .ladder-item-td {
  2176. height: 80rpx;
  2177. justify-content: center;
  2178. text-align: center;
  2179. box-sizing: border-box;
  2180. padding: 10rpx;
  2181. float: left;
  2182. .te-text {
  2183. line-height: 28rpx;
  2184. font-size: $font-size-24;
  2185. text-overflow: ellipsis;
  2186. display: -webkit-box;
  2187. word-break: break-all;
  2188. -webkit-box-orient: vertical;
  2189. -webkit-line-clamp: 2;
  2190. overflow: hidden;
  2191. color: #999999;
  2192. &.last {
  2193. width: 60%;
  2194. float: left;
  2195. }
  2196. }
  2197. .te-copy {
  2198. width: 40%;
  2199. float: right;
  2200. font-size: $font-size-24;
  2201. padding-top: 10rpx;
  2202. .clipboard {
  2203. width: 84rpx;
  2204. height: 36rpx;
  2205. background: #4688fa;
  2206. text-align: center;
  2207. font-size: $font-size-24;
  2208. color: #ffffff;
  2209. border-radius: 18rpx;
  2210. line-height: 36rpx;
  2211. display: inline-block;
  2212. }
  2213. }
  2214. &.th {
  2215. display: flex;
  2216. height: 80rpx;
  2217. align-items: center;
  2218. line-height: 80rpx;
  2219. font-size: 26rpx;
  2220. color: #666;
  2221. }
  2222. &:nth-child(1) {
  2223. width: 25%;
  2224. border-right: 1px solid #e1e1e1;
  2225. }
  2226. &:nth-child(2) {
  2227. width: 35%;
  2228. border-right: 1px solid #e1e1e1;
  2229. }
  2230. &:nth-child(3) {
  2231. width: 40%;
  2232. }
  2233. }
  2234. }
  2235. }
  2236. .qualificationImg-image {
  2237. width: 100%;
  2238. height: 856rpx;
  2239. display: block;
  2240. }
  2241. }
  2242. .product-rich-text-none {
  2243. box-sizing: border-box;
  2244. padding: 0 24rpx;
  2245. text-align: left;
  2246. font-size: 24rpx;
  2247. color: #999999;
  2248. line-height: 60rpx;
  2249. &.bold {
  2250. font-weight: bold;
  2251. color: #333333;
  2252. }
  2253. }
  2254. .content-none {
  2255. width: 100%;
  2256. height: 80rpx;
  2257. line-height: 80rpx;
  2258. text-align: left;
  2259. font-size: $font-size-26;
  2260. color: #999999;
  2261. box-sizing: border-box;
  2262. padding: 0 24rpx;
  2263. }
  2264. .title {
  2265. width: 100%;
  2266. box-sizing: border-box;
  2267. padding: 0 24rpx;
  2268. .title-tab {
  2269. width: 100%;
  2270. height: 100rpx;
  2271. background: #fff;
  2272. z-index: 10;
  2273. font-size: $font-size-30;
  2274. text-align: left;
  2275. color: $text-color;
  2276. line-height: 100rpx;
  2277. font-weight: 600;
  2278. }
  2279. .title-msg {
  2280. width: 100%;
  2281. height: 236rpx;
  2282. padding: 18rpx;
  2283. background-color: rgba(225, 86, 22, 0.1);
  2284. color: $color-system;
  2285. box-sizing: border-box;
  2286. margin-bottom: 30rpx;
  2287. .tit {
  2288. line-height: 46rpx;
  2289. font-size: $font-size-24;
  2290. text-align: left;
  2291. }
  2292. .txt {
  2293. line-height: 38rpx;
  2294. font-size: $font-size-20;
  2295. text-align: justify;
  2296. }
  2297. }
  2298. }
  2299. .content {
  2300. width: 100%;
  2301. background-color: #ffffff;
  2302. }
  2303. }
  2304. .isLower {
  2305. width: 100%;
  2306. height: 116rpx;
  2307. line-height: 116rpx;
  2308. text-align: center;
  2309. color: #000000;
  2310. font-size: $font-size-32;
  2311. font-weight: bold;
  2312. }
  2313. .bottom-btn {
  2314. width: 100%;
  2315. height: 100rpx;
  2316. position: fixed;
  2317. bottom: 0;
  2318. left: 0;
  2319. background: #ffffff;
  2320. z-index: 99;
  2321. .bottom-le {
  2322. width: 300rpx;
  2323. height: 100rpx;
  2324. padding: 10rpx 20rpx 10rpx 0;
  2325. float: left;
  2326. box-sizing: border-box;
  2327. .item-bt {
  2328. width: 80rpx;
  2329. height: 100%;
  2330. margin-right: 15rpx;
  2331. display: flex;
  2332. float: left;
  2333. flex-direction: column;
  2334. align-items: center;
  2335. justify-content: center;
  2336. font-size: $font-size-22;
  2337. color: $text-color;
  2338. line-height: 34rpx;
  2339. position: relative;
  2340. .animation-num {
  2341. font-size: $font-size-32;
  2342. color: #ff2a2a;
  2343. position: absolute;
  2344. top: -12rpx;
  2345. right: 4rpx;
  2346. font-weight: bold;
  2347. }
  2348. .animation {
  2349. animation: showAmnation 2.2s ease-in-out both;
  2350. }
  2351. .restion {
  2352. animation: hideAmnation 1s ease-in-out both;
  2353. }
  2354. .icon-num {
  2355. position: absolute;
  2356. right: -12rpx;
  2357. top: -5rpx;
  2358. }
  2359. .icon-num.goleft {
  2360. right: 2rpx;
  2361. }
  2362. &:last-child {
  2363. margin-right: 0;
  2364. }
  2365. image {
  2366. width: 44rpx;
  2367. height: 44rpx;
  2368. }
  2369. button.contact-btn {
  2370. width: 100%;
  2371. height: 100%;
  2372. margin: 0;
  2373. padding: 0;
  2374. display: flex;
  2375. flex-direction: column;
  2376. align-items: center;
  2377. justify-content: center;
  2378. box-sizing: border-box;
  2379. font-size: $font-size-24;
  2380. text-align: center;
  2381. text-decoration: none;
  2382. line-height: 34rpx;
  2383. border-radius: 0;
  2384. -webkit-tap-highlight-color: transparent;
  2385. overflow: hidden;
  2386. color: $text-color;
  2387. background-color: #ffffff;
  2388. }
  2389. }
  2390. }
  2391. .bottom-ri {
  2392. width: 450rpx;
  2393. height: 100%;
  2394. float: right;
  2395. display: flex;
  2396. box-sizing: border-box;
  2397. padding: 13rpx 20rpx 13rpx 0;
  2398. .btn {
  2399. flex: 1;
  2400. width: 200rpx;
  2401. line-height: 80rpx;
  2402. text-align: center;
  2403. font-size: $font-size-24;
  2404. color: #ffffff;
  2405. }
  2406. .btn-cart {
  2407. background-color: #ffe6dc;
  2408. color: $color-system;
  2409. border-radius: 42rpx 0 0 42rpx;
  2410. }
  2411. .btn-cart.disabled {
  2412. background-color: #e1e1e1;
  2413. color: #ffffff;
  2414. }
  2415. .btn-bay {
  2416. background: linear-gradient(to right, #f28f31 0%, #e15616 100%);
  2417. border-radius: 0 42rpx 42rpx 0;
  2418. }
  2419. .btn-bay.disabled {
  2420. background: linear-gradient(135deg, rgba(242, 143, 49, 0.5) 0%, rgba(225, 86, 22, 0.5) 100%);
  2421. }
  2422. }
  2423. }
  2424. .uni-badge--small {
  2425. -webkit-transform: scale(0.8);
  2426. -ms-transform: scale(0.8);
  2427. transform: scale(0.8);
  2428. -webkit-transform-origin: center center;
  2429. -ms-transform-origin: center center;
  2430. transform-origin: center center;
  2431. }
  2432. .uni-badge {
  2433. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  2434. -webkit-box-sizing: border-box;
  2435. box-sizing: border-box;
  2436. font-size: 12px;
  2437. line-height: 1;
  2438. display: inline-block;
  2439. padding: 3px 6px;
  2440. color: #333;
  2441. border-radius: 100px;
  2442. background-color: #f1f1f1;
  2443. }
  2444. .uni-badge-error {
  2445. color: #fff;
  2446. background-color: #dd524d;
  2447. }
  2448. .product-topnav {
  2449. width: 100%;
  2450. height: 174rpx;
  2451. box-sizing: border-box;
  2452. background: #ffffff;
  2453. z-index: 990;
  2454. position: fixed;
  2455. opacity: 1;
  2456. left: 0;
  2457. &.fixed {
  2458. animation: showFixedColor 0.1s ease-in-out both;
  2459. }
  2460. &.none {
  2461. animation: hideFixedColor 0.1s ease-in-out both;
  2462. }
  2463. .navbar {
  2464. width: 100%;
  2465. height: 60rpx;
  2466. box-sizing: border-box;
  2467. padding: 0 24rpx;
  2468. display: flex;
  2469. .nav-item {
  2470. display: flex;
  2471. flex: 1;
  2472. justify-content: center;
  2473. align-items: center;
  2474. height: 60rpx;
  2475. font-size: $font-size-28;
  2476. color: $text-color;
  2477. position: relative;
  2478. float: left;
  2479. position: relative;
  2480. .line {
  2481. width: 60rpx;
  2482. height: 2px;
  2483. border-radius: 1px;
  2484. background: #ffffff;
  2485. position: absolute;
  2486. bottom: 0;
  2487. left: 50%;
  2488. margin-left: -30rpx;
  2489. }
  2490. &.current {
  2491. color: $color-system;
  2492. .line {
  2493. background: $color-system;
  2494. }
  2495. }
  2496. }
  2497. }
  2498. .search-input {
  2499. width: 100%;
  2500. height: 114rpx;
  2501. padding: 24rpx;
  2502. box-sizing: border-box;
  2503. .gosearch-btn {
  2504. width: 100%;
  2505. height: 100%;
  2506. border-radius: 40rpx;
  2507. margin: 0 auto;
  2508. font-size: 26rpx;
  2509. line-height: 66rpx;
  2510. color: #b2b2b2;
  2511. position: relative;
  2512. box-sizing: border-box;
  2513. padding-left: 66rpx;
  2514. &.fixed {
  2515. background: rgba(70, 70, 70, 0.1);
  2516. }
  2517. &.none {
  2518. background: rgba(70, 70, 70, 0.1);
  2519. }
  2520. .search-icon {
  2521. width: 66rpx;
  2522. height: 66rpx;
  2523. position: absolute;
  2524. left: 0;
  2525. top: 2rpx;
  2526. text-align: center;
  2527. line-height: 66rpx;
  2528. .icon-iconfonticonfontsousuo1 {
  2529. margin: 0 6rpx;
  2530. font-size: $font-size-34;
  2531. color: #b2b2b2;
  2532. z-index: 10;
  2533. }
  2534. }
  2535. .search-text {
  2536. font-size: $font-size-24;
  2537. line-height: 66rpx;
  2538. color: #b2b2b2;
  2539. }
  2540. }
  2541. }
  2542. }
  2543. @keyframes showFixedColor {
  2544. 0% {
  2545. background: rgba(255, 255, 255, 0);
  2546. }
  2547. 50% {
  2548. background: rgba(255, 255, 255, 0.5);
  2549. }
  2550. 100% {
  2551. background: rgba(255, 255, 255, 1);
  2552. }
  2553. }
  2554. @keyframes hideFixedColor {
  2555. 0% {
  2556. background: rgba(255, 255, 255, 1);
  2557. }
  2558. 50% {
  2559. background: rgba(255, 255, 255, 0.5);
  2560. }
  2561. 100% {
  2562. background: rgba(255, 255, 255, 0);
  2563. }
  2564. }
  2565. /* 加入购物模态层*/
  2566. @keyframes showPopup {
  2567. 0% {
  2568. opacity: 0;
  2569. }
  2570. 100% {
  2571. opacity: 1;
  2572. }
  2573. }
  2574. @keyframes hidePopup {
  2575. 0% {
  2576. opacity: 1;
  2577. }
  2578. 100% {
  2579. opacity: 0;
  2580. }
  2581. }
  2582. @keyframes showLayer {
  2583. 0% {
  2584. transform: translateY(0);
  2585. }
  2586. 100% {
  2587. transform: translateY(-100%);
  2588. }
  2589. }
  2590. @keyframes hideLayer {
  2591. 0% {
  2592. transform: translateY(-100%);
  2593. }
  2594. 100% {
  2595. transform: translateY(0);
  2596. }
  2597. }
  2598. @keyframes showAmnation {
  2599. 0% {
  2600. top: -12rpx;
  2601. opacity: 0;
  2602. }
  2603. 50% {
  2604. top: -60rpx;
  2605. opacity: 1;
  2606. }
  2607. 100% {
  2608. top: -100rpx;
  2609. opacity: 0;
  2610. }
  2611. }
  2612. @keyframes hideAmnation {
  2613. 0% {
  2614. top: -100rpx;
  2615. opacity: 0;
  2616. }
  2617. 100% {
  2618. top: -12rpx;
  2619. opacity: 0;
  2620. }
  2621. }
  2622. .tui-popup-box {
  2623. position: relative;
  2624. box-sizing: border-box;
  2625. min-height: 220rpx;
  2626. padding: 40rpx 24rpx 0 24rpx;
  2627. .tui-popup-close {
  2628. width: 90rpx;
  2629. height: 90rpx;
  2630. position: absolute;
  2631. right: 0;
  2632. top: 24rpx;
  2633. line-height: 90rpx;
  2634. text-align: center;
  2635. color: #b2b2b2;
  2636. .icon-iconfontguanbi {
  2637. font-size: $font-size-40;
  2638. }
  2639. }
  2640. .title {
  2641. font-size: $font-size-34;
  2642. color: $text-color;
  2643. line-height: 88rpx;
  2644. text-align: center;
  2645. float: left;
  2646. width: 100%;
  2647. height: 88rpx;
  2648. font-weight: bold;
  2649. }
  2650. .tui-popup-main {
  2651. width: 100%;
  2652. float: left;
  2653. &.coupon {
  2654. padding-bottom: 40rpx;
  2655. .coupon-empty {
  2656. width: 100%;
  2657. height: 600rpx;
  2658. display: flex;
  2659. align-items: center;
  2660. justify-content: center;
  2661. flex-direction: column;
  2662. position: fixed;
  2663. background: $bg-color;
  2664. .empty-container-image {
  2665. width: 150rpx;
  2666. height: 150rpx;
  2667. margin-bottom: 0;
  2668. margin-top: 0;
  2669. }
  2670. .error-text {
  2671. font-size: $font-size-28;
  2672. color: #999999;
  2673. line-height: 88rpx;
  2674. }
  2675. }
  2676. }
  2677. .tui-popup-scroll {
  2678. width: 100%;
  2679. height: 600rpx;
  2680. .coupon-list {
  2681. width: 100%;
  2682. height: 200rpx;
  2683. margin-top: 24rpx;
  2684. box-sizing: border-box;
  2685. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-uesb@2x.png);
  2686. background-size: cover;
  2687. &:last-child {
  2688. margin-bottom: 24rpx;
  2689. }
  2690. .list-cell-le {
  2691. width: 224rpx;
  2692. height: 100%;
  2693. box-sizing: border-box;
  2694. padding: 37rpx 0;
  2695. float: left;
  2696. .coupon-maxMoney {
  2697. width: 100%;
  2698. height: 78rpx;
  2699. line-height: 78rpx;
  2700. font-size: 56rpx;
  2701. color: #ffffff;
  2702. text-align: center;
  2703. .small {
  2704. font-size: $font-size-24;
  2705. }
  2706. }
  2707. .coupon-minMoney {
  2708. width: 100%;
  2709. height: 33rpx;
  2710. line-height: 33rpx;
  2711. font-size: $font-size-24;
  2712. color: #ffffff;
  2713. text-align: center;
  2714. }
  2715. }
  2716. .list-cell-ri {
  2717. width: 478rpx;
  2718. height: 100%;
  2719. box-sizing: border-box;
  2720. padding: 20rpx 24rpx 0 24rpx;
  2721. float: right;
  2722. .list-cell-top {
  2723. width: 100%;
  2724. height: 121rpx;
  2725. float: left;
  2726. border-bottom: 1px solid #e1e1e1;
  2727. .list-cell-type {
  2728. width: 286rpx;
  2729. height: 100%;
  2730. float: left;
  2731. .list-cell-tags {
  2732. width: 100%;
  2733. height: 32rpx;
  2734. margin-bottom: 7rpx;
  2735. .tags {
  2736. display: inline-block;
  2737. padding: 0 10rpx;
  2738. height: 32rpx;
  2739. line-height: 32rpx;
  2740. background-color: #ffdcce;
  2741. color: #f94b4b;
  2742. font-size: $font-size-20;
  2743. border-radius: 8rpx;
  2744. text-align: center;
  2745. float: left;
  2746. }
  2747. }
  2748. .list-cell-texts {
  2749. width: 100%;
  2750. height: auto;
  2751. line-height: 35rpx;
  2752. text-overflow: ellipsis;
  2753. display: -webkit-box;
  2754. word-break: break-all;
  2755. -webkit-box-orient: vertical;
  2756. -webkit-line-clamp: 2;
  2757. overflow: hidden;
  2758. font-size: 26rpx;
  2759. color: #333333;
  2760. }
  2761. }
  2762. .list-cell-btn {
  2763. width: 128rpx;
  2764. height: 100%;
  2765. float: right;
  2766. .icon-used {
  2767. width: 100%;
  2768. height: 100%;
  2769. box-sizing: border-box;
  2770. padding-top: 28rpx;
  2771. .icon-used-text {
  2772. width: 100%;
  2773. text-align: center;
  2774. line-height: 26rpx;
  2775. font-size: $font-size-20;
  2776. color: #f94b4b;
  2777. }
  2778. .icon-used-btn {
  2779. width: 128rpx;
  2780. height: 48rpx;
  2781. border-radius: 28rpx;
  2782. line-height: 48rpx;
  2783. font-size: $font-size-26;
  2784. text-align: center;
  2785. &.receive {
  2786. background-image: linear-gradient(270deg, #f94b4b 0%, #feb673 100%);
  2787. color: #ffffff;
  2788. }
  2789. &.make {
  2790. border: solid 1px #f94b4b;
  2791. color: #f94b4b;
  2792. }
  2793. }
  2794. }
  2795. }
  2796. }
  2797. .list-cell-time {
  2798. width: 100%;
  2799. height: 58rpx;
  2800. line-height: 58rpx;
  2801. text-align: left;
  2802. font-size: $font-size-20;
  2803. color: #999999;
  2804. }
  2805. }
  2806. }
  2807. &.train {
  2808. height: 240rpx;
  2809. }
  2810. .content-tr {
  2811. width: 100%;
  2812. min-height: 58rpx;
  2813. line-height: 58rpx;
  2814. display: flex;
  2815. .content-td {
  2816. display: flex;
  2817. flex: 3;
  2818. font-size: $font-size-26;
  2819. color: #999999;
  2820. line-height: 58rpx;
  2821. text-align: left;
  2822. }
  2823. .content-th {
  2824. display: flex;
  2825. flex: 7;
  2826. font-size: $font-size-26;
  2827. color: #333333;
  2828. line-height: 58rpx;
  2829. text-align: left;
  2830. padding-left: 10rpx;
  2831. }
  2832. }
  2833. }
  2834. }
  2835. .tui-shopping-main {
  2836. width: 100%;
  2837. .layer-smimg {
  2838. width: 114rpx;
  2839. height: 114rpx;
  2840. float: left;
  2841. border-radius: 10rpx;
  2842. margin-right: 24rpx;
  2843. image {
  2844. width: 114rpx;
  2845. height: 114rpx;
  2846. border-radius: 10rpx;
  2847. }
  2848. }
  2849. .layer-nunbox {
  2850. justify-content: space-between;
  2851. align-items: center;
  2852. width: 536rpx;
  2853. height: auto;
  2854. float: left;
  2855. .layer-nunbox-t {
  2856. width: 100%;
  2857. height: 44rpx;
  2858. position: relative;
  2859. display: flex;
  2860. margin-bottom: 10rpx;
  2861. .text {
  2862. font-size: $font-size-24;
  2863. line-height: 48rpx;
  2864. color: #999999;
  2865. }
  2866. .layer-nunbox-text {
  2867. line-height: 44rpx;
  2868. font-size: $font-size-28;
  2869. }
  2870. .number-box {
  2871. display: flex;
  2872. justify-content: center;
  2873. align-items: center;
  2874. border: 2rpx solid #ffe6dc;
  2875. border-radius: 30rpx;
  2876. height: 48rpx;
  2877. margin-left: 20rpx;
  2878. .iconfont {
  2879. font-size: $font-size-24;
  2880. padding: 0 18rpx;
  2881. color: #999999;
  2882. text-align: center;
  2883. line-height: 48rpx;
  2884. font-weight: bold;
  2885. background: #fef6f3;
  2886. &.icon-jianhao {
  2887. border-radius: 30rpx 0 0 30rpx;
  2888. }
  2889. &.icon-jiahao {
  2890. border-radius: 0 30rpx 30rpx 0;
  2891. }
  2892. }
  2893. .btn-input {
  2894. width: 62rpx;
  2895. height: 48rpx;
  2896. line-height: 48rpx;
  2897. background: #ffffff;
  2898. border-radius: 4rpx;
  2899. text-align: center;
  2900. font-size: $font-size-28;
  2901. }
  2902. }
  2903. .product-step {
  2904. position: absolute;
  2905. left: 45rpx;
  2906. bottom: 0;
  2907. height: 44rpx;
  2908. background: #ffffff;
  2909. }
  2910. }
  2911. .layer-nunbox-b {
  2912. width: 100%;
  2913. height: 44rpx;
  2914. margin-top: 13rpx;
  2915. }
  2916. .text {
  2917. line-height: 44rpx;
  2918. font-size: $font-size-28;
  2919. .p {
  2920. color: #ff2a2a;
  2921. }
  2922. .p:first-child {
  2923. margin-left: 30rpx;
  2924. }
  2925. .p.sm {
  2926. font-size: $font-size-24;
  2927. }
  2928. }
  2929. }
  2930. }
  2931. }
  2932. .tui-popup-btn {
  2933. width: 100%;
  2934. height: auto;
  2935. float: left;
  2936. margin-top: 24rpx;
  2937. .tui-button {
  2938. width: 100%;
  2939. height: 88rpx;
  2940. background: $btn-confirm;
  2941. line-height: 88rpx;
  2942. text-align: center;
  2943. color: #ffffff;
  2944. font-size: $font-size-28;
  2945. border-radius: 44rpx;
  2946. }
  2947. }
  2948. /*富文本样式*/
  2949. rich-text.p {
  2950. width: 702rpx !important;
  2951. padding: 0 24rpx;
  2952. text-align: justify;
  2953. }
  2954. rich-text.img {
  2955. width: 100%;
  2956. height: auto;
  2957. }
  2958. </style>