product.vue 74 KB

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