goods.vue 28 KB

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