goods.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579
  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 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. uni.showLoading({
  344. title: '加载中'
  345. });
  346. liveGoodsDetail(this.productId).then(res => {
  347. uni.hideLoading()
  348. if (res.code == 200) {
  349. // console.log("小黄车 商品详情>>>>", res)
  350. this.goosDetail = res.data
  351. this.banner = res.data.sliderImage.split(',');
  352. // console.log("轮播图",this.banner)
  353. } else {
  354. uni.showToast({
  355. title: res.msg,
  356. icon: 'none'
  357. });
  358. }
  359. },
  360. rej => {}
  361. );
  362. },
  363. }
  364. }
  365. </script>
  366. <style lang="scss">
  367. [v-cloak] {
  368. display: none;
  369. }
  370. .content {
  371. font-family: PingFang SC;
  372. }
  373. .share-box {
  374. position: fixed;
  375. right: 24rpx;
  376. top: 70%;
  377. z-index: 99;
  378. width: 112rpx;
  379. height: 112rpx;
  380. border-radius: 16rpx 16rpx 16rpx 16rpx;
  381. border: 1rpx solid #EFF3F7;
  382. background-color: #FFFFFF;
  383. }
  384. .shop-banner {
  385. height: 756rpx;
  386. background-color: #FFFFFF;
  387. position: relative;
  388. .swiper-item {
  389. box-sizing: border-box;
  390. position: relative;
  391. }
  392. .swiper,
  393. .swiper-item,
  394. .swiper-item image {
  395. width: 100%;
  396. height: 100%;
  397. }
  398. .banner-mask {
  399. width: 100%;
  400. height: 44rpx;
  401. position: absolute;
  402. left: 0;
  403. bottom: 0;
  404. z-index: 9;
  405. background-size: 20rpx 44rpx;
  406. background-repeat: repeat-x;
  407. }
  408. .num-box {
  409. width: 80rpx;
  410. height: 40rpx;
  411. line-height: 40rpx;
  412. text-align: center;
  413. font-size: 24rpx;
  414. color: #FFFFFF;
  415. background: rgba(0, 0, 0, .7);
  416. border-radius: 20rpx;
  417. position: absolute;
  418. right: 40rpx;
  419. bottom: 34rpx;
  420. z-index: 10;
  421. }
  422. .cf-box {
  423. position: absolute;
  424. z-index: 10;
  425. left: 0;
  426. right: 0;
  427. top: calc(50% - 200rpx);
  428. bottom: calc(50% - 200rpx);
  429. background-color: rgba(0, 0, 0, 0.3);
  430. backdrop-filter: blur(2rpx);
  431. /* 背景模糊度 */
  432. display: flex;
  433. flex-direction: column;
  434. flex: 1;
  435. justify-content: center;
  436. align-items: center;
  437. color: #EDEEEF;
  438. .title {
  439. font-size: 40rpx;
  440. font-weight: bold;
  441. }
  442. .subTitle {
  443. font-size: 28rpx;
  444. font-weight: bold;
  445. margin-top: 10rpx;
  446. }
  447. }
  448. }
  449. .guige {
  450. padding: 24rpx;
  451. border-radius: 16rpx;
  452. background: #fff;
  453. width: auto;
  454. font-size: 24rpx;
  455. color: #222426;
  456. margin: 24rpx;
  457. .guige-gg {
  458. .gg-text {
  459. color: #898E91;
  460. margin-right: 40rpx;
  461. }
  462. }
  463. .safe-box {
  464. display: flex;
  465. align-items: center;
  466. padding-top: 24rpx;
  467. font-size: 24rpx;
  468. color: #222426;
  469. .text {
  470. color: #999999;
  471. margin-right: 40rpx;
  472. }
  473. .box {
  474. display: flex;
  475. align-items: center;
  476. image {
  477. width: 28rpx;
  478. height: 28rpx;
  479. margin-right: 10rpx;
  480. }
  481. view {
  482. display: flex;
  483. align-items: center;
  484. margin-right: 40rpx;
  485. &:last-child {
  486. margin-right: 0;
  487. image {
  488. margin-right: 0;
  489. }
  490. }
  491. }
  492. }
  493. }
  494. .popup-box {
  495. position: fixed;
  496. top: 0;
  497. right: 0;
  498. left: 0;
  499. bottom: 0;
  500. z-index: 999;
  501. display: flex;
  502. justify-content: center;
  503. align-items: flex-end;
  504. .info-mask {
  505. position: fixed;
  506. top: 0;
  507. right: 0;
  508. bottom: 0;
  509. left: 0;
  510. background-color: rgba($color: #000000, $alpha: 0.5);
  511. z-index: 999;
  512. }
  513. .info-form {
  514. z-index: 1000;
  515. width: 100%;
  516. display: flex;
  517. flex-direction: column;
  518. justify-content: center;
  519. align-items: center;
  520. padding: 0 30rpx 60rpx;
  521. background: #FFFFFF;
  522. border-radius: 40rpx;
  523. .top {
  524. display: flex;
  525. }
  526. .line {
  527. border-top: 1px solid #F1F1F1;
  528. width: 100%;
  529. }
  530. .title {
  531. padding: 30rpx;
  532. display: flex;
  533. justify-content: center;
  534. align-items: center;
  535. font-size: 36rpx;
  536. font-weight: bold;
  537. line-height: 44rpx;
  538. color: #222222;
  539. }
  540. .close {
  541. padding-top: 30rpx;
  542. position: absolute;
  543. right: 30rpx;
  544. }
  545. .form-box {
  546. width: 100%;
  547. padding-top: 30rpx;
  548. .form-item2 {
  549. padding-bottom: 30rpx;
  550. // display: flex;
  551. // align-items: flex-start;
  552. // border-bottom: 1px solid #F1F1F1;
  553. .form-item-box {
  554. display: flex;
  555. align-items: center;
  556. text {
  557. font-size: 28rpx;
  558. color: #222426;
  559. margin-left: 10rpx;
  560. font-weight: bold;
  561. }
  562. }
  563. .form-content {
  564. font-size: 24rpx;
  565. text-align: left;
  566. color: #626468;
  567. margin-top: 20rpx;
  568. line-height: 40rpx;
  569. }
  570. }
  571. }
  572. .btns {
  573. width: 100%;
  574. height: 120rpx;
  575. padding: 20rpx 30rpx;
  576. display: flex;
  577. align-items: center;
  578. justify-content: center;
  579. .sub-btn {
  580. width: 100%;
  581. height: 88rpx;
  582. line-height: 88rpx;
  583. text-align: center;
  584. font-size: 36rpx;
  585. font-weight: bold;
  586. color: #FFFFFF;
  587. background: #2BC7B9;
  588. border-radius: 44rpx;
  589. }
  590. }
  591. }
  592. }
  593. }
  594. .det-info {
  595. // background: #FFFFFF;
  596. // padding: 36rpx 30rpx 25rpx;
  597. background: #FFFFFF;
  598. padding: 24rpx;
  599. margin: 24rpx;
  600. border-radius: 16rpx;
  601. .price-box {
  602. display: flex;
  603. align-items: flex-end;
  604. justify-content: space-between;
  605. .price {
  606. display: flex;
  607. align-items: flex-end;
  608. .label {
  609. font-weight: 500;
  610. font-size: 24rpx;
  611. color: #FF5030;
  612. line-height: 1.3;
  613. margin-right: 10rpx;
  614. }
  615. .unit {
  616. font-size: 26rpx;
  617. font-weight: bold;
  618. color: #FF6633;
  619. line-height: 1.3;
  620. }
  621. .num {
  622. font-size: 48rpx;
  623. font-weight: bold;
  624. color: #FF5030;
  625. margin-right: 20rpx;
  626. line-height: 1;
  627. }
  628. .old {
  629. font-size: 24rpx;
  630. font-family: PingFang SC;
  631. font-weight: 400;
  632. text-decoration: line-through;
  633. color: #898E91;
  634. margin-left: 10rpx;
  635. line-height: 1.3;
  636. }
  637. }
  638. // .share-box{
  639. // width: 120rpx;
  640. // height: 46rpx;
  641. // border: 1px solid #0bb3f2;
  642. // border-radius: 23rpx;
  643. // display: flex;
  644. // align-items: center;
  645. // justify-content: center;
  646. // position: relative;
  647. // .text{
  648. // font-size: 26rpx;
  649. // font-family: PingFang SC;
  650. // font-weight: 500;
  651. // color: #0bb3f2;
  652. // }
  653. // image{
  654. // margin-left: 2rpx;
  655. // width: 25rpx;
  656. // height: 24rpx;
  657. // }
  658. // .share{
  659. // display: inline-block;
  660. // position: absolute;
  661. // top: 0;
  662. // left: 0;
  663. // width: 100%;
  664. // height: 100%;
  665. // opacity: 0;
  666. // }
  667. // }
  668. .spec {
  669. font-size: 24rpx;
  670. font-family: PingFang SC;
  671. font-weight: 500;
  672. color: #999999;
  673. line-height: 36rpx;
  674. }
  675. }
  676. .name-box {
  677. font-size: 32rpx;
  678. font-weight: bold;
  679. color: #111111;
  680. line-height: 44rpx;
  681. margin-top: 32rpx;
  682. .tag {
  683. display: inline-block;
  684. padding: 2rpx 8rpx;
  685. height: 32rpx;
  686. background: #F5A623;
  687. border-radius: 4rpx;
  688. margin-right: 10rpx;
  689. font-weight: 400;
  690. font-size: 20rpx;
  691. color: #FFFFFF;
  692. line-height: 30rpx;
  693. float: left;
  694. margin-top: 7rpx;
  695. }
  696. }
  697. .intro {
  698. font-size: 26rpx;
  699. font-weight: 500;
  700. color: #999999;
  701. line-height: 36rpx;
  702. padding: 18rpx 0 23rpx;
  703. }
  704. .intro-box {
  705. display: flex;
  706. justify-content: space-between;
  707. align-items: center;
  708. padding: 20rpx;
  709. border-radius: 16rpx;
  710. background: #F5F7FA;
  711. width: auto;
  712. .title-1 {
  713. font-size: 24rpx;
  714. color: #222426;
  715. font-weight: bold;
  716. width: 40%;
  717. text-align: center;
  718. }
  719. .title-2 {
  720. font-size: 24rpx;
  721. color: #222426;
  722. font-weight: bold;
  723. display: block;
  724. }
  725. .intro-text {
  726. // padding: 0 20rpx;
  727. }
  728. .intro-text2 {
  729. width: 50%;
  730. }
  731. .intro-content {
  732. color: #898E91;
  733. font-size: 24rpx;
  734. }
  735. .line {
  736. width: 1px;
  737. height: 40rpx;
  738. background: #EDEEEF;
  739. margin: 0 20rpx;
  740. }
  741. }
  742. .safe-box {
  743. display: flex;
  744. align-items: center;
  745. padding-top: 24rpx;
  746. image {
  747. width: 20rpx;
  748. height: 24rpx;
  749. margin-right: 20rpx;
  750. }
  751. .text {
  752. font-size: 22rpx;
  753. font-weight: 500;
  754. color: #999999;
  755. line-height: 1;
  756. }
  757. .line {
  758. width: 1px;
  759. height: 23rpx;
  760. background: #EDEEEF;
  761. margin: 0 20rpx;
  762. }
  763. }
  764. }
  765. .inventor {
  766. height: 88rpx;
  767. padding: 0 39rpx 0 30rpx;
  768. margin-top: 10rpx;
  769. background: #FFFFFF;
  770. display: flex;
  771. align-items: center;
  772. justify-content: space-between;
  773. .left {
  774. display: flex;
  775. align-items: center;
  776. .head-box {
  777. margin-right: 27rpx;
  778. display: flex;
  779. align-items: center;
  780. .head {
  781. width: 48rpx;
  782. height: 48rpx;
  783. border-radius: 50%;
  784. overflow: hidden;
  785. box-shadow: 0 0 0 1px #fff;
  786. margin-right: -10rpx;
  787. image {
  788. width: 100%;
  789. height: 100%;
  790. }
  791. }
  792. }
  793. .num-box {
  794. font-size: 24rpx;
  795. font-weight: 500;
  796. color: #999999;
  797. .text {
  798. font-size: 24rpx;
  799. font-weight: 500;
  800. color: #999999;
  801. }
  802. }
  803. }
  804. .right {
  805. font-size: 24rpx;
  806. font-family: PingFang SC;
  807. font-weight: 500;
  808. color: #999999;
  809. .text {
  810. font-size: 24rpx;
  811. font-weight: 500;
  812. color: #666666;
  813. }
  814. }
  815. }
  816. .effect {
  817. box-sizing: border-box;
  818. padding: 20rpx 30rpx;
  819. background: #FFFFFF;
  820. font-size: 28rpx;
  821. font-weight: 500;
  822. color: #666666;
  823. line-height: 1.8;
  824. margin-top: 10rpx;
  825. display: flex;
  826. flex-direction: row;
  827. align-items: center;
  828. justify-content: space-between;
  829. .label {
  830. font-size: 28rpx;
  831. font-weight: 500;
  832. color: #111111;
  833. line-height: 1.8;
  834. }
  835. }
  836. .shop-box {
  837. display: flex;
  838. justify-content: space-between;
  839. align-items: center;
  840. background: #FFFFFF;
  841. font-size: 28rpx;
  842. font-weight: 500;
  843. color: #666666;
  844. line-height: 1.8;
  845. padding: 24rpx;
  846. margin: 24rpx;
  847. border-radius: 16rpx;
  848. .logo {
  849. flex-shrink: 0;
  850. width: 100rpx;
  851. height: 100rpx;
  852. border-radius: 16rpx;
  853. overflow: hidden;
  854. image {
  855. width: 100%;
  856. height: 100%;
  857. }
  858. }
  859. .txtBox {
  860. flex: 1;
  861. overflow: hidden;
  862. margin: 0 30rpx;
  863. display: flex;
  864. flex-direction: column;
  865. justify-content: space-between;
  866. }
  867. .name {
  868. font-size: 32rpx;
  869. font-weight: 600;
  870. color: #333;
  871. text-align: left;
  872. overflow: hidden;
  873. white-space: nowrap;
  874. text-overflow: ellipsis;
  875. }
  876. .desc {
  877. font-size: 24rpx;
  878. font-weight: normal;
  879. color: #222426;
  880. text-align: left;
  881. }
  882. .goShop {
  883. flex-shrink: 0;
  884. width: 96rpx;
  885. height: 56rpx;
  886. background: #fff;
  887. border-radius: 30rpx;
  888. color: #008FD3;
  889. font-size: 24rpx;
  890. margin: 0;
  891. border: 1px solid #008FD3;
  892. padding: 0;
  893. line-height: 56rpx;
  894. display: flex;
  895. align-items: center;
  896. justify-content: center;
  897. }
  898. }
  899. .tech-pBox {
  900. box-sizing: border-box;
  901. padding: 0rpx 0rpx;
  902. background: #FFFFFF;
  903. font-size: 28rpx;
  904. font-family: PingFang SC;
  905. font-weight: 500;
  906. color: #666666;
  907. .label {
  908. font-weight: bold;
  909. font-size: 26rpx;
  910. color: #222426;
  911. text-align: left;
  912. padding: 24rpx 0;
  913. }
  914. .item {
  915. border: 1px solid #fff;
  916. border-radius: 12rpx;
  917. padding: 30rpx;
  918. border: 1px solid #EFF3F7;
  919. display: flex;
  920. align-items: center;
  921. margin-bottom: 20rpx;
  922. .price {
  923. font-size: 42rpx;
  924. font-weight: bold;
  925. color: #FF6633;
  926. display: flex;
  927. flex: 1;
  928. }
  929. .num {
  930. font-size: 28rpx;
  931. font-weight: normal;
  932. color: #999;
  933. width: 200rpx;
  934. text-align: right;
  935. }
  936. .name {
  937. max-width: 60%;
  938. margin-right: 10rpx;
  939. font-size: 28rpx;
  940. font-weight: normal;
  941. color: #333;
  942. text-align: left;
  943. overflow: hidden;
  944. white-space: nowrap;
  945. text-overflow: ellipsis;
  946. }
  947. image {
  948. width: 100rpx;
  949. height: 100rpx;
  950. border-radius: 50%;
  951. margin-right: 30rpx;
  952. }
  953. .tech-right {
  954. flex: 1;
  955. &-bottom {
  956. color: #898E91;
  957. font-size: 24rpx;
  958. }
  959. &-top {
  960. display: flex;
  961. align-items: flex-end;
  962. margin-bottom: 10rpx;
  963. .title-1 {
  964. font-size: 32rpx;
  965. color: #222426;
  966. margin-right: 14rpx;
  967. }
  968. .title-2 {
  969. font-weight: 400;
  970. font-size: 24rpx;
  971. color: #222426;
  972. }
  973. }
  974. }
  975. }
  976. .hover {
  977. border: 1rpx solid #008FD3;
  978. background: #F0FAFF;
  979. }
  980. .shop-morebtn {
  981. margin-top: 14rpx;
  982. box-sizing: border-box;
  983. padding: 12rpx 30rpx;
  984. font-size: 28rpx;
  985. font-weight: 500;
  986. color: #111111;
  987. background: #F7F7F7;
  988. border-radius: 32rpx;
  989. text-align: center;
  990. text {
  991. color: #999;
  992. }
  993. }
  994. }
  995. .shop-pBox {
  996. box-sizing: border-box;
  997. padding: 0rpx 0rpx;
  998. background: #FFFFFF;
  999. font-size: 28rpx;
  1000. font-family: PingFang SC;
  1001. font-weight: 500;
  1002. color: #666666;
  1003. .item {
  1004. border: 1px solid #fff;
  1005. border-radius: 12rpx;
  1006. padding: 18rpx 20rpx 24rpx;
  1007. .price {
  1008. font-size: 42rpx;
  1009. font-weight: bold;
  1010. color: #FF6633;
  1011. display: flex;
  1012. flex: 1;
  1013. .strong {
  1014. font-size: 30rpx;
  1015. line-height: 46rpx;
  1016. margin-top: 14rpx;
  1017. }
  1018. }
  1019. .num {
  1020. font-size: 28rpx;
  1021. font-weight: normal;
  1022. color: #999;
  1023. width: 200rpx;
  1024. text-align: right;
  1025. }
  1026. .name {
  1027. max-width: 60%;
  1028. margin-right: 10rpx;
  1029. font-size: 28rpx;
  1030. font-weight: normal;
  1031. color: #333;
  1032. text-align: left;
  1033. overflow: hidden;
  1034. white-space: nowrap;
  1035. text-overflow: ellipsis;
  1036. }
  1037. }
  1038. .hover {
  1039. border: 1rpx solid #FF6633;
  1040. }
  1041. .shop-morebtn {
  1042. margin-top: 14rpx;
  1043. box-sizing: border-box;
  1044. padding: 12rpx 30rpx;
  1045. font-size: 28rpx;
  1046. font-weight: 500;
  1047. color: #111111;
  1048. background: #F7F7F7;
  1049. border-radius: 32rpx;
  1050. text-align: center;
  1051. text {
  1052. color: #999;
  1053. }
  1054. }
  1055. }
  1056. .shop-pBox-name {
  1057. display: flex;
  1058. align-items: center;
  1059. justify-content: flex-start;
  1060. }
  1061. .storepopup {
  1062. padding: 40rpx 20rpx 20rpx 20rpx;
  1063. .storepopup-title {
  1064. text-align: center;
  1065. margin-bottom: 30rpx;
  1066. position: relative;
  1067. .close-icon {
  1068. width: 40rpx;
  1069. height: 40rpx;
  1070. position: absolute;
  1071. right: 0;
  1072. top: 50%;
  1073. transform: translate(0, -50%);
  1074. }
  1075. }
  1076. .storepopup-box {
  1077. height: 60vh;
  1078. }
  1079. }
  1080. .det-box {
  1081. margin-top: 10rpx;
  1082. background-color: #FFFFFF;
  1083. padding: 24rpx;
  1084. margin: 24rpx 24rpx 175rpx 24rpx;
  1085. border-radius: 16rpx;
  1086. .title {
  1087. font-size: 32rpx;
  1088. font-weight: bold;
  1089. color: #333333;
  1090. line-height: 60rpx;
  1091. margin-bottom: 30rpx;
  1092. padding-bottom: 24rpx;
  1093. border-bottom: 1px solid #ECECEC;
  1094. }
  1095. .inner {
  1096. margin-bottom: 100rpx;
  1097. }
  1098. .det-title {
  1099. display: flex;
  1100. align-items: center;
  1101. justify-content: space-between;
  1102. .tt {
  1103. font-size: 28rpx;
  1104. font-weight: bold;
  1105. color: #222426;
  1106. }
  1107. }
  1108. .det-right {
  1109. display: flex;
  1110. font-size: 24rpx;
  1111. color: #898E91;
  1112. align-items: center;
  1113. }
  1114. .det-table {
  1115. width: 100%;
  1116. margin: 24rpx 0;
  1117. background: #FFFFFF;
  1118. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1119. border: 1rpx solid #ECECEC;
  1120. overflow: hidden;
  1121. font-size: 24rpx;
  1122. .row {
  1123. display: table-row;
  1124. }
  1125. .row:last-child .cell-1,
  1126. .row:last-child .cell-2 {
  1127. border-bottom: 0;
  1128. }
  1129. .cell {
  1130. display: table-cell;
  1131. padding: 24rpx;
  1132. &.cell-1 {
  1133. width: 30%;
  1134. text-align: center;
  1135. color: #626468;
  1136. background: #F5F7FA;
  1137. border-right: 1rpx solid #ECECEC;
  1138. border-bottom: 1rpx solid #ECECEC;
  1139. }
  1140. &.cell-2 {
  1141. color: #222426;
  1142. text-align: center;
  1143. border-bottom: 1rpx solid #ECECEC;
  1144. }
  1145. }
  1146. }
  1147. }
  1148. .btn-foot {
  1149. box-sizing: border-box;
  1150. width: 100%;
  1151. height: 151rpx;
  1152. background: #FFFFFF;
  1153. padding: 0 24rpx;
  1154. display: flex;
  1155. align-items: center;
  1156. justify-content: space-between;
  1157. position: fixed;
  1158. left: 0;
  1159. bottom: 0;
  1160. z-index: 99;
  1161. .menu-box {
  1162. display: flex;
  1163. align-items: center;
  1164. .item {
  1165. display: flex;
  1166. align-items: center;
  1167. flex-direction: column;
  1168. margin-right: 48rpx;
  1169. &:last-child {
  1170. margin-right: 0;
  1171. }
  1172. image {
  1173. width: 40rpx;
  1174. height: 40rpx;
  1175. margin-bottom: 10rpx;
  1176. }
  1177. .label {
  1178. font-size: 20rpx;
  1179. font-weight: 500;
  1180. color: #626468;
  1181. text-align: center;
  1182. }
  1183. }
  1184. }
  1185. .btn-box {
  1186. display: flex;
  1187. align-items: center;
  1188. .btn {
  1189. width: 200rpx;
  1190. height: 88rpx;
  1191. line-height: 88rpx;
  1192. text-align: center;
  1193. border-radius: 44rpx;
  1194. margin-left: 20rpx;
  1195. font-size: 28rpx;
  1196. font-weight: bold;
  1197. color: #FFFFFF;
  1198. &:first-child {
  1199. margin-left: 0;
  1200. }
  1201. &.cart {
  1202. background: #FF5030;
  1203. }
  1204. &.buy {
  1205. background: #2bc7b9;
  1206. }
  1207. }
  1208. }
  1209. }
  1210. .product-spec {
  1211. padding-bottom: 30rpx;
  1212. .pro-info {
  1213. display: flex;
  1214. align-items: center;
  1215. .img-box {
  1216. width: 200rpx;
  1217. height: 200rpx;
  1218. background: #FFFFFF;
  1219. border-radius: 16rpx;
  1220. overflow: hidden;
  1221. margin-right: 30rpx;
  1222. image {
  1223. width: 100%;
  1224. height: 100%;
  1225. }
  1226. }
  1227. .info-text {
  1228. height: 200rpx;
  1229. display: flex;
  1230. flex-direction: column;
  1231. justify-content: space-between;
  1232. .info-title {
  1233. font-family: PingFang SC;
  1234. font-weight: 600;
  1235. font-size: 28rpx;
  1236. color: #222426;
  1237. text-align: left;
  1238. }
  1239. .price {
  1240. display: flex;
  1241. align-items: flex-end;
  1242. .label {
  1243. font-weight: 500;
  1244. font-size: 24rpx;
  1245. color: #FF5030;
  1246. line-height: 1.3;
  1247. margin-right: 10rpx;
  1248. }
  1249. .unit {
  1250. font-size: 32rpx;
  1251. font-weight: bold;
  1252. color: #FF6633;
  1253. line-height: 1.2;
  1254. margin-right: 10rpx;
  1255. }
  1256. .num {
  1257. font-size: 50rpx;
  1258. font-weight: bold;
  1259. color: #FF6633;
  1260. line-height: 1;
  1261. }
  1262. }
  1263. .desc-box {
  1264. display: flex;
  1265. flex-direction: column;
  1266. padding-bottom: 9rpx;
  1267. .text {
  1268. font-size: 26rpx;
  1269. font-weight: 500;
  1270. color: #999999;
  1271. margin-top: 27rpx;
  1272. line-height: 1;
  1273. &:first-child {
  1274. margin-top: 0;
  1275. }
  1276. }
  1277. }
  1278. }
  1279. }
  1280. .price-num {
  1281. display: flex;
  1282. align-items: center;
  1283. justify-content: space-between;
  1284. margin-top: 30rpx;
  1285. .label {
  1286. font-size: 36rpx;
  1287. font-weight: bold;
  1288. color: #111111;
  1289. }
  1290. }
  1291. .sub-btn {
  1292. width: 100%;
  1293. height: 88rpx;
  1294. line-height: 88rpx;
  1295. text-align: center;
  1296. font-size: 32rpx;
  1297. font-weight: bold;
  1298. color: #FFFFFF;
  1299. background: #2BC7B9;
  1300. border-radius: 44rpx;
  1301. margin-top: 30rpx;
  1302. // margin-bottom: 30rpx;
  1303. }
  1304. }
  1305. .contact-btn {
  1306. display: inline-block;
  1307. position: absolute;
  1308. top: 0;
  1309. left: 0;
  1310. width: 100%;
  1311. height: 100%;
  1312. opacity: 0;
  1313. z-index: 9999;
  1314. }
  1315. .loadding {
  1316. background-color: #fff;
  1317. display: flex;
  1318. flex-direction: column;
  1319. align-items: center;
  1320. justify-content: center;
  1321. position: absolute;
  1322. top: 0;
  1323. left: 0;
  1324. width: 100%;
  1325. height: 100%;
  1326. z-index: 9999;
  1327. image {
  1328. border-radius: 50%;
  1329. animation: load linear 1s infinite;
  1330. width: 120rpx;
  1331. height: 120rpx;
  1332. }
  1333. .text {
  1334. font-size: 28rpx;
  1335. margin-top: 20rpx;
  1336. }
  1337. }
  1338. .form-item {
  1339. padding: 30rpx 0;
  1340. display: flex;
  1341. align-items: flex-start;
  1342. border-bottom: 1px solid #F1F1F1;
  1343. &:last-child {
  1344. border-bottom: none;
  1345. }
  1346. .label {
  1347. width: 180rpx;
  1348. text-align: left;
  1349. font-size: 30rpx;
  1350. line-height: 44rpx;
  1351. font-weight: 500;
  1352. color: #222222;
  1353. flex-shrink: 0;
  1354. }
  1355. input {
  1356. text-align: left;
  1357. }
  1358. .form-input {
  1359. font-size: 30rpx;
  1360. font-weight: 500;
  1361. color: #999999;
  1362. text-align: left;
  1363. }
  1364. .form-textarea {
  1365. font-size: 30rpx;
  1366. color: #999999;
  1367. height: 100rpx;
  1368. padding: 4rpx 0;
  1369. }
  1370. .birth-picker {
  1371. flex: 1;
  1372. display: flex;
  1373. align-items: center;
  1374. .right-box {
  1375. width: 100%;
  1376. display: flex;
  1377. align-items: center;
  1378. .input-box {
  1379. width: 470rpx;
  1380. }
  1381. .arrow {
  1382. width: 13rpx;
  1383. height: 23rpx;
  1384. margin-left: 20rpx;
  1385. }
  1386. }
  1387. }
  1388. }
  1389. </style>