detail.vue 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486
  1. <template>
  2. <view class="container" v-if="isLoading">
  3. <!-- #ifndef MP-WEIXIN -->
  4. <block v-if="!isNavShow">
  5. <view class="go_back" @click="goBack()">
  6. <image :src="imgUrl + '/point/goods/go_back.png'" mode=""></image>
  7. </view>
  8. <view class="go_more" @tap="tipsShow">
  9. <image :src="imgUrl + '/goods_detail/more_tips.png'" mode=""></image>
  10. <block v-if="tips_show">
  11. <view class="triangle-up"> </view>
  12. <view class="tips">
  13. <button v-for="(item, index) in tips" :key="index" class="tips_pre" @tap="handleLink" :data-link="item.tips_link"
  14. :open-type="item.type" :data-type="item.type" plain="true">
  15. <image :src="item.tips_img"></image>
  16. <text>{{item.tips_name}}</text>
  17. </button>
  18. </view>
  19. </block>
  20. </view>
  21. </block>
  22. <!-- #endif -->
  23. <!-- 透明遮罩层 -->
  24. <view class="transparent_mask" v-if="transparent_mask" @tap="hideMask"></view>
  25. <!-- #ifdef APP-PLUS -->
  26. <view class="fixed_top_status_bar" :class="{fixed_top_status_bar_no_opcity:noOpcity}"></view>
  27. <!-- #endif -->
  28. <view class="nav_list" v-if="isNavShow" :class="{nav_list_no_opcity:noOpcity}">
  29. <!-- #ifndef MP-WEIXIN -->
  30. <view class="go_back_nav flex_row_center_center" @click="goBack()">
  31. <image :src="imgUrl + '/point/goods/back.png'" mode=""></image>
  32. </view>
  33. <!-- #endif -->
  34. <view class="nav_list_pre" :class="{nav_list_pre_active:currentNav == item.id}" v-for="(item,index) in navList" :key="index"
  35. @click="clickNav(item.id)">
  36. {{item.text}}
  37. </view>
  38. <view class="more_tips" @tap="tipsShow">
  39. <image class="more" :src="imgUrl + 'goods_detail/more.png'"></image>
  40. <block v-if="tips_show">
  41. <view class="triangle-up"> </view>
  42. <view class="tips">
  43. <button v-for="(item, index) in tips" :key="index" class="tips_pre" @tap="handleLink" :data-link="item.tips_link"
  44. :open-type="item.type" :data-type="item.type" plain="true">
  45. <image :src="item.tips_img"></image>
  46. <text>{{item.tips_name}}</text>
  47. </button>
  48. </view>
  49. </block>
  50. </view>
  51. </view>
  52. <view class="detail_con">
  53. <view class="carousel" id="nav1">
  54. <uni-swiper-dot :info="defaultProduct.goodsPics" field="content" :mode="mode" :current="goodsVideo?(current-1):current">
  55. <swiper class="swiper-box" @change="change" :current="current">
  56. <!-- #ifdef H5 -->
  57. <swiper-item v-if="goodsVideo">
  58. <image :src="defaultProduct.goodsPics[0]" class="slide-image"></image>
  59. <image :src="imgUrl+'play.png'" class="play_btn" @click="toPlayPage"></image>
  60. </swiper-item>
  61. <!-- #endif -->
  62. <!-- #ifdef MP-WEIXIN|| APP-PLUS -->
  63. <swiper-item v-if="goodsVideo">
  64. <block v-if="!playVFlag">
  65. <image :src="defaultProduct.goodsPics[0]" class="slide-image"></image>
  66. <image :src="imgUrl+'play.png'" class="play_btn" @click="playVideo('on')"></image>
  67. </block>
  68. <block v-else>
  69. <video controls :src="goodsVideo" class="video_btn"
  70. :poster="defaultProduct.goodsPics[0]" autoplay="true" @ended="playVideo('end')">
  71. </video>
  72. </block>
  73. </swiper-item>
  74. <!-- #endif -->
  75. <!-- 默认规格 图 start-->
  76. <block v-if="defaultProduct && defaultProduct.goodsPics && defaultProduct.goodsPics.length > 0">
  77. <swiper-item class="swiper-item" v-for="(item,index) in defaultProduct.goodsPics" :key="index">
  78. <view class="image-wrapper">
  79. <image :src="item" class="loaded" mode="aspectFit"></image>
  80. </view>
  81. </swiper-item>
  82. </block>
  83. <!-- 默认规格 图 end-->
  84. </swiper>
  85. </uni-swiper-dot>
  86. </view>
  87. <view class="introduce_section_point flex_column_between_start" :style="'background-image:url('+imgUrl+'/point/goods/detail_bg.png);background-size:100% 100%;background-repeat:no-repeat;'">
  88. <view class="point_top flex_row_start_end">
  89. <view class="point_num" v-if="defaultProduct.integralPrice">
  90. <text>{{defaultProduct.integralPrice}}</text><text>{{$L('积分')}}</text>
  91. </view>
  92. <view class="point_tips" v-if="defaultProduct.integralPrice && defaultProduct.cashPrice">+</view>
  93. <view class="point_price" v-if="defaultProduct.cashPrice">
  94. <text class="unit">¥</text>
  95. <text class="price_int">{{this.$getPartNumber(defaultProduct.cashPrice,'int')}}</text>
  96. <text class="price_decimal">{{this.$getPartNumber(defaultProduct.cashPrice,'decimal')}}</text>
  97. </view>
  98. </view>
  99. <view class="point_original_sales flex_row_between_center">
  100. <view class="point_original_price" v-if="defaultProduct.marketPrice">
  101. {{$L('原价')}}:¥<text>{{filters.toFix(defaultProduct.marketPrice)}}</text>
  102. </view>
  103. <view class="point_sales">{{$L('已兑换')}}{{goodsData.sales}}</view>
  104. </view>
  105. </view>
  106. <!-- 有活动商品样式 start -->
  107. <view class="introduce_section_activity">
  108. <view class="activity_goods_des">
  109. <view class="activity_goods_name">
  110. {{goodsData.goodsName}}
  111. </view>
  112. <view class="activity_share_collection">
  113. <view class="activity_goods_share" @click="goShare">
  114. <text class="iconfont iconfenxiang"></text>
  115. <text class="show_text">{{$L('分享')}}</text>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="activity_goods_brief" v-if="goodsData.goodsBrief">
  120. {{goodsData.goodsBrief}}
  121. </view>
  122. </view>
  123. <!-- 有活动商品样式 end -->
  124. <!-- 选择规格 start -->
  125. <view class="spec_con" @click="showSpecModel">
  126. <view class="spec_left">
  127. <view class="spec_left_title">{{$L('已选')}}</view>
  128. <view class="spec_left_content" v-if="defaultProduct.specValues">{{defaultProduct.specValues}}</view>
  129. <view class="spec_left_content" v-else>{{$L('默认')}}</view>
  130. </view>
  131. <image :src="imgUrl+'goods_detail/right_down.png'" mode="" class="spec_right" ></image>
  132. </view>
  133. <!-- 选择规格 end -->
  134. <view class="detail-desc" id="nav2">
  135. <view class="detail-desc_title">
  136. <text>{{$L('商品详情')}}</text>
  137. <image :src="imgUrl + 'goods_detail/spec_param_bg.png'" mode=""></image>
  138. </view>
  139. <jyf-parser :html="goodsData.goodsDetails" ref="description"></jyf-parser>
  140. </view>
  141. <!-- 店铺推荐 推荐礼品 start -->
  142. <recommendList id="nav3" ref="recommendList"></recommendList>
  143. <!-- 店铺推荐 推荐礼品 end -->
  144. </view>
  145. <!-- 底部操作菜单 -->
  146. <view class="page_bottom" v-if="goodsData.state!=3">
  147. <view class="action_btn_group no_stock" @click="showSpecModel()">{{$L('商品已下架')}}</view>
  148. </view>
  149. <view class="page_bottom" v-else>
  150. <view class="action_btn_group no_stock" @click="showSpecModel()" v-if="defaultProduct.productStock == 0">{{$L('库存不足')}}</view>
  151. <view class="action_btn_group" @click="showSpecModel('buy')" v-else>{{$L('立即兑换')}}</view>
  152. </view>
  153. <!-- 分享 -->
  154. <share ref="share" :contentHeight="580" :shareList="shareList"></share>
  155. <uni-popup ref="popup" type="dialog" @touchmove.stop.prevent="moveHandle">
  156. <uni-popup-dialog type="input" :title="dialogTitle" :content="dialogCon" :duration="2000" before-close="true" @close="dialogCancle"
  157. @confirm="dialogConfirm"></uni-popup-dialog>
  158. </uni-popup>
  159. <!-- 分享弹框 start -->
  160. <view class="share_model" v-if="share_model" @touchmove.stop.prevent="moveHandle">
  161. <view class="share_model_list">
  162. <!-- #ifdef H5 -->
  163. <view class="share_model_pre" @tap.stop="sldShareBrower" v-if="isWeiXinBrower">
  164. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  165. <text>{{$L('微信好友')}}</text>
  166. </view>
  167. <!-- #endif -->
  168. <!-- #ifdef MP-WEIXIN -->
  169. <button open-type="share" class="share_model_pre">
  170. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  171. <text>{{$L('微信好友')}}</text>
  172. </button>
  173. <!-- #endif -->
  174. <!-- #ifdef APP-PLUS -->
  175. <view class="share_model_pre" @tap.stop="sldShare(0,'WXSceneSession')">
  176. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  177. <text>{{$L('微信好友')}}</text>
  178. </view>
  179. <view class="share_model_pre" @tap.stop="sldShare(0,'WXSenceTimeline')">
  180. <image :src="imgUrl+'goods_detail/wechat_moments.png'" mode=""></image>
  181. <text>{{$L('微信朋友圈')}}</text>
  182. </view>
  183. <!-- #endif -->
  184. <view class="share_model_pre">
  185. <image :src="imgUrl+'goods_detail/poster.png'" mode="" @click="getPoster"></image>
  186. <text>{{$L('生成海报')}}</text>
  187. </view>
  188. </view>
  189. <view class="share_model_close" @click="closeShareModel">
  190. <image :src="imgUrl+'goods_detail/share_close.png'" mode=""></image>
  191. </view>
  192. </view>
  193. <!-- 分享弹框 end -->
  194. <!-- 生成海报 start-->
  195. <view class="poster" v-if="poster" @touchmove.stop.prevent="moveHandle">
  196. <!-- 分享海报弹框 start -->
  197. <view class="share_model" :class="{poster_share_model:poster}">
  198. <image :src="sharePoster" mode="" class="poster_image" @longtap.stop="downloadPoster"></image>
  199. <view class="share_model_list">
  200. <!-- #ifdef MP-WEIXIN -->
  201. <view class="share_model_pre" @tap.stop="downloadPoster">
  202. <image :src="imgUrl+'goods_detail/poster.png'" mode=""></image>
  203. <text>{{$L('下载海报')}}</text>
  204. </view>
  205. <!-- #endif -->
  206. <!-- #ifdef APP-PLUS -->
  207. <view class="share_model_pre" @tap.stop="downloadPoster">
  208. <image :src="imgUrl+'goods_detail/poster.png'" mode=""></image>
  209. <text>{{$L('保存海报')}}</text>
  210. </view>
  211. <view class="share_model_pre" @tap.stop="sldShare(2,'WXSceneSession')">
  212. <image :src="imgUrl+'goods_detail/wx_share.png'" mode=""></image>
  213. <text>{{$L('微信好友')}}</text>
  214. </view>
  215. <view class="share_model_pre" @tap.stop="sldShare(2,'WXSenceTimeline')">
  216. <image :src="imgUrl+'goods_detail/wechat_moments.png'" mode=""></image>
  217. <text>{{$L('微信朋友圈')}}</text>
  218. </view>
  219. <!-- #endif -->
  220. </view>
  221. <!-- #ifndef H5 -->
  222. <view class="share_model_close" @click="closeShareModel">
  223. <image :src="imgUrl+'goods_detail/share_close.png'" mode=""></image>
  224. </view>
  225. <!-- #endif -->
  226. <!-- #ifdef H5 -->
  227. <image :src="imgUrl+'goods_detail/poster_share.png'" mode="" class="poster_share_img" @longtap.stop="downloadPoster"></image>
  228. <image :src="imgUrl+'goods_detail/poster_share_close.png'" mode="" class="poster_share_close" @click.stop="closePoster"></image>
  229. <!-- #endif -->
  230. </view>
  231. <!-- 分享海报弹框 end -->
  232. </view>
  233. <!-- 生成海报 end-->
  234. <!-- 微信浏览器分享提示 start-->
  235. <view class="wx_brower_share_mask" v-if="showWeiXinBrowerTip">
  236. <view class="wx_brower_share_top_wrap">
  237. <image :src="imgUrl+'wx_share_tip.png'" mode="widthFix" @tap="closeShareModel" class="wx_brower_share_img"></image>
  238. </view>
  239. </view>
  240. <!-- 微信浏览器分享提示 end-->
  241. <!-- 规格弹框 start -->
  242. <uni-popup class="spec_model" ref="specModel" type="bottom" @touchmove.stop.prevent="moveHandle">
  243. <view class="spec_model_con">
  244. <view class="spec_model_content">
  245. <view class="spec_model_top">
  246. <view class="spec_model_goods">
  247. <view class="spec_goods_image" v-if="defaultProduct && defaultProduct.goodsPics && defaultProduct.goodsPics[0]">
  248. <image :src="defaultProduct.goodsPics[0]" mode="aspectFit"></image>
  249. </view>
  250. <view class="spec_goods_right">
  251. <view class="spec_goods_price_con">
  252. <view class="spec_prices">
  253. <view class="spec_goods_point" v-if="defaultProduct.integralPrice">
  254. {{defaultProduct.integralPrice}}{{$L('积分')}}
  255. </view>
  256. <view class="flex_row_start_end">
  257. <view class="spec_goods_price" v-if="defaultProduct.cashPrice">
  258. <text>¥</text>
  259. <text>{{$getPartNumber(defaultProduct.cashPrice,'int')}}</text>
  260. <text>{{$getPartNumber(defaultProduct.cashPrice,'decimal')}}</text>
  261. </view>
  262. <view class="spec_goods_cash" v-if="defaultProduct.marketPrice">
  263. ¥{{filters.toFix(defaultProduct.marketPrice)}}
  264. </view>
  265. </view>
  266. </view>
  267. </view>
  268. <!-- 普通商品 start -->
  269. <view class="spec_goods_des">
  270. {{$L('已选规格')}}:{{defaultProduct.specValues ? defaultProduct.specValues : '默认'}}
  271. </view>
  272. <!-- 普通商品 end -->
  273. </view>
  274. </view>
  275. <image :src="imgUrl+'goods_detail/close.png'" mode="" class="close_spec" @click="closeSpecModel"></image>
  276. </view>
  277. <scroll-view scroll-y="true" class="spec_content">
  278. <view class="spec_list" v-if="specs && specs.length > 0">
  279. <view class="spec_list_pre" v-for="(item,index) in specs" :key="index">
  280. <view class="spec_list_pre_name">{{item.specName}}</view>
  281. <block v-if="item && item.specValueList && item.specValueList.length > 0" v-for="(item1,index1) in item.specValueList"
  282. :key='index1'>
  283. <!-- checkState : 1-选中,2-可选,3-禁用 -->
  284. <view class="spec_list_pre_desc" :class="{spec_list_pre_desc_disabled:item1.checkState == '3'}" v-if="item1.checkState == '3'">
  285. <view class="spec_list_pre_con">
  286. <image :src="item1.image" mode="" v-if="item1.image"></image>
  287. <text>{{item1.specValue}}</text>
  288. </view>
  289. </view>
  290. <view class="spec_list_pre_desc" :class="{spec_list_pre_desc_active:item1.checkState == '1'}" @click="selectSpecVal(item.specId,item1.specValueId)"
  291. v-else>
  292. <view class="spec_list_pre_con">
  293. <image :src="item1.image" mode="" v-if="item1.image"></image>
  294. <text>{{item1.specValue}}</text>
  295. </view>
  296. </view>
  297. </block>
  298. </view>
  299. </view>
  300. <view class="spec_num">
  301. <view class="spec_num_left">
  302. {{$L('购买数量')}}
  303. </view>
  304. <view class="spec_num_right">
  305. <text @click="editNum('reduce')" :class="{no_edit:currentSpecNum==1}">-</text>
  306. <input type="number" v-model="currentSpecNum" @input="editNum('edit',$event)" />
  307. <text @click="editNum('add')" :class="{no_edit:currentSpecNum==defaultProduct.productStock}">+</text>
  308. </view>
  309. </view>
  310. </scroll-view>
  311. </view>
  312. <!-- 规格弹框的底部按钮 start -->
  313. <view class="spec_btn" v-if="goodsData.state!=3">
  314. <!-- 已下架 start -->
  315. <button type="primary" class="no_stock_spec_btn">{{$L('商品已下架')}}</button>
  316. <!-- 已下架 end -->
  317. </view>
  318. <view class="spec_btn" v-else>
  319. <!-- 库存不足 start -->
  320. <button type="primary" class="no_stock_spec_btn" v-if="defaultProduct.productStock == 0">{{$L('库存不足')}}</button>
  321. <!-- 库存不足 end -->
  322. <!--立即兑换 start -->
  323. <button type="primary" class="spec_btn_only" @click="goConfirm" v-else>{{$L('立即兑换')}}</button>
  324. <!--立即兑换 end -->
  325. </view>
  326. <!-- 规格弹框的底部按钮 end -->
  327. </view>
  328. </uni-popup>
  329. <!-- 规格弹框 end -->
  330. </view>
  331. </template>
  332. <script module="filters" lang="wxs" src="../../../utils/filter.wxs"></script>
  333. <script>
  334. import share from '@/components/share';
  335. import uniPopup from '@/components/uni-popup/uni-popup.vue'
  336. import uniPopupMessage from '@/components/uni-popup/uni-popup-message.vue'
  337. import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
  338. import jyfParser from "@/components/jyf-parser/jyf-parser";
  339. import selectAddress from '@/components/yixuan-selectAddress/yixuan-selectAddress';
  340. import uniSwiperDot from "@/components/uni-swiper-dot/uni-swiper-dot.vue";
  341. import recommendList from "../components/recommend_list.vue";
  342. import {
  343. mapState
  344. } from 'vuex';
  345. export default {
  346. components: {
  347. share,
  348. uniPopup,
  349. uniPopupMessage,
  350. uniPopupDialog,
  351. jyfParser,
  352. selectAddress,
  353. uniSwiperDot,
  354. recommendList
  355. },
  356. data() {
  357. return {
  358. imgUrl: getApp().globalData.imgUrl,
  359. dialogTitle: '温馨提示!',
  360. dialogCon: '您需要先登录哦~',
  361. goodsData: {},
  362. shareList: [],
  363. goodsId: '', //商品id
  364. curFreight: '', //当前运费
  365. currentSelId: '', //默认选中第一个地址
  366. share_model: false, //分享弹框
  367. isNavShow: false, //是否显示导航
  368. navList: [{
  369. text: '商品',
  370. id: 0,
  371. },
  372. {
  373. text: '详情',
  374. id: 1
  375. },
  376. {
  377. text: '推荐',
  378. id: 2
  379. },
  380. ],
  381. currentNav: 0, //当前点击的默认是第一项
  382. nav1ScrollTop: 0, //商品模块距离顶部的距离
  383. nav2ScrollTop: 0, //详情模块距离顶部的距离
  384. nav3ScrollTop: 0, //推荐模块距离顶部的距离
  385. codeImg: '', //海报图片
  386. poster: false, //生成海报
  387. specModel: false, //规格弹框
  388. currentSpecNum: 1, //当前规格弹框中的购买数量
  389. defaultProduct: {}, //默认货品信息
  390. specs: [], //商品规格列表
  391. productId: '', //货品id
  392. sharePoster: '',
  393. isWeiXinBrower: false, //是否微信浏览器
  394. showWeiXinBrowerTip: false, //微信浏览器分享的提示操作
  395. source: 2, //来源,终端类型,1、pc 2、app;3、公众号或微信内部浏览器;4、小程序
  396. mode: 'nav', //轮播图的显示样式类型
  397. current: 0, //轮播图默认显示第一页
  398. showSpecModelType: '', //规格弹框的底部按钮的显示类型 默认:加入购物车及立即购买都有 add:加入购物车 buy:立即购买 nosocket库存不足 offshelf商品下架
  399. noOpcity: false, //顶部导航的背景是否有透明度,轮播图以上有,以下没有
  400. isLoading: false,
  401. transparent_mask: false, //透明遮罩蒙层
  402. tips_show: false, //分享链接弹框
  403. tips: [{
  404. tips_img: getApp().globalData.imgUrl + 'goods_detail/home.png',
  405. tips_name: '积分首页',
  406. tips_link: '/standard/point/index/index',
  407. type: 'navigateTo'
  408. },
  409. {
  410. tips_img: getApp().globalData.imgUrl + 'goods_detail/go_cart.png',
  411. tips_name: '购物车',
  412. tips_link: '/pages/cart/cart',
  413. type: 'switchTab'
  414. },
  415. {
  416. tips_img: getApp().globalData.imgUrl + 'goods_detail/preson.png',
  417. tips_name: '个人中心',
  418. tips_link: '/pages/user/user',
  419. type: 'switchTab'
  420. }
  421. ],
  422. onceLoad:true ,//页面首次加载标识
  423. goodsVideo:'',
  424. showControls:true,//是否显示轮播角标
  425. playVFlag:false,
  426. goBuyDisableStatus:false
  427. };
  428. },
  429. computed: {
  430. ...mapState(['hasLogin', 'userInfo'])
  431. },
  432. onReachBottom() {
  433. this.$refs.recommendList.getMoreData();
  434. },
  435. onShow(){
  436. if(!this.onceLoad){
  437. this.getGoodsDetail(this.productId);
  438. }
  439. },
  440. async onLoad(options) {
  441. setTimeout(()=>{
  442. //异步宏任务执行
  443. this.onceLoad=false;
  444. },0)
  445. uni.showLoading({
  446. title: '加载中!'
  447. })
  448. this.productId = options.productId;
  449. this.goodsId = options.goodsId;
  450. this.getGoodsDetail(this.productId);
  451. this.sharePoster = getApp().globalData.apiUrl +
  452. 'v3/integral/front/integral/goods/share/sharePosters?integralProductId=' + this.productId + '&source=' + this.source;
  453. // this.shareList = await this.$api.json('shareList');
  454. uni.getSystemInfo({
  455. success: (res) => {
  456. let clientHeight = res.windowHeight,
  457. clientWidth = res.windowWidth,
  458. rpxR = 750 / clientWidth;
  459. let calc = clientHeight * rpxR;
  460. this.winHeight = calc;
  461. }
  462. })
  463. // #ifdef H5
  464. this.isWeiXinBrower = this.$isWeiXinBrower();
  465. // #endif
  466. //#ifdef APP-PLUS
  467. this.source = 2;
  468. //#endif
  469. //#ifdef H5
  470. this.source = 3;
  471. //#endif
  472. //#ifdef MP-WEIXIN
  473. this.source = 4;
  474. //#endif
  475. this.goTop(); //一键回到页面顶部
  476. },
  477. onShareAppMessage: function() {
  478. return {
  479. title: this.goodsData.goodsName,
  480. path: '/pages/product/detail?productId=' + this.productId + '&goodsId=' + this.goodsId,
  481. imageUrl: this.defaultProduct.goodsPics
  482. };
  483. },
  484. //页面滚动事件
  485. onPageScroll(res) { //监听滚动事件,获取滚动条的当前位置
  486. this.tips_show = false;
  487. if (res.scrollTop > 50) {
  488. this.isNavShow = true
  489. if (res.scrollTop > 350) {
  490. this.noOpcity = true
  491. } else {
  492. this.noOpcity = false;
  493. }
  494. if (res.scrollTop < this.nav2ScrollTop) {
  495. this.currentNav = 0;
  496. } else if (res.scrollTop >= this.nav2ScrollTop && res.scrollTop < this.nav3ScrollTop) {
  497. this.currentNav = 1
  498. } else if (res.scrollTop >= this.nav3ScrollTop) {
  499. this.currentNav = 2
  500. }
  501. } else {
  502. this.isNavShow = false;
  503. }
  504. },
  505. methods: {
  506. //立即兑换
  507. goConfirm() {
  508. if (!this.hasLogin) {
  509. getApp().globalData.goLogin()
  510. return
  511. }
  512. this.$refs.specModel.close();
  513. uni.navigateTo({
  514. url: '/standard/point/product/confirm_order?number=' + this.currentSpecNum + '&productId=' + this.productId
  515. })
  516. },
  517. //获取页面元素模块距离顶部的距离
  518. getSelectorQuery() {
  519. let query = uni.createSelectorQuery().in(this);
  520. // 获取状态栏的高度
  521. let statusBarHeight = 0;
  522. // #ifdef APP-PLUS
  523. let systemInfo = uni.getSystemInfoSync();
  524. statusBarHeight = systemInfo.statusBarHeight;
  525. // #endif
  526. //获取对应模块到顶部的距离
  527. query.select('#nav1').boundingClientRect((res) => {
  528. this.nav1ScrollTop = res.top - (50 + statusBarHeight)
  529. }).exec()
  530. query.select('#nav2').boundingClientRect((res) => {
  531. this.nav2ScrollTop = res.top - (50 + statusBarHeight)
  532. }).exec()
  533. query.select('#nav3').boundingClientRect((res) => {
  534. this.nav3ScrollTop = res.top - (50 + statusBarHeight)
  535. }).exec()
  536. },
  537. // 点击导航
  538. clickNav(navId) {
  539. this.currentNav = navId;
  540. if (navId == 0) {
  541. this.isNavShow = true;
  542. uni.pageScrollTo({
  543. scrollTop: 0,
  544. duration: 300
  545. })
  546. this.isNavShow = false;
  547. } else if (navId == 1) {
  548. uni.pageScrollTo({
  549. scrollTop: this.nav2ScrollTop,
  550. duration: 300
  551. })
  552. } else if (navId == 2) {
  553. uni.pageScrollTo({
  554. scrollTop: this.nav3ScrollTop + 5,
  555. duration: 600
  556. })
  557. }
  558. },
  559. //轮播图切换
  560. change: function(e) {
  561. this.current = e.detail.current;
  562. if(this.goodsVideo&&e.detail.current==0){
  563. this.showControls=false
  564. }else{
  565. this.showControls=true
  566. }
  567. },
  568. //跳转客服页面
  569. toKefu() {
  570. this.$sldCommonTip()
  571. },
  572. //浏览器分享
  573. sldShareBrower() {
  574. this.showWeiXinBrowerTip = true;
  575. this.share_model = false;
  576. let {
  577. goodsData
  578. } = this;
  579. this.$weiXinBrowerShare(1, {
  580. title: goodsData.goodsName,
  581. desc: goodsData.goodsBrief,
  582. link: goodsData.shareLink,
  583. imgUrl: goodsData.shareImage,
  584. });
  585. },
  586. //分享 type:分享类型 0 图文 2图片,scene 场景 WXSceneSession:分享朋友 WXSenceTimeline:分享朋友圈
  587. sldShare: function(type, scene) {
  588. let shareData = {};
  589. let {
  590. goodsData,
  591. sharePoster
  592. } = this;
  593. if (type == 0) {
  594. shareData.href = goodsData.shareLink;
  595. shareData.title = goodsData.goodsName;
  596. shareData.summary = goodsData.goodsBrief;
  597. shareData.imageUrl = goodsData.shareImage;
  598. } else if (type == 2) {
  599. shareData.imageUrl = sharePoster;
  600. }
  601. this.$weiXinAppShare(type, scene, shareData);
  602. this.closeShareModel(); //关闭分享
  603. },
  604. // 点击播放按钮,或者视频播放结束隐藏视频组件
  605. playVideo(type){
  606. if(type=='on'){
  607. this.playVFlag = true
  608. }else if(type=='end'){
  609. this.playVFlag = false
  610. }
  611. },
  612. //回到页面顶部
  613. goTop() {
  614. uni.pageScrollTo({
  615. scrollTop: 0,
  616. duration: 300
  617. });
  618. this.currentNav = 0;
  619. },
  620. //获取商品详情信息
  621. getGoodsDetail(productId) {
  622. this.$request({
  623. url: 'v3/integral/front/integral/mall/details',
  624. data: {
  625. integralProductId: this.productId, //积分货品Id
  626. }
  627. }).then(res => {
  628. if (res.state == 200) {
  629. this.goodsData = res.data; //详情信息
  630. this.defaultProduct = res.data.defaultProduct; //默认货品信息
  631. if(!this.defaultProduct.productStock){
  632. //如果默认库存为0,则此商品全规格库存都为0,则禁用button
  633. this.goBuyDisableStatus=true;
  634. }
  635. this.productId = this.defaultProduct.integralProductId; //货品id
  636. this.specs = res.data.specs; //规格列表
  637. this.goodsId = res.data.integralGoodsId; //商品的goodsId;
  638. this.goodsVideo = res.data.goodsVideo,
  639. this.showControls = this.goodsVideo?false:true;
  640. this.isLoading = true;
  641. uni.hideLoading();
  642. } else {
  643. this.isLoading = true;
  644. //错误提示
  645. this.$api.msg(res.msg);
  646. }
  647. }).then(() => {
  648. setTimeout(() => {
  649. this.getSelectorQuery();
  650. }, 0)
  651. }).catch((e) => {})
  652. },
  653. /**选择规格值
  654. * @param {Object} specId 父级规格值
  655. * @param {Object} specValueId 点击的当前的规格值
  656. */
  657. selectSpecVal(specId, specValueId) {
  658. let that = this;
  659. let curParSpec = []; //当前点击的规格的父级id的当前项
  660. curParSpec = that.specs.filter(item => item.specId == specId);
  661. let curSPec = []; //当前点击的规格的规格id的当前项
  662. curSPec = curParSpec[0].specValueList.filter(item1 => item1.specValueId == specValueId);
  663. curSPec[0].checkState = 1;
  664. //被选择的规格值的id
  665. let choiceSpecIds = [];
  666. that.specs.forEach(item => {
  667. if (item.specId != specId) {
  668. item.specValueList.forEach(item1 => {
  669. if (item1.checkState == '1') { // checkState: 1-选中,2-可选,3-禁用
  670. choiceSpecIds.push(item1.specValueId)
  671. }
  672. })
  673. } else {
  674. choiceSpecIds.push(specValueId);
  675. }
  676. })
  677. let param = {};
  678. param.url = 'v3/integral/front/integral/mall/productInfo';
  679. param.method = 'GET';
  680. param.data = {};
  681. param.data.integralGoodsId = that.goodsId;
  682. param.data.specValueIds = choiceSpecIds.join(',');
  683. that.$request(param).then(res => {
  684. if (res.state == 200) {
  685. let result = res.data;
  686. that.defaultProduct = result.defaultProduct; //默认货品信息
  687. that.productId = result.defaultProduct.integralProductId; //货品id
  688. that.specs = res.data.specs; //规格列表
  689. that.goodsId = res.data.integralGoodsId; //商品的goodsId;
  690. that.currentSpecNum = 1;
  691. } else {
  692. that.$api.msg(res.msg);
  693. }
  694. }).catch((e) => {
  695. //异常处理
  696. })
  697. },
  698. //分享
  699. share() {
  700. this.$refs.share.toggleMask();
  701. },
  702. moveHandle() {},
  703. //弹层取消事件
  704. dialogCancle() {
  705. this.$refs.popup.close();
  706. },
  707. //弹层确认事件
  708. dialogConfirm() {
  709. uni.navigateTo({
  710. url: `/pages/public/login`
  711. })
  712. this.$refs.popup.close();
  713. },
  714. //去分享
  715. goShare() {
  716. this.share_model = true;
  717. },
  718. //关闭分享弹框
  719. closeShareModel() {
  720. this.share_model = false;
  721. this.showWeiXinBrowerTip = false;
  722. this.poster = false;
  723. },
  724. //获取海报
  725. getPoster() {
  726. this.share_model = false;
  727. this.showWeiXinBrowerTip = false;
  728. this.poster = true;
  729. },
  730. //下载海报
  731. downloadPoster() {
  732. let {
  733. sharePoster
  734. } = this;
  735. let _this = this;
  736. uni.downloadFile({
  737. url: sharePoster,
  738. success: res_info => {
  739. if (res_info.statusCode == 200) {
  740. uni.saveImageToPhotosAlbum({
  741. filePath: sharePoster,
  742. success: function(data) {
  743. uni.showToast({
  744. title: '已保存到本地',
  745. icon: 'success',
  746. duration: 1000
  747. });
  748. },
  749. fail: function(res) {
  750. uni.getSetting({
  751. success: function(res_down) {
  752. if (!res_down.authSetting['scope.writePhotosAlbum']) {
  753. uni.showModal({
  754. title: '提示',
  755. content: '您好,需要开启相册权限',
  756. showCancel: false,
  757. success(res) {
  758. if (res.confirm) {
  759. uni.authorize({
  760. scope: 'scope.writePhotosAlbum',
  761. success() {
  762. // 用户已经同意,后续调用时不会弹窗询问
  763. uni.showToast({
  764. title: '已保存到本地',
  765. icon: 'success',
  766. duration: 1000
  767. });
  768. _this.closeShare();
  769. },
  770. fail(res) {
  771. //拒绝授权
  772. uni.showToast({
  773. title: '抱歉,没有授权无法下载海报',
  774. icon: 'none'
  775. });
  776. }
  777. });
  778. }
  779. }
  780. });
  781. } else {
  782. uni.saveImageToPhotosAlbum({
  783. filePath: sharePoster,
  784. success: function(data) {
  785. uni.showToast({
  786. title: '已保存到本地',
  787. icon: 'success',
  788. duration: 1000
  789. });
  790. },
  791. fail: function(res) {
  792. }
  793. })
  794. }
  795. },
  796. fail: function(res) {
  797. }
  798. });
  799. }
  800. })
  801. } else {
  802. uni.showToast({
  803. title: '下载失败',
  804. icon: 'none'
  805. });
  806. _this.poster = true;
  807. }
  808. }
  809. })
  810. },
  811. //关闭海报
  812. closePoster() {
  813. this.poster = false;
  814. },
  815. //打开规格弹框
  816. showSpecModel(type) {
  817. if(this.goBuyDisableStatus && !type){
  818. return;
  819. }
  820. if (type == 'add') {
  821. this.showSpecModelType = 'add'
  822. } else if (type == 'buy') {
  823. this.showSpecModelType = 'buy'
  824. } else if (type == 'offshelf') {
  825. this.showSpecModelType = 'offshelf'
  826. } else if (type == 'nosocket') {
  827. this.showSpecModelType = 'nosocket'
  828. } else {
  829. this.showSpecModelType = ''
  830. }
  831. this.$refs.specModel.open();
  832. },
  833. //编辑数量
  834. editNum(type, e) {
  835. let that = this;
  836. if (type == 'add') {
  837. if (that.currentSpecNum >= that.defaultProduct.productStock) {
  838. if(that.defaultProduct.productStock<=0){
  839. //如果商品库存为0,禁止操作购买数量即可
  840. return;
  841. }
  842. that.currentSpecNum = that.defaultProduct.productStock;
  843. } else {
  844. if (that.currentSpecNum > 999) {
  845. that.currentSpecNum = 999;
  846. } else {
  847. that.currentSpecNum++
  848. }
  849. }
  850. } else if (type == 'edit') {
  851. if (that.currentSpecNum > that.defaultProduct.productStock) {
  852. setTimeout(() => {
  853. that.currentSpecNum = that.defaultProduct.productStock;
  854. }, 0)
  855. } else {
  856. that.currentSpecNum = e.detail.value;
  857. if (that.currentSpecNum == 0) {
  858. setTimeout(() => {
  859. that.currentSpecNum = 1;
  860. }, 0)
  861. } else {
  862. that.currentSpecNum = that.currentSpecNum.replace(/\D/g, '');
  863. if (that.currentSpecNum > 999) {
  864. setTimeout(() => {
  865. that.currentSpecNum = 999;
  866. }, 0)
  867. } else {
  868. setTimeout(() => {
  869. that.currentSpecNum = that.currentSpecNum;
  870. }, 0)
  871. }
  872. }
  873. }
  874. } else if (type == 'reduce') {
  875. if (that.currentSpecNum > 1) {
  876. that.currentSpecNum--;
  877. } else {
  878. that.currentSpecNum = 1;
  879. }
  880. }
  881. },
  882. //关闭规格弹框
  883. closeSpecModel() {
  884. this.$refs.specModel.close();
  885. },
  886. //去商品详情页面
  887. goGoodsDetail(defaultProductId, goodsId) {
  888. uni.navigateTo({
  889. url: '/pages/product/detail?productId=' + defaultProductId + '&goodsId=' + goodsId
  890. })
  891. },
  892. //分享链接的弹框展示
  893. tipsShow() {
  894. this.tips_show = !this.tips_show;
  895. this.transparent_mask = !this.transparent_mask;
  896. },
  897. //三点分享链接
  898. handleLink(e) {
  899. let link = e.currentTarget.dataset.link;
  900. let type = e.currentTarget.dataset.type;
  901. if (type != 'share') {
  902. if (type == 'navigateTo') {
  903. uni.navigateTo({
  904. url: link
  905. })
  906. } else {
  907. uni.switchTab({
  908. url: link
  909. });
  910. }
  911. }
  912. this.tips_show = false;
  913. },
  914. //隐藏透明遮罩层
  915. hideMask() {
  916. this.transparent_mask = false;
  917. this.tips_show = false;
  918. },
  919. //返回上一页
  920. goBack() {
  921. // #ifdef H5
  922. const pages = getCurrentPages();
  923. //有返回的页面则直接返回,uni.navigateBack默认返回失败之后会自动刷新页面,无法继续返回
  924. if (pages.length > 1) {
  925. uni.navigateBack(1)
  926. return;
  927. }
  928. //vue router 可以返回uni.navigateBack失败的页面,但是会重新加载
  929. let a = this.$router.go(-1);
  930. //router.go失败之后则重定向到积分首页
  931. if (a == undefined) {
  932. uni.reLaunch({
  933. url: '/standard/point/index/index'
  934. })
  935. }
  936. return;
  937. // #endif
  938. uni.navigateBack({
  939. delta: 1
  940. })
  941. },
  942. //h5跳转新页面播放视频
  943. toPlayPage(){
  944. uni.navigateTo({
  945. url: '/pages/product/video?video_url='+this.goodsVideo+'&posterImage='+this.defaultProduct.goodsPics[0],
  946. });
  947. },
  948. }
  949. }
  950. </script>
  951. <style lang='scss'>
  952. page {
  953. background: $bg-color-split;
  954. /* padding-bottom: 100rpx; */
  955. width: 750rpx;
  956. margin: 0 auto;
  957. }
  958. .container{
  959. position: relative;
  960. }
  961. .uni-swiper-dot,.swiper-box,.video_btn,.swiper_item,.slide-image{
  962. width: 100%;
  963. height: 750rpx;
  964. }
  965. .play_btn{
  966. width: 90rpx;
  967. height: 90rpx;
  968. position: absolute;
  969. left: 50%; //起始是在body中,横向距左50%的位置
  970. top:50%; //起始是在body中,纵向距上50%的位置,这个点相当于body的中心点,div的左上角的定位
  971. transform:translate(-50%,-50%);//水平、垂直都居中,也可以写成下面的方式
  972. }
  973. .go_back {
  974. width: 50rpx;
  975. height: 50rpx;
  976. position: absolute;
  977. /* #ifdef H5 */
  978. top: 28rpx;
  979. /* #endif */
  980. /* #ifdef APP-PLUS */
  981. top: calc(var(--status-bar-height) + 28rpx);
  982. /* #endif */
  983. left: 25rpx;
  984. z-index: 99;
  985. image {
  986. width: 50rpx;
  987. height: 50rpx;
  988. }
  989. }
  990. .go_more{
  991. width: 50rpx;
  992. height: 50rpx;
  993. position: absolute;
  994. /* #ifdef H5 */
  995. top: 28rpx;
  996. /* #endif */
  997. /* #ifdef APP-PLUS */
  998. top: 28rpx;
  999. /* #endif */
  1000. right: 25rpx;
  1001. z-index: 99;
  1002. image{
  1003. width: 50rpx;
  1004. height: 50rpx;
  1005. }
  1006. .triangle-up {
  1007. position: absolute;
  1008. display: block;
  1009. top: 40rpx;
  1010. right: -15rpx;
  1011. width: 0rpx;
  1012. height: 0rpx;
  1013. background: #FFFFFF;
  1014. border: 1px solid #CCCCCC;
  1015. &::before {
  1016. box-sizing: content-box;
  1017. width: 0;
  1018. height: 0;
  1019. position: absolute;
  1020. top: -2px;
  1021. right: 25rpx;
  1022. padding: 0;
  1023. border-bottom: 8px solid #ffffff;
  1024. border-top: 8px solid transparent;
  1025. border-left: 8px solid transparent;
  1026. border-right: 8px solid transparent;
  1027. display: block;
  1028. content: '';
  1029. z-index: 12;
  1030. }
  1031. &::after {
  1032. box-sizing: content-box;
  1033. width: 0px;
  1034. height: 0px;
  1035. position: absolute;
  1036. top: -5px;
  1037. right: 20rpx;
  1038. padding: 0;
  1039. border-bottom: 9px solid rgba(102, 102, 102, 0.1);
  1040. border-top: 9px solid transparent;
  1041. border-left: 9px solid transparent;
  1042. border-right: 10px solid transparent;
  1043. display: block;
  1044. content: '';
  1045. z-index: 10
  1046. }
  1047. }
  1048. .tips {
  1049. position: absolute;
  1050. z-index: 20;
  1051. top: 70rpx;
  1052. right: -10rpx;
  1053. width: 226rpx;
  1054. background: rgba(255, 255, 255, 1);
  1055. box-shadow: 0px 0px 10rpx 0px rgba(102, 102, 102, 0.2);
  1056. opacity: 0.94;
  1057. border-radius: 15rpx;
  1058. display: flex;
  1059. flex-direction: column;
  1060. .tips_pre {
  1061. width: 100%;
  1062. height: 88rpx;
  1063. display: flex;
  1064. align-items: center;
  1065. padding-left: 30rpx;
  1066. box-sizing: border-box;
  1067. }
  1068. button::after {
  1069. border: none;
  1070. border-bottom: 1rpx solid #f1f1f1;
  1071. }
  1072. button[plain] {
  1073. border: none;
  1074. }
  1075. image {
  1076. width: 32rpx;
  1077. height: 32rpx;
  1078. margin-right: 20rpx;
  1079. }
  1080. text {
  1081. font-size: 26rpx;
  1082. font-family: PingFang SC;
  1083. font-weight: 500;
  1084. color: rgba(51, 51, 51, 1);
  1085. line-height: 32rpx;
  1086. }
  1087. }
  1088. }
  1089. .icon-you {
  1090. font-size: $font-base;
  1091. color: #888;
  1092. }
  1093. /* 透明遮罩层 */
  1094. .transparent_mask {
  1095. width: 100%;
  1096. height: 100%;
  1097. position: fixed;
  1098. background-color: #FFFFFF;
  1099. top: 0;
  1100. left: 0;
  1101. opacity: 0;
  1102. z-index: 10;
  1103. }
  1104. .fixed_top_status_bar {
  1105. position: fixed;
  1106. /* #ifdef APP-PLUS */
  1107. height: var(--status-bar-height);
  1108. /* #endif */
  1109. /* #ifndef APP-PLUS */
  1110. height: 0;
  1111. /* #endif */
  1112. top: 0;
  1113. left: 0;
  1114. right: 0;
  1115. z-index: 99;
  1116. background: rgba(250, 250, 250, 0.9);
  1117. }
  1118. .fixed_top_status_bar_no_opcity {
  1119. background: #FFFFFF;
  1120. }
  1121. .nav_list {
  1122. display: flex;
  1123. justify-content: space-between;
  1124. position: fixed;
  1125. width: 750rpx;
  1126. height: 100rpx;
  1127. background: rgba(250, 250, 250, 0.9);
  1128. padding: 0 50rpx 0 20rpx;
  1129. /* #ifdef MP-WEIXIN */
  1130. padding-left: 150rpx;
  1131. /* #endif */
  1132. align-items: center;
  1133. z-index: 50;
  1134. .go_back_nav {
  1135. width: 50rpx;
  1136. height: 50rpx;
  1137. image {
  1138. width: 20rpx;
  1139. height: 32rpx;
  1140. }
  1141. }
  1142. .nav_list_pre {
  1143. font-size: 32rpx;
  1144. font-family: PingFang SC;
  1145. font-weight: 500;
  1146. color: #333333;
  1147. line-height: 32rpx;
  1148. padding-bottom: 5rpx;
  1149. }
  1150. .nav_list_pre_active {
  1151. border-bottom: 5rpx solid #FC1C1C;
  1152. }
  1153. /* 三点更多分享 */
  1154. .more_tips {
  1155. position: relative;
  1156. display: flex;
  1157. align-items: center;
  1158. .more {
  1159. width: 50rpx;
  1160. height: 50rpx;
  1161. }
  1162. .triangle-up {
  1163. position: absolute;
  1164. display: block;
  1165. top: 40rpx;
  1166. left: 25rpx;
  1167. width: 0rpx;
  1168. height: 0rpx;
  1169. background: #FFFFFF;
  1170. border: 1px solid #CCCCCC;
  1171. &::before {
  1172. box-sizing: content-box;
  1173. width: 0;
  1174. height: 0;
  1175. position: absolute;
  1176. top: -2px;
  1177. right: 25rpx;
  1178. padding: 0;
  1179. border-bottom: 8px solid #ffffff;
  1180. border-top: 8px solid transparent;
  1181. border-left: 8px solid transparent;
  1182. border-right: 8px solid transparent;
  1183. display: block;
  1184. content: '';
  1185. z-index: 12;
  1186. }
  1187. &::after {
  1188. box-sizing: content-box;
  1189. width: 0px;
  1190. height: 0px;
  1191. position: absolute;
  1192. top: -5px;
  1193. right: 20rpx;
  1194. padding: 0;
  1195. border-bottom: 9px solid rgba(102, 102, 102, 0.1);
  1196. border-top: 9px solid transparent;
  1197. border-left: 9px solid transparent;
  1198. border-right: 10px solid transparent;
  1199. display: block;
  1200. content: '';
  1201. z-index: 10
  1202. }
  1203. }
  1204. .tips {
  1205. position: absolute;
  1206. z-index: 20;
  1207. top: 70rpx;
  1208. right: -30rpx;
  1209. width: 226rpx;
  1210. background: rgba(255, 255, 255, 1);
  1211. box-shadow: 0px 0px 10rpx 0px rgba(102, 102, 102, 0.2);
  1212. opacity: 0.94;
  1213. border-radius: 15rpx;
  1214. display: flex;
  1215. flex-direction: column;
  1216. .tips_pre {
  1217. width: 100%;
  1218. height: 88rpx;
  1219. display: flex;
  1220. align-items: center;
  1221. padding-left: 40rpx;
  1222. box-sizing: border-box;
  1223. }
  1224. button::after {
  1225. border: none;
  1226. border-bottom: 1rpx solid #f1f1f1;
  1227. }
  1228. button[plain] {
  1229. border: none;
  1230. }
  1231. image {
  1232. width: 32rpx;
  1233. height: 32rpx;
  1234. margin-right: 20rpx;
  1235. }
  1236. text {
  1237. font-size: 26rpx;
  1238. font-family: PingFang SC;
  1239. font-weight: 500;
  1240. color: rgba(51, 51, 51, 1);
  1241. line-height: 32rpx;
  1242. }
  1243. }
  1244. }
  1245. }
  1246. .nav_list_no_opcity {
  1247. background: #FFFFFF;
  1248. }
  1249. .detail_con {
  1250. padding-bottom: 100rpx;
  1251. }
  1252. .carousel {
  1253. height: 750rpx;
  1254. position: relative;
  1255. /* #ifndef MP-WEIXIN */
  1256. margin-top: var(--status-bar-height);
  1257. /* #endif */
  1258. .swiper-box {
  1259. width: 750rpx;
  1260. height: 750rpx;
  1261. }
  1262. swiper {
  1263. height: 100%;
  1264. }
  1265. .image-wrapper {
  1266. width: 100%;
  1267. height: 100%;
  1268. }
  1269. .swiper-item {
  1270. display: flex;
  1271. justify-content: center;
  1272. align-content: center;
  1273. height: 750rpx;
  1274. overflow: hidden;
  1275. image {
  1276. max-width: 100%;
  1277. max-height: 100%;
  1278. }
  1279. }
  1280. }
  1281. /* 积分商品商品信息 start */
  1282. .introduce_section_point {
  1283. width: 750rpx;
  1284. height: 130rpx;
  1285. padding: 15rpx 0 20rpx 24rpx;
  1286. box-sizing: border-box;
  1287. .point_top {
  1288. .point_num {
  1289. text {
  1290. font-size: 40rpx;
  1291. font-family: PingFang SC;
  1292. font-weight: 600;
  1293. color: #FFFFFF;
  1294. &:nth-child(2) {
  1295. font-size: 30rpx;
  1296. }
  1297. }
  1298. }
  1299. .point_tips {
  1300. font-size: 40rpx;
  1301. font-family: PingFang SC;
  1302. font-weight: 600;
  1303. color: #FFFFFF;
  1304. margin: 0 5rpx;
  1305. }
  1306. .point_price {
  1307. text {
  1308. font-size: 30rpx;
  1309. font-family: PingFang SC;
  1310. font-weight: 600;
  1311. color: #FFFFFF;
  1312. &:nth-child(2) {
  1313. font-size: 40rpx;
  1314. }
  1315. }
  1316. }
  1317. }
  1318. .point_original_sales {
  1319. width: 700rpx;
  1320. .point_original_price {
  1321. font-size: 26rpx;
  1322. font-family: PingFang SC;
  1323. font-weight: 500;
  1324. color: #FFFFFF;
  1325. opacity: 0.7;
  1326. text {
  1327. text-decoration: line-through;
  1328. }
  1329. }
  1330. .point_sales {
  1331. font-size: 26rpx;
  1332. font-family: PingFang SC;
  1333. font-weight: 500;
  1334. color: #FFFFFF;
  1335. }
  1336. }
  1337. }
  1338. /* 积分商品商品信息 end */
  1339. /* 有活动的商品描述详情 start */
  1340. .introduce_section_activity {
  1341. background: #FFFFFF;
  1342. padding: 28rpx 0 30rpx 0;
  1343. margin-bottom: 20rpx;
  1344. .activity_goods_des {
  1345. display: flex;
  1346. justify-content: space-between;
  1347. padding: 0 30rpx 0 21rpx;
  1348. .activity_goods_name {
  1349. width: 533rpx;
  1350. font-size: 32rpx;
  1351. font-family: PingFang SC;
  1352. font-weight: bold;
  1353. color: #333333;
  1354. line-height: 48rpx;
  1355. text-overflow: -o-ellipsis-lastline;
  1356. overflow: hidden;
  1357. text-overflow: ellipsis;
  1358. display: -webkit-box;
  1359. -webkit-line-clamp: 2;
  1360. line-clamp: 2;
  1361. -webkit-box-orient: vertical;
  1362. word-break: break-all;
  1363. }
  1364. .activity_share_collection {
  1365. display: flex;
  1366. .activity_goods_collection {
  1367. display: flex;
  1368. flex-direction: column;
  1369. align-items: center;
  1370. width: 100rpx;
  1371. .iconfont {
  1372. font-size: 44rpx;
  1373. }
  1374. .iconaixin1 {
  1375. color: #FB1C1C;
  1376. }
  1377. .show_text {
  1378. font-size: 22rpx;
  1379. font-family: PingFang SC;
  1380. font-weight: 500;
  1381. color: #2D2D2D;
  1382. }
  1383. }
  1384. .activity_goods_share {
  1385. display: flex;
  1386. flex-direction: column;
  1387. align-items: center;
  1388. margin-left: 15rpx;
  1389. .iconfont {
  1390. font-size: 44rpx;
  1391. }
  1392. .show_text {
  1393. font-size: 22rpx;
  1394. font-family: PingFang SC;
  1395. font-weight: 500;
  1396. color: #2D2D2D;
  1397. }
  1398. }
  1399. }
  1400. }
  1401. .activity_goods_brief {
  1402. width: 681rpx;
  1403. font-size: 28rpx;
  1404. font-family: PingFang SC;
  1405. font-weight: 500;
  1406. color: #555555;
  1407. line-height: 36rpx;
  1408. overflow: hidden;
  1409. text-overflow: ellipsis;
  1410. white-space: nowrap;
  1411. padding: 0 20rpx;
  1412. box-sizing: border-box;
  1413. margin-top: 8px;
  1414. }
  1415. }
  1416. /* 有活动的商品描述详情 end */
  1417. /* 标题简介 */
  1418. .introduce_section {
  1419. background: #fff;
  1420. padding: 20rpx;
  1421. margin-bottom: 20rpx;
  1422. .price_part {
  1423. .left {
  1424. display: flex;
  1425. flex-direction: column;
  1426. .sell_price {
  1427. color: $main-color;
  1428. .unit {
  1429. font-size: 26rpx;
  1430. font-weight: bold;
  1431. }
  1432. .price_int {
  1433. font-size: 50rpx;
  1434. line-height: 50rpx;
  1435. margin-left: 4rpx;
  1436. font-weight: bold;
  1437. }
  1438. .price_decimal {
  1439. font-size: 26rpx;
  1440. font-weight: bold;
  1441. }
  1442. }
  1443. .original_price {
  1444. color: #949494;
  1445. font-size: 22rpx;
  1446. text-decoration: line-through;
  1447. }
  1448. }
  1449. .right {
  1450. .collection {
  1451. display: flex;
  1452. flex-direction: column;
  1453. width: 72rpx;
  1454. .iconaixin1 {
  1455. color: #f80f0c;
  1456. }
  1457. .iconaixin {
  1458. color: #2D2D2D;
  1459. }
  1460. text {
  1461. font-size: 22rpx;
  1462. font-family: PingFang SC;
  1463. font-weight: 500;
  1464. color: #2D2D2D;
  1465. }
  1466. }
  1467. view {
  1468. .iconfont {
  1469. font-size: 50rpx;
  1470. color: #2D2D2D;
  1471. &.active {
  1472. color: $main-color;
  1473. }
  1474. }
  1475. .show_text {
  1476. color: #2D2D2D;
  1477. font-size: 22rpx;
  1478. &.active {
  1479. color: $main-color;
  1480. }
  1481. }
  1482. &:last-child {
  1483. margin-left: 25rpx;
  1484. }
  1485. }
  1486. }
  1487. }
  1488. .goods_name {
  1489. font-size: 32rpx;
  1490. font-weight: 600;
  1491. color: #333;
  1492. line-height: 45rpx;
  1493. overflow: hidden;
  1494. text-overflow: ellipsis;
  1495. display: -webkit-box;
  1496. -webkit-line-clamp: 2;
  1497. -webkit-box-orient: vertical;
  1498. word-break: break-word;
  1499. margin-top: 20rpx;
  1500. }
  1501. .goods_ad {
  1502. color: #666666;
  1503. font-size: 28rpx;
  1504. line-height: 60rpx;
  1505. height: 60rpx;
  1506. overflow: hidden;
  1507. text-overflow: ellipsis;
  1508. white-space: nowrap;
  1509. }
  1510. .coupon-tip {
  1511. align-items: center;
  1512. padding: 4rpx 10rpx;
  1513. background: $uni-color-primary;
  1514. font-size: $font-sm;
  1515. color: #fff;
  1516. border-radius: 6rpx;
  1517. line-height: 1;
  1518. transform: translateY(-4rpx);
  1519. }
  1520. }
  1521. /* 分享 */
  1522. .share-section {
  1523. display: flex;
  1524. align-items: center;
  1525. color: $font-color-base;
  1526. background: linear-gradient(left, #fdf5f6, #fbebf6);
  1527. padding: 12rpx 30rpx;
  1528. .share-icon {
  1529. display: flex;
  1530. align-items: center;
  1531. width: 70rpx;
  1532. height: 30rpx;
  1533. line-height: 1;
  1534. border: 1px solid $uni-color-primary;
  1535. border-radius: 4rpx;
  1536. position: relative;
  1537. overflow: hidden;
  1538. font-size: 22rpx;
  1539. color: $uni-color-primary;
  1540. &:after {
  1541. content: '';
  1542. width: 50rpx;
  1543. height: 50rpx;
  1544. border-radius: 50%;
  1545. left: -20rpx;
  1546. top: -12rpx;
  1547. position: absolute;
  1548. background: $uni-color-primary;
  1549. }
  1550. }
  1551. .icon-xingxing {
  1552. position: relative;
  1553. z-index: 1;
  1554. font-size: 24rpx;
  1555. margin-left: 2rpx;
  1556. margin-right: 10rpx;
  1557. color: #fff;
  1558. line-height: 1;
  1559. }
  1560. .tit {
  1561. font-size: $font-base;
  1562. margin-left: 10rpx;
  1563. }
  1564. .icon-bangzhu1 {
  1565. padding: 10rpx;
  1566. font-size: 30rpx;
  1567. line-height: 1;
  1568. }
  1569. .share-btn {
  1570. flex: 1;
  1571. text-align: right;
  1572. font-size: $font-sm;
  1573. color: $uni-color-primary;
  1574. }
  1575. .icon-you {
  1576. font-size: $font-sm;
  1577. margin-left: 4rpx;
  1578. color: $uni-color-primary;
  1579. }
  1580. }
  1581. .spec_con {
  1582. padding: 0 8rpx 0 20rpx;
  1583. box-sizing: border-box;
  1584. display: flex;
  1585. justify-content: space-between;
  1586. align-items: center;
  1587. height: 90rpx;
  1588. background: #FFFFFF;
  1589. .spec_left {
  1590. display: flex;
  1591. align-items: center;
  1592. .spec_left_title {
  1593. font-size: 26rpx;
  1594. font-family: PingFang SC;
  1595. font-weight: 500;
  1596. color: #666666;
  1597. line-height: 45rpx;
  1598. margin-right: 35rpx;
  1599. }
  1600. .spec_left_content {
  1601. width: 550rpx;
  1602. white-space: nowrap;
  1603. text-overflow: ellipsis;
  1604. overflow: hidden;
  1605. word-break: break-all;
  1606. font-size: 28rpx;
  1607. font-family: PingFang SC;
  1608. font-weight: 500;
  1609. color: #343434;
  1610. line-height: 45rpx;
  1611. margin-right: 10rpx;
  1612. }
  1613. }
  1614. .spec_right {
  1615. width: 36rpx;
  1616. height: 36rpx;
  1617. }
  1618. }
  1619. .c-list {
  1620. font-size: $font-sm;
  1621. color: $font-color-base;
  1622. background: #fff;
  1623. .c-row {
  1624. display: flex;
  1625. align-items: center;
  1626. padding: 20rpx 20rpx;
  1627. position: relative;
  1628. }
  1629. .tit {
  1630. color: #666;
  1631. font-size: 26rpx;
  1632. margin-right: 35rpx;
  1633. }
  1634. .con {
  1635. flex: 1;
  1636. color: #333;
  1637. font-size: 28rpx;
  1638. .selected-text {
  1639. margin-right: 10rpx;
  1640. }
  1641. }
  1642. .bz-list {
  1643. height: 40rpx;
  1644. font-size: $font-sm;
  1645. color: $font-color-dark;
  1646. text {
  1647. display: inline-block;
  1648. margin-right: 30rpx;
  1649. }
  1650. }
  1651. .con-list {
  1652. flex: 1;
  1653. display: flex;
  1654. flex-direction: column;
  1655. color: $font-color-dark;
  1656. line-height: 40rpx;
  1657. }
  1658. .red {
  1659. color: $uni-color-primary;
  1660. }
  1661. }
  1662. /* 积分 start */
  1663. .integral {
  1664. background: #FFFFFF;
  1665. .integral_content {
  1666. border-top: 1rpx solid #f2f2f2;
  1667. display: flex;
  1668. align-items: center;
  1669. height: 100rpx;
  1670. padding: 0 20rpx;
  1671. .integral_title {
  1672. font-size: 28rpx;
  1673. font-family: PingFang SC;
  1674. font-weight: 500;
  1675. color: #666666;
  1676. }
  1677. .integral_con {
  1678. font-size: 28rpx;
  1679. font-family: PingFang SC;
  1680. font-weight: 500;
  1681. color: #333333;
  1682. margin-left: 35rpx;
  1683. }
  1684. }
  1685. }
  1686. /* 积分 end */
  1687. /* 详情 */
  1688. .detail-desc {
  1689. background: #fff;
  1690. margin-top: 20rpx;
  1691. overflow-x: hidden;
  1692. padding: 30rpx 20rpx;
  1693. box-sizing: border-box;
  1694. .detail-desc_title {
  1695. margin-bottom: 30rpx;
  1696. display: flex;
  1697. flex-direction: column;
  1698. text {
  1699. font-size: 28rpx;
  1700. font-family: PingFang SC;
  1701. font-weight: bold;
  1702. color: #2D2D2D;
  1703. line-height: 36rpx;
  1704. }
  1705. image {
  1706. width: 675rpx;
  1707. height: 22rpx;
  1708. }
  1709. }
  1710. }
  1711. /* 弹出层 */
  1712. .popup {
  1713. position: fixed;
  1714. left: 0;
  1715. top: 0;
  1716. right: 0;
  1717. bottom: 0;
  1718. z-index: 99;
  1719. &.show {
  1720. display: block;
  1721. .mask {
  1722. animation: showPopup 0.2s linear both;
  1723. }
  1724. .layer {
  1725. animation: showLayer 0.2s linear both;
  1726. }
  1727. }
  1728. &.hide {
  1729. .mask {
  1730. animation: hidePopup 0.2s linear both;
  1731. }
  1732. .layer {
  1733. animation: hideLayer 0.2s linear both;
  1734. }
  1735. }
  1736. &.none {
  1737. display: none;
  1738. }
  1739. .mask {
  1740. position: fixed;
  1741. top: 0;
  1742. width: 100%;
  1743. height: 100%;
  1744. z-index: 1;
  1745. background-color: rgba(0, 0, 0, 0.4);
  1746. }
  1747. .layer {
  1748. position: fixed;
  1749. z-index: 99;
  1750. bottom: 0;
  1751. width: 100%;
  1752. min-height: 40vh;
  1753. border-radius: 10rpx 10rpx 0 0;
  1754. background-color: #fff;
  1755. .btn {
  1756. height: 66rpx;
  1757. line-height: 66rpx;
  1758. border-radius: 100rpx;
  1759. background: $uni-color-primary;
  1760. font-size: $font-base;
  1761. color: #fff;
  1762. margin: 30rpx auto 20rpx;
  1763. }
  1764. }
  1765. @keyframes showPopup {
  1766. 0% {
  1767. opacity: 0;
  1768. }
  1769. 100% {
  1770. opacity: 1;
  1771. }
  1772. }
  1773. @keyframes hidePopup {
  1774. 0% {
  1775. opacity: 1;
  1776. }
  1777. 100% {
  1778. opacity: 0;
  1779. }
  1780. }
  1781. @keyframes showLayer {
  1782. 0% {
  1783. transform: translateY(120%);
  1784. }
  1785. 100% {
  1786. transform: translateY(0%);
  1787. }
  1788. }
  1789. @keyframes hideLayer {
  1790. 0% {
  1791. transform: translateY(0);
  1792. }
  1793. 100% {
  1794. transform: translateY(120%);
  1795. }
  1796. }
  1797. }
  1798. /* 底部操作菜单 */
  1799. .page_bottom {
  1800. position: fixed;
  1801. left: 0rpx;
  1802. right: 0rpx;
  1803. margin: 0 auto;
  1804. bottom: 0rpx;
  1805. z-index: 95;
  1806. display: flex;
  1807. justify-content: center;
  1808. align-items: center;
  1809. width: 750rpx;
  1810. height: 98rpx;
  1811. background: #fff;
  1812. box-shadow: 0px 0px 20px 0px rgba(86, 86, 86, 0.2);
  1813. .p_b_btn {
  1814. display: flex;
  1815. flex-direction: column;
  1816. align-items: center;
  1817. justify-content: center;
  1818. font-size: $font-sm;
  1819. color: $font-color-base;
  1820. width: 96rpx;
  1821. height: 80rpx;
  1822. position: relative;
  1823. image {
  1824. width: 40rpx;
  1825. height: 40rpx;
  1826. margin-bottom: 10rpx;
  1827. }
  1828. .show_text {
  1829. color: #2D2D2D;
  1830. font-size: 20rpx;
  1831. }
  1832. .cart_num {
  1833. width: 30rpx;
  1834. height: 30rpx;
  1835. position: absolute;
  1836. right: 10rpx;
  1837. top: -10rpx;
  1838. background: #FF0000;
  1839. border-radius: 50%;
  1840. display: flex;
  1841. align-items: center;
  1842. justify-content: center;
  1843. color: #FFFFFF;
  1844. }
  1845. }
  1846. .action_btn_group {
  1847. width: 690rpx;
  1848. height: 70rpx;
  1849. background: $point-btn-color;
  1850. border-radius: 35rpx;
  1851. font-size: 30rpx;
  1852. font-family: PingFang SC;
  1853. font-weight: 500;
  1854. color: #FFFFFF;
  1855. line-height: 70rpx;
  1856. text-align: center;
  1857. &.no_stock{
  1858. background: #BBBBBB;
  1859. color: #FFFFFF;
  1860. }
  1861. }
  1862. }
  1863. .share_model {
  1864. width: 750rpx;
  1865. height: 100%;
  1866. position: fixed;
  1867. top: 0;
  1868. left: 0;
  1869. right: 0;
  1870. margin: 0 auto;
  1871. background: rgba(0, 0, 0, 0.6);
  1872. z-index: 100;
  1873. }
  1874. .share_model_list {
  1875. display: flex;
  1876. justify-content: space-around;
  1877. padding: 0 50rpx;
  1878. box-sizing: border-box;
  1879. position: fixed;
  1880. bottom: 150rpx;
  1881. z-index: 110;
  1882. width: 750rpx;
  1883. .share_model_pre {
  1884. display: flex;
  1885. flex-direction: column;
  1886. align-items: center;
  1887. background: transparent;
  1888. border-radius: 0;
  1889. height: auto;
  1890. line-height: auto;
  1891. &::after {
  1892. border-width: 0;
  1893. }
  1894. image {
  1895. width: 105rpx;
  1896. height: 105rpx;
  1897. }
  1898. text {
  1899. font-size: 24rpx;
  1900. font-family: PingFang SC;
  1901. font-weight: 500;
  1902. color: #FFFFFF;
  1903. line-height: 36rpx;
  1904. margin-top: 30rpx;
  1905. }
  1906. }
  1907. }
  1908. .share_model_close {
  1909. width: 46rpx;
  1910. height: 46rpx;
  1911. bottom: 60rpx;
  1912. position: fixed;
  1913. z-index: 110;
  1914. left: 0;
  1915. right: 0;
  1916. margin: 0 auto;
  1917. image {
  1918. width: 46rpx;
  1919. height: 46rpx;
  1920. }
  1921. }
  1922. button {
  1923. padding: 0;
  1924. margin: 0;
  1925. }
  1926. .poster {
  1927. width: 750rpx;
  1928. height: 100%;
  1929. position: fixed;
  1930. top: 0;
  1931. left: 0;
  1932. right: 0;
  1933. margin: 0 auto;
  1934. background: rgba(0, 0, 0, 0.6);
  1935. z-index: 100;
  1936. .poster_image {
  1937. width: 541rpx;
  1938. height: 837rpx;
  1939. background: #FFFFFF;
  1940. border-radius: 20rpx;
  1941. position: absolute;
  1942. left: 105rpx;
  1943. /* #ifdef H5 */
  1944. bottom: 360rpx;
  1945. /* #endif */
  1946. /* #ifndef H5 */
  1947. bottom: 380rpx;
  1948. /* #endif */
  1949. }
  1950. .poster_share_img {
  1951. width: 390rpx;
  1952. height: 90rpx;
  1953. /* left: 179rpx; */
  1954. position: absolute;
  1955. bottom: 177rpx;
  1956. margin: 72rpx 0 22rpx;
  1957. }
  1958. .poster_share_close {
  1959. width: 49rpx;
  1960. height: 49rpx;
  1961. position: absolute;
  1962. /* left: 351rpx; */
  1963. bottom: 105rpx;
  1964. }
  1965. /* #ifdef H5 */
  1966. .poster_share_model {
  1967. width: 750rpx;
  1968. height: 100%;
  1969. position: fixed;
  1970. display: flex;
  1971. flex-direction: column;
  1972. justify-content: center;
  1973. align-items: center;
  1974. .poster_image {
  1975. width: 541rpx;
  1976. height: 837rpx;
  1977. background: #FFFFFF;
  1978. border-radius: 20rpx;
  1979. }
  1980. .poster_share_img {
  1981. width: 390rpx;
  1982. height: 90rpx;
  1983. margin: 72rpx 0 22rpx;
  1984. }
  1985. .poster_share_close {
  1986. width: 49rpx;
  1987. height: 49rpx;
  1988. }
  1989. }
  1990. /* #endif */
  1991. }
  1992. .spec_model {
  1993. .spec_model_con {
  1994. width: 750rpx;
  1995. height: 900rpx;
  1996. background: #FFFFFF;
  1997. border-radius: 10rpx 10rpx 0;
  1998. position: fixed;
  1999. bottom: 0;
  2000. left: 0;
  2001. right: 0;
  2002. margin: 0 auto;
  2003. z-index: 150;
  2004. .spec_model_content {
  2005. padding-bottom: 115rpx;
  2006. .spec_model_top {
  2007. display: flex;
  2008. justify-content: space-between;
  2009. padding: 30rpx 22rpx 0 30rpx;
  2010. box-sizing: border-box;
  2011. .spec_model_goods {
  2012. display: flex;
  2013. height: 151rpx;
  2014. align-items: center;
  2015. .spec_goods_image {
  2016. width: 151rpx;
  2017. height: 151rpx;
  2018. background: #EEEEEE;
  2019. border-radius: 15rpx;
  2020. image {
  2021. width: 151rpx;
  2022. height: 151rpx;
  2023. border-radius: 15rpx;
  2024. }
  2025. }
  2026. .spec_goods_right {
  2027. margin-left: 30rpx;
  2028. width: 450rpx;
  2029. .spec_goods_price_con {
  2030. display: flex;
  2031. align-items: center;
  2032. .spec_prices {
  2033. .spec_goods_point {
  2034. font-size: 30rpx;
  2035. font-family: PingFang SC;
  2036. font-weight: 600;
  2037. color: #F30300;
  2038. }
  2039. .spec_goods_tips {
  2040. font-size: 28rpx;
  2041. font-family: PingFang SC;
  2042. font-weight: 600;
  2043. color: #F30300;
  2044. margin-right: 5rpx;
  2045. }
  2046. .spec_goods_price {
  2047. display: inline-block;
  2048. text {
  2049. font-size: 24rpx;
  2050. font-family: PingFang SC;
  2051. font-weight: 600;
  2052. color: #FC1C1C;
  2053. }
  2054. text:nth-child(2) {
  2055. font-size: 30rpx;
  2056. }
  2057. }
  2058. .spec_goods_cash {
  2059. font-size: 24rpx;
  2060. font-family: PingFang SC;
  2061. font-weight: 500;
  2062. text-decoration: line-through;
  2063. color: #999999;
  2064. margin-left: 10rpx;
  2065. }
  2066. }
  2067. .sec_kill_tips {
  2068. width: 130rpx;
  2069. height: 40rpx;
  2070. background: linear-gradient(90deg, #FFAA06 0%, #FF8323 0%, #FC5300 0%, #FF1353 100%);
  2071. border-radius: 20rpx;
  2072. font-size: 24rpx;
  2073. font-family: PingFang SC;
  2074. font-weight: 500;
  2075. color: #FFFFFF;
  2076. text-align: center;
  2077. line-height: 40rpx;
  2078. margin-left: 20px;
  2079. }
  2080. }
  2081. .spec_goods_des {
  2082. font-size: 28rpx;
  2083. font-family: PingFang SC;
  2084. font-weight: 500;
  2085. color: #343434;
  2086. margin-top: 19rpx;
  2087. width: 450rpx;
  2088. white-space: nowrap;
  2089. text-overflow: ellipsis;
  2090. overflow: hidden;
  2091. word-break: break-all;
  2092. }
  2093. }
  2094. }
  2095. .close_spec {
  2096. width: 46rpx;
  2097. height: 46rpx;
  2098. }
  2099. }
  2100. .spec_content {
  2101. height: 620rpx;
  2102. .spec_list {
  2103. margin: 0 30rpx;
  2104. padding-top: 34rpx;
  2105. .spec_list_pre {
  2106. border-bottom: 1rpx solid #F5F5F5;
  2107. .spec_list_pre_name {
  2108. font-size: 28rpx;
  2109. font-family: PingFang SC;
  2110. font-weight: 500;
  2111. color: #666666;
  2112. margin-bottom: 30rpx;
  2113. }
  2114. .spec_list_pre_desc {
  2115. display: inline-table;
  2116. padding: 13rpx 25rpx;
  2117. box-sizing: border-box;
  2118. box-sizing: border-box;
  2119. background: #F5F5F5;
  2120. border-radius: 50rpx;
  2121. margin-bottom: 30rpx;
  2122. margin-right: 30rpx;
  2123. border: 1rpx solid #F5F5F5;
  2124. .spec_list_pre_con {
  2125. display: flex;
  2126. align-items: center;
  2127. text {
  2128. font-size: 26rpx;
  2129. font-family: PingFang SC;
  2130. font-weight: 500;
  2131. color: #343434;
  2132. text-align: center;
  2133. }
  2134. image {
  2135. width: 36rpx;
  2136. height: 36rpx;
  2137. margin-right: 20rpx;
  2138. }
  2139. }
  2140. }
  2141. .spec_list_pre_desc_active {
  2142. background: #FFFFFF;
  2143. border: 1rpx solid #FC1C1C;
  2144. .spec_list_pre_con {
  2145. text {
  2146. color: #FC1C1C;
  2147. }
  2148. }
  2149. }
  2150. .spec_list_pre_desc_disabled {
  2151. background: #F5F5F5;
  2152. opacity: 0.2;
  2153. .spec_list_pre_con {
  2154. text {
  2155. color: #2D2D2D;
  2156. }
  2157. }
  2158. }
  2159. }
  2160. }
  2161. .spec_num {
  2162. height: 50rpx;
  2163. display: flex;
  2164. justify-content: space-between;
  2165. align-items: center;
  2166. padding: 0 20rpx 0 30rpx;
  2167. box-sizing: border-box;
  2168. margin-top: 16rpx;
  2169. .spec_num_left {
  2170. font-size: 28rpx;
  2171. font-family: PingFang SC;
  2172. font-weight: 500;
  2173. color: #666666;
  2174. text {
  2175. color: #949494;
  2176. }
  2177. }
  2178. .spec_num_right {
  2179. width: 182rpx;
  2180. height: 50rpx;
  2181. border: 1rpx solid #EDEDED;
  2182. border-radius: 6rpx;
  2183. display: flex;
  2184. justify-content: center;
  2185. align-items: center;
  2186. font-size: 24rpx;
  2187. font-family: PingFang SC;
  2188. font-weight: bold;
  2189. color: #A6A6A6;
  2190. line-height: 30rpx;
  2191. text {
  2192. width: 51rpx;
  2193. height: 50rpx;
  2194. text-align: center;
  2195. line-height: 50rpx;
  2196. border-left: 1rpx solid #EDEDED;
  2197. &.no_edit{
  2198. background: #F8F8F8;
  2199. opacity: 0.5;
  2200. color: #949494;
  2201. }
  2202. }
  2203. text:nth-child(1) {
  2204. color: #949494;
  2205. border-right: 1rpx solid #EDEDED;
  2206. border-left: none;
  2207. }
  2208. input {
  2209. width: 78rpx;
  2210. height: 50rpx;
  2211. line-height: 50rpx;
  2212. text-align: center;
  2213. font-size: 24rpx;
  2214. color: #333333;
  2215. }
  2216. }
  2217. }
  2218. }
  2219. }
  2220. .spec_btn {
  2221. width: 750rpx;
  2222. height: 98rpx;
  2223. background: #FFFFFF;
  2224. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(86, 86, 86, 0.08);
  2225. display: flex;
  2226. align-items: center;
  2227. justify-content: center;
  2228. position: fixed;
  2229. bottom: 0;
  2230. .spec_btn_only {
  2231. width: 690rpx;
  2232. height: 70rpx;
  2233. border-radius: 35rpx;
  2234. font-size: 30rpx;
  2235. font-family: PingFang SC;
  2236. font-weight: 500;
  2237. color: #FFFFFF;
  2238. text-align: center;
  2239. line-height: 70rpx;
  2240. background: $point-btn-color;
  2241. }
  2242. .no_stock_spec_btn{
  2243. width: 690rpx;
  2244. height: 70rpx;
  2245. border-radius: 35rpx;
  2246. font-size: 30rpx;
  2247. font-family: PingFang SC;
  2248. font-weight: 500;
  2249. color: #FFFFFF;
  2250. text-align: center;
  2251. line-height: 70rpx;
  2252. background: #BBBBBB;
  2253. }
  2254. }
  2255. }
  2256. }
  2257. </style>