order.vue 21 KB

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