goods.vue 37 KB

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