goods.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847
  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. console.log("商品详情options",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. if(!this.storeId) return;
  380. let key=""
  381. store(this.storeId,key,this.liveId).then(res => {
  382. if (res.code == 200) {
  383. console.log("查询店铺>>>>", res)
  384. this.storeInfo=res.data
  385. } else {
  386. uni.showToast({
  387. title: res.msg,
  388. icon: 'none'
  389. });
  390. }
  391. },
  392. rej => {}
  393. );
  394. },
  395. //店铺展示
  396. getliveStore() {
  397. let data = {
  398. pageSize: 10,
  399. page: 1
  400. }
  401. liveStore(this.liveId, data).then(res => {
  402. if (res.code == 200) {
  403. console.log("小黄车 店铺展示>>>>", res)
  404. this.products = res.data
  405. } else {
  406. uni.showToast({
  407. title: res.msg,
  408. icon: 'none'
  409. });
  410. }
  411. },
  412. rej => {}
  413. );
  414. },
  415. // getLiveCartDetails() {
  416. // let data = {
  417. // productId: this.productId,
  418. // liveId: this.liveId,
  419. // goodsId: this.goodsId,
  420. // cartNum: this.totalNum,
  421. // };
  422. // liveCartDetails(data).then(
  423. // res => {
  424. // if (res.code == 200) {
  425. // console.log("加购物车啦", res)
  426. // this.cartCount = cartRes.data;
  427. // }
  428. // },
  429. // rej => {}
  430. // );
  431. // },
  432. doAddCart(type) {
  433. if (this.totalNum == 0) {
  434. uni.showToast({
  435. icon: 'none',
  436. title: "库存不足",
  437. });
  438. return;
  439. }
  440. var isBuy = type == "buy" ? 1 : 0;
  441. // let data = {
  442. // isBuy: isBuy,
  443. // cartNum: this.totalNum,
  444. // productId: this.productId,
  445. // };
  446. if (type == "buy") {
  447. this.getKey()
  448. } else {
  449. this.getCartCount()
  450. uni.showToast({
  451. icon: 'success',
  452. title: "添加成功",
  453. });
  454. }
  455. },
  456. getCartCount() {
  457. let data = {
  458. productId: this.productId,
  459. liveId: this.liveId,
  460. goodsId: this.goodsId||"",
  461. cartNum: this.totalNum,
  462. };
  463. addLiveCart(data).then(
  464. res => {
  465. if (res.code == 200) {
  466. console.log("加购物车啦", res)
  467. this.cartCount = res.data;
  468. }
  469. },
  470. rej => {}
  471. );
  472. },
  473. // 获得key
  474. getKey() {
  475. liveOrderKey().then(res => {
  476. if (res.code == 200) {
  477. console.log("下订单的key>>>>", res)
  478. this.orderKey = res.orderKey
  479. console.log("key>>>>", this.orderKey)
  480. uni.navigateTo({
  481. url: '/pages_shop/confirmCreateOrder?type=goods&orderKey=' + this.orderKey +
  482. '&liveId=' +
  483. this.liveId + '&productId=' + this.productId + '&totalNum=' + this
  484. .totalNum + '&price=' + this.goosDetail.price
  485. })
  486. } else {
  487. uni.showToast({
  488. title: res.msg,
  489. icon: 'none'
  490. });
  491. }
  492. },
  493. rej => {}
  494. );
  495. },
  496. // 点击取消/支付订单
  497. operateOrder(type) {
  498. // console.log("this.liveOrderList" ,JSON.parse( this.liveOrderList.orderId));
  499. let orderId = this.liveOrderList
  500. console.log("orderId>>", orderId)
  501. // updateConfirm(orderId, type).then(res => {
  502. // if (res.code == 200) {
  503. // console.log("点击取消/支付订单>>>>", res)
  504. // } else {
  505. // uni.showToast({
  506. // title: res.msg,
  507. // icon: 'none'
  508. // });
  509. // }
  510. // },
  511. // rej => {}
  512. // );
  513. },
  514. // 选择商品数量
  515. goodsNumChange(e) {
  516. console.log('当前选择商品数量为: ' + e.value)
  517. this.totalNum = e.value
  518. },
  519. // 提交
  520. submit() {
  521. this.specVisible = false
  522. this.doAddCart(this.type);
  523. },
  524. // 加入购物车
  525. addCart(type) {
  526. this.type = type;
  527. this.specVisible = true
  528. },
  529. // 跳转页面
  530. navgetTo(url) {
  531. console.log("跳转")
  532. uni.navigateTo({
  533. url: url
  534. })
  535. },
  536. openEditMoney() {
  537. this.editShow = true;
  538. },
  539. cancelEditMoney(){
  540. this.editShow = false;
  541. },
  542. //商品详情
  543. getliveGoods() {
  544. if (!this.productId) return;
  545. liveGoodsDetail(this.productId).then(res => {
  546. if (res.code == 200) {
  547. console.log("小黄车 商品详情>>>>", res)
  548. this.goosDetail = res.data
  549. } else {
  550. uni.showToast({
  551. title: res.msg,
  552. icon: 'none'
  553. });
  554. }
  555. },
  556. rej => {}
  557. );
  558. },
  559. }
  560. }
  561. </script>
  562. <style lang="scss">
  563. .content {
  564. font-family: PingFang SC;
  565. }
  566. .share-box {
  567. position: fixed;
  568. right: 24rpx;
  569. top: 70%;
  570. z-index: 99;
  571. width: 112rpx;
  572. height: 112rpx;
  573. border-radius: 16rpx 16rpx 16rpx 16rpx;
  574. border: 1rpx solid #EFF3F7;
  575. background-color: #FFFFFF;
  576. }
  577. .shop-banner {
  578. height: 756rpx;
  579. background-color: #FFFFFF;
  580. position: relative;
  581. .swiper-item {
  582. box-sizing: border-box;
  583. position: relative;
  584. }
  585. .swiper,
  586. .swiper-item,
  587. .swiper-item image {
  588. width: 100%;
  589. height: 100%;
  590. }
  591. .banner-mask {
  592. width: 100%;
  593. height: 44rpx;
  594. position: absolute;
  595. left: 0;
  596. bottom: 0;
  597. z-index: 9;
  598. // background-image: url(../../static/images/black_mask.png);
  599. background-size: 20rpx 44rpx;
  600. background-repeat: repeat-x;
  601. }
  602. .num-box {
  603. width: 80rpx;
  604. height: 40rpx;
  605. line-height: 40rpx;
  606. text-align: center;
  607. font-size: 24rpx;
  608. color: #FFFFFF;
  609. background: rgba(0, 0, 0, .7);
  610. border-radius: 20rpx;
  611. position: absolute;
  612. right: 40rpx;
  613. bottom: 34rpx;
  614. z-index: 10;
  615. }
  616. .cf-box {
  617. position: absolute;
  618. z-index: 10;
  619. left: 0;
  620. right: 0;
  621. top: calc(50% - 200rpx);
  622. bottom: calc(50% - 200rpx);
  623. background-color: rgba(0, 0, 0, 0.3);
  624. backdrop-filter: blur(2rpx);
  625. /* 背景模糊度 */
  626. display: flex;
  627. flex-direction: column;
  628. flex: 1;
  629. justify-content: center;
  630. align-items: center;
  631. color: #EDEEEF;
  632. .title {
  633. font-size: 40rpx;
  634. font-weight: bold;
  635. }
  636. .subTitle {
  637. font-size: 28rpx;
  638. font-weight: bold;
  639. margin-top: 10rpx;
  640. }
  641. }
  642. }
  643. .guige {
  644. padding: 24rpx;
  645. border-radius: 16rpx;
  646. background: #fff;
  647. width: auto;
  648. font-size: 24rpx;
  649. color: #222426;
  650. margin: 24rpx;
  651. .guige-gg {
  652. .gg-text {
  653. color: #898E91;
  654. margin-right: 40rpx;
  655. }
  656. }
  657. .safe-box {
  658. display: flex;
  659. align-items: center;
  660. padding-top: 24rpx;
  661. font-size: 24rpx;
  662. color: #222426;
  663. .text {
  664. color: #999999;
  665. margin-right: 40rpx;
  666. }
  667. .box {
  668. display: flex;
  669. align-items: center;
  670. image {
  671. width: 28rpx;
  672. height: 28rpx;
  673. margin-right: 10rpx;
  674. }
  675. view {
  676. display: flex;
  677. align-items: center;
  678. margin-right: 40rpx;
  679. &:last-child {
  680. margin-right: 0;
  681. image {
  682. margin-right: 0;
  683. }
  684. }
  685. }
  686. }
  687. }
  688. .popup-box {
  689. position: fixed;
  690. top: 0;
  691. right: 0;
  692. left: 0;
  693. bottom: 0;
  694. z-index: 999;
  695. display: flex;
  696. justify-content: center;
  697. align-items: flex-end;
  698. .info-mask {
  699. position: fixed;
  700. top: 0;
  701. right: 0;
  702. bottom: 0;
  703. left: 0;
  704. background-color: rgba($color: #000000, $alpha: 0.5);
  705. z-index: 999;
  706. }
  707. .info-form {
  708. z-index: 1000;
  709. width: 100%;
  710. display: flex;
  711. flex-direction: column;
  712. justify-content: center;
  713. align-items: center;
  714. padding: 0 30rpx 60rpx;
  715. background: #FFFFFF;
  716. border-radius: 40rpx;
  717. .top {
  718. display: flex;
  719. }
  720. .line {
  721. border-top: 1px solid #F1F1F1;
  722. width: 100%;
  723. }
  724. .title {
  725. padding: 30rpx;
  726. display: flex;
  727. justify-content: center;
  728. align-items: center;
  729. font-size: 36rpx;
  730. font-weight: bold;
  731. line-height: 44rpx;
  732. color: #222222;
  733. }
  734. .close {
  735. padding-top: 30rpx;
  736. position: absolute;
  737. right: 30rpx;
  738. }
  739. .form-box {
  740. width: 100%;
  741. padding-top: 30rpx;
  742. .form-item2 {
  743. padding-bottom: 30rpx;
  744. // display: flex;
  745. // align-items: flex-start;
  746. // border-bottom: 1px solid #F1F1F1;
  747. .form-item-box {
  748. display: flex;
  749. align-items: center;
  750. text {
  751. font-size: 28rpx;
  752. color: #222426;
  753. margin-left: 10rpx;
  754. font-weight: bold;
  755. }
  756. }
  757. .form-content {
  758. font-size: 24rpx;
  759. text-align: left;
  760. color: #626468;
  761. margin-top: 20rpx;
  762. line-height: 40rpx;
  763. }
  764. }
  765. }
  766. .btns {
  767. width: 100%;
  768. height: 120rpx;
  769. padding: 20rpx 30rpx;
  770. display: flex;
  771. align-items: center;
  772. justify-content: center;
  773. .sub-btn {
  774. width: 100%;
  775. height: 88rpx;
  776. line-height: 88rpx;
  777. text-align: center;
  778. font-size: 36rpx;
  779. font-weight: bold;
  780. color: #FFFFFF;
  781. background: #008FD3;
  782. border-radius: 44rpx;
  783. }
  784. }
  785. }
  786. }
  787. }
  788. .det-info {
  789. // background: #FFFFFF;
  790. // padding: 36rpx 30rpx 25rpx;
  791. background: #FFFFFF;
  792. padding: 24rpx;
  793. margin: 24rpx;
  794. border-radius: 16rpx;
  795. .price-box {
  796. display: flex;
  797. align-items: flex-end;
  798. justify-content: space-between;
  799. .price {
  800. display: flex;
  801. align-items: flex-end;
  802. .label {
  803. font-weight: 500;
  804. font-size: 24rpx;
  805. color: #FF5030;
  806. line-height: 1.3;
  807. margin-right: 10rpx;
  808. }
  809. .unit {
  810. font-size: 26rpx;
  811. font-weight: bold;
  812. color: #FF6633;
  813. line-height: 1.3;
  814. }
  815. .num {
  816. font-size: 48rpx;
  817. font-weight: bold;
  818. color: #FF5030;
  819. margin-right: 20rpx;
  820. line-height: 1;
  821. }
  822. .old {
  823. font-size: 24rpx;
  824. font-family: PingFang SC;
  825. font-weight: 400;
  826. // text-decoration: line-through;
  827. color: #898E91;
  828. margin-left: 10rpx;
  829. // line-height: 1.3;
  830. }
  831. }
  832. // .share-box{
  833. // width: 120rpx;
  834. // height: 46rpx;
  835. // border: 1px solid #0bb3f2;
  836. // border-radius: 23rpx;
  837. // display: flex;
  838. // align-items: center;
  839. // justify-content: center;
  840. // position: relative;
  841. // .text{
  842. // font-size: 26rpx;
  843. // font-family: PingFang SC;
  844. // font-weight: 500;
  845. // color: #0bb3f2;
  846. // }
  847. // image{
  848. // margin-left: 2rpx;
  849. // width: 25rpx;
  850. // height: 24rpx;
  851. // }
  852. // .share{
  853. // display: inline-block;
  854. // position: absolute;
  855. // top: 0;
  856. // left: 0;
  857. // width: 100%;
  858. // height: 100%;
  859. // opacity: 0;
  860. // }
  861. // }
  862. .spec {
  863. font-size: 24rpx;
  864. font-family: PingFang SC;
  865. font-weight: 500;
  866. color: #999999;
  867. line-height: 36rpx;
  868. }
  869. }
  870. // .name-box {
  871. // font-size: 32rpx;
  872. // font-family: PingFang SC;
  873. // font-weight: bold;
  874. // color: #111111;
  875. // line-height: 44rpx;
  876. // margin-top: 32rpx;
  877. // .tag {
  878. // display: inline-block;
  879. // padding: 2rpx 8rpx;
  880. // height: 32rpx;
  881. // background: #F5A623;
  882. // border-radius: 4rpx;
  883. // margin-right: 10rpx;
  884. // font-weight: 400;
  885. // font-size: 20rpx;
  886. // color: #FFFFFF;
  887. // line-height: 30rpx;
  888. // float: left;
  889. // margin-top: 7rpx;
  890. // }
  891. // }
  892. .intro {
  893. font-size: 26rpx;
  894. font-weight: 500;
  895. color: #999999;
  896. line-height: 36rpx;
  897. padding: 18rpx 0 23rpx;
  898. }
  899. .intro-box {
  900. display: flex;
  901. justify-content: space-between;
  902. align-items: center;
  903. padding: 20rpx;
  904. border-radius: 16rpx;
  905. background: #F5F7FA;
  906. width: auto;
  907. .title-1 {
  908. font-size: 24rpx;
  909. color: #222426;
  910. font-weight: bold;
  911. width: 40%;
  912. text-align: center;
  913. }
  914. .title-2 {
  915. font-size: 24rpx;
  916. color: #222426;
  917. font-weight: bold;
  918. display: block;
  919. }
  920. .intro-text {
  921. // padding: 0 20rpx;
  922. }
  923. .intro-text2 {
  924. width: 50%;
  925. }
  926. .intro-content {
  927. color: #898E91;
  928. font-size: 24rpx;
  929. }
  930. .line {
  931. width: 1px;
  932. height: 40rpx;
  933. background: #EDEEEF;
  934. margin: 0 20rpx;
  935. }
  936. }
  937. .safe-box {
  938. display: flex;
  939. align-items: center;
  940. padding-top: 24rpx;
  941. image {
  942. width: 20rpx;
  943. height: 24rpx;
  944. margin-right: 20rpx;
  945. }
  946. .text {
  947. font-size: 22rpx;
  948. font-weight: 500;
  949. color: #999999;
  950. line-height: 1;
  951. }
  952. .line {
  953. width: 1px;
  954. height: 23rpx;
  955. background: #EDEEEF;
  956. margin: 0 20rpx;
  957. }
  958. }
  959. }
  960. .inventor {
  961. height: 88rpx;
  962. padding: 0 39rpx 0 30rpx;
  963. margin-top: 10rpx;
  964. background: #FFFFFF;
  965. display: flex;
  966. align-items: center;
  967. justify-content: space-between;
  968. .left {
  969. display: flex;
  970. align-items: center;
  971. .head-box {
  972. margin-right: 27rpx;
  973. display: flex;
  974. align-items: center;
  975. .head {
  976. width: 48rpx;
  977. height: 48rpx;
  978. border-radius: 50%;
  979. overflow: hidden;
  980. box-shadow: 0 0 0 1px #fff;
  981. margin-right: -10rpx;
  982. image {
  983. width: 100%;
  984. height: 100%;
  985. }
  986. }
  987. }
  988. .num-box {
  989. font-size: 24rpx;
  990. font-weight: 500;
  991. color: #999999;
  992. .text {
  993. font-size: 24rpx;
  994. font-weight: 500;
  995. color: #999999;
  996. }
  997. }
  998. }
  999. .right {
  1000. font-size: 24rpx;
  1001. font-family: PingFang SC;
  1002. font-weight: 500;
  1003. color: #999999;
  1004. .text {
  1005. font-size: 24rpx;
  1006. font-weight: 500;
  1007. color: #666666;
  1008. }
  1009. }
  1010. }
  1011. .effect {
  1012. box-sizing: border-box;
  1013. padding: 20rpx 30rpx;
  1014. background: #FFFFFF;
  1015. font-size: 28rpx;
  1016. font-weight: 500;
  1017. color: #666666;
  1018. line-height: 1.8;
  1019. margin-top: 10rpx;
  1020. display: flex;
  1021. flex-direction: row;
  1022. align-items: center;
  1023. justify-content: space-between;
  1024. .label {
  1025. font-size: 28rpx;
  1026. font-weight: 500;
  1027. color: #111111;
  1028. line-height: 1.8;
  1029. }
  1030. }
  1031. .shop-box {
  1032. display: flex;
  1033. justify-content: space-between;
  1034. align-items: center;
  1035. background: #FFFFFF;
  1036. font-size: 28rpx;
  1037. font-weight: 500;
  1038. color: #666666;
  1039. line-height: 1.8;
  1040. padding: 24rpx;
  1041. margin: 24rpx;
  1042. border-radius: 16rpx;
  1043. .logo {
  1044. flex-shrink: 0;
  1045. width: 100rpx;
  1046. height: 100rpx;
  1047. border-radius: 16rpx;
  1048. overflow: hidden;
  1049. image {
  1050. width: 100%;
  1051. height: 100%;
  1052. }
  1053. }
  1054. .txtBox {
  1055. flex: 1;
  1056. overflow: hidden;
  1057. margin: 0 30rpx;
  1058. display: flex;
  1059. flex-direction: column;
  1060. justify-content: space-between;
  1061. }
  1062. .name {
  1063. font-size: 32rpx;
  1064. font-weight: 600;
  1065. color: #333;
  1066. text-align: left;
  1067. overflow: hidden;
  1068. white-space: nowrap;
  1069. text-overflow: ellipsis;
  1070. }
  1071. .desc {
  1072. font-size: 24rpx;
  1073. font-weight: normal;
  1074. color: #222426;
  1075. text-align: left;
  1076. }
  1077. .goShop {
  1078. flex-shrink: 0;
  1079. width: 96rpx;
  1080. height: 56rpx;
  1081. background: #fff;
  1082. border-radius: 30rpx;
  1083. color: #008FD3;
  1084. font-size: 24rpx;
  1085. margin: 0;
  1086. border: 1px solid #008FD3;
  1087. padding: 0;
  1088. line-height: 56rpx;
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: center;
  1092. }
  1093. }
  1094. .tech-pBox {
  1095. box-sizing: border-box;
  1096. padding: 0rpx 0rpx;
  1097. background: #FFFFFF;
  1098. font-size: 28rpx;
  1099. font-family: PingFang SC;
  1100. font-weight: 500;
  1101. color: #666666;
  1102. .label {
  1103. font-weight: bold;
  1104. font-size: 26rpx;
  1105. color: #222426;
  1106. text-align: left;
  1107. padding: 24rpx 0;
  1108. }
  1109. .item {
  1110. border: 1px solid #fff;
  1111. border-radius: 12rpx;
  1112. padding: 30rpx;
  1113. border: 1px solid #EFF3F7;
  1114. display: flex;
  1115. align-items: center;
  1116. margin-bottom: 20rpx;
  1117. .price {
  1118. font-size: 42rpx;
  1119. font-weight: bold;
  1120. color: #FF6633;
  1121. display: flex;
  1122. flex: 1;
  1123. }
  1124. .num {
  1125. font-size: 28rpx;
  1126. font-weight: normal;
  1127. color: #999;
  1128. width: 200rpx;
  1129. text-align: right;
  1130. }
  1131. .name {
  1132. max-width: 60%;
  1133. margin-right: 10rpx;
  1134. font-size: 28rpx;
  1135. font-weight: normal;
  1136. color: #333;
  1137. text-align: left;
  1138. overflow: hidden;
  1139. white-space: nowrap;
  1140. text-overflow: ellipsis;
  1141. }
  1142. image {
  1143. width: 100rpx;
  1144. height: 100rpx;
  1145. border-radius: 50%;
  1146. margin-right: 30rpx;
  1147. }
  1148. .tech-right {
  1149. flex: 1;
  1150. &-bottom {
  1151. color: #898E91;
  1152. font-size: 24rpx;
  1153. }
  1154. &-top {
  1155. display: flex;
  1156. align-items: flex-end;
  1157. margin-bottom: 10rpx;
  1158. .title-1 {
  1159. font-size: 32rpx;
  1160. color: #222426;
  1161. margin-right: 14rpx;
  1162. }
  1163. .title-2 {
  1164. font-weight: 400;
  1165. font-size: 24rpx;
  1166. color: #222426;
  1167. }
  1168. }
  1169. }
  1170. }
  1171. .hover {
  1172. border: 1rpx solid #008FD3;
  1173. background: #F0FAFF;
  1174. }
  1175. .shop-morebtn {
  1176. margin-top: 14rpx;
  1177. box-sizing: border-box;
  1178. padding: 12rpx 30rpx;
  1179. font-size: 28rpx;
  1180. font-weight: 500;
  1181. color: #111111;
  1182. background: #F7F7F7;
  1183. border-radius: 32rpx;
  1184. text-align: center;
  1185. text {
  1186. color: #999;
  1187. }
  1188. }
  1189. }
  1190. .shop-pBox {
  1191. box-sizing: border-box;
  1192. padding: 0rpx 0rpx;
  1193. background: #FFFFFF;
  1194. font-size: 28rpx;
  1195. font-family: PingFang SC;
  1196. font-weight: 500;
  1197. color: #666666;
  1198. .item {
  1199. border: 1px solid #fff;
  1200. border-radius: 12rpx;
  1201. padding: 18rpx 20rpx 24rpx;
  1202. .price {
  1203. font-size: 42rpx;
  1204. font-weight: bold;
  1205. color: #FF6633;
  1206. display: flex;
  1207. flex: 1;
  1208. .strong {
  1209. font-size: 30rpx;
  1210. line-height: 46rpx;
  1211. margin-top: 14rpx;
  1212. }
  1213. }
  1214. .num {
  1215. font-size: 28rpx;
  1216. font-weight: normal;
  1217. color: #999;
  1218. width: 200rpx;
  1219. text-align: right;
  1220. }
  1221. .name {
  1222. max-width: 60%;
  1223. margin-right: 10rpx;
  1224. font-size: 28rpx;
  1225. font-weight: normal;
  1226. color: #333;
  1227. text-align: left;
  1228. overflow: hidden;
  1229. white-space: nowrap;
  1230. text-overflow: ellipsis;
  1231. }
  1232. }
  1233. .hover {
  1234. border: 1rpx solid #FF6633;
  1235. }
  1236. .shop-morebtn {
  1237. margin-top: 14rpx;
  1238. box-sizing: border-box;
  1239. padding: 12rpx 30rpx;
  1240. font-size: 28rpx;
  1241. font-weight: 500;
  1242. color: #111111;
  1243. background: #F7F7F7;
  1244. border-radius: 32rpx;
  1245. text-align: center;
  1246. text {
  1247. color: #999;
  1248. }
  1249. }
  1250. }
  1251. .shop-pBox-name {
  1252. display: flex;
  1253. align-items: center;
  1254. justify-content: flex-start;
  1255. }
  1256. .storepopup {
  1257. padding: 40rpx 20rpx 20rpx 20rpx;
  1258. .storepopup-title {
  1259. text-align: center;
  1260. margin-bottom: 30rpx;
  1261. position: relative;
  1262. .close-icon {
  1263. width: 40rpx;
  1264. height: 40rpx;
  1265. position: absolute;
  1266. right: 0;
  1267. top: 50%;
  1268. transform: translate(0, -50%);
  1269. }
  1270. }
  1271. .storepopup-box {
  1272. height: 60vh;
  1273. }
  1274. }
  1275. .det-box {
  1276. // margin-top: 10rpx;
  1277. // padding: 40rpx 30rpx 130rpx 30rpx;
  1278. // background-color: #FFFFFF;
  1279. margin-top: 10rpx;
  1280. background-color: #FFFFFF;
  1281. padding: 24rpx;
  1282. margin: 24rpx 24rpx 175rpx 24rpx;
  1283. border-radius: 16rpx;
  1284. .title {
  1285. font-size: 32rpx;
  1286. font-weight: bold;
  1287. color: #333333;
  1288. line-height: 60rpx;
  1289. margin-bottom: 30rpx;
  1290. padding-bottom: 24rpx;
  1291. border-bottom: 1px solid #ECECEC;
  1292. }
  1293. .det-title {
  1294. display: flex;
  1295. align-items: center;
  1296. justify-content: space-between;
  1297. .tt {
  1298. font-size: 28rpx;
  1299. font-weight: bold;
  1300. color: #222426;
  1301. }
  1302. }
  1303. .det-right {
  1304. display: flex;
  1305. font-size: 24rpx;
  1306. color: #898E91;
  1307. align-items: center;
  1308. }
  1309. .det-table {
  1310. width: 100%;
  1311. margin: 24rpx 0;
  1312. background: #FFFFFF;
  1313. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1314. border: 1rpx solid #ECECEC;
  1315. overflow: hidden;
  1316. font-size: 24rpx;
  1317. .row {
  1318. display: table-row;
  1319. }
  1320. .row:last-child .cell-1,
  1321. .row:last-child .cell-2 {
  1322. border-bottom: 0;
  1323. }
  1324. .cell {
  1325. display: table-cell;
  1326. padding: 24rpx;
  1327. &.cell-1 {
  1328. width: 30%;
  1329. text-align: center;
  1330. color: #626468;
  1331. background: #F5F7FA;
  1332. border-right: 1rpx solid #ECECEC;
  1333. border-bottom: 1rpx solid #ECECEC;
  1334. }
  1335. &.cell-2 {
  1336. color: #222426;
  1337. text-align: center;
  1338. border-bottom: 1rpx solid #ECECEC;
  1339. }
  1340. }
  1341. }
  1342. }
  1343. .btn-foot {
  1344. box-sizing: border-box;
  1345. width: 100%;
  1346. height: 151rpx;
  1347. background: #FFFFFF;
  1348. padding: 0 24rpx;
  1349. display: flex;
  1350. align-items: center;
  1351. justify-content: space-between;
  1352. position: fixed;
  1353. left: 0;
  1354. bottom: 0;
  1355. z-index: 99;
  1356. .menu-box {
  1357. display: flex;
  1358. align-items: center;
  1359. .item {
  1360. display: flex;
  1361. align-items: center;
  1362. flex-direction: column;
  1363. margin-right: 48rpx;
  1364. &:last-child {
  1365. margin-right: 0;
  1366. }
  1367. image {
  1368. width: 40rpx;
  1369. height: 40rpx;
  1370. margin-bottom: 10rpx;
  1371. }
  1372. .label {
  1373. font-size: 20rpx;
  1374. font-weight: 500;
  1375. color: #626468;
  1376. text-align: center;
  1377. }
  1378. }
  1379. }
  1380. .btn-box {
  1381. display: flex;
  1382. align-items: center;
  1383. .btn {
  1384. width: 200rpx;
  1385. height: 88rpx;
  1386. line-height: 88rpx;
  1387. text-align: center;
  1388. border-radius: 44rpx;
  1389. margin-left: 20rpx;
  1390. font-size: 28rpx;
  1391. font-weight: bold;
  1392. color: #FFFFFF;
  1393. &:first-child {
  1394. margin-left: 0;
  1395. }
  1396. &.cart {
  1397. background: #FF5030;
  1398. }
  1399. &.buy {
  1400. background: #008FD3;
  1401. }
  1402. }
  1403. }
  1404. }
  1405. .product-spec {
  1406. padding-bottom: 30rpx;
  1407. .pro-info {
  1408. display: flex;
  1409. align-items: center;
  1410. .img-box {
  1411. width: 200rpx;
  1412. height: 200rpx;
  1413. background: #FFFFFF;
  1414. border-radius: 16rpx;
  1415. overflow: hidden;
  1416. margin-right: 30rpx;
  1417. image {
  1418. width: 100%;
  1419. height: 100%;
  1420. }
  1421. }
  1422. .info-text {
  1423. height: 200rpx;
  1424. display: flex;
  1425. flex-direction: column;
  1426. justify-content: space-between;
  1427. .info-title {
  1428. font-family: PingFang SC;
  1429. font-weight: 600;
  1430. font-size: 28rpx;
  1431. color: #222426;
  1432. text-align: left;
  1433. }
  1434. .price {
  1435. display: flex;
  1436. align-items: flex-end;
  1437. .label {
  1438. font-weight: 500;
  1439. font-size: 24rpx;
  1440. color: #FF5030;
  1441. line-height: 1.3;
  1442. margin-right: 10rpx;
  1443. }
  1444. .unit {
  1445. font-size: 32rpx;
  1446. font-weight: bold;
  1447. color: #FF6633;
  1448. line-height: 1.2;
  1449. margin-right: 10rpx;
  1450. }
  1451. .num {
  1452. font-size: 50rpx;
  1453. font-weight: bold;
  1454. color: #FF6633;
  1455. line-height: 1;
  1456. }
  1457. }
  1458. .desc-box {
  1459. display: flex;
  1460. flex-direction: column;
  1461. padding-bottom: 9rpx;
  1462. .text {
  1463. font-size: 26rpx;
  1464. font-weight: 500;
  1465. color: #999999;
  1466. margin-top: 27rpx;
  1467. line-height: 1;
  1468. &:first-child {
  1469. margin-top: 0;
  1470. }
  1471. }
  1472. }
  1473. }
  1474. }
  1475. .spec-box {
  1476. padding-top: 50rpx;
  1477. .title {
  1478. font-size: 26rpx;
  1479. font-weight: bold;
  1480. color: #111111;
  1481. line-height: 1;
  1482. }
  1483. .spec-list {
  1484. display: flex;
  1485. flex-wrap: wrap;
  1486. margin-top: 30rpx;
  1487. .item {
  1488. box-sizing: border-box;
  1489. height: 64rpx;
  1490. padding: 0 30rpx;
  1491. line-height: 64rpx;
  1492. font-size: 24rpx;
  1493. font-weight: 500;
  1494. color: #111111;
  1495. background: #F7F7F7;
  1496. border: 1px solid #F7F7F7;
  1497. border-radius: 32rpx;
  1498. margin-right: 20rpx;
  1499. margin-bottom: 30rpx;
  1500. &.active {
  1501. background: #F1FFFE;
  1502. border: 1px solid #008FD3;
  1503. color: #008FD3;
  1504. }
  1505. }
  1506. }
  1507. }
  1508. .price-num {
  1509. display: flex;
  1510. align-items: center;
  1511. justify-content: space-between;
  1512. margin-top: 14rpx;
  1513. .label {
  1514. font-size: 26rpx;
  1515. font-weight: bold;
  1516. color: #111111;
  1517. }
  1518. // .num-box {
  1519. // display: flex;
  1520. // align-items: center;
  1521. // .img-box {
  1522. // width: 60rpx;
  1523. // height: 60rpx;
  1524. // border: 1px solid #dddddd;
  1525. // display: flex;
  1526. // align-items: center;
  1527. // justify-content: center;
  1528. // image {
  1529. // width: 25rpx;
  1530. // height: 25rpx;
  1531. // }
  1532. // }
  1533. // input {
  1534. // width: 60rpx;
  1535. // height: 60rpx;
  1536. // line-height: 60rpx;
  1537. // font-size: 28rpx;
  1538. // font-weight: 500;
  1539. // color: #111111;
  1540. // // border-radius: 4rpx;
  1541. // border-top: 1px solid #dddddd;
  1542. // border-bottom: 1px solid #dddddd;
  1543. // text-align: center;
  1544. // // margin: 0 16rpx;
  1545. // }
  1546. // }
  1547. }
  1548. .sub-btn {
  1549. width: 100%;
  1550. height: 88rpx;
  1551. line-height: 88rpx;
  1552. text-align: center;
  1553. font-size: 32rpx;
  1554. font-weight: bold;
  1555. color: #FFFFFF;
  1556. background: #008FD3;
  1557. border-radius: 44rpx;
  1558. margin-top: 30rpx;
  1559. // margin-bottom: 30rpx;
  1560. }
  1561. }
  1562. .contact-btn {
  1563. display: inline-block;
  1564. position: absolute;
  1565. top: 0;
  1566. left: 0;
  1567. width: 100%;
  1568. height: 100%;
  1569. opacity: 0;
  1570. z-index: 9999;
  1571. }
  1572. .loadding {
  1573. background-color: #fff;
  1574. display: flex;
  1575. flex-direction: column;
  1576. align-items: center;
  1577. justify-content: center;
  1578. position: absolute;
  1579. top: 0;
  1580. left: 0;
  1581. width: 100%;
  1582. height: 100%;
  1583. z-index: 9999;
  1584. image {
  1585. border-radius: 50%;
  1586. animation: load linear 1s infinite;
  1587. width: 120rpx;
  1588. height: 120rpx;
  1589. }
  1590. .text {
  1591. font-size: 28rpx;
  1592. margin-top: 20rpx;
  1593. }
  1594. }
  1595. .form-item {
  1596. padding: 30rpx 0;
  1597. display: flex;
  1598. align-items: flex-start;
  1599. border-bottom: 1px solid #F1F1F1;
  1600. &:last-child {
  1601. border-bottom: none;
  1602. }
  1603. .label {
  1604. width: 180rpx;
  1605. text-align: left;
  1606. font-size: 30rpx;
  1607. line-height: 44rpx;
  1608. font-weight: 500;
  1609. color: #222222;
  1610. flex-shrink: 0;
  1611. }
  1612. input {
  1613. text-align: left;
  1614. }
  1615. .form-input {
  1616. font-size: 30rpx;
  1617. font-weight: 500;
  1618. color: #999999;
  1619. text-align: left;
  1620. }
  1621. .form-textarea {
  1622. font-size: 30rpx;
  1623. color: #999999;
  1624. height: 100rpx;
  1625. padding: 4rpx 0;
  1626. }
  1627. .birth-picker {
  1628. flex: 1;
  1629. display: flex;
  1630. align-items: center;
  1631. .right-box {
  1632. width: 100%;
  1633. display: flex;
  1634. align-items: center;
  1635. .input-box {
  1636. width: 470rpx;
  1637. }
  1638. .arrow {
  1639. width: 13rpx;
  1640. height: 23rpx;
  1641. margin-left: 20rpx;
  1642. }
  1643. }
  1644. }
  1645. }
  1646. </style>