order.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <scroll-view scroll-y="true" class="scroll-view">
  6. <view class="list-scroll-view">
  7. <view class="one_1" @tap="toChoose">
  8. <text class="localicon iconfont icon-dingweixiao"></text>
  9. <view class="other" v-if="address._id">
  10. <view class="name">
  11. <text>{{address.name}},</text>{{address.phone}}
  12. </view>
  13. <view class="other_1">
  14. <text>{{address.province}}</text><text>{{address.city}}</text>
  15. <text>{{address.area}}</text><text>{{address.address}}</text>
  16. </view>
  17. </view>
  18. <view class="address" v-else><text>请选择一个收货地址</text></view>
  19. <text class="iconfont icon-jiantouyou"></text>
  20. </view>
  21. <view class="one_2">
  22. <view class="list" v-for="(item,index) in orderList" :key="index">
  23. <view class="list_1">
  24. <view class="l">
  25. <text class="iconfont icon-shangdian"></text>
  26. <text>{{item.shop_name}}</text>
  27. </view>
  28. </view>
  29. <view class="list_2" v-for="(tag,index) in item.goods" :key="index">
  30. <view class="list_2_1">
  31. <view class="l">
  32. <image class="image" :src="tag.file&&tag.file.length>0?tag.file[0].url:''"
  33. mode=""></image>
  34. </view>
  35. <view class="c">
  36. <view class="name">
  37. {{tag.goods_name}}
  38. </view>
  39. <view class="Spec">
  40. 规格:{{tag.goodsSpec_name}}
  41. </view>
  42. </view>
  43. <view class="r">
  44. <view class="price" v-if="type=='0'">
  45. ¥{{tag.price}}
  46. </view>
  47. <view v-else class="price">
  48. ¥{{tag.group_sell_money}}
  49. </view>
  50. <view class="num">
  51. ×{{tag.num}}
  52. </view>
  53. </view>
  54. </view>
  55. <view class="list_2_2" v-if="tag.gift.length>0">赠品</view>
  56. <view class="list_2_3" v-if="tag.gift.length>0" v-for="(tags,indexx) in tag.gift"
  57. :key="indexx">
  58. <view class="left">
  59. <view class="name">
  60. {{tags.goods_name}}
  61. </view>
  62. <view class="Spec">
  63. 规格:{{tags.spec_name}}
  64. </view>
  65. <view class="Spec">
  66. 说明:{{tags.desc}}
  67. </view>
  68. </view>
  69. <view class="right">
  70. <view class="price">
  71. ¥{{tags.money||0}}
  72. </view>
  73. <view class="num">
  74. ×{{tags.num}}
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="list_3">
  80. <view class="other">
  81. <view class="other_1">配送方式</view>
  82. <view class="other_2"><text class="iconfont icon-duihao"></text>快递配送</view>
  83. </view>
  84. <view class="other">
  85. <view class="other_1">运费</view>
  86. <view class="other_2" v-if="!item.freight_total==0">¥{{item.freight_total}}
  87. </view>
  88. <view class="other_2" v-else>包邮</view>
  89. </view>
  90. <view class="other">
  91. <view class="other_1">订单备注</view>
  92. <view class="other_3">
  93. <input type="text" v-model="item.remarks" placeholder="选填,可填写您与卖家达成一致的要求" />
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="other" v-for="(item,index) in total_detail" :key="index">
  99. <view class="other_1">{{item.zh}}</view>
  100. <view class="other_2">¥{{item.money}}</view>
  101. </view>
  102. <view class="other" v-if="type=='0'">
  103. <view class="other_1">优惠劵</view>
  104. <view class="other_2" @click="toCoupon" v-if="couponList.length">
  105. {{coupon_name||'请选择优惠劵'}}
  106. </view>
  107. <view class="other_2" v-else>暂无优惠劵使用</view>
  108. </view>
  109. <view class="other" v-if="total>0&&actInfo" @tap="toAddGoods">
  110. <view class="other_1">加购商品</view>
  111. <view class="other_4">去加购></view>
  112. </view>
  113. </view>
  114. </view>
  115. </scroll-view>
  116. </view>
  117. <view class="two">
  118. <view class="two_1">
  119. <view>实付金额:</view>
  120. <view>¥{{goods_total}}</view>
  121. </view>
  122. <view class="two_2">
  123. <text @tap="toSubmit">提交订单</text>
  124. </view>
  125. </view>
  126. </view>
  127. <uni-popup ref="popup" background-color="#fff" type="bottom">
  128. <view class="popup" v-if="popup.type=='1'">
  129. <scroll-view scroll-y="true" class="scroll-view">
  130. <discount :Style="Style" :couponList="couponList" @toDiscount="toDiscount"></discount>
  131. </scroll-view>
  132. </view>
  133. </uni-popup>
  134. <uni-drawer ref="showRight" :mask="false" :width="width" mode="right" :mask-click="false">
  135. <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
  136. <view class="act">
  137. <view class="act_1">
  138. 订单已满<text>{{actInfo.plus_money}}</text>元,为你推荐优惠商品搭配
  139. </view>
  140. <view class="act_2">
  141. <checkbox-group @change="checkboxChange">
  142. <label class="actList" v-for="(item,index) in actList" :key="index">
  143. <image class="image" :src="item.file.length>0?item.file[0].url:item.file[0].url"
  144. mode="aspectFill"></image>
  145. <view class="name">{{item.goods_name}}</view>
  146. <view class="money">
  147. <text class="text_1">¥{{item.flow_money||0}}</text>
  148. <text class="text_2">¥{{item.config.plus_money||item.sell_money}}</text>
  149. </view>
  150. <view class="checkbox">
  151. <checkbox color="#FB1438" style="transform:scale(0.7)" :value="item._id"
  152. :checked="item.checked" />
  153. </view>
  154. </label>
  155. </checkbox-group>
  156. </view>
  157. <view class="bottom">
  158. <button @click="closeDrawer('define')" size="mini">确认加购</button>
  159. <button @click="closeDrawer('cancel')" size="mini">取消加购</button>
  160. </view>
  161. </view>
  162. </scroll-view>
  163. </uni-drawer>
  164. </mobile-frame>
  165. </template>
  166. <script>
  167. import discount from '@/components/discount/index.vue';
  168. export default {
  169. components: {
  170. discount
  171. },
  172. data() {
  173. return {
  174. // 设备平台信息
  175. system: {},
  176. popup: {
  177. type: '1'
  178. },
  179. Style: {
  180. btn: true
  181. },
  182. user: {},
  183. key: '',
  184. address: {},
  185. orderList: [],
  186. shop: [],
  187. goods_total: 0,
  188. // 金额明细
  189. total_detail: [],
  190. // 收货地址
  191. addressList: [],
  192. // 优惠劵
  193. couponList: [],
  194. coupon: [],
  195. // 优惠劵名称
  196. coupon_name: '',
  197. // 是否开团
  198. type: '0',
  199. // 团id
  200. group_id: '',
  201. // 分享人id
  202. inviter: '',
  203. // 活动商品
  204. actList: [],
  205. // 加价购活动
  206. actInfo: {},
  207. // 加购商品
  208. plus_goods: [],
  209. total: 0,
  210. page: 0,
  211. skip: 0,
  212. limit: 20,
  213. // 抽屉
  214. width: '100%'
  215. };
  216. },
  217. onLoad: function(e) {
  218. const that = this;
  219. uni.$on("id", async (id) => {
  220. let arr = await that.$api(`/address/${id}`, `GET`)
  221. if (arr.errcode == '0') {
  222. that.$set(that, `address`, arr.data)
  223. }
  224. })
  225. that.$set(that, `key`, e.key || '');
  226. that.$set(that, `group_id`, e.group_id || '');
  227. that.watchLogin()
  228. },
  229. methods: {
  230. // 监听用户是否登录
  231. watchLogin() {
  232. const that = this;
  233. uni.getStorage({
  234. key: 'token',
  235. success: function(res) {
  236. let user = that.$jwt(res.data);
  237. that.$set(that, `user`, user);
  238. // 设备平台信息
  239. let config = that.$config;
  240. that.$set(that, `system`, config.system);
  241. that.search()
  242. },
  243. fail: function(err) {
  244. uni.navigateTo({
  245. url: `/pages/login/index`
  246. })
  247. }
  248. })
  249. },
  250. // 查询列表
  251. async search() {
  252. const that = this;
  253. let user = that.user;
  254. const res = await that.$api(`/address`, 'GET', {
  255. customer: user._id
  256. })
  257. if (res.errcode == '0') {
  258. that.$set(that, `addressList`, res.data.reverse());
  259. }
  260. const arr = await that.$api(`/order/toMakeOrder`, 'POST', {
  261. key: that.key
  262. })
  263. if (arr.errcode == '0') {
  264. // 查询活动商品列表
  265. let act;
  266. act = arr.data.actList.find(i => i.platform_act_type == '4')
  267. if (act) {
  268. that.searchAct(act);
  269. that.$set(that, `actInfo`, act);
  270. }
  271. // 分享人id
  272. that.$set(that, `inviter`, arr.data.inviter);
  273. // 地址
  274. that.$set(that, `address`, arr.data.address);
  275. // 订单
  276. that.$set(that, `orderList`, arr.data.goodsData);
  277. // 总价
  278. that.$set(that, `total_detail`, arr.data.orderTotal);
  279. that.$set(that, `type`, arr.data.type);
  280. this.computedTotal();
  281. // 优惠劵
  282. that.$set(that, `couponList`, arr.data.couponList);
  283. }
  284. },
  285. // 查询活动商品列表
  286. async searchAct(e) {
  287. const that = this;
  288. let platform_act = e.platform_act;
  289. let info = {
  290. skip: that.skip,
  291. limit: that.limit,
  292. platform_act: platform_act,
  293. goods_type: 'plus'
  294. }
  295. let res = await that.$api(`/goodsJoinAct`, 'GET', {
  296. ...info,
  297. })
  298. if (res.errcode == '0') {
  299. let list = [...that.actList, ...res.data];
  300. that.$set(that, `actList`, list)
  301. that.$set(that, `total`, res.total)
  302. }
  303. },
  304. // 使用优惠劵
  305. toDiscount(e) {
  306. const that = this;
  307. that.$set(that, 'coupon_name', e.name)
  308. that.coupon.push(e._id)
  309. that.$refs.popup.close();
  310. that.computedTotal();
  311. },
  312. // 选择收货地址
  313. toChoose() {
  314. const that = this;
  315. if (that.address?._id) {
  316. uni.navigateTo({
  317. url: `/pagesMy/address/index?type=${"shopping"}&id=${that.address._id}`
  318. })
  319. } else {
  320. uni.navigateTo({
  321. url: `/pagesMy/address/index?type=${"shopping"}`
  322. })
  323. }
  324. },
  325. // 选择优惠劵
  326. toCoupon() {
  327. const that = this;
  328. that.$set(that.popup, 'type', '1')
  329. that.$set(that, 'coupon', [])
  330. that.$refs.popup.open();
  331. },
  332. // 选择活动商品
  333. checkboxChange(e) {
  334. const that = this;
  335. var actList = that.actList,
  336. values = e.detail.value;
  337. for (var i = 0, lenI = actList.length; i < lenI; ++i) {
  338. const item = actList[i]
  339. if (values.includes(item._id)) that.$set(item, 'checked', true)
  340. else that.$set(item, 'checked', false)
  341. }
  342. },
  343. // 选择加购产品
  344. toAddGoods() {
  345. const that = this;
  346. that.$set(that, 'plus_goods', [])
  347. that.$refs.showRight.open();
  348. },
  349. // 关闭抽屉
  350. closeDrawer(e) {
  351. const that = this;
  352. if (e == 'cancel') {
  353. for (let val of that.actList) {
  354. if (val.checked == true) val.checked = false
  355. }
  356. that.$set(that, 'plus_goods', []);
  357. that.computedTotal();
  358. that.$refs.showRight.close();
  359. } else {
  360. // 选购中商品
  361. let plus_goods = that.actList.filter(item => item.checked == true)
  362. that.$set(that, 'plus_goods', plus_goods);
  363. that.computedTotal();
  364. that.$refs.showRight.close();
  365. }
  366. },
  367. // 分页
  368. toPage() {
  369. const that = this;
  370. let list = that.actList;
  371. let actInfo = that.actInfo;
  372. let limit = that.limit;
  373. if (that.total > list.length) {
  374. uni.showLoading({
  375. title: '加载中',
  376. mask: true
  377. })
  378. let page = that.page + 1;
  379. that.$set(that, `page`, page)
  380. let skip = page * limit;
  381. that.$set(that, `skip`, skip)
  382. that.searchAct(actInfo);
  383. uni.hideLoading();
  384. } else {
  385. uni.showToast({
  386. title: `没有更多商品了`,
  387. icon: 'none'
  388. })
  389. }
  390. },
  391. // 提交订单
  392. async toSubmit() {
  393. const that = this;
  394. let system = that.system;
  395. if (that.address) {
  396. let obj = {
  397. address: that.address,
  398. goods: that.orderList,
  399. total_detail: that.total_detail,
  400. coupon: that.coupon,
  401. type: that.type,
  402. inviter: that.inviter,
  403. plus_goods: that.plus_goods
  404. }
  405. if (that.group_id) obj.group = that.group_id;
  406. // 创建订单
  407. let p1 = await that.$api(`/order`, 'POST', obj);
  408. if (p1.errcode == '0') {
  409. if (system.uniPlatform == "mp-weixin") {
  410. // 微信支付
  411. uni.showLoading({
  412. title: '加载中'
  413. })
  414. // 支付信息
  415. let p2 = await that.$api('/pay/toPayOrder', 'POST', {
  416. order_id: p1.data,
  417. type: '0'
  418. })
  419. if (p2.errcode == '0' && p2.data.paySign) {
  420. uni.requestPayment({
  421. "provider": "wxpay",
  422. ...p2.data,
  423. success: async function(res) {
  424. // 获取团信息
  425. let p3 = await that.$api('/group/getGroup', 'GET', {
  426. order_id: p1.data,
  427. })
  428. if (p3.errcode == '0') {
  429. uni.hideLoading();
  430. if (p3.data) {
  431. uni.reLaunch({
  432. url: `/pagesHome/group/share?id=${p3.data}`
  433. })
  434. } else {
  435. uni.reLaunch({
  436. url: `/pagesMy/order/index?status=${'1'}`
  437. })
  438. }
  439. } else {
  440. uni.showToast({
  441. title: p3.errmsg,
  442. icon: 'none'
  443. })
  444. }
  445. },
  446. fail: function(err) {
  447. uni.showToast({
  448. title: `支付失败`,
  449. icon: 'none'
  450. })
  451. uni.hideLoading();
  452. uni.reLaunch({
  453. url: `/pagesMy/order/index?status=${'0'}`
  454. })
  455. }
  456. })
  457. } else {
  458. uni.showToast({
  459. title: p2.errmsg,
  460. icon: 'none'
  461. })
  462. }
  463. } else if (system.uniPlatform == "app") {
  464. uni.requestPayment({
  465. provider: 'alipay',
  466. orderInfo: 'orderInfo',
  467. success: function(res) {
  468. console.log('success:' + JSON.stringify(res));
  469. },
  470. fail: function(err) {
  471. console.log('fail:' + JSON.stringify(err));
  472. }
  473. });
  474. } else {
  475. uni.showToast({
  476. title: `平台不支持支付`,
  477. icon: 'none'
  478. })
  479. }
  480. } else {
  481. uni.showToast({
  482. title: p1.errmsg,
  483. icon: 'none'
  484. })
  485. }
  486. } else {
  487. uni.showToast({
  488. title: `没有收货地址`,
  489. icon: 'none'
  490. })
  491. }
  492. },
  493. // 计算优惠券
  494. async computedTotal() {
  495. const total_detail = this.total_detail;
  496. let total = 0;
  497. for (let val of total_detail) total = this.$plus(total, val.money)
  498. if (this.plus_goods.length > 0) {
  499. let plus_total = 0;
  500. for (let val of this.plus_goods) {
  501. if (val.config.plus_money) plus_total = this.$plus(plus_total, val.config.plus_money)
  502. else plus_total = this.$plus(plus_total, val.sell_money)
  503. }
  504. total = this.$plus(plus_total, total)
  505. }
  506. if (this.coupon.length > 0) {
  507. let discount = 0;
  508. for (const coupon of this.coupon) {
  509. const r = this.couponList.find(f => f._id === coupon)
  510. if (!r) continue;
  511. const {
  512. discount_config,
  513. discount_type
  514. } = r;
  515. if (discount_type === 'min') {
  516. const min = discount_config.min;
  517. discount = this.$plus(discount, min)
  518. } else if (discount_type === 'discount') {
  519. const min = discount_config.min || 0;
  520. let discount_money = 0;
  521. const max = discount_config.max || 0;
  522. // TODO 现在是平台发放的优惠券,所以可以直接用总价*折扣,如果是店铺的折扣券,则需要将金额分开,对应店铺计算折扣
  523. // const dm = min / 10 * total;
  524. const dm = this.$multiply(this.divide(min, 10), total)
  525. if (max !== 0) {
  526. if (max > dm) discount_money = dm;
  527. else discount_money = max
  528. }
  529. discount += discount_money
  530. }
  531. }
  532. total = this.$minus(total, discount)
  533. }
  534. if (total >= 0) {
  535. this.$set(this, `goods_total`, total);
  536. } else {
  537. uni.showToast({
  538. title: `实付金额不能为负数 不能使用该优惠劵`,
  539. icon: 'none'
  540. })
  541. }
  542. }
  543. }
  544. }
  545. </script>
  546. <style lang="scss">
  547. .main {
  548. display: flex;
  549. flex-direction: column;
  550. width: 100vw;
  551. height: 100vh;
  552. .one {
  553. position: relative;
  554. flex-grow: 1;
  555. background-color: var(--f1Color);
  556. .one_1 {
  557. display: flex;
  558. justify-content: space-between;
  559. align-items: center;
  560. width: 100vw;
  561. padding: 2vw;
  562. border-bottom: 1vw dashed var(--fcColor);
  563. .address {
  564. flex-grow: 1;
  565. margin: 0 0 0 2vw;
  566. font-size: var(--font14Size);
  567. color: var(--f85Color);
  568. }
  569. .iconfont {
  570. font-size: var(--font20Szie);
  571. }
  572. .other {
  573. width: 82vw;
  574. padding: 0 2vw;
  575. .name {
  576. font-size: var(--font16Size);
  577. }
  578. .other_1 {
  579. font-size: var(--font14Size);
  580. color: var(--f85Color);
  581. text {
  582. margin: 0 1vw 0 0;
  583. }
  584. }
  585. }
  586. }
  587. .one_2 {
  588. .list {
  589. width: 100vw;
  590. margin: 2vw 0;
  591. .list_1 {
  592. padding: 2vw;
  593. background-color: var(--mainColor);
  594. border-bottom: 0.1vw solid var(--fcColor);
  595. text {
  596. padding: 0 0 0 1vw;
  597. }
  598. }
  599. .list_2 {
  600. padding: 2vw;
  601. background-color: var(--mainColor);
  602. .list_2_1 {
  603. display: flex;
  604. .l {
  605. width: 20vw;
  606. .image {
  607. width: 100%;
  608. height: 20vw;
  609. border-radius: 5px;
  610. }
  611. }
  612. .c {
  613. width: 60vw;
  614. padding: 0 2vw;
  615. .Spec {
  616. font-size: var(--font12Size);
  617. color: var(--f85Color);
  618. }
  619. }
  620. .r {
  621. width: 15vw;
  622. text-align: right;
  623. }
  624. }
  625. .list_2_2 {
  626. padding: 0 1vw 1vw 0;
  627. font-size: var(--font14Size);
  628. }
  629. .list_2_3 {
  630. display: flex;
  631. justify-content: space-between;
  632. border: 1px solid var(--fcColor);
  633. border-radius: 5px;
  634. margin: 0 0 1vw 0;
  635. padding: 1vw;
  636. .left {
  637. .name {
  638. font-size: 14px;
  639. }
  640. .Spec {
  641. font-size: var(--font12Size);
  642. color: var(--f85Color);
  643. }
  644. }
  645. }
  646. }
  647. .list_3 {
  648. width: 96vw;
  649. padding: 2vw;
  650. background-color: var(--mainColor);
  651. .other {
  652. display: flex;
  653. justify-content: space-between;
  654. border-bottom: 0.1vw solid var(--fcColor);
  655. margin: 0 0 2vw 0;
  656. padding: 2vw 0;
  657. .other_1 {
  658. font-size: var(--font16Size);
  659. color: var(--f85Color);
  660. }
  661. .other_3 {
  662. flex-grow: 1;
  663. margin: 0 0 0 2vw;
  664. font-size: var(--font12Size);
  665. }
  666. text {
  667. padding: 0 1vw 0 0;
  668. font-size: var(--font20Szie);
  669. }
  670. }
  671. }
  672. }
  673. .other {
  674. display: flex;
  675. justify-content: space-between;
  676. background-color: var(--mainColor);
  677. border-bottom: 0.1vw solid var(--fcColor);
  678. width: 96vw;
  679. padding: 2vw;
  680. .other_1 {
  681. font-size: var(--font16Size);
  682. color: var(--f85Color);
  683. }
  684. .other_3 {
  685. flex-grow: 1;
  686. margin: 0 0 0 2vw;
  687. font-size: var(--font12Size);
  688. }
  689. .other_4 {
  690. color: var(--fFB1Color);
  691. }
  692. text {
  693. padding: 0 1vw 0 0;
  694. font-size: var(--font20Szie);
  695. }
  696. }
  697. }
  698. }
  699. .two {
  700. display: flex;
  701. justify-content: space-between;
  702. border-top: 0.1vw solid var(--fcColor);
  703. .two_1 {
  704. display: flex;
  705. align-items: center;
  706. padding: 0 2vw;
  707. font-size: var(--font16Size);
  708. view:last-child {
  709. margin: 0 0 0 2vw;
  710. color: var(--ff0Color);
  711. font-weight: bold;
  712. }
  713. }
  714. .two_2 {
  715. padding: 3vw 4vw;
  716. color: var(--mainColor);
  717. font-size: var(--font16Size);
  718. background-color: var(--ff0Color);
  719. }
  720. }
  721. }
  722. .scroll-view {
  723. position: absolute;
  724. top: 0;
  725. left: 0;
  726. right: 0;
  727. bottom: 0;
  728. .list-scroll-view {
  729. display: flex;
  730. flex-direction: row;
  731. flex-wrap: wrap;
  732. }
  733. }
  734. .popup {
  735. display: flex;
  736. flex-direction: column;
  737. height: 100vw;
  738. overflow-x: hidden;
  739. background-color: var(--f5Color);
  740. padding: 2vw;
  741. .list {
  742. .one {
  743. display: flex;
  744. justify-content: space-between;
  745. margin: 2vw 0 0 0;
  746. padding: 2vw;
  747. background-color: var(--mainColor);
  748. .name {
  749. font-size: var(--font16Size);
  750. }
  751. .address {
  752. font-size: var(--font14Size);
  753. }
  754. .iconfont {
  755. line-height: 15vw;
  756. font-size: var(--font20Szie);
  757. }
  758. }
  759. .two {
  760. display: flex;
  761. justify-content: space-between;
  762. border-top: 0.1vw solid var(--fcColor);
  763. padding: 2vw;
  764. background-color: var(--mainColor);
  765. font-size: var(--font14Size);
  766. .text {
  767. margin: 0 2vw 0 0;
  768. border: 0.1vw solid var(--fFB1Color);
  769. padding: 1vw;
  770. font-size: var(--font12Size);
  771. border-radius: 2vw;
  772. color: var(--fFB1Color);
  773. }
  774. }
  775. }
  776. }
  777. .act {
  778. background-color: var(--mainColor);
  779. width: 96vw;
  780. padding: 2vw;
  781. .act_1 {
  782. font-size: var(--font14Size);
  783. font-weight: bold;
  784. text {
  785. color: #FFA500;
  786. }
  787. }
  788. .act_2 {
  789. margin: 1vw 0;
  790. .actList {
  791. display: flex;
  792. margin: 2vw 0;
  793. .image {
  794. width: 12vw;
  795. height: 10vw;
  796. border: 1px solid #ffffff;
  797. }
  798. .name {
  799. width: 52vw;
  800. font-size: 12px;
  801. margin: 0 0 0 1vw;
  802. }
  803. .money {
  804. width: 20vw;
  805. .text_1 {
  806. font-size: 12px;
  807. color: #858585;
  808. text-decoration: line-through;
  809. }
  810. .text_2 {
  811. font-size: 13px;
  812. color: #ff0000;
  813. }
  814. }
  815. .checkbox {
  816. width: 7vw;
  817. }
  818. }
  819. }
  820. .bottom {
  821. text-align: center;
  822. button:first-child {
  823. margin: 0 1vw 0 0;
  824. background-color: #ff0000;
  825. color: #ffffff;
  826. }
  827. }
  828. }
  829. </style>