goods.vue 27 KB

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