share.vue 23 KB

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