share.vue 22 KB

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