product.vue 71 KB

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