goods.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811
  1. <template>
  2. <view class="">
  3. <view class="content">
  4. <!-- <view class="share-box centerV ">
  5. <image class="w48 h48 " src="" mode=""></image>
  6. <text class="color-text mt8 weight-500 fs20">微信分享</text>
  7. </view> -->
  8. <!-- 商品轮播图片 -->
  9. <!-- <view class="shop-banner" @click="showImg()">
  10. 商品轮播图
  11. <swiper class="swiper" :indicator-dots="false" :circular="true" :autoplay="true" :interval="3000"
  12. :duration="1000" indicator-color="rgba(255, 255, 255, 0.6)" indicator-active-color="#ffffff" @change="">
  13. <swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index">
  14. <image :src="item" mode="aspectFill"></image>
  15. <view class="cf-box" v-if="product.productType==2">
  16. <view class="title">处方药</view>
  17. <view class="subTitle">请在医师指导下使用</view>
  18. </view>
  19. </swiper-item>
  20. </swiper>
  21. 底部遮罩
  22. <view class="banner-mask"></view>
  23. 数量
  24. <view class="num-box"><text class="weight-500">{{ activeBanner }}</text>/{{ banner.length }}</view>
  25. </view> -->
  26. <view class="shop-banner">
  27. <view class="swiper">
  28. <view class="swiper-item">
  29. <image :src="goosDetail.imgUrl" mode="aspectFill"></image>
  30. <view class="cf-box" v-if="product.productType==2">
  31. <view class="title">处方药</view>
  32. <view class="subTitle">请在医师指导下使用</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 详细信息 -->
  38. <view class="det-info">
  39. <view class="price-box">
  40. <view class="price">
  41. <text class="label">会员价</text>
  42. <text class="unit">¥</text>
  43. <text class="num">{{goosDetail.price}}</text>
  44. <text class="fs24 color-text2">零售价</text>
  45. <text class="old">¥{{goosDetail.otPrice}}</text>
  46. </view>
  47. <text class="fs24 color-text2">月售{{goosDetail.sales}}件</text>
  48. </view>
  49. <!-- <view class="name-box">
  50. <view class="tag"></view>
  51. {{product.productName}}
  52. </view> -->
  53. <!-- <view class="intro" v-if="product.productInfo!=null" v-html="product.productInfo.replace(/\n/g,'<br>')"> -->
  54. </view>
  55. </view>
  56. <view class="guige">
  57. <view class="guige-gg">
  58. <text class="gg-text">规格</text>
  59. <text class="gg-text2">云南白药气雾剂 85g+30g *1 、说明书*1</text>
  60. </view>
  61. <view class="safe-box">
  62. <text class="text">服务</text>
  63. <view class="box">
  64. <view v-for="(item,index) in serviceList" :key="index">
  65. <image src="/static/images/googs_service.png" mode=""></image>
  66. <text>{{item}}</text>
  67. </view>
  68. <view @click="openEditMoney()">
  69. <image class='w48 h48' src="/static/images/right_arrow.png"></image>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 点击服务,出现弹窗-->
  74. <view class="popup-box" v-if="editShow">
  75. <view class="info-mask" @tap="cancelEditMoney()"></view>
  76. <view class="info-form">
  77. <view class="top">
  78. <view class="title">服务</view>
  79. <view class="close" @click="cancelEditMoney()">
  80. <image class='w48 h48' src="" mode=""></image>
  81. </view>
  82. </view>
  83. <view class="line"></view>
  84. <view class="form-box">
  85. <view class="form-item2">
  86. <view class="form-item-box">
  87. <image class='w28 h28' src="" mode=""></image>
  88. <text>免邮发货</text>
  89. </view>
  90. <view class="form-content">
  91. 订单支付成功后48小时内发货,若未在48小时内发货,平台审核后消费者将会收到至少3元无门槛红包(特殊商品及不可抗力因素除外)
  92. </view>
  93. </view>
  94. <view class="form-item2">
  95. <view class="form-item-box">
  96. <image class='w28 h28' src="" mode=""></image>
  97. <text>药师服务</text>
  98. </view>
  99. <view class="form-content">
  100. 用药关怀认证药师,24小时专业用药咨询
  101. </view>
  102. </view>
  103. <view class="form-item2">
  104. <view class="form-item-box">
  105. <image class='w28 h28' src="" mode=""></image>
  106. <text>隐私保护</text>
  107. </view>
  108. <view class="form-content">
  109. 除患者本人或其授权的代理人外,其他人员未经允许不得随意查阅患者的医疗记录
  110. </view>
  111. </view>
  112. </view>
  113. <view class="btns">
  114. <view class="sub-btn" @click="cancelEditMoney()">确定</view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <!-- 购买人数、库存 -->
  120. <view class="shop-box">
  121. <view class=""
  122. style="flex: 1;overflow: hidden; display: flex; justify-content: space-between; align-items: center;">
  123. <!-- 店铺图片logo -->
  124. <!-- <view class="logo">
  125. <image src="" mode="aspectFill"></image>
  126. </view> -->
  127. <view class="txtBox">
  128. <view class="name">南泉达路店</view>
  129. <view class="desc">24小时营业 · 月售{{}} · 支持预订</view>
  130. </view>
  131. </view>
  132. <button class="goShop" @click="navgetTo('/pages_shop/store?liveId='+liveId)">进店</button>
  133. </view>
  134. <!-- 图文详情 -->
  135. <view class="det-box">
  136. <view class="title">药品详情</view>
  137. <view class="det-title">
  138. <view class="tt">说明书</view>
  139. <view class="det-right">
  140. <text>查看详情</text>
  141. <image class='w48 h48' src=""></image>
  142. </view>
  143. </view>
  144. <view class="det-table">
  145. <view class="row">
  146. <text class="cell cell-1">通用名称</text>
  147. <text class="cell cell-2">云南白药气雾剂</text>
  148. </view>
  149. <view class="row">
  150. <text class="cell cell-1">成份</text>
  151. <text class="cell cell-2">国家保密方,本品含草乌(制)、雪上一枝蒿(制),其余成份略。</text>
  152. </view>
  153. <view class="row">
  154. <text class="cell cell-1">性状</text>
  155. <text class="cell cell-2">云南白药气雾剂为非定量阀门气雾剂,在耐压容器中的药液为淡黄...</text>
  156. </view>
  157. </view>
  158. <view class="inner">
  159. <view v-html="product.description" style="font-size:0"></view>
  160. </view>
  161. </view>
  162. <!-- 底部按钮 -->
  163. <view class="btn-foot">
  164. <view class="menu-box">
  165. <view class="item" @click="navgetTo('./store')">
  166. <image src="/static/images/googs1.png" mode=""></image>
  167. <text class="label">店铺</text>
  168. </view>
  169. <!-- <view class="item" @click="navgetTo('pages/home/living')" style="position: relative;">
  170. <image src="/static/images/googs2.png" mode=""></image>
  171. <text class="label">直播间</text>
  172. <button class="contact-btn" open-type="contact"></button>
  173. </view> -->
  174. <!-- <view class="item" style="position: relative;">
  175. <image src="/static/images/googs2.png" mode=""></image>
  176. <text class="label">咨询</text>
  177. <button class="contact-btn" open-type="contact"></button>
  178. </view> -->
  179. <view class="item" @click="navgetTo('./cart')">
  180. <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error">
  181. <image src="/static/images/googs3.png" mode=""></image>
  182. </uni-badge>
  183. <text class="label">购物车</text>
  184. </view>
  185. </view>
  186. <view class="btn-box">
  187. <view class="btn cart" @click="addCart('cart')">加入购物车</view>
  188. <view class="btn buy" @click="addCart('buy')">{{buyText}}</view>
  189. </view>
  190. </view>
  191. <!-- 选择药品规格弹窗 -->
  192. <popupBottom ref="popup" :visible.sync="specVisible" title=" " radius="32" maxHeight="800">
  193. <view class="product-spec">
  194. <view class="pro-info">
  195. <view class="img-box">
  196. <image :src="goosDetail?.imgUrl ||$img.img " mode="aspectFill"></image>
  197. </view>
  198. <view class="info-text">
  199. <view class="info-title">{{goosDetail.productName}}</view>
  200. <view class="price">
  201. <view class="label">会员价</view>
  202. <text class="unit">¥</text>
  203. <text class="num">{{ goosDetail.price ? goosDetail.price.toFixed(2) : '0.00' }}</text>
  204. </view>
  205. <view class="desc-box">
  206. <text class="text">月售{{goosDetail.sales}}件</text>
  207. </view>
  208. </view>
  209. </view>
  210. <!-- 选择健康管理师 -->
  211. <!-- <view class="tech-pBox" style="margin-top: 20rpx;">
  212. <view class="label">选择健康管理师</view>
  213. <view v-for="(item,index) in storePriceList.slice(0,2)" :key="index"
  214. :class="productValueSelect.storeId == item.storeId ? 'item hover':'item'"
  215. @click="storeChange(item,index)">
  216. <image mode="aspectFill"
  217. :src="productValueSelect.image==null||productValueSelect.image==''?product.image:productValueSelect.image">
  218. </image>
  219. <view class="tech-right">
  220. <view class="tech-right-top">
  221. <text class="title-1">秦宇</text>
  222. <text class="title-2">健康管理师/执业药师</text>
  223. </view>
  224. <view class="tech-right-bottom">{{item.storeName}}</view>
  225. </view>
  226. </view>
  227. </view> -->
  228. <u-popup :show="showStorePicker" :round="16" mode="bottom">
  229. <view class="storepopup">
  230. <view class="storepopup-title">
  231. 选择店铺
  232. <image class="close-icon" src="" mode="widthFix"></image>
  233. </view>
  234. <scroll-view enable-flex class="shop-pBox storepopup-box" scroll-y="true">
  235. <view v-for="(item,index) in storePriceList" :key="index"
  236. :class="productValueSelect.storeId == item.storeId ? 'item hover':'item'"
  237. @click="pickerStore(item,index)">
  238. <view class="top x-bc">
  239. <view class="price"><text class="strong">¥</text>{{ item.price.toFixed(2) }}</view>
  240. <view class="num">销售{{utils.formatSalesNum(item.sales) }}</view>
  241. </view>
  242. <view class="bot x-bc shop-pBox-name">
  243. <view class="name">{{item.storeName}}</view>
  244. <u-icon name="arrow-right" color="#000" size="14"></u-icon>
  245. </view>
  246. </view>
  247. </scroll-view>
  248. </view>
  249. </u-popup>
  250. <!-- <view class="spec-box">
  251. <view v-for="(item,index) in attrs">
  252. <view class="title">{{item.attrName}}</view>
  253. <view class="spec-list">
  254. <view v-for="(subItem,subindex) in item.values" :key="subindex"
  255. :class="subindex==item.index?'item active':'item'">
  256. {{ subItem }}
  257. </view>
  258. </view>
  259. </view>
  260. </view> -->
  261. <view class="price-num">
  262. <view class="label">数量</view>
  263. <u-number-box bgColor="#ececec" v-model="goodsNum" @change="goodsNumChange"></u-number-box>
  264. </view>
  265. <view class="sub-btn" @click="submit">确定</view>
  266. </view>
  267. </popupBottom>
  268. <!-- <view class="loadding" v-if="loadding==true">
  269. <image src=""></image>
  270. <text class="text">加载中...</text>
  271. </view> -->
  272. <!-- <u-modal :show="showModal" title="温馨提示" content="处方药须凭处方在药师指导下购买和使用" @confirm="hideModal()"></u-modal> -->
  273. <!-- <view>
  274. <view @click="operateOrder(0)" style="background-color: aqua; padding: 100rpx;">取消</view>
  275. <view @click="operateOrder(1)" style="background-color: #ff0004;padding: 150rpx;">确认</view>
  276. </view> -->
  277. </view>
  278. </template>
  279. <script>
  280. import {
  281. liveCartDetails, //获取购物车详情
  282. updateConfirm, // 点击取消/支付订单
  283. updateLiveOrder, // 取消/支付订单
  284. liveOrderKey, // 生成订单key
  285. addLiveCart // 新增购物车
  286. } from "@/api/order.js"
  287. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  288. import {
  289. liveGoodsDetail
  290. } from "@/api/live.js"
  291. export default {
  292. components: {
  293. popupBottom
  294. },
  295. data() {
  296. return {
  297. goodsId: null,
  298. totalNum: 1,
  299. orderKey: null,
  300. type: null,
  301. liveOrderList: [], //下订单的 不在这个页面
  302. liveId: null,
  303. // storeId:uni.setStorageSync("storeId"),
  304. serviceList: ['免邮发货', '药师服务', '隐私保护'],
  305. editShow: false,
  306. productId: null,
  307. goosDetail: {}, //商品详情
  308. loadding: true,
  309. buyText: "立即购买",
  310. showStorePicker: false,
  311. goodsNum: 0, //商品选择数量
  312. attrs: [],
  313. values: [],
  314. stores: [],
  315. storeNames: [],
  316. storeIdx: 0,
  317. storeName: "",
  318. product: {
  319. price: 0,
  320. otPrice: 0,
  321. },
  322. showModal: false,
  323. // 当前轮播的图片
  324. activeBanner: 1,
  325. // 购物车数量
  326. cartCount: 0,
  327. // 规格弹窗
  328. specVisible: false,
  329. // // 规格数量
  330. // specNum: 1,
  331. config: null,
  332. showServiceFee: false,
  333. selectVal: "",
  334. // 链接带的storeId
  335. urlStoreId: undefined,
  336. // 所选规格门店店铺价格
  337. storePriceList: [],
  338. // 所选店铺
  339. storeSelectInfo: {},
  340. // 保存选的规格
  341. choseSpecSubIndex: 0,
  342. choseSpecIndex: 0,
  343. };
  344. },
  345. onLoad(options) {
  346. if (options.productId) {
  347. this.productId = options.productId;
  348. // this.productId = decodeURIComponent(options.productId);
  349. console.log("接收到的productId:", this.productId);
  350. }
  351. this.liveId = options.liveId
  352. this.goodsId = options.goodsId
  353. // console.log("options", JSON.stringify(options))
  354. // if (options.param) {
  355. // console.log("param", JSON.stringify(param))
  356. // this.productId = options.param.productId;
  357. // this.liveId = options.param.liveId;
  358. // this.storeId = options.param.storeId;
  359. // // this.productId = decodeURIComponent(options.productId);
  360. // console.log("接收到的productId:", this.productId);
  361. // }
  362. },
  363. mounted() {
  364. this.getliveGoods()
  365. var userInfo = uni.getStorageSync("userInfo")
  366. console.log("之前的数据在这里", userInfo)
  367. },
  368. onShow() {
  369. },
  370. methods: {
  371. // getLiveCartDetails() {
  372. // let data = {
  373. // productId: this.productId,
  374. // liveId: this.liveId,
  375. // goodsId: this.goodsId,
  376. // cartNum: this.totalNum,
  377. // };
  378. // liveCartDetails(data).then(
  379. // res => {
  380. // if (res.code == 200) {
  381. // console.log("加购物车啦", res)
  382. // this.cartCount = cartRes.data;
  383. // }
  384. // },
  385. // rej => {}
  386. // );
  387. // },
  388. doAddCart(type) {
  389. if (this.totalNum == 0) {
  390. uni.showToast({
  391. icon: 'none',
  392. title: "库存不足",
  393. });
  394. return;
  395. }
  396. var isBuy = type == "buy" ? 1 : 0;
  397. // let data = {
  398. // isBuy: isBuy,
  399. // cartNum: this.totalNum,
  400. // productId: this.productId,
  401. // };
  402. if (type == "buy") {
  403. this.getKey()
  404. } else {
  405. this.getCartCount()
  406. uni.showToast({
  407. icon: 'success',
  408. title: "添加成功",
  409. });
  410. }
  411. },
  412. getCartCount() {
  413. let data = {
  414. productId: this.productId,
  415. liveId: this.liveId,
  416. goodsId: this.goodsId,
  417. cartNum: this.totalNum,
  418. };
  419. addLiveCart(data).then(
  420. res => {
  421. if (res.code == 200) {
  422. console.log("加购物车啦", res)
  423. this.cartCount = res.data;
  424. }
  425. },
  426. rej => {}
  427. );
  428. },
  429. // 获得key
  430. getKey() {
  431. liveOrderKey().then(res => {
  432. if (res.code == 200) {
  433. console.log("下订单的key>>>>", res)
  434. this.orderKey = res.orderKey
  435. console.log("key>>>>", this.orderKey)
  436. uni.navigateTo({
  437. url: '/pages_shop/confirmCreateOrder?type=goods&orderKey=' + this.orderKey + '&liveId=' +
  438. this.liveId + '&productId=' + this.productId + '&totalNum=' + this
  439. .totalNum + '&price=' + this.goosDetail.price
  440. })
  441. } else {
  442. uni.showToast({
  443. title: res.msg,
  444. icon: 'none'
  445. });
  446. }
  447. },
  448. rej => {}
  449. );
  450. },
  451. // 点击取消/支付订单
  452. operateOrder(type) {
  453. // console.log("this.liveOrderList" ,JSON.parse( this.liveOrderList.orderId));
  454. let orderId = this.liveOrderList
  455. console.log("orderId>>", orderId)
  456. // updateConfirm(orderId, type).then(res => {
  457. // if (res.code == 200) {
  458. // console.log("点击取消/支付订单>>>>", res)
  459. // } else {
  460. // uni.showToast({
  461. // title: res.msg,
  462. // icon: 'none'
  463. // });
  464. // }
  465. // },
  466. // rej => {}
  467. // );
  468. },
  469. // 选择商品数量
  470. goodsNumChange(e) {
  471. console.log('当前选择商品数量为: ' + e.value)
  472. this.totalNum = e.value
  473. },
  474. // 提交
  475. submit() {
  476. this.specVisible = false
  477. this.doAddCart(this.type);
  478. },
  479. // 加入购物车
  480. addCart(type) {
  481. this.type = type;
  482. this.specVisible = true
  483. },
  484. // 跳转页面
  485. navgetTo(url) {
  486. console.log("跳转")
  487. uni.navigateTo({
  488. url: url
  489. })
  490. },
  491. openEditMoney() {
  492. this.editShow = true;
  493. },
  494. //商品详情
  495. getliveGoods() {
  496. liveGoodsDetail(this.productId).then(res => {
  497. if (res.code == 200) {
  498. console.log("小黄车 商品详情>>>>", res)
  499. this.goosDetail = res.data
  500. } else {
  501. uni.showToast({
  502. title: res.msg,
  503. icon: 'none'
  504. });
  505. }
  506. },
  507. rej => {}
  508. );
  509. },
  510. }
  511. }
  512. </script>
  513. <style lang="scss">
  514. .content {
  515. font-family: PingFang SC;
  516. }
  517. .share-box {
  518. position: fixed;
  519. right: 24rpx;
  520. top: 70%;
  521. z-index: 99;
  522. width: 112rpx;
  523. height: 112rpx;
  524. border-radius: 16rpx 16rpx 16rpx 16rpx;
  525. border: 1rpx solid #EFF3F7;
  526. background-color: #FFFFFF;
  527. }
  528. .shop-banner {
  529. height: 756rpx;
  530. background-color: #FFFFFF;
  531. position: relative;
  532. .swiper-item {
  533. box-sizing: border-box;
  534. position: relative;
  535. }
  536. .swiper,
  537. .swiper-item,
  538. .swiper-item image {
  539. width: 100%;
  540. height: 100%;
  541. }
  542. .banner-mask {
  543. width: 100%;
  544. height: 44rpx;
  545. position: absolute;
  546. left: 0;
  547. bottom: 0;
  548. z-index: 9;
  549. // background-image: url(../../static/images/black_mask.png);
  550. background-size: 20rpx 44rpx;
  551. background-repeat: repeat-x;
  552. }
  553. .num-box {
  554. width: 80rpx;
  555. height: 40rpx;
  556. line-height: 40rpx;
  557. text-align: center;
  558. font-size: 24rpx;
  559. color: #FFFFFF;
  560. background: rgba(0, 0, 0, .7);
  561. border-radius: 20rpx;
  562. position: absolute;
  563. right: 40rpx;
  564. bottom: 34rpx;
  565. z-index: 10;
  566. }
  567. .cf-box {
  568. position: absolute;
  569. z-index: 10;
  570. left: 0;
  571. right: 0;
  572. top: calc(50% - 200rpx);
  573. bottom: calc(50% - 200rpx);
  574. background-color: rgba(0, 0, 0, 0.3);
  575. backdrop-filter: blur(2rpx);
  576. /* 背景模糊度 */
  577. display: flex;
  578. flex-direction: column;
  579. flex: 1;
  580. justify-content: center;
  581. align-items: center;
  582. color: #EDEEEF;
  583. .title {
  584. font-size: 40rpx;
  585. font-weight: bold;
  586. }
  587. .subTitle {
  588. font-size: 28rpx;
  589. font-weight: bold;
  590. margin-top: 10rpx;
  591. }
  592. }
  593. }
  594. .guige {
  595. padding: 24rpx;
  596. border-radius: 16rpx;
  597. background: #fff;
  598. width: auto;
  599. font-size: 24rpx;
  600. color: #222426;
  601. margin: 24rpx;
  602. .guige-gg {
  603. .gg-text {
  604. color: #898E91;
  605. margin-right: 40rpx;
  606. }
  607. }
  608. .safe-box {
  609. display: flex;
  610. align-items: center;
  611. padding-top: 24rpx;
  612. font-size: 24rpx;
  613. color: #222426;
  614. .text {
  615. color: #999999;
  616. margin-right: 40rpx;
  617. }
  618. .box {
  619. display: flex;
  620. align-items: center;
  621. image {
  622. width: 28rpx;
  623. height: 28rpx;
  624. margin-right: 10rpx;
  625. }
  626. view {
  627. display: flex;
  628. align-items: center;
  629. margin-right: 40rpx;
  630. &:last-child {
  631. margin-right: 0;
  632. image {
  633. margin-right: 0;
  634. }
  635. }
  636. }
  637. }
  638. }
  639. .popup-box {
  640. position: fixed;
  641. top: 0;
  642. right: 0;
  643. left: 0;
  644. bottom: 0;
  645. z-index: 999;
  646. display: flex;
  647. justify-content: center;
  648. align-items: flex-end;
  649. .info-mask {
  650. position: fixed;
  651. top: 0;
  652. right: 0;
  653. bottom: 0;
  654. left: 0;
  655. background-color: rgba($color: #000000, $alpha: 0.5);
  656. z-index: 999;
  657. }
  658. .info-form {
  659. z-index: 1000;
  660. width: 100%;
  661. display: flex;
  662. flex-direction: column;
  663. justify-content: center;
  664. align-items: center;
  665. padding: 0 30rpx 60rpx;
  666. background: #FFFFFF;
  667. border-radius: 40rpx;
  668. .top {
  669. display: flex;
  670. }
  671. .line {
  672. border-top: 1px solid #F1F1F1;
  673. width: 100%;
  674. }
  675. .title {
  676. padding: 30rpx;
  677. display: flex;
  678. justify-content: center;
  679. align-items: center;
  680. font-size: 36rpx;
  681. font-weight: bold;
  682. line-height: 44rpx;
  683. color: #222222;
  684. }
  685. .close {
  686. padding-top: 30rpx;
  687. position: absolute;
  688. right: 30rpx;
  689. }
  690. .form-box {
  691. width: 100%;
  692. padding-top: 30rpx;
  693. .form-item2 {
  694. padding-bottom: 30rpx;
  695. // display: flex;
  696. // align-items: flex-start;
  697. // border-bottom: 1px solid #F1F1F1;
  698. .form-item-box {
  699. display: flex;
  700. align-items: center;
  701. text {
  702. font-size: 28rpx;
  703. color: #222426;
  704. margin-left: 10rpx;
  705. font-weight: bold;
  706. }
  707. }
  708. .form-content {
  709. font-size: 24rpx;
  710. text-align: left;
  711. color: #626468;
  712. margin-top: 20rpx;
  713. line-height: 40rpx;
  714. }
  715. }
  716. }
  717. .btns {
  718. width: 100%;
  719. height: 120rpx;
  720. padding: 20rpx 30rpx;
  721. display: flex;
  722. align-items: center;
  723. justify-content: center;
  724. .sub-btn {
  725. width: 100%;
  726. height: 88rpx;
  727. line-height: 88rpx;
  728. text-align: center;
  729. font-size: 36rpx;
  730. font-weight: bold;
  731. color: #FFFFFF;
  732. background: #008FD3;
  733. border-radius: 44rpx;
  734. }
  735. }
  736. }
  737. }
  738. }
  739. .det-info {
  740. // background: #FFFFFF;
  741. // padding: 36rpx 30rpx 25rpx;
  742. background: #FFFFFF;
  743. padding: 24rpx;
  744. margin: 24rpx;
  745. border-radius: 16rpx;
  746. .price-box {
  747. display: flex;
  748. align-items: flex-end;
  749. justify-content: space-between;
  750. .price {
  751. display: flex;
  752. align-items: flex-end;
  753. .label {
  754. font-weight: 500;
  755. font-size: 24rpx;
  756. color: #FF5030;
  757. line-height: 1.3;
  758. margin-right: 10rpx;
  759. }
  760. .unit {
  761. font-size: 26rpx;
  762. font-weight: bold;
  763. color: #FF6633;
  764. line-height: 1.3;
  765. }
  766. .num {
  767. font-size: 48rpx;
  768. font-weight: bold;
  769. color: #FF5030;
  770. margin-right: 20rpx;
  771. line-height: 1;
  772. }
  773. .old {
  774. font-size: 24rpx;
  775. font-family: PingFang SC;
  776. font-weight: 400;
  777. // text-decoration: line-through;
  778. color: #898E91;
  779. margin-left: 10rpx;
  780. // line-height: 1.3;
  781. }
  782. }
  783. // .share-box{
  784. // width: 120rpx;
  785. // height: 46rpx;
  786. // border: 1px solid #0bb3f2;
  787. // border-radius: 23rpx;
  788. // display: flex;
  789. // align-items: center;
  790. // justify-content: center;
  791. // position: relative;
  792. // .text{
  793. // font-size: 26rpx;
  794. // font-family: PingFang SC;
  795. // font-weight: 500;
  796. // color: #0bb3f2;
  797. // }
  798. // image{
  799. // margin-left: 2rpx;
  800. // width: 25rpx;
  801. // height: 24rpx;
  802. // }
  803. // .share{
  804. // display: inline-block;
  805. // position: absolute;
  806. // top: 0;
  807. // left: 0;
  808. // width: 100%;
  809. // height: 100%;
  810. // opacity: 0;
  811. // }
  812. // }
  813. .spec {
  814. font-size: 24rpx;
  815. font-family: PingFang SC;
  816. font-weight: 500;
  817. color: #999999;
  818. line-height: 36rpx;
  819. }
  820. }
  821. // .name-box {
  822. // font-size: 32rpx;
  823. // font-family: PingFang SC;
  824. // font-weight: bold;
  825. // color: #111111;
  826. // line-height: 44rpx;
  827. // margin-top: 32rpx;
  828. // .tag {
  829. // display: inline-block;
  830. // padding: 2rpx 8rpx;
  831. // height: 32rpx;
  832. // background: #F5A623;
  833. // border-radius: 4rpx;
  834. // margin-right: 10rpx;
  835. // font-weight: 400;
  836. // font-size: 20rpx;
  837. // color: #FFFFFF;
  838. // line-height: 30rpx;
  839. // float: left;
  840. // margin-top: 7rpx;
  841. // }
  842. // }
  843. .intro {
  844. font-size: 26rpx;
  845. font-weight: 500;
  846. color: #999999;
  847. line-height: 36rpx;
  848. padding: 18rpx 0 23rpx;
  849. }
  850. .intro-box {
  851. display: flex;
  852. justify-content: space-between;
  853. align-items: center;
  854. padding: 20rpx;
  855. border-radius: 16rpx;
  856. background: #F5F7FA;
  857. width: auto;
  858. .title-1 {
  859. font-size: 24rpx;
  860. color: #222426;
  861. font-weight: bold;
  862. width: 40%;
  863. text-align: center;
  864. }
  865. .title-2 {
  866. font-size: 24rpx;
  867. color: #222426;
  868. font-weight: bold;
  869. display: block;
  870. }
  871. .intro-text {
  872. // padding: 0 20rpx;
  873. }
  874. .intro-text2 {
  875. width: 50%;
  876. }
  877. .intro-content {
  878. color: #898E91;
  879. font-size: 24rpx;
  880. }
  881. .line {
  882. width: 1px;
  883. height: 40rpx;
  884. background: #EDEEEF;
  885. margin: 0 20rpx;
  886. }
  887. }
  888. .safe-box {
  889. display: flex;
  890. align-items: center;
  891. padding-top: 24rpx;
  892. image {
  893. width: 20rpx;
  894. height: 24rpx;
  895. margin-right: 20rpx;
  896. }
  897. .text {
  898. font-size: 22rpx;
  899. font-weight: 500;
  900. color: #999999;
  901. line-height: 1;
  902. }
  903. .line {
  904. width: 1px;
  905. height: 23rpx;
  906. background: #EDEEEF;
  907. margin: 0 20rpx;
  908. }
  909. }
  910. }
  911. .inventor {
  912. height: 88rpx;
  913. padding: 0 39rpx 0 30rpx;
  914. margin-top: 10rpx;
  915. background: #FFFFFF;
  916. display: flex;
  917. align-items: center;
  918. justify-content: space-between;
  919. .left {
  920. display: flex;
  921. align-items: center;
  922. .head-box {
  923. margin-right: 27rpx;
  924. display: flex;
  925. align-items: center;
  926. .head {
  927. width: 48rpx;
  928. height: 48rpx;
  929. border-radius: 50%;
  930. overflow: hidden;
  931. box-shadow: 0 0 0 1px #fff;
  932. margin-right: -10rpx;
  933. image {
  934. width: 100%;
  935. height: 100%;
  936. }
  937. }
  938. }
  939. .num-box {
  940. font-size: 24rpx;
  941. font-weight: 500;
  942. color: #999999;
  943. .text {
  944. font-size: 24rpx;
  945. font-weight: 500;
  946. color: #999999;
  947. }
  948. }
  949. }
  950. .right {
  951. font-size: 24rpx;
  952. font-family: PingFang SC;
  953. font-weight: 500;
  954. color: #999999;
  955. .text {
  956. font-size: 24rpx;
  957. font-weight: 500;
  958. color: #666666;
  959. }
  960. }
  961. }
  962. .effect {
  963. box-sizing: border-box;
  964. padding: 20rpx 30rpx;
  965. background: #FFFFFF;
  966. font-size: 28rpx;
  967. font-weight: 500;
  968. color: #666666;
  969. line-height: 1.8;
  970. margin-top: 10rpx;
  971. display: flex;
  972. flex-direction: row;
  973. align-items: center;
  974. justify-content: space-between;
  975. .label {
  976. font-size: 28rpx;
  977. font-weight: 500;
  978. color: #111111;
  979. line-height: 1.8;
  980. }
  981. }
  982. .shop-box {
  983. // box-sizing: border-box;
  984. // padding: 20rpx 30rpx;
  985. // background: #FFFFFF;
  986. // font-size: 28rpx;
  987. // font-family: PingFang SC;
  988. // font-weight: 500;
  989. // color: #666666;
  990. // line-height: 1.8;
  991. // margin-top: 10rpx;
  992. // background: url(../../static/images/chu_query.png) no-repeat center center / cover;
  993. display: flex;
  994. justify-content: space-between;
  995. align-items: center;
  996. background: #FFFFFF;
  997. font-size: 28rpx;
  998. font-weight: 500;
  999. color: #666666;
  1000. line-height: 1.8;
  1001. padding: 24rpx;
  1002. margin: 24rpx;
  1003. border-radius: 16rpx;
  1004. .logo {
  1005. flex-shrink: 0;
  1006. width: 100rpx;
  1007. height: 100rpx;
  1008. border-radius: 16rpx;
  1009. overflow: hidden;
  1010. image {
  1011. width: 100%;
  1012. height: 100%;
  1013. }
  1014. }
  1015. .txtBox {
  1016. flex: 1;
  1017. overflow: hidden;
  1018. margin: 0 30rpx;
  1019. display: flex;
  1020. flex-direction: column;
  1021. justify-content: space-between;
  1022. }
  1023. .name {
  1024. font-size: 32rpx;
  1025. font-weight: 600;
  1026. color: #333;
  1027. text-align: left;
  1028. overflow: hidden;
  1029. white-space: nowrap;
  1030. text-overflow: ellipsis;
  1031. }
  1032. .desc {
  1033. font-size: 24rpx;
  1034. font-weight: normal;
  1035. color: #222426;
  1036. text-align: left;
  1037. }
  1038. .goShop {
  1039. flex-shrink: 0;
  1040. width: 96rpx;
  1041. height: 56rpx;
  1042. background: #fff;
  1043. border-radius: 30rpx;
  1044. color: #008FD3;
  1045. font-size: 24rpx;
  1046. margin: 0;
  1047. border: 1px solid #008FD3;
  1048. padding: 0;
  1049. line-height: 56rpx;
  1050. display: flex;
  1051. align-items: center;
  1052. justify-content: center;
  1053. }
  1054. }
  1055. .tech-pBox {
  1056. box-sizing: border-box;
  1057. padding: 0rpx 0rpx;
  1058. background: #FFFFFF;
  1059. font-size: 28rpx;
  1060. font-family: PingFang SC;
  1061. font-weight: 500;
  1062. color: #666666;
  1063. .label {
  1064. font-weight: bold;
  1065. font-size: 26rpx;
  1066. color: #222426;
  1067. text-align: left;
  1068. padding: 24rpx 0;
  1069. }
  1070. .item {
  1071. border: 1px solid #fff;
  1072. border-radius: 12rpx;
  1073. padding: 30rpx;
  1074. border: 1px solid #EFF3F7;
  1075. display: flex;
  1076. align-items: center;
  1077. margin-bottom: 20rpx;
  1078. .price {
  1079. font-size: 42rpx;
  1080. font-weight: bold;
  1081. color: #FF6633;
  1082. display: flex;
  1083. flex: 1;
  1084. b {
  1085. font-size: 30rpx;
  1086. line-height: 46rpx;
  1087. margin-top: 14rpx;
  1088. }
  1089. }
  1090. .num {
  1091. font-size: 28rpx;
  1092. font-weight: normal;
  1093. color: #999;
  1094. width: 200rpx;
  1095. text-align: right;
  1096. }
  1097. .name {
  1098. max-width: 60%;
  1099. margin-right: 10rpx;
  1100. font-size: 28rpx;
  1101. font-weight: normal;
  1102. color: #333;
  1103. text-align: left;
  1104. overflow: hidden;
  1105. white-space: nowrap;
  1106. text-overflow: ellipsis;
  1107. }
  1108. image {
  1109. width: 100rpx;
  1110. height: 100rpx;
  1111. border-radius: 50%;
  1112. margin-right: 30rpx;
  1113. }
  1114. .tech-right {
  1115. flex: 1;
  1116. &-bottom {
  1117. color: #898E91;
  1118. font-size: 24rpx;
  1119. }
  1120. &-top {
  1121. display: flex;
  1122. align-items: flex-end;
  1123. margin-bottom: 10rpx;
  1124. .title-1 {
  1125. font-size: 32rpx;
  1126. color: #222426;
  1127. margin-right: 14rpx;
  1128. }
  1129. .title-2 {
  1130. font-weight: 400;
  1131. font-size: 24rpx;
  1132. color: #222426;
  1133. }
  1134. }
  1135. }
  1136. }
  1137. .hover {
  1138. border: 1rpx solid #008FD3;
  1139. background: #F0FAFF;
  1140. }
  1141. .shop-morebtn {
  1142. margin-top: 14rpx;
  1143. box-sizing: border-box;
  1144. padding: 12rpx 30rpx;
  1145. font-size: 28rpx;
  1146. font-weight: 500;
  1147. color: #111111;
  1148. background: #F7F7F7;
  1149. border-radius: 32rpx;
  1150. text-align: center;
  1151. text {
  1152. color: #999;
  1153. }
  1154. }
  1155. }
  1156. .shop-pBox {
  1157. box-sizing: border-box;
  1158. padding: 0rpx 0rpx;
  1159. background: #FFFFFF;
  1160. font-size: 28rpx;
  1161. font-family: PingFang SC;
  1162. font-weight: 500;
  1163. color: #666666;
  1164. .item {
  1165. border: 1px solid #fff;
  1166. border-radius: 12rpx;
  1167. padding: 18rpx 20rpx 24rpx;
  1168. .price {
  1169. font-size: 42rpx;
  1170. font-weight: bold;
  1171. color: #FF6633;
  1172. display: flex;
  1173. flex: 1;
  1174. .strong {
  1175. font-size: 30rpx;
  1176. line-height: 46rpx;
  1177. margin-top: 14rpx;
  1178. }
  1179. }
  1180. .num {
  1181. font-size: 28rpx;
  1182. font-weight: normal;
  1183. color: #999;
  1184. width: 200rpx;
  1185. text-align: right;
  1186. }
  1187. .name {
  1188. max-width: 60%;
  1189. margin-right: 10rpx;
  1190. font-size: 28rpx;
  1191. font-weight: normal;
  1192. color: #333;
  1193. text-align: left;
  1194. overflow: hidden;
  1195. white-space: nowrap;
  1196. text-overflow: ellipsis;
  1197. }
  1198. }
  1199. .hover {
  1200. border: 1rpx solid #FF6633;
  1201. }
  1202. .shop-morebtn {
  1203. margin-top: 14rpx;
  1204. box-sizing: border-box;
  1205. padding: 12rpx 30rpx;
  1206. font-size: 28rpx;
  1207. font-weight: 500;
  1208. color: #111111;
  1209. background: #F7F7F7;
  1210. border-radius: 32rpx;
  1211. text-align: center;
  1212. text {
  1213. color: #999;
  1214. }
  1215. }
  1216. }
  1217. .shop-pBox-name {
  1218. display: flex;
  1219. align-items: center;
  1220. justify-content: flex-start;
  1221. }
  1222. .storepopup {
  1223. padding: 40rpx 20rpx 20rpx 20rpx;
  1224. .storepopup-title {
  1225. text-align: center;
  1226. margin-bottom: 30rpx;
  1227. position: relative;
  1228. .close-icon {
  1229. width: 40rpx;
  1230. height: 40rpx;
  1231. position: absolute;
  1232. right: 0;
  1233. top: 50%;
  1234. transform: translate(0, -50%);
  1235. }
  1236. }
  1237. .storepopup-box {
  1238. height: 60vh;
  1239. }
  1240. }
  1241. .det-box {
  1242. // margin-top: 10rpx;
  1243. // padding: 40rpx 30rpx 130rpx 30rpx;
  1244. // background-color: #FFFFFF;
  1245. margin-top: 10rpx;
  1246. background-color: #FFFFFF;
  1247. padding: 24rpx;
  1248. margin: 24rpx 24rpx 175rpx 24rpx;
  1249. border-radius: 16rpx;
  1250. .title {
  1251. font-size: 32rpx;
  1252. font-weight: bold;
  1253. color: #333333;
  1254. line-height: 60rpx;
  1255. margin-bottom: 30rpx;
  1256. padding-bottom: 24rpx;
  1257. border-bottom: 1px solid #ECECEC;
  1258. }
  1259. .det-title {
  1260. display: flex;
  1261. align-items: center;
  1262. justify-content: space-between;
  1263. .tt {
  1264. font-size: 28rpx;
  1265. font-weight: bold;
  1266. color: #222426;
  1267. }
  1268. }
  1269. .det-right {
  1270. display: flex;
  1271. font-size: 24rpx;
  1272. color: #898E91;
  1273. align-items: center;
  1274. }
  1275. .det-table {
  1276. width: 100%;
  1277. margin: 24rpx 0;
  1278. background: #FFFFFF;
  1279. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1280. border: 1rpx solid #ECECEC;
  1281. overflow: hidden;
  1282. font-size: 24rpx;
  1283. .row {
  1284. display: table-row;
  1285. }
  1286. .row:last-child .cell-1,
  1287. .row:last-child .cell-2 {
  1288. border-bottom: 0;
  1289. }
  1290. .cell {
  1291. display: table-cell;
  1292. padding: 24rpx;
  1293. &.cell-1 {
  1294. width: 30%;
  1295. text-align: center;
  1296. color: #626468;
  1297. background: #F5F7FA;
  1298. border-right: 1rpx solid #ECECEC;
  1299. border-bottom: 1rpx solid #ECECEC;
  1300. }
  1301. &.cell-2 {
  1302. color: #222426;
  1303. text-align: center;
  1304. border-bottom: 1rpx solid #ECECEC;
  1305. }
  1306. }
  1307. }
  1308. }
  1309. .btn-foot {
  1310. box-sizing: border-box;
  1311. width: 100%;
  1312. height: 151rpx;
  1313. background: #FFFFFF;
  1314. padding: 0 24rpx;
  1315. display: flex;
  1316. align-items: center;
  1317. justify-content: space-between;
  1318. position: fixed;
  1319. left: 0;
  1320. bottom: 0;
  1321. z-index: 99;
  1322. .menu-box {
  1323. display: flex;
  1324. align-items: center;
  1325. .item {
  1326. display: flex;
  1327. align-items: center;
  1328. flex-direction: column;
  1329. margin-right: 48rpx;
  1330. &:last-child {
  1331. margin-right: 0;
  1332. }
  1333. image {
  1334. width: 40rpx;
  1335. height: 40rpx;
  1336. margin-bottom: 10rpx;
  1337. }
  1338. .label {
  1339. font-size: 20rpx;
  1340. font-weight: 500;
  1341. color: #626468;
  1342. text-align: center;
  1343. }
  1344. }
  1345. }
  1346. .btn-box {
  1347. display: flex;
  1348. align-items: center;
  1349. .btn {
  1350. width: 200rpx;
  1351. height: 88rpx;
  1352. line-height: 88rpx;
  1353. text-align: center;
  1354. border-radius: 44rpx;
  1355. margin-left: 20rpx;
  1356. font-size: 28rpx;
  1357. font-weight: bold;
  1358. color: #FFFFFF;
  1359. &:first-child {
  1360. margin-left: 0;
  1361. }
  1362. &.cart {
  1363. background: #FF5030;
  1364. }
  1365. &.buy {
  1366. background: #008FD3;
  1367. }
  1368. }
  1369. }
  1370. }
  1371. .product-spec {
  1372. padding-bottom: 30rpx;
  1373. .pro-info {
  1374. display: flex;
  1375. align-items: center;
  1376. .img-box {
  1377. width: 200rpx;
  1378. height: 200rpx;
  1379. background: #FFFFFF;
  1380. border-radius: 16rpx;
  1381. overflow: hidden;
  1382. margin-right: 30rpx;
  1383. image {
  1384. width: 100%;
  1385. height: 100%;
  1386. }
  1387. }
  1388. .info-text {
  1389. height: 200rpx;
  1390. display: flex;
  1391. flex-direction: column;
  1392. justify-content: space-between;
  1393. .info-title {
  1394. font-family: PingFang SC;
  1395. font-weight: 600;
  1396. font-size: 28rpx;
  1397. color: #222426;
  1398. text-align: left;
  1399. }
  1400. .price {
  1401. display: flex;
  1402. align-items: flex-end;
  1403. .label {
  1404. font-weight: 500;
  1405. font-size: 24rpx;
  1406. color: #FF5030;
  1407. line-height: 1.3;
  1408. margin-right: 10rpx;
  1409. }
  1410. .unit {
  1411. font-size: 32rpx;
  1412. font-weight: bold;
  1413. color: #FF6633;
  1414. line-height: 1.2;
  1415. margin-right: 10rpx;
  1416. }
  1417. .num {
  1418. font-size: 50rpx;
  1419. font-weight: bold;
  1420. color: #FF6633;
  1421. line-height: 1;
  1422. }
  1423. }
  1424. .desc-box {
  1425. display: flex;
  1426. flex-direction: column;
  1427. padding-bottom: 9rpx;
  1428. .text {
  1429. font-size: 26rpx;
  1430. font-weight: 500;
  1431. color: #999999;
  1432. margin-top: 27rpx;
  1433. line-height: 1;
  1434. &:first-child {
  1435. margin-top: 0;
  1436. }
  1437. }
  1438. }
  1439. }
  1440. }
  1441. .spec-box {
  1442. padding-top: 50rpx;
  1443. .title {
  1444. font-size: 26rpx;
  1445. font-weight: bold;
  1446. color: #111111;
  1447. line-height: 1;
  1448. }
  1449. .spec-list {
  1450. display: flex;
  1451. flex-wrap: wrap;
  1452. margin-top: 30rpx;
  1453. .item {
  1454. box-sizing: border-box;
  1455. height: 64rpx;
  1456. padding: 0 30rpx;
  1457. line-height: 64rpx;
  1458. font-size: 24rpx;
  1459. font-weight: 500;
  1460. color: #111111;
  1461. background: #F7F7F7;
  1462. border: 1px solid #F7F7F7;
  1463. border-radius: 32rpx;
  1464. margin-right: 20rpx;
  1465. margin-bottom: 30rpx;
  1466. &.active {
  1467. background: #F1FFFE;
  1468. border: 1px solid #008FD3;
  1469. color: #008FD3;
  1470. }
  1471. }
  1472. }
  1473. }
  1474. .price-num {
  1475. display: flex;
  1476. align-items: center;
  1477. justify-content: space-between;
  1478. margin-top: 14rpx;
  1479. .label {
  1480. font-size: 26rpx;
  1481. font-weight: bold;
  1482. color: #111111;
  1483. }
  1484. // .num-box {
  1485. // display: flex;
  1486. // align-items: center;
  1487. // .img-box {
  1488. // width: 60rpx;
  1489. // height: 60rpx;
  1490. // border: 1px solid #dddddd;
  1491. // display: flex;
  1492. // align-items: center;
  1493. // justify-content: center;
  1494. // image {
  1495. // width: 25rpx;
  1496. // height: 25rpx;
  1497. // }
  1498. // }
  1499. // input {
  1500. // width: 60rpx;
  1501. // height: 60rpx;
  1502. // line-height: 60rpx;
  1503. // font-size: 28rpx;
  1504. // font-weight: 500;
  1505. // color: #111111;
  1506. // // border-radius: 4rpx;
  1507. // border-top: 1px solid #dddddd;
  1508. // border-bottom: 1px solid #dddddd;
  1509. // text-align: center;
  1510. // // margin: 0 16rpx;
  1511. // }
  1512. // }
  1513. }
  1514. .sub-btn {
  1515. width: 100%;
  1516. height: 88rpx;
  1517. line-height: 88rpx;
  1518. text-align: center;
  1519. font-size: 32rpx;
  1520. font-weight: bold;
  1521. color: #FFFFFF;
  1522. background: #008FD3;
  1523. border-radius: 44rpx;
  1524. margin-top: 30rpx;
  1525. // margin-bottom: 30rpx;
  1526. }
  1527. }
  1528. .contact-btn {
  1529. display: inline-block;
  1530. position: absolute;
  1531. top: 0;
  1532. left: 0;
  1533. width: 100%;
  1534. height: 100%;
  1535. opacity: 0;
  1536. z-index: 9999;
  1537. }
  1538. .loadding {
  1539. background-color: #fff;
  1540. display: flex;
  1541. flex-direction: column;
  1542. align-items: center;
  1543. justify-content: center;
  1544. position: absolute;
  1545. top: 0;
  1546. left: 0;
  1547. width: 100%;
  1548. height: 100%;
  1549. z-index: 9999;
  1550. image {
  1551. border-radius: 50%;
  1552. animation: load linear 1s infinite;
  1553. width: 120rpx;
  1554. height: 120rpx;
  1555. }
  1556. .text {
  1557. font-size: 28rpx;
  1558. margin-top: 20rpx;
  1559. }
  1560. }
  1561. .form-item {
  1562. padding: 30rpx 0;
  1563. display: flex;
  1564. align-items: flex-start;
  1565. border-bottom: 1px solid #F1F1F1;
  1566. &:last-child {
  1567. border-bottom: none;
  1568. }
  1569. .label {
  1570. width: 180rpx;
  1571. text-align: left;
  1572. font-size: 30rpx;
  1573. line-height: 44rpx;
  1574. font-weight: 500;
  1575. color: #222222;
  1576. flex-shrink: 0;
  1577. }
  1578. input {
  1579. text-align: left;
  1580. }
  1581. .form-input {
  1582. font-size: 30rpx;
  1583. font-weight: 500;
  1584. color: #999999;
  1585. text-align: left;
  1586. }
  1587. .form-textarea {
  1588. font-size: 30rpx;
  1589. color: #999999;
  1590. height: 100rpx;
  1591. padding: 4rpx 0;
  1592. }
  1593. .birth-picker {
  1594. flex: 1;
  1595. display: flex;
  1596. align-items: center;
  1597. .right-box {
  1598. width: 100%;
  1599. display: flex;
  1600. align-items: center;
  1601. .input-box {
  1602. width: 470rpx;
  1603. }
  1604. .arrow {
  1605. width: 13rpx;
  1606. height: 23rpx;
  1607. margin-left: 20rpx;
  1608. }
  1609. }
  1610. }
  1611. }
  1612. </style>