share.vue 21 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <view class="one_1">
  6. <text>超值拼团</text>
  7. </view>
  8. <view class="one_2">
  9. <text class="iconfont icon-qianggou"></text>
  10. <text>快叫上伙伴一起抢</text>
  11. <text class="iconfont icon-qianggou"></text>
  12. </view>
  13. </view>
  14. <view class="two">
  15. <scroll-view scroll-y="true" class="scroll-view">
  16. <view class="list-scroll-view">
  17. <view class="two_1">
  18. <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
  19. indicator-active-color="#FB1438" :interval="3000" :duration="1000">
  20. <swiper-item class="list" v-for="(item,index) in info.goods.file" :key="index">
  21. <image class="image" :src="item.url" mode="aspectFit">
  22. </image>
  23. </swiper-item>
  24. </swiper>
  25. <!-- 是否关注商品 -->
  26. <view class="goodsColect">
  27. <text @tap="toGoodscolect"
  28. :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
  29. </view>
  30. </view>
  31. <view class="two_2">
  32. <text class="money"><text>团购价¥</text>{{infospecs.price||0}}</text>
  33. </view>
  34. <view class="two_3">
  35. <view class="name">
  36. {{info.goods.name}}
  37. </view>
  38. <view class="brief">
  39. {{info.goods.shot_brief||''}}
  40. </view>
  41. <view class="money">
  42. <text>{{info.goods.send_time}}内发货</text>
  43. </view>
  44. </view>
  45. <view class="two_4" @tap="toEvaluate">
  46. <view class="l">
  47. <text>{{evaluate_num>0?`商品评价(${evaluate_num})`:`暂无评价`}}</text>
  48. </view>
  49. <view class="r">
  50. <text class="iconfont icon-jiantouyou"></text>
  51. </view>
  52. </view>
  53. <view class="two_5">
  54. <view class="two_5_1">
  55. <view class="shop_1">
  56. <image class="image"
  57. :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''"
  58. mode="aspectFit"></image>
  59. </view>
  60. <view class="shop_2">
  61. <view class="name">{{info.shop.name}}</view>
  62. <view class="num"><text>宝贝数:</text>{{info.shop.goods_num||0}}</view>
  63. </view>
  64. </view>
  65. <view class="two_5_2">
  66. <view class="score_1">
  67. <text>商品:</text>
  68. <text>{{info.shop.goods_score||5}}</text>
  69. <text>|</text>
  70. </view>
  71. <view class="score_1">
  72. <text>发货:</text>
  73. <text>{{info.shop.send_score||5}}</text>
  74. <text>|</text>
  75. </view>
  76. <view class="score_1">
  77. <text>服务:</text>
  78. <text>{{info.shop.service_score||5}}</text>
  79. </view>
  80. </view>
  81. <view class="two_5_3">
  82. <view class="btn">
  83. <button size="mini" @tap="toShop">进入店铺</button>
  84. </view>
  85. <view class="btn">
  86. <button size="mini" @tap="toShopcolect">{{shopColect==true?'已关注':'关注'}}</button>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="two_6">
  91. <rich-text :nodes="info.goods.brief"></rich-text>
  92. </view>
  93. </view>
  94. </scroll-view>
  95. </view>
  96. <view class="foot">
  97. <uni-goods-nav :options="[]" :buttonGroup="buttonGroup" @buttonClick="buttonClick" />
  98. </view>
  99. </view>
  100. <!-- 规格 -->
  101. <uni-popup ref="specShow" background-color="#fff" type="bottom" :is-mask-click="false">
  102. <view class="popup">
  103. <view class="close">
  104. <text @click="toClose" class="iconfont icon-shanchu"></text>
  105. </view>
  106. <view class="info_1" v-if="popupShow=='1'">
  107. <view class="info_1">
  108. <scroll-view scroll-y="true" class="scroll-view">
  109. <view class="list-scroll-view">
  110. <view class="one">
  111. <view class="one_1">
  112. <view class="l">
  113. <image class="image"
  114. :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url"
  115. mode="aspectFill" @tap="diaView"></image>
  116. </view>
  117. <view class="r">
  118. <view class="money">
  119. <text class="money_1"><text>团购价¥</text>{{specsInfo.price||0}}</text>
  120. </view>
  121. <view class="other_1">
  122. <text>已选:</text>
  123. <text>{{specsInfo.name}}</text>
  124. </view>
  125. <view class="other_1">
  126. <text>运费:</text>
  127. <text>{{specsInfo.freight===0?'包邮':specsInfo.freight+'元'}}</text>
  128. </view>
  129. </view>
  130. </view>
  131. <view class="one_2">
  132. <view class="one_2_1">
  133. 规格
  134. </view>
  135. <view class="one_2_2">
  136. <view
  137. :class="['list',is_specs!=index&&item.num>0?'list':is_specs!=index&&item.num<=0?'huilist':is_specs==index&&item.num>0?'redlist':is_specs==index&&item.num<=0?'huiilist':'list']"
  138. v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
  139. <text>{{item.name}}</text>
  140. </view>
  141. </view>
  142. </view>
  143. <view class="one_3">
  144. <view class="one_3_1">
  145. <text>数量</text>
  146. </view>
  147. <view class="one_3_1">
  148. <uni-number-box v-model="buy_num" @change="toCount" :min="1"
  149. :max="specsInfo.num">
  150. </uni-number-box>
  151. </view>
  152. <view class="one_3_1">
  153. <text>库存{{specsInfo.num||0}}</text>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </scroll-view>
  159. </view>
  160. <view class="info_2">
  161. <view class="btn">
  162. <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toBuy">立即购买</button>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </uni-popup>
  168. <view class="dialog" v-if="dialog.show==true" @tap="dialogClose">
  169. <view class="dialog_1" v-if="dialog.type=='1'">
  170. <swiper class="swiper" circular @change="diaSpecs" :current="is_specs">
  171. <swiper-item class="list" v-for="(item,index) in info.specs" :key="index">
  172. <view class="list_1">
  173. <image class="image" :src="item.file.length>0?item.file[0].url:info.goods.file[0].url"
  174. mode="aspectFit"></image>
  175. </view>
  176. <view class="name">
  177. <text>{{item.name}}</text>
  178. </view>
  179. </swiper-item>
  180. </swiper>
  181. </view>
  182. </view>
  183. </mobile-frame>
  184. </template>
  185. <script>
  186. export default {
  187. data() {
  188. return {
  189. // 系统设置
  190. config: {},
  191. user: {},
  192. // 商品id
  193. id: '',
  194. // 团id
  195. group: '',
  196. info: {},
  197. buttonGroup: [{
  198. text: '参加团购',
  199. backgroundColor: 'linear-gradient(90deg, #23B67A, #23B67A)',
  200. color: '#fff',
  201. }],
  202. // 规格
  203. is_specs: 0,
  204. specsInfo: {},
  205. infospecs: {},
  206. // 购买数量
  207. buy_num: 1,
  208. // 是否零库存
  209. is_zero: false,
  210. // 评价数
  211. evaluate_num: 0,
  212. // 是否关注商品
  213. goodsColect: false,
  214. // 是否关注店铺
  215. shopColect: false,
  216. // 规格弹出框
  217. dialog: {
  218. show: false,
  219. type: '1'
  220. },
  221. // 规格弹框
  222. popupShow: '1',
  223. };
  224. },
  225. onLoad: async function(e) {
  226. const that = this;
  227. that.$set(that, `id`, e.id || '');
  228. that.$set(that, `group`, e.group || '');
  229. await that.searchConfig();
  230. await that.search();
  231. await that.configShare();
  232. },
  233. onShow: async function() {
  234. const that = this;
  235. await that.watchLogin();
  236. },
  237. onUnload: function() {
  238. // 页面卸载,重新部署分享内容
  239. const that = this;
  240. if (that.config) {
  241. // 赋值默认值
  242. that.$config.share = {
  243. title: that.config.title,
  244. path: '/pages/index/index',
  245. imageUrl: that.config.config.share[0].url
  246. }
  247. }
  248. },
  249. methods: {
  250. watchLogin() {
  251. const that = this;
  252. uni.getStorage({
  253. key: 'token',
  254. success: async function(res) {
  255. let user = that.$jwt(res.data);
  256. if (user) that.$set(that, `user`, user);
  257. }
  258. })
  259. },
  260. // 查询系统设置
  261. searchConfig() {
  262. const that = this;
  263. uni.getStorage({
  264. key: 'config',
  265. success: function(res) {
  266. let data = res.data;
  267. that.$set(that, `config`, data);
  268. }
  269. })
  270. },
  271. async search() {
  272. const that = this;
  273. if (that.id) {
  274. let res;
  275. res = await that.$api(`/view/goodsDetail`, `POST`, {
  276. id: that.id,
  277. group: that.group
  278. }, 'group');
  279. if (res.errcode == '0') {
  280. let data = res.data;
  281. if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
  282. '<img class="rich-img"');
  283. // 显示最低价格的规格信息,不考虑库存问题
  284. if (data.specs && data.specs.length > 0) {
  285. // 规格排序
  286. let indexSpecs = data.specs.sort(function(a, b) {
  287. return a.price - b.price;
  288. })
  289. that.$set(that, `infospecs`, indexSpecs[0])
  290. }
  291. that.$set(that, `info`, data);
  292. // 查询规格
  293. that.searchSpecs(data.specs);
  294. // 查询评价数
  295. that.searchRate(data);
  296. // 查询其他
  297. await that.searchOther();
  298. } else {
  299. uni.showToast({
  300. title: res.errmsg,
  301. icon: 'none'
  302. })
  303. }
  304. }
  305. },
  306. // 查询规格
  307. searchSpecs(e) {
  308. const that = this;
  309. if (e.length > 0) {
  310. let data = e.find(i => i.num > 0);
  311. let dataIndex = e.findIndex(i => i._id == data._id);
  312. if (data) {
  313. that.$set(that, `specsInfo`, data);
  314. that.$set(that, `is_specs`, dataIndex);
  315. }
  316. }
  317. },
  318. // 查询评价数
  319. async searchRate(e) {
  320. const that = this;
  321. let res = await that.$api(`/goodsRate`, `GET`, {
  322. goods: e.goods._id
  323. })
  324. if (res.errcode == '0') that.$set(that, `evaluate_num`, res.total);
  325. },
  326. // 关注商品
  327. async toGoodscolect() {
  328. const that = this;
  329. let user = that.user;
  330. if (user && user._id) {
  331. let res = await that.$api(`/storeGoods`, `POST`, {
  332. customer: user._id,
  333. goods: that.id
  334. });
  335. if (res.errcode == '0') {
  336. uni.showToast({
  337. title: res.data.msg,
  338. icon: 'none'
  339. })
  340. that.$set(that, `goodsColect`, res.data.result)
  341. }
  342. } else {
  343. uni.showToast({
  344. title: '暂无账号,无法收藏商品',
  345. icon: 'none'
  346. })
  347. }
  348. },
  349. // 关注店铺
  350. async toShopcolect() {
  351. const that = this;
  352. let user = that.user;
  353. if (user && user._id) {
  354. let res = await that.$api(`/storeShop`, `POST`, {
  355. customer: user._id,
  356. shop: that?.info?.shop._id
  357. });
  358. if (res.errcode == '0') {
  359. uni.showToast({
  360. title: res.data.msg,
  361. icon: 'none'
  362. })
  363. that.$set(that, `shopColect`, res.data.result)
  364. }
  365. } else {
  366. uni.showToast({
  367. title: '暂无账号,无法关注商铺',
  368. icon: 'none'
  369. })
  370. }
  371. },
  372. // 评价
  373. toEvaluate() {
  374. const that = this;
  375. uni.navigateTo({
  376. url: `/pagesHome/order/appraise?id=${that.info.goods._id}`
  377. })
  378. },
  379. // 进入店铺
  380. toShop() {
  381. const that = this;
  382. let info = that.info;
  383. uni.navigateTo({
  384. url: `/pagesHome/shop/index?id=${info.shop._id}`
  385. })
  386. },
  387. // 规格预览
  388. diaView() {
  389. const that = this;
  390. that.$set(that, `dialog`, {
  391. show: true,
  392. type: '1'
  393. })
  394. },
  395. // 选择规格
  396. toSpecs(e) {
  397. const that = this;
  398. let specs = that.info.specs;
  399. let dataIndex = specs.findIndex(i => i._id == e._id);
  400. that.$set(that, `is_specs`, dataIndex);
  401. that.$set(that, `specsInfo`, e)
  402. that.$set(that, `buy_num`, 1);
  403. if (e.num <= 0) that.$set(that, `is_zero`, true)
  404. else that.$set(that, `is_zero`, false)
  405. },
  406. //立即参团
  407. buttonClick(e) {
  408. const that = this;
  409. this.$set(that, `popupShow`, '1')
  410. that.$refs.specShow.open();
  411. },
  412. // 关闭弹框
  413. toClose() {
  414. const that = this;
  415. that.$refs.specShow.close();
  416. },
  417. // 弹框选择规格
  418. diaSpecs(e) {
  419. const that = this;
  420. let specs = that.info.specs;
  421. let index = e.detail.current;
  422. let data = specs[index];
  423. that.$set(that, `is_specs`, index);
  424. that.$set(that, `specsInfo`, data);
  425. that.$set(that, `buy_num`, 1);
  426. if (data.num <= 0) that.$set(that, `is_zero`, true)
  427. else that.$set(that, `is_zero`, false)
  428. },
  429. // 关闭弹框
  430. dialogClose() {
  431. const that = this;
  432. that.$set(that, `dialog`, {
  433. show: false,
  434. type: '1'
  435. })
  436. },
  437. // 确认开团 立即参团
  438. async toBuy() {
  439. const that = this;
  440. let user = that.user;
  441. if (user._id) {
  442. let data = {
  443. shop: that.info.shop._id,
  444. goods: that.info.goods._id,
  445. goodsSpec: that.specsInfo._id,
  446. num: that.buy_num,
  447. group: that.group
  448. }
  449. let arr = await that.$api(`/groupOrder/checkCanBuy`, 'POST', data, 'group')
  450. if (arr.errcode == '0') {
  451. uni.navigateTo({
  452. url: `/pagesHome/group/order?key=${arr.data}`
  453. })
  454. } else {
  455. uni.showToast({
  456. title: arr.errmsg,
  457. icon: 'none'
  458. })
  459. }
  460. } else {
  461. uni.navigateTo({
  462. url: `/pages/login/index`
  463. })
  464. }
  465. },
  466. // 计数器
  467. toCount(e) {
  468. const that = this;
  469. that.num = e;
  470. },
  471. // 查询其他信息
  472. async searchOther() {
  473. const that = this;
  474. let user = that.user;
  475. let res;
  476. // 是否关注商品
  477. res = await that.$api(`/storeGoods/check`, `GET`, {
  478. customer: user._id,
  479. goods: that.id
  480. });
  481. if (res.errcode == '0') that.$set(that, `goodsColect`, res.data);
  482. // 是否关注店铺
  483. res = await that.$api(`/storeShop/check`, `GET`, {
  484. customer: user._id,
  485. shop: that.info?.shop?._id
  486. });
  487. if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
  488. },
  489. // 配置分享内容
  490. configShare() {
  491. const that = this;
  492. let id = that.id;
  493. let info = that.info;
  494. let config = that.config;
  495. that.$config.share = {
  496. title: info?.goods?.name,
  497. path: `/pagesHome/group/share?id=${that.id}&group=${that.group}`,
  498. imageUrl: info?.goods?.file[0].url
  499. }
  500. },
  501. }
  502. }
  503. </script>
  504. <style lang="scss">
  505. .main {
  506. display: flex;
  507. flex-direction: column;
  508. width: 100vw;
  509. height: 100vh;
  510. .one {
  511. background-color: #D9FDEF;
  512. margin: 2vw 6vw;
  513. border-radius: 10px;
  514. padding: 2vw;
  515. .one_1 {
  516. text-align: center;
  517. border-bottom: 1px dashed #085623;
  518. margin: 0 0 2vw 0;
  519. padding: 0 0 1vw 0;
  520. text {
  521. font-size: 61px;
  522. font-weight: bold;
  523. color: #357846;
  524. font-family: cursive;
  525. }
  526. }
  527. .one_2 {
  528. text-align: center;
  529. text {
  530. padding: 0 5px;
  531. }
  532. text:nth-child(2) {
  533. font-size: 18px;
  534. letter-spacing: 5px;
  535. font-weight: bold;
  536. color: #357846;
  537. }
  538. }
  539. }
  540. .two {
  541. position: relative;
  542. flex-grow: 1;
  543. .two_1 {
  544. border-bottom: 0.5vw solid var(--f9Color);
  545. swiper {
  546. height: 44vh !important;
  547. }
  548. .list {
  549. border-radius: 5px;
  550. .image {
  551. width: 100%;
  552. height: 100%;
  553. border-radius: 5px;
  554. background-color: #fff;
  555. }
  556. }
  557. .goodsColect {
  558. position: fixed;
  559. top: 2vw;
  560. right: 3vw;
  561. z-index: 99;
  562. background-color: #858585;
  563. border-radius: 90px;
  564. text {
  565. font-size: 30px;
  566. }
  567. }
  568. }
  569. .two_2 {
  570. border-bottom: 0.5vw solid var(--f9Color);
  571. padding: 2vw;
  572. .money {
  573. font-size: 20px;
  574. padding: 0 1vw 0 0;
  575. color: #ff0000;
  576. font-weight: bold;
  577. text {
  578. font-size: 14px;
  579. }
  580. }
  581. }
  582. .two_3 {
  583. border-bottom: 0.5vw solid var(--f9Color);
  584. padding: 2vw;
  585. .name {
  586. font-size: 17px;
  587. font-weight: bold;
  588. margin: 0 0 2vw 0;
  589. }
  590. .brief {
  591. font-size: 14px;
  592. color: #858585;
  593. margin: 0 0 1vw 0;
  594. }
  595. .money {
  596. font-size: 13px;
  597. color: #858585;
  598. text {
  599. padding: 0 2vw 0 0;
  600. }
  601. }
  602. }
  603. .two_4 {
  604. display: flex;
  605. justify-content: space-between;
  606. padding: 2vw;
  607. border-bottom: 0.5vw solid var(--f9Color);
  608. font-size: 14px;
  609. }
  610. .two_5 {
  611. padding: 2vw;
  612. border-bottom: 0.5vw solid var(--f9Color);
  613. .two_5_1 {
  614. margin: 0 0 1vw 0;
  615. display: flex;
  616. .shop_1 {
  617. width: 15vw;
  618. height: 15vw;
  619. border: 1px solid #f1f1f1;
  620. .image {
  621. width: 100%;
  622. height: 100%;
  623. }
  624. }
  625. .shop_2 {
  626. width: 78vw;
  627. padding: 0 0 0 2vw;
  628. .name {
  629. font-size: 14px;
  630. margin: 0 0 1vw 0;
  631. }
  632. .num {
  633. font-size: 12px;
  634. color: #858585;
  635. text:last-child {
  636. color: #000;
  637. }
  638. }
  639. }
  640. }
  641. .two_5_2 {
  642. margin: 0 0 2vw 0;
  643. display: flex;
  644. justify-content: space-between;
  645. padding: 2vw 0;
  646. .score_1 {
  647. width: 33vw;
  648. text-align: center;
  649. font-size: 14px;
  650. color: #858585;
  651. text:nth-child(2) {
  652. color: #ff0000;
  653. }
  654. text:nth-child(3) {
  655. float: right;
  656. }
  657. }
  658. }
  659. .two_5_3 {
  660. display: flex;
  661. justify-content: space-around;
  662. .btn {
  663. width: 40vw;
  664. button {
  665. width: 100%;
  666. font-size: 15px;
  667. }
  668. }
  669. }
  670. }
  671. .two_6 {
  672. padding: 2vw;
  673. .rich-img {
  674. width: 100% !important;
  675. display: block;
  676. }
  677. }
  678. }
  679. }
  680. .scroll-view {
  681. position: absolute;
  682. top: 0;
  683. left: 0;
  684. right: 0;
  685. bottom: 0;
  686. .list-scroll-view {
  687. display: flex;
  688. flex-direction: column;
  689. }
  690. }
  691. .content {
  692. height: 60vw;
  693. .one {
  694. display: flex;
  695. justify-content: flex-start;
  696. align-items: center;
  697. margin: 0 2vw;
  698. padding: 2vw 0;
  699. text {
  700. margin: 0 2vw 0 0;
  701. }
  702. text:last-child {
  703. margin: 0 0 0 2vw;
  704. font-size: var(--font12Size);
  705. color: var(--f85Color);
  706. }
  707. }
  708. .btn {
  709. display: flex;
  710. justify-content: space-between;
  711. position: fixed;
  712. bottom: 0;
  713. .button {
  714. width: 100vw;
  715. padding: 4vw 0;
  716. background-color: var(--fFB1Color);
  717. text-align: center;
  718. font-size: var(--font18Szie);
  719. color: var(--mainColor);
  720. }
  721. }
  722. }
  723. .uni-tab__cart-sub-left {
  724. padding: 0 !important;
  725. }
  726. .uni-popup {
  727. z-index: 9999 !important;
  728. }
  729. .popup {
  730. display: flex;
  731. flex-direction: column;
  732. width: 100vw;
  733. height: 60vh;
  734. .close {
  735. text-align: right;
  736. padding: 2vw;
  737. }
  738. .info_1 {
  739. position: relative;
  740. display: flex;
  741. flex-direction: column;
  742. height: 54vh;
  743. .info_1 {
  744. position: relative;
  745. flex-grow: 1;
  746. .one {
  747. padding: 2vw;
  748. .one_1 {
  749. display: flex;
  750. margin: 0 0 2vw 0;
  751. padding: 0 0 2vw 0;
  752. border-bottom: 0.5vw solid var(--f9Color);
  753. .l {
  754. width: 25vw;
  755. height: 25vw;
  756. .image {
  757. width: 100%;
  758. height: 100%;
  759. border-radius: 5px;
  760. }
  761. }
  762. .r {
  763. width: 70vw;
  764. padding: 0 0 0 2vw;
  765. .money {
  766. margin: 0 0 2vw 0;
  767. .money_1 {
  768. font-size: 20px;
  769. color: #ff0000;
  770. padding: 0 2vw 0 0;
  771. text {
  772. font-size: 14px;
  773. }
  774. }
  775. }
  776. .other_1 {
  777. font-size: 15px;
  778. color: #858585;
  779. text:last-child {
  780. color: #000000;
  781. }
  782. }
  783. }
  784. }
  785. .one_2 {
  786. margin: 0 0 2vw 0;
  787. border-bottom: 0.5vw solid var(--f9Color);
  788. .one_2_1 {
  789. font-size: 14px;
  790. margin: 0 0 2vw 0;
  791. }
  792. .one_2_2 {
  793. display: flex;
  794. flex-wrap: wrap;
  795. .list {
  796. background-color: #F5F5F5;
  797. margin: 0 2vw 2vw 0;
  798. padding: 0.5vw 1vw;
  799. border-radius: 5px;
  800. text {
  801. font-size: 14px;
  802. color: #000;
  803. }
  804. }
  805. .huilist {
  806. background-color: #DCDCDC;
  807. text {
  808. color: #858585;
  809. }
  810. }
  811. .redlist {
  812. background-color: #ff0000;
  813. text {
  814. color: #ffffff;
  815. }
  816. }
  817. .huiilist {
  818. background-color: #808080;
  819. text {
  820. color: #cccccc;
  821. }
  822. }
  823. }
  824. }
  825. .one_3 {
  826. display: flex;
  827. .one_3_1 {
  828. margin: 0 2vw 0 0;
  829. text {
  830. font-size: 14px;
  831. color: #858585;
  832. }
  833. }
  834. }
  835. }
  836. }
  837. .info_2 {
  838. display: flex;
  839. text-align: center;
  840. justify-content: space-between;
  841. .btn {
  842. width: 100vw;
  843. }
  844. button {
  845. width: 100%;
  846. border-radius: 0;
  847. background-color: #23B67A;
  848. color: #fff;
  849. border: 1px solid #f1f1f1;
  850. }
  851. .btncolor {
  852. background: #f1f1f1;
  853. color: #858585;
  854. }
  855. }
  856. }
  857. .info_3 {
  858. position: relative;
  859. flex-grow: 1;
  860. .list {
  861. margin: 0 2vw 2vw 2vw;
  862. border-radius: 10px;
  863. background-color: #FFF8DC;
  864. .list_1 {
  865. padding: 2vw;
  866. font-size: 14px;
  867. .title_1 {
  868. display: flex;
  869. justify-content: space-between;
  870. margin: 1vw 0;
  871. .l {
  872. text {
  873. margin: 0 1vw 0 0;
  874. font-size: 12px;
  875. border-radius: 5px;
  876. border: 0.5px solid var(--fFB1Color);
  877. color: var(--fFB1Color);
  878. }
  879. }
  880. }
  881. .title_2 {
  882. .specList {
  883. .name {
  884. margin: 0 0 1vw 0;
  885. }
  886. .giftList {
  887. display: flex;
  888. justify-content: space-between;
  889. align-items: center;
  890. margin: 0 0 1vw 0;
  891. border: 0.5px solid var(--f9Color);
  892. border-radius: 10px;
  893. .left {
  894. width: 85vw;
  895. }
  896. }
  897. }
  898. .text {
  899. color: var(--fFB1Color);
  900. }
  901. }
  902. }
  903. }
  904. }
  905. }
  906. .dialog {
  907. position: fixed;
  908. width: 100vw;
  909. height: 100vh;
  910. background-color: #000000;
  911. z-index: 99999;
  912. display: flex;
  913. flex-direction: column;
  914. justify-content: center;
  915. swiper {
  916. height: 60vh;
  917. }
  918. .list {
  919. .list_1 {
  920. padding: 2vw;
  921. margin: 0 0 5vw 0;
  922. .image {
  923. width: 100%;
  924. height: 40vh;
  925. }
  926. }
  927. .name {
  928. text-align: center;
  929. margin: 0 10vw;
  930. background-color: #6666669f;
  931. border-radius: 25px;
  932. padding: 2vw;
  933. text {
  934. color: #fff;
  935. font-size: 15px;
  936. overflow: hidden;
  937. text-overflow: ellipsis;
  938. -webkit-line-clamp: 2;
  939. word-break: break-all;
  940. display: -webkit-box;
  941. -webkit-box-orient: vertical;
  942. }
  943. }
  944. }
  945. }
  946. </style>