goods.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645
  1. <template>
  2. <view class="">
  3. <view class="content">
  4. <view class="shop-banner">
  5. <view class="shop-banner" @click="showImg()">
  6. <swiper
  7. class="swiper"
  8. :indicator-dots="false"
  9. :circular="true"
  10. :autoplay="true"
  11. :interval="3000"
  12. :duration="1000"
  13. indicator-color="rgba(255, 255, 255, 0.6)"
  14. indicator-active-color="#ffffff"
  15. @change="swiperChange"
  16. >
  17. <swiper-item class="swiper-item" v-for="(item,index) in banner" :key="index">
  18. <image :src="item" mode="aspectFill"></image>
  19. </swiper-item>
  20. </swiper>
  21. <!-- 底部遮罩 -->
  22. <view class="banner-mask"></view>
  23. <!-- 数量 -->
  24. <view class="num-box">{{ activeBanner }}/{{ banner.length }}</view>
  25. </view>
  26. <!-- <view class="swiper">
  27. <view class="swiper-item">
  28. <image :src="goosDetail.image" mode="aspectFill"></image>
  29. </view>
  30. </view> -->
  31. </view>
  32. <!-- 详细信息 -->
  33. <view class="det-info">
  34. <view class="price-box">
  35. <view class="price">
  36. <text class="label">会员价</text>
  37. <text class="unit">¥</text>
  38. <text class="num">{{goosDetail.price}}</text>
  39. <text class="fs24 color-text2">零售价</text>
  40. <text class="old">¥{{goosDetail.otPrice}}</text>
  41. </view>
  42. <text class="fs24 color-text2">月售{{goosDetail.sales}}件</text>
  43. </view>
  44. <view class="name-box">
  45. {{goosDetail.productName}}
  46. </view>
  47. </view>
  48. </view>
  49. <view class="guige">
  50. <view class="safe-box">
  51. <text class="text">服务</text>
  52. <view class="box">
  53. <view v-for="(item,index) in serviceList" :key="index">
  54. <image src="/static/images/googs_service.png" mode=""></image>
  55. <text>{{item}}</text>
  56. </view>
  57. <view @click="openEditMoney()">
  58. <image class='w48 h48' src="/static/images/arrow4.png"></image>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 点击服务,出现弹窗-->
  63. <view class="popup-box" v-if="editShow">
  64. <view class="info-mask" @tap="cancelEditMoney()"></view>
  65. <view class="info-form">
  66. <view class="top">
  67. <view class="title">服务</view>
  68. <view class="close" @click="cancelEditMoney()">
  69. </view>
  70. </view>
  71. <view class="line"></view>
  72. <view class="form-box">
  73. <view class="form-item2">
  74. <view class="form-item-box">
  75. <text>免邮发货</text>
  76. </view>
  77. <view class="form-content">
  78. 订单支付成功后48小时内发货,若未在48小时内发货,平台审核后消费者将会收到至少3元无门槛红包(特殊商品及不可抗力因素除外)
  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. 用药关怀认证药师,24小时专业用药咨询
  87. </view>
  88. </view>
  89. <view class="form-item2">
  90. <view class="form-item-box">
  91. <text>隐私保护</text>
  92. </view>
  93. <view class="form-content">
  94. 除患者本人或其授权的代理人外,其他人员未经允许不得随意查阅患者的医疗记录
  95. </view>
  96. </view>
  97. </view>
  98. <view class="btns">
  99. <view class="sub-btn" @click="cancelEditMoney()">确定</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 购买人数、库存 -->
  105. <view class="det-box">
  106. <view class="title">图文详情</view>
  107. <view class="inner">
  108. <view v-html="goosDetail.description" style="font-size:0"></view>
  109. </view>
  110. </view>
  111. <!-- 底部按钮 -->
  112. <view class="btn-foot">
  113. <view class="menu-box">
  114. <view class="item" @click="navgetTo('./storeOrderRefundList?liveId='+liveId)" style="position: relative;">
  115. <image src="/static/images/googs2.png" mode=""></image>
  116. <text class="label">售后</text>
  117. </view>
  118. </view>
  119. <view class="btn-box">
  120. <view class="btn buy" @click="addCart('buy')">{{buyText}}</view>
  121. </view>
  122. </view>
  123. <!-- 选择药品规格弹窗 -->
  124. <popupBottom ref="popup" :visible.sync="specVisible" title=" " radius="32" maxHeight="800">
  125. <view class="product-spec">
  126. <view class="pro-info">
  127. <view class="img-box">
  128. <image :src="goosDetail.image ||'/static/images/img.png'" mode="aspectFill"></image>
  129. </view>
  130. <view class="info-text">
  131. <view class="info-title">{{goosDetail.productName}}</view>
  132. <view class="price">
  133. <view class="label">会员价</view>
  134. <text class="unit">¥</text>
  135. <text class="num">{{ goosDetail.price}}</text>
  136. </view>
  137. <view class="desc-box">
  138. <text class="text">月售{{goosDetail.sales}}件</text>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="price-num">
  143. <view class="label">数量</view>
  144. <u-number-box bgColor="#ececec" v-model="goodsNum" @change="goodsNumChange"></u-number-box>
  145. </view>
  146. <view class="sub-btn" @click="submit">确定</view>
  147. </view>
  148. </popupBottom>
  149. </view>
  150. </template>
  151. <script>
  152. import {
  153. liveGoodsDetail
  154. } from '@/api/living'
  155. import {
  156. liveCartDetails, //获取购物车详情
  157. updateConfirm, // 点击取消/支付订单
  158. updateLiveOrder, // 取消/支付订单
  159. liveOrderKey, // 生成订单key
  160. addLiveCart // 新增购物车
  161. } from "@/api/order.js"
  162. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  163. export default {
  164. components: {
  165. popupBottom
  166. },
  167. data() {
  168. return {
  169. banner:[],
  170. storeInfo:{},
  171. goodsId: null,
  172. totalNum: 1,
  173. orderKey: null,
  174. type: null,
  175. liveOrderList: [], //下订单的 不在这个页面
  176. liveId: null,
  177. storeId:null,
  178. serviceList: ['免邮发货', '药师服务', '隐私保护'],
  179. editShow: false,
  180. productId: null,
  181. goosDetail: {}, //商品详情
  182. loadding: true,
  183. buyText: "立即购买",
  184. goodsNum: 0, //商品选择数量
  185. attrs: [],
  186. values: [],
  187. stores: [],
  188. storeNames: [],
  189. storeIdx: 0,
  190. storeName: "",
  191. product: {
  192. price: 0,
  193. otPrice: 0,
  194. },
  195. showModal: false,
  196. // 当前轮播的图片
  197. activeBanner: 1,
  198. // 购物车数量
  199. cartCount: 0,
  200. // 规格弹窗
  201. specVisible: false,
  202. // // 规格数量
  203. // specNum: 1,
  204. config: null,
  205. showServiceFee: false,
  206. selectVal: "",
  207. // 链接带的storeId
  208. urlStoreId: undefined,
  209. // 所选店铺
  210. storeSelectInfo: {},
  211. // 保存选的规格
  212. choseSpecSubIndex: 0,
  213. choseSpecIndex: 0,
  214. };
  215. },
  216. onLoad(options) {
  217. console.log("商品详情options",options)
  218. if (options.productId) {
  219. this.productId = options.productId;
  220. }
  221. this.liveId = options.liveId
  222. this.goodsId = options.goodsId
  223. if (options.storeId) {
  224. this.storeId = options.storeId || ""
  225. } else {
  226. uni.showToast({
  227. title: "storeId不存在~",
  228. icon: "none"
  229. })
  230. }
  231. },
  232. mounted() {
  233. this.getliveGoods()
  234. var userInfo = uni.getStorageSync("userInfo")
  235. },
  236. methods: {
  237. // swiper变化事件
  238. swiperChange(event) {
  239. this.activeBanner = event.detail.current + 1
  240. },
  241. // //店铺展示
  242. // getliveStore() {
  243. // let data = {
  244. // pageSize: 10,
  245. // page: 1
  246. // }
  247. // liveStore(this.liveId, data).then(res => {
  248. // if (res.code == 200) {
  249. // console.log("小黄车 店铺展示>>>>", res)
  250. // this.products = res.data
  251. // } else {
  252. // uni.showToast({
  253. // title: res.msg,
  254. // icon: 'none'
  255. // });
  256. // }
  257. // },
  258. // rej => {}
  259. // );
  260. // },
  261. doAddCart(type) {
  262. if (this.totalNum == 0) {
  263. uni.showToast({
  264. icon: 'none',
  265. title: "库存不足",
  266. });
  267. return;
  268. }
  269. var isBuy = type == "buy" ? 1 : 0;
  270. if (type == "buy") {
  271. this.getKey()
  272. } else {
  273. this.getCartCount()
  274. uni.showToast({
  275. icon: 'success',
  276. title: "添加成功",
  277. });
  278. }
  279. },
  280. getCartCount() {
  281. let data = {
  282. productId: this.productId,
  283. liveId: this.liveId,
  284. goodsId: this.goodsId||"",
  285. cartNum: this.totalNum,
  286. };
  287. addLiveCart(data).then(
  288. res => {
  289. if (res.code == 200) {
  290. console.log("加购物车啦", res)
  291. this.cartCount = res.data;
  292. }
  293. },
  294. rej => {}
  295. );
  296. },
  297. // 获得key
  298. getKey() {
  299. liveOrderKey().then(res => {
  300. if (res.code == 200) {
  301. console.log("下订单的key>>>>", res)
  302. this.orderKey = res.orderKey
  303. console.log("key>>>>", this.orderKey)
  304. uni.navigateTo({
  305. url: '/pages_shopping/live/confirmCreateOrder?&orderKey=' + this.orderKey +
  306. '&liveId=' +
  307. this.liveId + '&productId=' + this.productId + '&totalNum=' + this
  308. .totalNum
  309. })
  310. } else {
  311. uni.showToast({
  312. title: res.msg,
  313. icon: 'none'
  314. });
  315. }
  316. },
  317. rej => {}
  318. );
  319. },
  320. // 选择商品数量
  321. goodsNumChange(e) {
  322. console.log('当前选择商品数量为: ' + e.value)
  323. this.totalNum = e.value
  324. },
  325. // 提交
  326. submit() {
  327. this.specVisible = false
  328. this.doAddCart(this.type);
  329. },
  330. // 加入购物车
  331. addCart(type) {
  332. this.type = type;
  333. this.specVisible = true
  334. },
  335. // 跳转页面
  336. navgetTo(url) {
  337. uni.navigateTo({
  338. url: url
  339. })
  340. },
  341. openEditMoney() {
  342. this.editShow = true;
  343. },
  344. cancelEditMoney(){
  345. this.editShow = false;
  346. },
  347. //商品详情
  348. getliveGoods() {
  349. if (!this.productId) return;
  350. liveGoodsDetail(this.productId).then(res => {
  351. if (res.code == 200) {
  352. // console.log("小黄车 商品详情>>>>", res)
  353. this.goosDetail = res.data
  354. this.banner = res.data.sliderImage.split(',');
  355. console.log("轮播图",this.banner)
  356. } else {
  357. uni.showToast({
  358. title: res.msg,
  359. icon: 'none'
  360. });
  361. }
  362. },
  363. rej => {}
  364. );
  365. },
  366. }
  367. }
  368. </script>
  369. <style lang="scss">
  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: #008FD3;
  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. .det-title {
  1096. display: flex;
  1097. align-items: center;
  1098. justify-content: space-between;
  1099. .tt {
  1100. font-size: 28rpx;
  1101. font-weight: bold;
  1102. color: #222426;
  1103. }
  1104. }
  1105. .det-right {
  1106. display: flex;
  1107. font-size: 24rpx;
  1108. color: #898E91;
  1109. align-items: center;
  1110. }
  1111. .det-table {
  1112. width: 100%;
  1113. margin: 24rpx 0;
  1114. background: #FFFFFF;
  1115. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1116. border: 1rpx solid #ECECEC;
  1117. overflow: hidden;
  1118. font-size: 24rpx;
  1119. .row {
  1120. display: table-row;
  1121. }
  1122. .row:last-child .cell-1,
  1123. .row:last-child .cell-2 {
  1124. border-bottom: 0;
  1125. }
  1126. .cell {
  1127. display: table-cell;
  1128. padding: 24rpx;
  1129. &.cell-1 {
  1130. width: 30%;
  1131. text-align: center;
  1132. color: #626468;
  1133. background: #F5F7FA;
  1134. border-right: 1rpx solid #ECECEC;
  1135. border-bottom: 1rpx solid #ECECEC;
  1136. }
  1137. &.cell-2 {
  1138. color: #222426;
  1139. text-align: center;
  1140. border-bottom: 1rpx solid #ECECEC;
  1141. }
  1142. }
  1143. }
  1144. }
  1145. .btn-foot {
  1146. box-sizing: border-box;
  1147. width: 100%;
  1148. height: 151rpx;
  1149. background: #FFFFFF;
  1150. padding: 0 24rpx;
  1151. display: flex;
  1152. align-items: center;
  1153. justify-content: space-between;
  1154. position: fixed;
  1155. left: 0;
  1156. bottom: 0;
  1157. z-index: 99;
  1158. .menu-box {
  1159. display: flex;
  1160. align-items: center;
  1161. .item {
  1162. display: flex;
  1163. align-items: center;
  1164. flex-direction: column;
  1165. margin-right: 48rpx;
  1166. &:last-child {
  1167. margin-right: 0;
  1168. }
  1169. image {
  1170. width: 40rpx;
  1171. height: 40rpx;
  1172. margin-bottom: 10rpx;
  1173. }
  1174. .label {
  1175. font-size: 20rpx;
  1176. font-weight: 500;
  1177. color: #626468;
  1178. text-align: center;
  1179. }
  1180. }
  1181. }
  1182. .btn-box {
  1183. display: flex;
  1184. align-items: center;
  1185. .btn {
  1186. width: 200rpx;
  1187. height: 88rpx;
  1188. line-height: 88rpx;
  1189. text-align: center;
  1190. border-radius: 44rpx;
  1191. margin-left: 20rpx;
  1192. font-size: 28rpx;
  1193. font-weight: bold;
  1194. color: #FFFFFF;
  1195. &:first-child {
  1196. margin-left: 0;
  1197. }
  1198. &.cart {
  1199. background: #FF5030;
  1200. }
  1201. &.buy {
  1202. background: #008FD3;
  1203. }
  1204. }
  1205. }
  1206. }
  1207. .product-spec {
  1208. padding-bottom: 30rpx;
  1209. .pro-info {
  1210. display: flex;
  1211. align-items: center;
  1212. .img-box {
  1213. width: 200rpx;
  1214. height: 200rpx;
  1215. background: #FFFFFF;
  1216. border-radius: 16rpx;
  1217. overflow: hidden;
  1218. margin-right: 30rpx;
  1219. image {
  1220. width: 100%;
  1221. height: 100%;
  1222. }
  1223. }
  1224. .info-text {
  1225. height: 200rpx;
  1226. display: flex;
  1227. flex-direction: column;
  1228. justify-content: space-between;
  1229. .info-title {
  1230. font-family: PingFang SC;
  1231. font-weight: 600;
  1232. font-size: 28rpx;
  1233. color: #222426;
  1234. text-align: left;
  1235. }
  1236. .price {
  1237. display: flex;
  1238. align-items: flex-end;
  1239. .label {
  1240. font-weight: 500;
  1241. font-size: 24rpx;
  1242. color: #FF5030;
  1243. line-height: 1.3;
  1244. margin-right: 10rpx;
  1245. }
  1246. .unit {
  1247. font-size: 32rpx;
  1248. font-weight: bold;
  1249. color: #FF6633;
  1250. line-height: 1.2;
  1251. margin-right: 10rpx;
  1252. }
  1253. .num {
  1254. font-size: 50rpx;
  1255. font-weight: bold;
  1256. color: #FF6633;
  1257. line-height: 1;
  1258. }
  1259. }
  1260. .desc-box {
  1261. display: flex;
  1262. flex-direction: column;
  1263. padding-bottom: 9rpx;
  1264. .text {
  1265. font-size: 26rpx;
  1266. font-weight: 500;
  1267. color: #999999;
  1268. margin-top: 27rpx;
  1269. line-height: 1;
  1270. &:first-child {
  1271. margin-top: 0;
  1272. }
  1273. }
  1274. }
  1275. }
  1276. }
  1277. .spec-box {
  1278. padding-top: 50rpx;
  1279. .title {
  1280. font-size: 26rpx;
  1281. font-weight: bold;
  1282. color: #111111;
  1283. line-height: 1;
  1284. }
  1285. .spec-list {
  1286. display: flex;
  1287. flex-wrap: wrap;
  1288. margin-top: 30rpx;
  1289. .item {
  1290. box-sizing: border-box;
  1291. height: 64rpx;
  1292. padding: 0 30rpx;
  1293. line-height: 64rpx;
  1294. font-size: 24rpx;
  1295. font-weight: 500;
  1296. color: #111111;
  1297. background: #F7F7F7;
  1298. border: 1px solid #F7F7F7;
  1299. border-radius: 32rpx;
  1300. margin-right: 20rpx;
  1301. margin-bottom: 30rpx;
  1302. &.active {
  1303. background: #F1FFFE;
  1304. border: 1px solid #008FD3;
  1305. color: #008FD3;
  1306. }
  1307. }
  1308. }
  1309. }
  1310. .price-num {
  1311. display: flex;
  1312. align-items: center;
  1313. justify-content: space-between;
  1314. margin-top: 14rpx;
  1315. .label {
  1316. font-size: 26rpx;
  1317. font-weight: bold;
  1318. color: #111111;
  1319. }
  1320. // .num-box {
  1321. // display: flex;
  1322. // align-items: center;
  1323. // .img-box {
  1324. // width: 60rpx;
  1325. // height: 60rpx;
  1326. // border: 1px solid #dddddd;
  1327. // display: flex;
  1328. // align-items: center;
  1329. // justify-content: center;
  1330. // image {
  1331. // width: 25rpx;
  1332. // height: 25rpx;
  1333. // }
  1334. // }
  1335. // input {
  1336. // width: 60rpx;
  1337. // height: 60rpx;
  1338. // line-height: 60rpx;
  1339. // font-size: 28rpx;
  1340. // font-weight: 500;
  1341. // color: #111111;
  1342. // // border-radius: 4rpx;
  1343. // border-top: 1px solid #dddddd;
  1344. // border-bottom: 1px solid #dddddd;
  1345. // text-align: center;
  1346. // // margin: 0 16rpx;
  1347. // }
  1348. // }
  1349. }
  1350. .sub-btn {
  1351. width: 100%;
  1352. height: 88rpx;
  1353. line-height: 88rpx;
  1354. text-align: center;
  1355. font-size: 32rpx;
  1356. font-weight: bold;
  1357. color: #FFFFFF;
  1358. background: #008FD3;
  1359. border-radius: 44rpx;
  1360. margin-top: 30rpx;
  1361. // margin-bottom: 30rpx;
  1362. }
  1363. }
  1364. .contact-btn {
  1365. display: inline-block;
  1366. position: absolute;
  1367. top: 0;
  1368. left: 0;
  1369. width: 100%;
  1370. height: 100%;
  1371. opacity: 0;
  1372. z-index: 9999;
  1373. }
  1374. .loadding {
  1375. background-color: #fff;
  1376. display: flex;
  1377. flex-direction: column;
  1378. align-items: center;
  1379. justify-content: center;
  1380. position: absolute;
  1381. top: 0;
  1382. left: 0;
  1383. width: 100%;
  1384. height: 100%;
  1385. z-index: 9999;
  1386. image {
  1387. border-radius: 50%;
  1388. animation: load linear 1s infinite;
  1389. width: 120rpx;
  1390. height: 120rpx;
  1391. }
  1392. .text {
  1393. font-size: 28rpx;
  1394. margin-top: 20rpx;
  1395. }
  1396. }
  1397. .form-item {
  1398. padding: 30rpx 0;
  1399. display: flex;
  1400. align-items: flex-start;
  1401. border-bottom: 1px solid #F1F1F1;
  1402. &:last-child {
  1403. border-bottom: none;
  1404. }
  1405. .label {
  1406. width: 180rpx;
  1407. text-align: left;
  1408. font-size: 30rpx;
  1409. line-height: 44rpx;
  1410. font-weight: 500;
  1411. color: #222222;
  1412. flex-shrink: 0;
  1413. }
  1414. input {
  1415. text-align: left;
  1416. }
  1417. .form-input {
  1418. font-size: 30rpx;
  1419. font-weight: 500;
  1420. color: #999999;
  1421. text-align: left;
  1422. }
  1423. .form-textarea {
  1424. font-size: 30rpx;
  1425. color: #999999;
  1426. height: 100rpx;
  1427. padding: 4rpx 0;
  1428. }
  1429. .birth-picker {
  1430. flex: 1;
  1431. display: flex;
  1432. align-items: center;
  1433. .right-box {
  1434. width: 100%;
  1435. display: flex;
  1436. align-items: center;
  1437. .input-box {
  1438. width: 470rpx;
  1439. }
  1440. .arrow {
  1441. width: 13rpx;
  1442. height: 23rpx;
  1443. margin-left: 20rpx;
  1444. }
  1445. }
  1446. }
  1447. }
  1448. </style>