order.vue 26 KB

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