order.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905
  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. } else {
  389. uni.showToast({
  390. title: `没有更多商品了`,
  391. icon: 'none'
  392. })
  393. }
  394. },
  395. // 提交订单
  396. async toSubmit() {
  397. const that = this;
  398. let system = that.system;
  399. if (that.address) {
  400. let obj = {
  401. address: that.address,
  402. goods: that.orderList,
  403. total_detail: that.total_detail,
  404. coupon: that.coupon,
  405. type: that.type,
  406. inviter: that.inviter,
  407. plus_goods: that.plus_goods
  408. }
  409. if (that.group_id) obj.group = that.group_id;
  410. // 创建订单
  411. let p1 = await that.$api(`/order`, 'POST', obj);
  412. if (p1.errcode == '0') {
  413. if (system.uniPlatform == "mp-weixin") {
  414. // 微信支付
  415. uni.showLoading({
  416. title: '加载中'
  417. })
  418. // 支付信息
  419. let p2 = await that.$api('/pay/toPayOrder', 'POST', {
  420. order_id: p1.data,
  421. type: '0'
  422. })
  423. if (p2.errcode == '0' && p2.data.paySign) {
  424. uni.requestPayment({
  425. "provider": "wxpay",
  426. ...p2.data,
  427. success: async function(res) {
  428. // 获取团信息
  429. let p3 = await that.$api('/group/getGroup', 'GET', {
  430. order_id: p1.data,
  431. })
  432. if (p3.errcode == '0') {
  433. uni.hideLoading();
  434. if (p3.data) {
  435. uni.reLaunch({
  436. url: `/pagesHome/group/share?id=${p3.data}`
  437. })
  438. } else {
  439. uni.reLaunch({
  440. url: `/pagesMy/order/index?status=${'1'}`
  441. })
  442. }
  443. } else {
  444. uni.showToast({
  445. title: p3.errmsg,
  446. icon: 'none'
  447. })
  448. }
  449. },
  450. fail: function(err) {
  451. uni.showToast({
  452. title: `支付失败`,
  453. icon: 'none'
  454. })
  455. uni.hideLoading();
  456. uni.reLaunch({
  457. url: `/pagesMy/order/index?status=${'0'}`
  458. })
  459. }
  460. })
  461. } else {
  462. uni.showToast({
  463. title: p2.errmsg,
  464. icon: 'none'
  465. })
  466. }
  467. } else if (system.uniPlatform == "app") {
  468. uni.requestPayment({
  469. provider: 'alipay',
  470. orderInfo: 'orderInfo',
  471. success: function(res) {
  472. console.log('success:' + JSON.stringify(res));
  473. },
  474. fail: function(err) {
  475. console.log('fail:' + JSON.stringify(err));
  476. }
  477. });
  478. } else {
  479. uni.showToast({
  480. title: `平台不支持支付`,
  481. icon: 'none'
  482. })
  483. }
  484. } else {
  485. uni.showToast({
  486. title: p1.errmsg,
  487. icon: 'none'
  488. })
  489. }
  490. } else {
  491. uni.showToast({
  492. title: `没有收货地址`,
  493. icon: 'none'
  494. })
  495. }
  496. },
  497. // 计算优惠券
  498. async computedTotal() {
  499. const total_detail = this.total_detail;
  500. let total = 0;
  501. for (let val of total_detail) total = this.$plus(total, val.money)
  502. if (this.plus_goods.length > 0) {
  503. let plus_total = 0;
  504. for (let val of this.plus_goods) {
  505. if (val.config.plus_money) plus_total = this.$plus(plus_total, val.config.plus_money)
  506. else plus_total = this.$plus(plus_total, val.sell_money)
  507. }
  508. total = this.$plus(plus_total, total)
  509. }
  510. if (this.coupon.length > 0) {
  511. let discount = 0;
  512. for (const coupon of this.coupon) {
  513. const r = this.couponList.find(f => f._id === coupon)
  514. if (!r) continue;
  515. const {
  516. discount_config,
  517. discount_type
  518. } = r;
  519. if (discount_type === 'min') {
  520. const min = discount_config.min;
  521. discount = this.$plus(discount, min)
  522. } else if (discount_type === 'discount') {
  523. const min = discount_config.min || 0;
  524. let discount_money = 0;
  525. const max = discount_config.max || 0;
  526. // TODO 现在是平台发放的优惠券,所以可以直接用总价*折扣,如果是店铺的折扣券,则需要将金额分开,对应店铺计算折扣
  527. // const dm = min / 10 * total;
  528. const dm = this.$multiply(this.divide(min, 10), total)
  529. if (max !== 0) {
  530. if (max > dm) discount_money = dm;
  531. else discount_money = max
  532. }
  533. discount += discount_money
  534. }
  535. }
  536. total = this.$minus(total, discount)
  537. }
  538. if (total >= 0) {
  539. this.$set(this, `goods_total`, total);
  540. } else {
  541. uni.showToast({
  542. title: `实付金额不能为负数 不能使用该优惠劵`,
  543. icon: 'none'
  544. })
  545. }
  546. }
  547. }
  548. }
  549. </script>
  550. <style lang="scss">
  551. .main {
  552. display: flex;
  553. flex-direction: column;
  554. width: 100vw;
  555. height: 100vh;
  556. .one {
  557. position: relative;
  558. flex-grow: 1;
  559. background-color: var(--f1Color);
  560. .one_1 {
  561. display: flex;
  562. justify-content: space-between;
  563. align-items: center;
  564. width: 100vw;
  565. padding: 2vw;
  566. border-bottom: 1vw dashed var(--fcColor);
  567. .address {
  568. flex-grow: 1;
  569. margin: 0 0 0 2vw;
  570. font-size: var(--font14Size);
  571. color: var(--f85Color);
  572. }
  573. .iconfont {
  574. font-size: var(--font20Szie);
  575. }
  576. .other {
  577. width: 82vw;
  578. padding: 0 2vw;
  579. .name {
  580. font-size: var(--font16Size);
  581. }
  582. .other_1 {
  583. font-size: var(--font14Size);
  584. color: var(--f85Color);
  585. text {
  586. margin: 0 1vw 0 0;
  587. }
  588. }
  589. }
  590. }
  591. .one_2 {
  592. .list {
  593. width: 100vw;
  594. margin: 2vw 0;
  595. .list_1 {
  596. padding: 2vw;
  597. background-color: var(--mainColor);
  598. border-bottom: 0.1vw solid var(--fcColor);
  599. text {
  600. padding: 0 0 0 1vw;
  601. }
  602. }
  603. .list_2 {
  604. padding: 2vw;
  605. background-color: var(--mainColor);
  606. .list_2_1 {
  607. display: flex;
  608. .l {
  609. width: 20vw;
  610. .image {
  611. width: 100%;
  612. height: 20vw;
  613. border-radius: 5px;
  614. }
  615. }
  616. .c {
  617. width: 60vw;
  618. padding: 0 2vw;
  619. .Spec {
  620. font-size: var(--font12Size);
  621. color: var(--f85Color);
  622. }
  623. }
  624. .r {
  625. width: 15vw;
  626. text-align: right;
  627. }
  628. }
  629. .list_2_2 {
  630. padding: 0 1vw 1vw 0;
  631. font-size: var(--font14Size);
  632. }
  633. .list_2_3 {
  634. display: flex;
  635. justify-content: space-between;
  636. border: 1px solid var(--fcColor);
  637. border-radius: 5px;
  638. margin: 0 0 1vw 0;
  639. padding: 1vw;
  640. .left {
  641. .name {
  642. font-size: 14px;
  643. }
  644. .Spec {
  645. font-size: var(--font12Size);
  646. color: var(--f85Color);
  647. }
  648. }
  649. }
  650. }
  651. .list_3 {
  652. width: 96vw;
  653. padding: 2vw;
  654. background-color: var(--mainColor);
  655. .other {
  656. display: flex;
  657. justify-content: space-between;
  658. border-bottom: 0.1vw solid var(--fcColor);
  659. margin: 0 0 2vw 0;
  660. padding: 2vw 0;
  661. .other_1 {
  662. font-size: var(--font16Size);
  663. color: var(--f85Color);
  664. }
  665. .other_3 {
  666. flex-grow: 1;
  667. margin: 0 0 0 2vw;
  668. font-size: var(--font12Size);
  669. }
  670. text {
  671. padding: 0 1vw 0 0;
  672. font-size: var(--font20Szie);
  673. }
  674. }
  675. }
  676. }
  677. .other {
  678. display: flex;
  679. justify-content: space-between;
  680. background-color: var(--mainColor);
  681. border-bottom: 0.1vw solid var(--fcColor);
  682. width: 96vw;
  683. padding: 2vw;
  684. .other_1 {
  685. font-size: var(--font16Size);
  686. color: var(--f85Color);
  687. }
  688. .other_3 {
  689. flex-grow: 1;
  690. margin: 0 0 0 2vw;
  691. font-size: var(--font12Size);
  692. }
  693. .other_4 {
  694. color: var(--fFB1Color);
  695. }
  696. text {
  697. padding: 0 1vw 0 0;
  698. font-size: var(--font20Szie);
  699. }
  700. }
  701. }
  702. }
  703. .two {
  704. display: flex;
  705. justify-content: space-between;
  706. border-top: 0.1vw solid var(--fcColor);
  707. .two_1 {
  708. display: flex;
  709. align-items: center;
  710. padding: 0 2vw;
  711. font-size: var(--font16Size);
  712. view:last-child {
  713. margin: 0 0 0 2vw;
  714. color: var(--ff0Color);
  715. font-weight: bold;
  716. }
  717. }
  718. .two_2 {
  719. padding: 3vw 4vw;
  720. color: var(--mainColor);
  721. font-size: var(--font16Size);
  722. background-color: var(--ff0Color);
  723. }
  724. }
  725. }
  726. .scroll-view {
  727. position: absolute;
  728. top: 0;
  729. left: 0;
  730. right: 0;
  731. bottom: 0;
  732. .list-scroll-view {
  733. display: flex;
  734. flex-direction: row;
  735. flex-wrap: wrap;
  736. }
  737. }
  738. .popup {
  739. display: flex;
  740. flex-direction: column;
  741. height: 100vw;
  742. overflow-x: hidden;
  743. background-color: var(--f5Color);
  744. padding: 2vw;
  745. .list {
  746. .one {
  747. display: flex;
  748. justify-content: space-between;
  749. margin: 2vw 0 0 0;
  750. padding: 2vw;
  751. background-color: var(--mainColor);
  752. .name {
  753. font-size: var(--font16Size);
  754. }
  755. .address {
  756. font-size: var(--font14Size);
  757. }
  758. .iconfont {
  759. line-height: 15vw;
  760. font-size: var(--font20Szie);
  761. }
  762. }
  763. .two {
  764. display: flex;
  765. justify-content: space-between;
  766. border-top: 0.1vw solid var(--fcColor);
  767. padding: 2vw;
  768. background-color: var(--mainColor);
  769. font-size: var(--font14Size);
  770. .text {
  771. margin: 0 2vw 0 0;
  772. border: 0.1vw solid var(--fFB1Color);
  773. padding: 1vw;
  774. font-size: var(--font12Size);
  775. border-radius: 2vw;
  776. color: var(--fFB1Color);
  777. }
  778. }
  779. }
  780. }
  781. .act {
  782. background-color: var(--mainColor);
  783. width: 96vw;
  784. padding: 2vw;
  785. .act_1 {
  786. font-size: var(--font14Size);
  787. font-weight: bold;
  788. text {
  789. color: #FFA500;
  790. }
  791. }
  792. .act_2 {
  793. margin: 1vw 0;
  794. .actList {
  795. display: flex;
  796. align-items: center;
  797. margin: 2vw 0;
  798. border: 0.1vw solid var(--fcColor);
  799. border-radius: 5px;
  800. padding: 1vw 0;
  801. .image {
  802. width: 12vw;
  803. height: 10vw;
  804. border: 1px solid #ffffff;
  805. }
  806. .name {
  807. width: 52vw;
  808. font-size: 12px;
  809. margin: 0 0 0 1vw;
  810. .some {
  811. display: inline-block;
  812. white-space: nowrap;
  813. width: 100%;
  814. overflow: hidden;
  815. text-overflow: ellipsis;
  816. }
  817. }
  818. .money {
  819. width: 20vw;
  820. .text_1 {
  821. font-size: 12px;
  822. color: #858585;
  823. text-decoration: line-through;
  824. }
  825. .text_2 {
  826. font-size: 13px;
  827. color: #ff0000;
  828. }
  829. }
  830. .checkbox {
  831. width: 7vw;
  832. }
  833. }
  834. }
  835. .bottom {
  836. text-align: center;
  837. button:first-child {
  838. margin: 0 1vw 0 0;
  839. background-color: #ff0000;
  840. color: #ffffff;
  841. }
  842. }
  843. }
  844. </style>