order.vue 26 KB

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