product.vue 70 KB

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