goods.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851
  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('pages/home/living')" style="position: relative;">
  165. <image src="/static/images/googs2.png" mode=""></image>
  166. <text class="label">直播间</text>
  167. <button class="contact-btn" open-type="contact"></button>
  168. </view> -->
  169. <!-- <view class="item" style="position: relative;">
  170. <image src="/static/images/googs2.png" mode=""></image>
  171. <text class="label">咨询</text>
  172. <button class="contact-btn" open-type="contact"></button>
  173. </view> -->
  174. <view class="item" @click="navgetTo('./cart')">
  175. <uni-badge size="small" :text="cartCount" absolute="rightTop" type="error">
  176. <image src="/static/images/googs3.png" mode=""></image>
  177. </uni-badge>
  178. <text class="label">购物车</text>
  179. </view>
  180. </view>
  181. <view class="btn-box">
  182. <view class="btn cart" @click="addCart('cart')">加入购物车</view>
  183. <view class="btn buy" @click="addCart('buy')">{{buyText}}</view>
  184. </view>
  185. </view>
  186. <!-- 选择药品规格弹窗 -->
  187. <popupBottom ref="popup" :visible.sync="specVisible" title=" " radius="32" maxHeight="800">
  188. <view class="product-spec">
  189. <view class="pro-info">
  190. <view class="img-box">
  191. <image :src="goosDetail?.imgUrl ||$img.img " mode="aspectFill"></image>
  192. </view>
  193. <view class="info-text">
  194. <view class="info-title">{{goosDetail.productName}}</view>
  195. <view class="price">
  196. <view class="label">会员价</view>
  197. <text class="unit">¥</text>
  198. <text class="num">{{ goosDetail.price ? goosDetail.price.toFixed(2) : '0.00' }}</text>
  199. </view>
  200. <view class="desc-box">
  201. <text class="text">月售{{goosDetail.sales}}件</text>
  202. </view>
  203. </view>
  204. </view>
  205. <!-- 选择健康管理师 -->
  206. <!-- <view class="tech-pBox" style="margin-top: 20rpx;">
  207. <view class="label">选择健康管理师</view>
  208. <view v-for="(item,index) in storePriceList.slice(0,2)" :key="index"
  209. :class="productValueSelect.storeId == item.storeId ? 'item hover':'item'"
  210. @click="storeChange(item,index)">
  211. <image mode="aspectFill"
  212. :src="productValueSelect.image==null||productValueSelect.image==''?product.image:productValueSelect.image">
  213. </image>
  214. <view class="tech-right">
  215. <view class="tech-right-top">
  216. <text class="title-1">秦宇</text>
  217. <text class="title-2">健康管理师/执业药师</text>
  218. </view>
  219. <view class="tech-right-bottom">{{item.storeName}}</view>
  220. </view>
  221. </view>
  222. </view> -->
  223. <u-popup :show="showStorePicker" :round="16" mode="bottom">
  224. <view class="storepopup">
  225. <view class="storepopup-title">
  226. 选择店铺
  227. <image class="close-icon" src="" mode="widthFix"></image>
  228. </view>
  229. <scroll-view enable-flex class="shop-pBox storepopup-box" scroll-y="true">
  230. <view v-for="(item,index) in storePriceList" :key="index"
  231. :class="productValueSelect.storeId == item.storeId ? 'item hover':'item'"
  232. @click="pickerStore(item,index)">
  233. <view class="top x-bc">
  234. <view class="price"><text class="strong">¥</text>{{ item.price.toFixed(2) }}</view>
  235. <view class="num">销售{{utils.formatSalesNum(item.sales) }}</view>
  236. </view>
  237. <view class="bot x-bc shop-pBox-name">
  238. <view class="name">{{item.storeName}}</view>
  239. <u-icon name="arrow-right" color="#000" size="14"></u-icon>
  240. </view>
  241. </view>
  242. </scroll-view>
  243. </view>
  244. </u-popup>
  245. <!-- <view class="spec-box">
  246. <view v-for="(item,index) in attrs">
  247. <view class="title">{{item.attrName}}</view>
  248. <view class="spec-list">
  249. <view v-for="(subItem,subindex) in item.values" :key="subindex"
  250. :class="subindex==item.index?'item active':'item'">
  251. {{ subItem }}
  252. </view>
  253. </view>
  254. </view>
  255. </view> -->
  256. <view class="price-num">
  257. <view class="label">数量</view>
  258. <u-number-box bgColor="#ececec" v-model="goodsNum" @change="goodsNumChange"></u-number-box>
  259. </view>
  260. <view class="sub-btn" @click="submit">确定</view>
  261. </view>
  262. </popupBottom>
  263. <!-- <view class="loadding" v-if="loadding==true">
  264. <image src=""></image>
  265. <text class="text">加载中...</text>
  266. </view> -->
  267. <!-- <u-modal :show="showModal" title="温馨提示" content="处方药须凭处方在药师指导下购买和使用" @confirm="hideModal()"></u-modal> -->
  268. <!-- <view>
  269. <view @click="operateOrder(0)" style="background-color: aqua; padding: 100rpx;">取消</view>
  270. <view @click="operateOrder(1)" style="background-color: #ff0004;padding: 150rpx;">确认</view>
  271. </view> -->
  272. </view>
  273. </template>
  274. <script>
  275. import {
  276. store //查询店铺
  277. } from '@/api/live'
  278. import {
  279. liveCartDetails, //获取购物车详情
  280. updateConfirm, // 点击取消/支付订单
  281. updateLiveOrder, // 取消/支付订单
  282. liveOrderKey, // 生成订单key
  283. addLiveCart // 新增购物车
  284. } from "@/api/order.js"
  285. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  286. import {
  287. liveGoodsDetail
  288. } from "@/api/live.js"
  289. export default {
  290. components: {
  291. popupBottom
  292. },
  293. data() {
  294. return {
  295. storeInfo:{},
  296. goodsId: null,
  297. totalNum: 1,
  298. orderKey: null,
  299. type: null,
  300. liveOrderList: [], //下订单的 不在这个页面
  301. liveId: null,
  302. storeId:null,
  303. serviceList: ['免邮发货', '药师服务', '隐私保护'],
  304. editShow: false,
  305. productId: null,
  306. goosDetail: {}, //商品详情
  307. loadding: true,
  308. buyText: "立即购买",
  309. showStorePicker: false,
  310. goodsNum: 0, //商品选择数量
  311. attrs: [],
  312. values: [],
  313. stores: [],
  314. storeNames: [],
  315. storeIdx: 0,
  316. storeName: "",
  317. product: {
  318. price: 0,
  319. otPrice: 0,
  320. },
  321. showModal: false,
  322. // 当前轮播的图片
  323. activeBanner: 1,
  324. // 购物车数量
  325. cartCount: 0,
  326. // 规格弹窗
  327. specVisible: false,
  328. // // 规格数量
  329. // specNum: 1,
  330. config: null,
  331. showServiceFee: false,
  332. selectVal: "",
  333. // 链接带的storeId
  334. urlStoreId: undefined,
  335. // 所选规格门店店铺价格
  336. storePriceList: [],
  337. // 所选店铺
  338. storeSelectInfo: {},
  339. // 保存选的规格
  340. choseSpecSubIndex: 0,
  341. choseSpecIndex: 0,
  342. };
  343. },
  344. onLoad(options) {
  345. if (options.productId) {
  346. this.productId = options.productId;
  347. }
  348. this.liveId = options.liveId
  349. this.goodsId = options.goodsId
  350. if (options.storeId) {
  351. this.storeId = options.storeId || ""
  352. } else {
  353. uni.showToast({
  354. title: "storeId不存在~",
  355. icon: "none"
  356. })
  357. }
  358. // console.log("options", JSON.stringify(options))
  359. // if (options.param) {
  360. // console.log("param", JSON.stringify(param))
  361. // this.productId = options.param.productId;
  362. // this.liveId = options.param.liveId;
  363. // this.storeId = options.param.storeId;
  364. // // this.productId = decodeURIComponent(options.productId);
  365. // console.log("接收到的productId:", this.productId);
  366. // }
  367. },
  368. mounted() {
  369. this.getliveGoods()
  370. var userInfo = uni.getStorageSync("userInfo")
  371. console.log("之前的数据在这里", userInfo)
  372. this.getSearchStore() //查询店铺
  373. },
  374. onShow() {
  375. },
  376. methods: {
  377. //查询店铺
  378. getSearchStore() {
  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. //商品详情
  539. getliveGoods() {
  540. liveGoodsDetail(this.productId).then(res => {
  541. if (res.code == 200) {
  542. console.log("小黄车 商品详情>>>>", res)
  543. this.goosDetail = res.data
  544. } else {
  545. uni.showToast({
  546. title: res.msg,
  547. icon: 'none'
  548. });
  549. }
  550. },
  551. rej => {}
  552. );
  553. },
  554. }
  555. }
  556. </script>
  557. <style lang="scss">
  558. .content {
  559. font-family: PingFang SC;
  560. }
  561. .share-box {
  562. position: fixed;
  563. right: 24rpx;
  564. top: 70%;
  565. z-index: 99;
  566. width: 112rpx;
  567. height: 112rpx;
  568. border-radius: 16rpx 16rpx 16rpx 16rpx;
  569. border: 1rpx solid #EFF3F7;
  570. background-color: #FFFFFF;
  571. }
  572. .shop-banner {
  573. height: 756rpx;
  574. background-color: #FFFFFF;
  575. position: relative;
  576. .swiper-item {
  577. box-sizing: border-box;
  578. position: relative;
  579. }
  580. .swiper,
  581. .swiper-item,
  582. .swiper-item image {
  583. width: 100%;
  584. height: 100%;
  585. }
  586. .banner-mask {
  587. width: 100%;
  588. height: 44rpx;
  589. position: absolute;
  590. left: 0;
  591. bottom: 0;
  592. z-index: 9;
  593. // background-image: url(../../static/images/black_mask.png);
  594. background-size: 20rpx 44rpx;
  595. background-repeat: repeat-x;
  596. }
  597. .num-box {
  598. width: 80rpx;
  599. height: 40rpx;
  600. line-height: 40rpx;
  601. text-align: center;
  602. font-size: 24rpx;
  603. color: #FFFFFF;
  604. background: rgba(0, 0, 0, .7);
  605. border-radius: 20rpx;
  606. position: absolute;
  607. right: 40rpx;
  608. bottom: 34rpx;
  609. z-index: 10;
  610. }
  611. .cf-box {
  612. position: absolute;
  613. z-index: 10;
  614. left: 0;
  615. right: 0;
  616. top: calc(50% - 200rpx);
  617. bottom: calc(50% - 200rpx);
  618. background-color: rgba(0, 0, 0, 0.3);
  619. backdrop-filter: blur(2rpx);
  620. /* 背景模糊度 */
  621. display: flex;
  622. flex-direction: column;
  623. flex: 1;
  624. justify-content: center;
  625. align-items: center;
  626. color: #EDEEEF;
  627. .title {
  628. font-size: 40rpx;
  629. font-weight: bold;
  630. }
  631. .subTitle {
  632. font-size: 28rpx;
  633. font-weight: bold;
  634. margin-top: 10rpx;
  635. }
  636. }
  637. }
  638. .guige {
  639. padding: 24rpx;
  640. border-radius: 16rpx;
  641. background: #fff;
  642. width: auto;
  643. font-size: 24rpx;
  644. color: #222426;
  645. margin: 24rpx;
  646. .guige-gg {
  647. .gg-text {
  648. color: #898E91;
  649. margin-right: 40rpx;
  650. }
  651. }
  652. .safe-box {
  653. display: flex;
  654. align-items: center;
  655. padding-top: 24rpx;
  656. font-size: 24rpx;
  657. color: #222426;
  658. .text {
  659. color: #999999;
  660. margin-right: 40rpx;
  661. }
  662. .box {
  663. display: flex;
  664. align-items: center;
  665. image {
  666. width: 28rpx;
  667. height: 28rpx;
  668. margin-right: 10rpx;
  669. }
  670. view {
  671. display: flex;
  672. align-items: center;
  673. margin-right: 40rpx;
  674. &:last-child {
  675. margin-right: 0;
  676. image {
  677. margin-right: 0;
  678. }
  679. }
  680. }
  681. }
  682. }
  683. .popup-box {
  684. position: fixed;
  685. top: 0;
  686. right: 0;
  687. left: 0;
  688. bottom: 0;
  689. z-index: 999;
  690. display: flex;
  691. justify-content: center;
  692. align-items: flex-end;
  693. .info-mask {
  694. position: fixed;
  695. top: 0;
  696. right: 0;
  697. bottom: 0;
  698. left: 0;
  699. background-color: rgba($color: #000000, $alpha: 0.5);
  700. z-index: 999;
  701. }
  702. .info-form {
  703. z-index: 1000;
  704. width: 100%;
  705. display: flex;
  706. flex-direction: column;
  707. justify-content: center;
  708. align-items: center;
  709. padding: 0 30rpx 60rpx;
  710. background: #FFFFFF;
  711. border-radius: 40rpx;
  712. .top {
  713. display: flex;
  714. }
  715. .line {
  716. border-top: 1px solid #F1F1F1;
  717. width: 100%;
  718. }
  719. .title {
  720. padding: 30rpx;
  721. display: flex;
  722. justify-content: center;
  723. align-items: center;
  724. font-size: 36rpx;
  725. font-weight: bold;
  726. line-height: 44rpx;
  727. color: #222222;
  728. }
  729. .close {
  730. padding-top: 30rpx;
  731. position: absolute;
  732. right: 30rpx;
  733. }
  734. .form-box {
  735. width: 100%;
  736. padding-top: 30rpx;
  737. .form-item2 {
  738. padding-bottom: 30rpx;
  739. // display: flex;
  740. // align-items: flex-start;
  741. // border-bottom: 1px solid #F1F1F1;
  742. .form-item-box {
  743. display: flex;
  744. align-items: center;
  745. text {
  746. font-size: 28rpx;
  747. color: #222426;
  748. margin-left: 10rpx;
  749. font-weight: bold;
  750. }
  751. }
  752. .form-content {
  753. font-size: 24rpx;
  754. text-align: left;
  755. color: #626468;
  756. margin-top: 20rpx;
  757. line-height: 40rpx;
  758. }
  759. }
  760. }
  761. .btns {
  762. width: 100%;
  763. height: 120rpx;
  764. padding: 20rpx 30rpx;
  765. display: flex;
  766. align-items: center;
  767. justify-content: center;
  768. .sub-btn {
  769. width: 100%;
  770. height: 88rpx;
  771. line-height: 88rpx;
  772. text-align: center;
  773. font-size: 36rpx;
  774. font-weight: bold;
  775. color: #FFFFFF;
  776. background: #008FD3;
  777. border-radius: 44rpx;
  778. }
  779. }
  780. }
  781. }
  782. }
  783. .det-info {
  784. // background: #FFFFFF;
  785. // padding: 36rpx 30rpx 25rpx;
  786. background: #FFFFFF;
  787. padding: 24rpx;
  788. margin: 24rpx;
  789. border-radius: 16rpx;
  790. .price-box {
  791. display: flex;
  792. align-items: flex-end;
  793. justify-content: space-between;
  794. .price {
  795. display: flex;
  796. align-items: flex-end;
  797. .label {
  798. font-weight: 500;
  799. font-size: 24rpx;
  800. color: #FF5030;
  801. line-height: 1.3;
  802. margin-right: 10rpx;
  803. }
  804. .unit {
  805. font-size: 26rpx;
  806. font-weight: bold;
  807. color: #FF6633;
  808. line-height: 1.3;
  809. }
  810. .num {
  811. font-size: 48rpx;
  812. font-weight: bold;
  813. color: #FF5030;
  814. margin-right: 20rpx;
  815. line-height: 1;
  816. }
  817. .old {
  818. font-size: 24rpx;
  819. font-family: PingFang SC;
  820. font-weight: 400;
  821. // text-decoration: line-through;
  822. color: #898E91;
  823. margin-left: 10rpx;
  824. // line-height: 1.3;
  825. }
  826. }
  827. // .share-box{
  828. // width: 120rpx;
  829. // height: 46rpx;
  830. // border: 1px solid #0bb3f2;
  831. // border-radius: 23rpx;
  832. // display: flex;
  833. // align-items: center;
  834. // justify-content: center;
  835. // position: relative;
  836. // .text{
  837. // font-size: 26rpx;
  838. // font-family: PingFang SC;
  839. // font-weight: 500;
  840. // color: #0bb3f2;
  841. // }
  842. // image{
  843. // margin-left: 2rpx;
  844. // width: 25rpx;
  845. // height: 24rpx;
  846. // }
  847. // .share{
  848. // display: inline-block;
  849. // position: absolute;
  850. // top: 0;
  851. // left: 0;
  852. // width: 100%;
  853. // height: 100%;
  854. // opacity: 0;
  855. // }
  856. // }
  857. .spec {
  858. font-size: 24rpx;
  859. font-family: PingFang SC;
  860. font-weight: 500;
  861. color: #999999;
  862. line-height: 36rpx;
  863. }
  864. }
  865. // .name-box {
  866. // font-size: 32rpx;
  867. // font-family: PingFang SC;
  868. // font-weight: bold;
  869. // color: #111111;
  870. // line-height: 44rpx;
  871. // margin-top: 32rpx;
  872. // .tag {
  873. // display: inline-block;
  874. // padding: 2rpx 8rpx;
  875. // height: 32rpx;
  876. // background: #F5A623;
  877. // border-radius: 4rpx;
  878. // margin-right: 10rpx;
  879. // font-weight: 400;
  880. // font-size: 20rpx;
  881. // color: #FFFFFF;
  882. // line-height: 30rpx;
  883. // float: left;
  884. // margin-top: 7rpx;
  885. // }
  886. // }
  887. .intro {
  888. font-size: 26rpx;
  889. font-weight: 500;
  890. color: #999999;
  891. line-height: 36rpx;
  892. padding: 18rpx 0 23rpx;
  893. }
  894. .intro-box {
  895. display: flex;
  896. justify-content: space-between;
  897. align-items: center;
  898. padding: 20rpx;
  899. border-radius: 16rpx;
  900. background: #F5F7FA;
  901. width: auto;
  902. .title-1 {
  903. font-size: 24rpx;
  904. color: #222426;
  905. font-weight: bold;
  906. width: 40%;
  907. text-align: center;
  908. }
  909. .title-2 {
  910. font-size: 24rpx;
  911. color: #222426;
  912. font-weight: bold;
  913. display: block;
  914. }
  915. .intro-text {
  916. // padding: 0 20rpx;
  917. }
  918. .intro-text2 {
  919. width: 50%;
  920. }
  921. .intro-content {
  922. color: #898E91;
  923. font-size: 24rpx;
  924. }
  925. .line {
  926. width: 1px;
  927. height: 40rpx;
  928. background: #EDEEEF;
  929. margin: 0 20rpx;
  930. }
  931. }
  932. .safe-box {
  933. display: flex;
  934. align-items: center;
  935. padding-top: 24rpx;
  936. image {
  937. width: 20rpx;
  938. height: 24rpx;
  939. margin-right: 20rpx;
  940. }
  941. .text {
  942. font-size: 22rpx;
  943. font-weight: 500;
  944. color: #999999;
  945. line-height: 1;
  946. }
  947. .line {
  948. width: 1px;
  949. height: 23rpx;
  950. background: #EDEEEF;
  951. margin: 0 20rpx;
  952. }
  953. }
  954. }
  955. .inventor {
  956. height: 88rpx;
  957. padding: 0 39rpx 0 30rpx;
  958. margin-top: 10rpx;
  959. background: #FFFFFF;
  960. display: flex;
  961. align-items: center;
  962. justify-content: space-between;
  963. .left {
  964. display: flex;
  965. align-items: center;
  966. .head-box {
  967. margin-right: 27rpx;
  968. display: flex;
  969. align-items: center;
  970. .head {
  971. width: 48rpx;
  972. height: 48rpx;
  973. border-radius: 50%;
  974. overflow: hidden;
  975. box-shadow: 0 0 0 1px #fff;
  976. margin-right: -10rpx;
  977. image {
  978. width: 100%;
  979. height: 100%;
  980. }
  981. }
  982. }
  983. .num-box {
  984. font-size: 24rpx;
  985. font-weight: 500;
  986. color: #999999;
  987. .text {
  988. font-size: 24rpx;
  989. font-weight: 500;
  990. color: #999999;
  991. }
  992. }
  993. }
  994. .right {
  995. font-size: 24rpx;
  996. font-family: PingFang SC;
  997. font-weight: 500;
  998. color: #999999;
  999. .text {
  1000. font-size: 24rpx;
  1001. font-weight: 500;
  1002. color: #666666;
  1003. }
  1004. }
  1005. }
  1006. .effect {
  1007. box-sizing: border-box;
  1008. padding: 20rpx 30rpx;
  1009. background: #FFFFFF;
  1010. font-size: 28rpx;
  1011. font-weight: 500;
  1012. color: #666666;
  1013. line-height: 1.8;
  1014. margin-top: 10rpx;
  1015. display: flex;
  1016. flex-direction: row;
  1017. align-items: center;
  1018. justify-content: space-between;
  1019. .label {
  1020. font-size: 28rpx;
  1021. font-weight: 500;
  1022. color: #111111;
  1023. line-height: 1.8;
  1024. }
  1025. }
  1026. .shop-box {
  1027. // box-sizing: border-box;
  1028. // padding: 20rpx 30rpx;
  1029. // background: #FFFFFF;
  1030. // font-size: 28rpx;
  1031. // font-family: PingFang SC;
  1032. // font-weight: 500;
  1033. // color: #666666;
  1034. // line-height: 1.8;
  1035. // margin-top: 10rpx;
  1036. // background: url(../../static/images/chu_query.png) no-repeat center center / cover;
  1037. display: flex;
  1038. justify-content: space-between;
  1039. align-items: center;
  1040. background: #FFFFFF;
  1041. font-size: 28rpx;
  1042. font-weight: 500;
  1043. color: #666666;
  1044. line-height: 1.8;
  1045. padding: 24rpx;
  1046. margin: 24rpx;
  1047. border-radius: 16rpx;
  1048. .logo {
  1049. flex-shrink: 0;
  1050. width: 100rpx;
  1051. height: 100rpx;
  1052. border-radius: 16rpx;
  1053. overflow: hidden;
  1054. image {
  1055. width: 100%;
  1056. height: 100%;
  1057. }
  1058. }
  1059. .txtBox {
  1060. flex: 1;
  1061. overflow: hidden;
  1062. margin: 0 30rpx;
  1063. display: flex;
  1064. flex-direction: column;
  1065. justify-content: space-between;
  1066. }
  1067. .name {
  1068. font-size: 32rpx;
  1069. font-weight: 600;
  1070. color: #333;
  1071. text-align: left;
  1072. overflow: hidden;
  1073. white-space: nowrap;
  1074. text-overflow: ellipsis;
  1075. }
  1076. .desc {
  1077. font-size: 24rpx;
  1078. font-weight: normal;
  1079. color: #222426;
  1080. text-align: left;
  1081. }
  1082. .goShop {
  1083. flex-shrink: 0;
  1084. width: 96rpx;
  1085. height: 56rpx;
  1086. background: #fff;
  1087. border-radius: 30rpx;
  1088. color: #008FD3;
  1089. font-size: 24rpx;
  1090. margin: 0;
  1091. border: 1px solid #008FD3;
  1092. padding: 0;
  1093. line-height: 56rpx;
  1094. display: flex;
  1095. align-items: center;
  1096. justify-content: center;
  1097. }
  1098. }
  1099. .tech-pBox {
  1100. box-sizing: border-box;
  1101. padding: 0rpx 0rpx;
  1102. background: #FFFFFF;
  1103. font-size: 28rpx;
  1104. font-family: PingFang SC;
  1105. font-weight: 500;
  1106. color: #666666;
  1107. .label {
  1108. font-weight: bold;
  1109. font-size: 26rpx;
  1110. color: #222426;
  1111. text-align: left;
  1112. padding: 24rpx 0;
  1113. }
  1114. .item {
  1115. border: 1px solid #fff;
  1116. border-radius: 12rpx;
  1117. padding: 30rpx;
  1118. border: 1px solid #EFF3F7;
  1119. display: flex;
  1120. align-items: center;
  1121. margin-bottom: 20rpx;
  1122. .price {
  1123. font-size: 42rpx;
  1124. font-weight: bold;
  1125. color: #FF6633;
  1126. display: flex;
  1127. flex: 1;
  1128. }
  1129. .num {
  1130. font-size: 28rpx;
  1131. font-weight: normal;
  1132. color: #999;
  1133. width: 200rpx;
  1134. text-align: right;
  1135. }
  1136. .name {
  1137. max-width: 60%;
  1138. margin-right: 10rpx;
  1139. font-size: 28rpx;
  1140. font-weight: normal;
  1141. color: #333;
  1142. text-align: left;
  1143. overflow: hidden;
  1144. white-space: nowrap;
  1145. text-overflow: ellipsis;
  1146. }
  1147. image {
  1148. width: 100rpx;
  1149. height: 100rpx;
  1150. border-radius: 50%;
  1151. margin-right: 30rpx;
  1152. }
  1153. .tech-right {
  1154. flex: 1;
  1155. &-bottom {
  1156. color: #898E91;
  1157. font-size: 24rpx;
  1158. }
  1159. &-top {
  1160. display: flex;
  1161. align-items: flex-end;
  1162. margin-bottom: 10rpx;
  1163. .title-1 {
  1164. font-size: 32rpx;
  1165. color: #222426;
  1166. margin-right: 14rpx;
  1167. }
  1168. .title-2 {
  1169. font-weight: 400;
  1170. font-size: 24rpx;
  1171. color: #222426;
  1172. }
  1173. }
  1174. }
  1175. }
  1176. .hover {
  1177. border: 1rpx solid #008FD3;
  1178. background: #F0FAFF;
  1179. }
  1180. .shop-morebtn {
  1181. margin-top: 14rpx;
  1182. box-sizing: border-box;
  1183. padding: 12rpx 30rpx;
  1184. font-size: 28rpx;
  1185. font-weight: 500;
  1186. color: #111111;
  1187. background: #F7F7F7;
  1188. border-radius: 32rpx;
  1189. text-align: center;
  1190. text {
  1191. color: #999;
  1192. }
  1193. }
  1194. }
  1195. .shop-pBox {
  1196. box-sizing: border-box;
  1197. padding: 0rpx 0rpx;
  1198. background: #FFFFFF;
  1199. font-size: 28rpx;
  1200. font-family: PingFang SC;
  1201. font-weight: 500;
  1202. color: #666666;
  1203. .item {
  1204. border: 1px solid #fff;
  1205. border-radius: 12rpx;
  1206. padding: 18rpx 20rpx 24rpx;
  1207. .price {
  1208. font-size: 42rpx;
  1209. font-weight: bold;
  1210. color: #FF6633;
  1211. display: flex;
  1212. flex: 1;
  1213. .strong {
  1214. font-size: 30rpx;
  1215. line-height: 46rpx;
  1216. margin-top: 14rpx;
  1217. }
  1218. }
  1219. .num {
  1220. font-size: 28rpx;
  1221. font-weight: normal;
  1222. color: #999;
  1223. width: 200rpx;
  1224. text-align: right;
  1225. }
  1226. .name {
  1227. max-width: 60%;
  1228. margin-right: 10rpx;
  1229. font-size: 28rpx;
  1230. font-weight: normal;
  1231. color: #333;
  1232. text-align: left;
  1233. overflow: hidden;
  1234. white-space: nowrap;
  1235. text-overflow: ellipsis;
  1236. }
  1237. }
  1238. .hover {
  1239. border: 1rpx solid #FF6633;
  1240. }
  1241. .shop-morebtn {
  1242. margin-top: 14rpx;
  1243. box-sizing: border-box;
  1244. padding: 12rpx 30rpx;
  1245. font-size: 28rpx;
  1246. font-weight: 500;
  1247. color: #111111;
  1248. background: #F7F7F7;
  1249. border-radius: 32rpx;
  1250. text-align: center;
  1251. text {
  1252. color: #999;
  1253. }
  1254. }
  1255. }
  1256. .shop-pBox-name {
  1257. display: flex;
  1258. align-items: center;
  1259. justify-content: flex-start;
  1260. }
  1261. .storepopup {
  1262. padding: 40rpx 20rpx 20rpx 20rpx;
  1263. .storepopup-title {
  1264. text-align: center;
  1265. margin-bottom: 30rpx;
  1266. position: relative;
  1267. .close-icon {
  1268. width: 40rpx;
  1269. height: 40rpx;
  1270. position: absolute;
  1271. right: 0;
  1272. top: 50%;
  1273. transform: translate(0, -50%);
  1274. }
  1275. }
  1276. .storepopup-box {
  1277. height: 60vh;
  1278. }
  1279. }
  1280. .det-box {
  1281. // margin-top: 10rpx;
  1282. // padding: 40rpx 30rpx 130rpx 30rpx;
  1283. // background-color: #FFFFFF;
  1284. margin-top: 10rpx;
  1285. background-color: #FFFFFF;
  1286. padding: 24rpx;
  1287. margin: 24rpx 24rpx 175rpx 24rpx;
  1288. border-radius: 16rpx;
  1289. .title {
  1290. font-size: 32rpx;
  1291. font-weight: bold;
  1292. color: #333333;
  1293. line-height: 60rpx;
  1294. margin-bottom: 30rpx;
  1295. padding-bottom: 24rpx;
  1296. border-bottom: 1px solid #ECECEC;
  1297. }
  1298. .det-title {
  1299. display: flex;
  1300. align-items: center;
  1301. justify-content: space-between;
  1302. .tt {
  1303. font-size: 28rpx;
  1304. font-weight: bold;
  1305. color: #222426;
  1306. }
  1307. }
  1308. .det-right {
  1309. display: flex;
  1310. font-size: 24rpx;
  1311. color: #898E91;
  1312. align-items: center;
  1313. }
  1314. .det-table {
  1315. width: 100%;
  1316. margin: 24rpx 0;
  1317. background: #FFFFFF;
  1318. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1319. border: 1rpx solid #ECECEC;
  1320. overflow: hidden;
  1321. font-size: 24rpx;
  1322. .row {
  1323. display: table-row;
  1324. }
  1325. .row:last-child .cell-1,
  1326. .row:last-child .cell-2 {
  1327. border-bottom: 0;
  1328. }
  1329. .cell {
  1330. display: table-cell;
  1331. padding: 24rpx;
  1332. &.cell-1 {
  1333. width: 30%;
  1334. text-align: center;
  1335. color: #626468;
  1336. background: #F5F7FA;
  1337. border-right: 1rpx solid #ECECEC;
  1338. border-bottom: 1rpx solid #ECECEC;
  1339. }
  1340. &.cell-2 {
  1341. color: #222426;
  1342. text-align: center;
  1343. border-bottom: 1rpx solid #ECECEC;
  1344. }
  1345. }
  1346. }
  1347. }
  1348. .btn-foot {
  1349. box-sizing: border-box;
  1350. width: 100%;
  1351. height: 151rpx;
  1352. background: #FFFFFF;
  1353. padding: 0 24rpx;
  1354. display: flex;
  1355. align-items: center;
  1356. justify-content: space-between;
  1357. position: fixed;
  1358. left: 0;
  1359. bottom: 0;
  1360. z-index: 99;
  1361. .menu-box {
  1362. display: flex;
  1363. align-items: center;
  1364. .item {
  1365. display: flex;
  1366. align-items: center;
  1367. flex-direction: column;
  1368. margin-right: 48rpx;
  1369. &:last-child {
  1370. margin-right: 0;
  1371. }
  1372. image {
  1373. width: 40rpx;
  1374. height: 40rpx;
  1375. margin-bottom: 10rpx;
  1376. }
  1377. .label {
  1378. font-size: 20rpx;
  1379. font-weight: 500;
  1380. color: #626468;
  1381. text-align: center;
  1382. }
  1383. }
  1384. }
  1385. .btn-box {
  1386. display: flex;
  1387. align-items: center;
  1388. .btn {
  1389. width: 200rpx;
  1390. height: 88rpx;
  1391. line-height: 88rpx;
  1392. text-align: center;
  1393. border-radius: 44rpx;
  1394. margin-left: 20rpx;
  1395. font-size: 28rpx;
  1396. font-weight: bold;
  1397. color: #FFFFFF;
  1398. &:first-child {
  1399. margin-left: 0;
  1400. }
  1401. &.cart {
  1402. background: #FF5030;
  1403. }
  1404. &.buy {
  1405. background: #008FD3;
  1406. }
  1407. }
  1408. }
  1409. }
  1410. .product-spec {
  1411. padding-bottom: 30rpx;
  1412. .pro-info {
  1413. display: flex;
  1414. align-items: center;
  1415. .img-box {
  1416. width: 200rpx;
  1417. height: 200rpx;
  1418. background: #FFFFFF;
  1419. border-radius: 16rpx;
  1420. overflow: hidden;
  1421. margin-right: 30rpx;
  1422. image {
  1423. width: 100%;
  1424. height: 100%;
  1425. }
  1426. }
  1427. .info-text {
  1428. height: 200rpx;
  1429. display: flex;
  1430. flex-direction: column;
  1431. justify-content: space-between;
  1432. .info-title {
  1433. font-family: PingFang SC;
  1434. font-weight: 600;
  1435. font-size: 28rpx;
  1436. color: #222426;
  1437. text-align: left;
  1438. }
  1439. .price {
  1440. display: flex;
  1441. align-items: flex-end;
  1442. .label {
  1443. font-weight: 500;
  1444. font-size: 24rpx;
  1445. color: #FF5030;
  1446. line-height: 1.3;
  1447. margin-right: 10rpx;
  1448. }
  1449. .unit {
  1450. font-size: 32rpx;
  1451. font-weight: bold;
  1452. color: #FF6633;
  1453. line-height: 1.2;
  1454. margin-right: 10rpx;
  1455. }
  1456. .num {
  1457. font-size: 50rpx;
  1458. font-weight: bold;
  1459. color: #FF6633;
  1460. line-height: 1;
  1461. }
  1462. }
  1463. .desc-box {
  1464. display: flex;
  1465. flex-direction: column;
  1466. padding-bottom: 9rpx;
  1467. .text {
  1468. font-size: 26rpx;
  1469. font-weight: 500;
  1470. color: #999999;
  1471. margin-top: 27rpx;
  1472. line-height: 1;
  1473. &:first-child {
  1474. margin-top: 0;
  1475. }
  1476. }
  1477. }
  1478. }
  1479. }
  1480. .spec-box {
  1481. padding-top: 50rpx;
  1482. .title {
  1483. font-size: 26rpx;
  1484. font-weight: bold;
  1485. color: #111111;
  1486. line-height: 1;
  1487. }
  1488. .spec-list {
  1489. display: flex;
  1490. flex-wrap: wrap;
  1491. margin-top: 30rpx;
  1492. .item {
  1493. box-sizing: border-box;
  1494. height: 64rpx;
  1495. padding: 0 30rpx;
  1496. line-height: 64rpx;
  1497. font-size: 24rpx;
  1498. font-weight: 500;
  1499. color: #111111;
  1500. background: #F7F7F7;
  1501. border: 1px solid #F7F7F7;
  1502. border-radius: 32rpx;
  1503. margin-right: 20rpx;
  1504. margin-bottom: 30rpx;
  1505. &.active {
  1506. background: #F1FFFE;
  1507. border: 1px solid #008FD3;
  1508. color: #008FD3;
  1509. }
  1510. }
  1511. }
  1512. }
  1513. .price-num {
  1514. display: flex;
  1515. align-items: center;
  1516. justify-content: space-between;
  1517. margin-top: 14rpx;
  1518. .label {
  1519. font-size: 26rpx;
  1520. font-weight: bold;
  1521. color: #111111;
  1522. }
  1523. // .num-box {
  1524. // display: flex;
  1525. // align-items: center;
  1526. // .img-box {
  1527. // width: 60rpx;
  1528. // height: 60rpx;
  1529. // border: 1px solid #dddddd;
  1530. // display: flex;
  1531. // align-items: center;
  1532. // justify-content: center;
  1533. // image {
  1534. // width: 25rpx;
  1535. // height: 25rpx;
  1536. // }
  1537. // }
  1538. // input {
  1539. // width: 60rpx;
  1540. // height: 60rpx;
  1541. // line-height: 60rpx;
  1542. // font-size: 28rpx;
  1543. // font-weight: 500;
  1544. // color: #111111;
  1545. // // border-radius: 4rpx;
  1546. // border-top: 1px solid #dddddd;
  1547. // border-bottom: 1px solid #dddddd;
  1548. // text-align: center;
  1549. // // margin: 0 16rpx;
  1550. // }
  1551. // }
  1552. }
  1553. .sub-btn {
  1554. width: 100%;
  1555. height: 88rpx;
  1556. line-height: 88rpx;
  1557. text-align: center;
  1558. font-size: 32rpx;
  1559. font-weight: bold;
  1560. color: #FFFFFF;
  1561. background: #008FD3;
  1562. border-radius: 44rpx;
  1563. margin-top: 30rpx;
  1564. // margin-bottom: 30rpx;
  1565. }
  1566. }
  1567. .contact-btn {
  1568. display: inline-block;
  1569. position: absolute;
  1570. top: 0;
  1571. left: 0;
  1572. width: 100%;
  1573. height: 100%;
  1574. opacity: 0;
  1575. z-index: 9999;
  1576. }
  1577. .loadding {
  1578. background-color: #fff;
  1579. display: flex;
  1580. flex-direction: column;
  1581. align-items: center;
  1582. justify-content: center;
  1583. position: absolute;
  1584. top: 0;
  1585. left: 0;
  1586. width: 100%;
  1587. height: 100%;
  1588. z-index: 9999;
  1589. image {
  1590. border-radius: 50%;
  1591. animation: load linear 1s infinite;
  1592. width: 120rpx;
  1593. height: 120rpx;
  1594. }
  1595. .text {
  1596. font-size: 28rpx;
  1597. margin-top: 20rpx;
  1598. }
  1599. }
  1600. .form-item {
  1601. padding: 30rpx 0;
  1602. display: flex;
  1603. align-items: flex-start;
  1604. border-bottom: 1px solid #F1F1F1;
  1605. &:last-child {
  1606. border-bottom: none;
  1607. }
  1608. .label {
  1609. width: 180rpx;
  1610. text-align: left;
  1611. font-size: 30rpx;
  1612. line-height: 44rpx;
  1613. font-weight: 500;
  1614. color: #222222;
  1615. flex-shrink: 0;
  1616. }
  1617. input {
  1618. text-align: left;
  1619. }
  1620. .form-input {
  1621. font-size: 30rpx;
  1622. font-weight: 500;
  1623. color: #999999;
  1624. text-align: left;
  1625. }
  1626. .form-textarea {
  1627. font-size: 30rpx;
  1628. color: #999999;
  1629. height: 100rpx;
  1630. padding: 4rpx 0;
  1631. }
  1632. .birth-picker {
  1633. flex: 1;
  1634. display: flex;
  1635. align-items: center;
  1636. .right-box {
  1637. width: 100%;
  1638. display: flex;
  1639. align-items: center;
  1640. .input-box {
  1641. width: 470rpx;
  1642. }
  1643. .arrow {
  1644. width: 13rpx;
  1645. height: 23rpx;
  1646. margin-left: 20rpx;
  1647. }
  1648. }
  1649. }
  1650. }
  1651. </style>