product.vue 116 KB

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