goods.vue 37 KB

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