share.vue 21 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045
  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.watchLogin();
  230. await that.searchConfig();
  231. await that.search();
  232. await that.configShare();
  233. },
  234. onUnload: function() {
  235. // 页面卸载,重新部署分享内容
  236. const that = this;
  237. if (that.config) {
  238. // 赋值默认值
  239. that.$config.share = {
  240. title: that.config.title,
  241. path: '/pages/index/index',
  242. imageUrl: that.config.config.share[0].url
  243. }
  244. }
  245. },
  246. methods: {
  247. watchLogin() {
  248. const that = this;
  249. uni.getStorage({
  250. key: 'token',
  251. success: async function(res) {
  252. let user = that.$jwt(res.data);
  253. if (user) that.$set(that, `user`, user);
  254. }
  255. })
  256. },
  257. // 查询系统设置
  258. searchConfig() {
  259. const that = this;
  260. uni.getStorage({
  261. key: 'config',
  262. success: function(res) {
  263. let data = res.data;
  264. that.$set(that, `config`, data);
  265. }
  266. })
  267. },
  268. async search() {
  269. const that = this;
  270. if (that.id) {
  271. let res;
  272. res = await that.$api(`/view/goodsDetail`, `POST`, {
  273. id: that.id,
  274. group: that.group
  275. }, 'group');
  276. if (res.errcode == '0') {
  277. let data = res.data;
  278. if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
  279. '<img class="rich-img"');
  280. // 显示最低价格的规格信息,不考虑库存问题
  281. if (data.specs && data.specs.length > 0) {
  282. // 规格排序
  283. let indexSpecs = data.specs.sort(function(a, b) {
  284. return a.price - b.price;
  285. })
  286. that.$set(that, `infospecs`, indexSpecs[0])
  287. }
  288. that.$set(that, `info`, data);
  289. // 查询规格
  290. that.searchSpecs(data.specs);
  291. // 查询评价数
  292. that.searchRate(data);
  293. // 查询其他
  294. await that.searchOther();
  295. } else {
  296. uni.showToast({
  297. title: res.errmsg,
  298. icon: 'none'
  299. })
  300. }
  301. }
  302. },
  303. // 查询规格
  304. searchSpecs(e) {
  305. const that = this;
  306. if (e.length > 0) {
  307. let data = e.find(i => i.num > 0);
  308. let dataIndex = e.findIndex(i => i._id == data._id);
  309. if (data) {
  310. that.$set(that, `specsInfo`, data);
  311. that.$set(that, `is_specs`, dataIndex);
  312. }
  313. }
  314. },
  315. // 查询评价数
  316. async searchRate(e) {
  317. const that = this;
  318. let res = await that.$api(`/goodsRate`, `GET`, {
  319. goods: e.goods._id
  320. })
  321. if (res.errcode == '0') that.$set(that, `evaluate_num`, res.total);
  322. },
  323. // 关注商品
  324. async toGoodscolect() {
  325. const that = this;
  326. let user = that.user;
  327. if (user && user._id) {
  328. let res = await that.$api(`/storeGoods`, `POST`, {
  329. customer: user._id,
  330. goods: that.id
  331. });
  332. if (res.errcode == '0') {
  333. uni.showToast({
  334. title: res.data.msg,
  335. icon: 'none'
  336. })
  337. that.$set(that, `goodsColect`, res.data.result)
  338. }
  339. } else {
  340. uni.showToast({
  341. title: '暂无账号,无法收藏商品',
  342. icon: 'none'
  343. })
  344. }
  345. },
  346. // 关注店铺
  347. async toShopcolect() {
  348. const that = this;
  349. let user = that.user;
  350. if (user && user._id) {
  351. let res = await that.$api(`/storeShop`, `POST`, {
  352. customer: user._id,
  353. shop: that?.info?.shop._id
  354. });
  355. if (res.errcode == '0') {
  356. uni.showToast({
  357. title: res.data.msg,
  358. icon: 'none'
  359. })
  360. that.$set(that, `shopColect`, res.data.result)
  361. }
  362. } else {
  363. uni.showToast({
  364. title: '暂无账号,无法关注商铺',
  365. icon: 'none'
  366. })
  367. }
  368. },
  369. // 评价
  370. toEvaluate() {
  371. const that = this;
  372. uni.navigateTo({
  373. url: `/pagesHome/order/appraise?id=${that.info.goods._id}`
  374. })
  375. },
  376. // 进入店铺
  377. toShop() {
  378. const that = this;
  379. let info = that.info;
  380. uni.navigateTo({
  381. url: `/pagesHome/shop/index?id=${info.shop._id}`
  382. })
  383. },
  384. // 规格预览
  385. diaView() {
  386. const that = this;
  387. that.$set(that, `dialog`, {
  388. show: true,
  389. type: '1'
  390. })
  391. },
  392. // 选择规格
  393. toSpecs(e) {
  394. const that = this;
  395. let specs = that.info.specs;
  396. let dataIndex = specs.findIndex(i => i._id == e._id);
  397. that.$set(that, `is_specs`, dataIndex);
  398. that.$set(that, `specsInfo`, e)
  399. that.$set(that, `buy_num`, 1);
  400. if (e.num <= 0) that.$set(that, `is_zero`, true)
  401. else that.$set(that, `is_zero`, false)
  402. },
  403. //立即参团
  404. buttonClick(e) {
  405. const that = this;
  406. this.$set(that, `popupShow`, '1')
  407. that.$refs.specShow.open();
  408. },
  409. // 关闭弹框
  410. toClose() {
  411. const that = this;
  412. that.$refs.specShow.close();
  413. },
  414. // 弹框选择规格
  415. diaSpecs(e) {
  416. const that = this;
  417. let specs = that.info.specs;
  418. let index = e.detail.current;
  419. let data = specs[index];
  420. that.$set(that, `is_specs`, index);
  421. that.$set(that, `specsInfo`, data);
  422. that.$set(that, `buy_num`, 1);
  423. if (data.num <= 0) that.$set(that, `is_zero`, true)
  424. else that.$set(that, `is_zero`, false)
  425. },
  426. // 关闭弹框
  427. dialogClose() {
  428. const that = this;
  429. that.$set(that, `dialog`, {
  430. show: false,
  431. type: '1'
  432. })
  433. },
  434. // 确认开团 立即参团
  435. async toBuy() {
  436. const that = this;
  437. let user = that.user;
  438. if (user._id) {
  439. let data = {
  440. shop: that.info.shop._id,
  441. goods: that.info.goods._id,
  442. goodsSpec: that.specsInfo._id,
  443. num: that.buy_num,
  444. group: that.group
  445. }
  446. let arr = await that.$api(`/groupOrder/checkCanBuy`, 'POST', data, 'group')
  447. if (arr.errcode == '0') {
  448. uni.navigateTo({
  449. url: `/pagesHome/group/order?key=${arr.data}`
  450. })
  451. } else {
  452. uni.showToast({
  453. title: arr.errmsg,
  454. icon: 'none'
  455. })
  456. }
  457. } else {
  458. uni.navigateTo({
  459. url: `/pages/login/index`
  460. })
  461. }
  462. },
  463. // 计数器
  464. toCount(e) {
  465. const that = this;
  466. that.num = e;
  467. },
  468. // 查询其他信息
  469. async searchOther() {
  470. const that = this;
  471. let user = that.user;
  472. let res;
  473. // 是否关注商品
  474. res = await that.$api(`/storeGoods/check`, `GET`, {
  475. customer: user._id,
  476. goods: that.id
  477. });
  478. if (res.errcode == '0') that.$set(that, `goodsColect`, res.data);
  479. // 是否关注店铺
  480. res = await that.$api(`/storeShop/check`, `GET`, {
  481. customer: user._id,
  482. shop: that.info?.shop?._id
  483. });
  484. if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
  485. },
  486. // 配置分享内容
  487. configShare() {
  488. const that = this;
  489. let id = that.id;
  490. let info = that.info;
  491. let config = that.config;
  492. that.$config.share = {
  493. title: info?.goods?.name,
  494. path: `/pagesHome/group/share?id=${that.id}&group=${that.group}`,
  495. imageUrl: info?.goods?.file[0].url
  496. }
  497. },
  498. }
  499. }
  500. </script>
  501. <style lang="scss">
  502. .main {
  503. display: flex;
  504. flex-direction: column;
  505. width: 100vw;
  506. height: 100vh;
  507. .one {
  508. background-color: #D9FDEF;
  509. margin: 2vw 6vw;
  510. border-radius: 10px;
  511. padding: 2vw;
  512. .one_1 {
  513. text-align: center;
  514. border-bottom: 1px dashed #085623;
  515. margin: 0 0 2vw 0;
  516. padding: 0 0 1vw 0;
  517. text {
  518. font-size: 61px;
  519. font-weight: bold;
  520. color: #357846;
  521. font-family: cursive;
  522. }
  523. }
  524. .one_2 {
  525. text-align: center;
  526. text {
  527. padding: 0 5px;
  528. }
  529. text:nth-child(2) {
  530. font-size: 18px;
  531. letter-spacing: 5px;
  532. font-weight: bold;
  533. color: #357846;
  534. }
  535. }
  536. }
  537. .two {
  538. position: relative;
  539. flex-grow: 1;
  540. .two_1 {
  541. border-bottom: 0.5vw solid var(--f9Color);
  542. swiper {
  543. height: 44vh !important;
  544. }
  545. .list {
  546. border-radius: 5px;
  547. .image {
  548. width: 100%;
  549. height: 100%;
  550. border-radius: 5px;
  551. background-color: #fff;
  552. }
  553. }
  554. .goodsColect {
  555. position: fixed;
  556. top: 2vw;
  557. right: 3vw;
  558. z-index: 99;
  559. background-color: #858585;
  560. border-radius: 90px;
  561. text {
  562. font-size: 30px;
  563. }
  564. }
  565. }
  566. .two_2 {
  567. border-bottom: 0.5vw solid var(--f9Color);
  568. padding: 2vw;
  569. .money {
  570. font-size: 20px;
  571. padding: 0 1vw 0 0;
  572. color: #ff0000;
  573. font-weight: bold;
  574. text {
  575. font-size: 14px;
  576. }
  577. }
  578. }
  579. .two_3 {
  580. border-bottom: 0.5vw solid var(--f9Color);
  581. padding: 2vw;
  582. .name {
  583. font-size: 17px;
  584. font-weight: bold;
  585. margin: 0 0 2vw 0;
  586. }
  587. .brief {
  588. font-size: 14px;
  589. color: #858585;
  590. margin: 0 0 1vw 0;
  591. }
  592. .money {
  593. font-size: 13px;
  594. color: #858585;
  595. text {
  596. padding: 0 2vw 0 0;
  597. }
  598. }
  599. }
  600. .two_4 {
  601. display: flex;
  602. justify-content: space-between;
  603. padding: 2vw;
  604. border-bottom: 0.5vw solid var(--f9Color);
  605. font-size: 14px;
  606. }
  607. .two_5 {
  608. padding: 2vw;
  609. border-bottom: 0.5vw solid var(--f9Color);
  610. .two_5_1 {
  611. margin: 0 0 1vw 0;
  612. display: flex;
  613. .shop_1 {
  614. width: 15vw;
  615. height: 15vw;
  616. border: 1px solid #f1f1f1;
  617. .image {
  618. width: 100%;
  619. height: 100%;
  620. }
  621. }
  622. .shop_2 {
  623. width: 78vw;
  624. padding: 0 0 0 2vw;
  625. .name {
  626. font-size: 14px;
  627. margin: 0 0 1vw 0;
  628. }
  629. .num {
  630. font-size: 12px;
  631. color: #858585;
  632. text:last-child {
  633. color: #000;
  634. }
  635. }
  636. }
  637. }
  638. .two_5_2 {
  639. margin: 0 0 2vw 0;
  640. display: flex;
  641. justify-content: space-between;
  642. padding: 2vw 0;
  643. .score_1 {
  644. width: 33vw;
  645. text-align: center;
  646. font-size: 14px;
  647. color: #858585;
  648. text:nth-child(2) {
  649. color: #ff0000;
  650. }
  651. text:nth-child(3) {
  652. float: right;
  653. }
  654. }
  655. }
  656. .two_5_3 {
  657. display: flex;
  658. justify-content: space-around;
  659. .btn {
  660. width: 40vw;
  661. button {
  662. width: 100%;
  663. font-size: 15px;
  664. }
  665. }
  666. }
  667. }
  668. .two_6 {
  669. padding: 2vw;
  670. .rich-img {
  671. width: 100% !important;
  672. display: block;
  673. }
  674. }
  675. }
  676. }
  677. .scroll-view {
  678. position: absolute;
  679. top: 0;
  680. left: 0;
  681. right: 0;
  682. bottom: 0;
  683. .list-scroll-view {
  684. display: flex;
  685. flex-direction: column;
  686. }
  687. }
  688. .content {
  689. height: 60vw;
  690. .one {
  691. display: flex;
  692. justify-content: flex-start;
  693. align-items: center;
  694. margin: 0 2vw;
  695. padding: 2vw 0;
  696. text {
  697. margin: 0 2vw 0 0;
  698. }
  699. text:last-child {
  700. margin: 0 0 0 2vw;
  701. font-size: var(--font12Size);
  702. color: var(--f85Color);
  703. }
  704. }
  705. .btn {
  706. display: flex;
  707. justify-content: space-between;
  708. position: fixed;
  709. bottom: 0;
  710. .button {
  711. width: 100vw;
  712. padding: 4vw 0;
  713. background-color: var(--fFB1Color);
  714. text-align: center;
  715. font-size: var(--font18Szie);
  716. color: var(--mainColor);
  717. }
  718. }
  719. }
  720. .uni-tab__cart-sub-left {
  721. padding: 0 !important;
  722. }
  723. .uni-popup {
  724. z-index: 9999 !important;
  725. }
  726. .popup {
  727. display: flex;
  728. flex-direction: column;
  729. width: 100vw;
  730. height: 60vh;
  731. .close {
  732. text-align: right;
  733. padding: 2vw;
  734. }
  735. .info_1 {
  736. position: relative;
  737. display: flex;
  738. flex-direction: column;
  739. height: 54vh;
  740. .info_1 {
  741. position: relative;
  742. flex-grow: 1;
  743. .one {
  744. padding: 2vw;
  745. .one_1 {
  746. display: flex;
  747. margin: 0 0 2vw 0;
  748. padding: 0 0 2vw 0;
  749. border-bottom: 0.5vw solid var(--f9Color);
  750. .l {
  751. width: 25vw;
  752. height: 25vw;
  753. .image {
  754. width: 100%;
  755. height: 100%;
  756. border-radius: 5px;
  757. }
  758. }
  759. .r {
  760. width: 70vw;
  761. padding: 0 0 0 2vw;
  762. .money {
  763. margin: 0 0 2vw 0;
  764. .money_1 {
  765. font-size: 20px;
  766. color: #ff0000;
  767. padding: 0 2vw 0 0;
  768. text {
  769. font-size: 14px;
  770. }
  771. }
  772. }
  773. .other_1 {
  774. font-size: 15px;
  775. color: #858585;
  776. text:last-child {
  777. color: #000000;
  778. }
  779. }
  780. }
  781. }
  782. .one_2 {
  783. margin: 0 0 2vw 0;
  784. border-bottom: 0.5vw solid var(--f9Color);
  785. .one_2_1 {
  786. font-size: 14px;
  787. margin: 0 0 2vw 0;
  788. }
  789. .one_2_2 {
  790. display: flex;
  791. flex-wrap: wrap;
  792. .list {
  793. background-color: #F5F5F5;
  794. margin: 0 2vw 2vw 0;
  795. padding: 0.5vw 1vw;
  796. border-radius: 5px;
  797. text {
  798. font-size: 14px;
  799. color: #000;
  800. }
  801. }
  802. .huilist {
  803. background-color: #DCDCDC;
  804. text {
  805. color: #858585;
  806. }
  807. }
  808. .redlist {
  809. background-color: #ff0000;
  810. text {
  811. color: #ffffff;
  812. }
  813. }
  814. .huiilist {
  815. background-color: #808080;
  816. text {
  817. color: #cccccc;
  818. }
  819. }
  820. }
  821. }
  822. .one_3 {
  823. display: flex;
  824. .one_3_1 {
  825. margin: 0 2vw 0 0;
  826. text {
  827. font-size: 14px;
  828. color: #858585;
  829. }
  830. }
  831. }
  832. }
  833. }
  834. .info_2 {
  835. display: flex;
  836. text-align: center;
  837. justify-content: space-between;
  838. .btn {
  839. width: 100vw;
  840. }
  841. button {
  842. width: 100%;
  843. border-radius: 0;
  844. background-color: #23B67A;
  845. color: #fff;
  846. border: 1px solid #f1f1f1;
  847. }
  848. .btncolor {
  849. background: #f1f1f1;
  850. color: #858585;
  851. }
  852. }
  853. }
  854. .info_3 {
  855. position: relative;
  856. flex-grow: 1;
  857. .list {
  858. margin: 0 2vw 2vw 2vw;
  859. border-radius: 10px;
  860. background-color: #FFF8DC;
  861. .list_1 {
  862. padding: 2vw;
  863. font-size: 14px;
  864. .title_1 {
  865. display: flex;
  866. justify-content: space-between;
  867. margin: 1vw 0;
  868. .l {
  869. text {
  870. margin: 0 1vw 0 0;
  871. font-size: 12px;
  872. border-radius: 5px;
  873. border: 0.5px solid var(--fFB1Color);
  874. color: var(--fFB1Color);
  875. }
  876. }
  877. }
  878. .title_2 {
  879. .specList {
  880. .name {
  881. margin: 0 0 1vw 0;
  882. }
  883. .giftList {
  884. display: flex;
  885. justify-content: space-between;
  886. align-items: center;
  887. margin: 0 0 1vw 0;
  888. border: 0.5px solid var(--f9Color);
  889. border-radius: 10px;
  890. .left {
  891. width: 85vw;
  892. }
  893. }
  894. }
  895. .text {
  896. color: var(--fFB1Color);
  897. }
  898. }
  899. }
  900. }
  901. }
  902. }
  903. .dialog {
  904. position: fixed;
  905. width: 100vw;
  906. height: 100vh;
  907. background-color: #000000;
  908. z-index: 99999;
  909. display: flex;
  910. flex-direction: column;
  911. justify-content: center;
  912. swiper {
  913. height: 60vh;
  914. }
  915. .list {
  916. .list_1 {
  917. padding: 2vw;
  918. margin: 0 0 5vw 0;
  919. .image {
  920. width: 100%;
  921. height: 40vh;
  922. }
  923. }
  924. .name {
  925. text-align: center;
  926. margin: 0 10vw;
  927. background-color: #6666669f;
  928. border-radius: 25px;
  929. padding: 2vw;
  930. text {
  931. color: #fff;
  932. font-size: 15px;
  933. overflow: hidden;
  934. text-overflow: ellipsis;
  935. -webkit-line-clamp: 2;
  936. word-break: break-all;
  937. display: -webkit-box;
  938. -webkit-box-orient: vertical;
  939. }
  940. }
  941. }
  942. }
  943. </style>