share.vue 24 KB

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