index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <template>
  2. <view>
  3. <!-- #ifdef APP-PLUS || H5 -->
  4. <view class="status_bar"></view>
  5. <view class="" style="margin-top: var(--status-bar-height);">
  6. <uni-nav-bar title="" left-icon="left" backgroundColor="#F35546" color="#fff" @clickLeft="back"></uni-nav-bar>
  7. </view>
  8. <!-- #endif -->
  9. <view class='order-submission'>
  10. <view class="allAddress" :style="store_self_mention ? '':'padding-top:10rpx;'">
  11. <view class="nav acea-row">
  12. <view class="item font-color" :class="deliveryType === 1 ? 'on' : 'on2'"
  13. @tap="addressType(1)" v-if='store_self_mention' />
  14. <view class="item font-color" :class="deliveryType === 2 ? 'on' : 'on2'"
  15. @tap="addressType(2)" v-if='store_self_mention' />
  16. </view>
  17. <!-- 收货地址的选择 -->
  18. <view class='address acea-row row-between-wrapper' @tap='onAddress' v-if='deliveryType === 1'
  19. :style="store_self_mention ? '':'border-top-left-radius: 14rpx;border-top-right-radius: 14rpx;'">
  20. <view class='addressCon' v-if="addressInfo.name">
  21. <view class='name'>{{ addressInfo.name }}
  22. <text class='phone'>{{ addressInfo.mobile }}</text>
  23. </view>
  24. <view class="acea-row">
  25. <text class='default font-color' v-if="addressInfo.defaultStatus">[默认]</text>
  26. <text class="line2">{{ addressInfo.areaName }} {{addressInfo.detailAddress}}</text>
  27. </view>
  28. </view>
  29. <view class='addressCon' v-else>
  30. <view class='setaddress'>设置收货地址</view>
  31. </view>
  32. <view class='iconfont icon-jiantou'></view>
  33. </view>
  34. <!-- 门店的选择 -->
  35. <view class='address acea-row row-between-wrapper' v-else @tap="showStoreList">
  36. <block v-if="storeList.length>0">
  37. <view class='addressCon'>
  38. <view class='name'>{{ system_store.name }}
  39. <text class='phone'>{{ system_store.phone }}</text>
  40. </view>
  41. <view class="line1"> {{ system_store.areaName }}{{", " + system_store.detailAddress}}
  42. </view>
  43. </view>
  44. <view class='iconfont icon-jiantou'></view>
  45. </block>
  46. <block v-else>
  47. <view>暂无门店信息</view>
  48. </block>
  49. </view>
  50. <view class='line'>
  51. <image src='/static/images/line.jpg'></image>
  52. </view>
  53. </view>
  54. <view class="pad30">
  55. <orderGoods :cartInfo="cartInfo" />
  56. <!-- 优惠劵展示 -->
  57. <view class='wrapper borRadius14'>
  58. <view class='item acea-row row-between-wrapper' @tap='couponTap'
  59. v-if="orderInfoVo.type === 0 && productType==='normal'">
  60. <view>优惠券</view>
  61. <view class='discount'>{{couponTitle}}
  62. <text class='iconfont icon-jiantou'></text>
  63. </view>
  64. </view>
  65. <!-- 积分展示 -->
  66. <view class='item acea-row row-between-wrapper' v-if="orderInfoVo.type === 0 && productType==='normal'">
  67. <view>积分抵扣</view>
  68. <view class='discount acea-row row-middle'>
  69. <view> {{pointStatus ? "剩余积分":"当前积分"}}
  70. <text class='num font-color'>
  71. {{pointStatus ? orderInfoVo.totalPoint - orderInfoVo.usedPoint : (orderInfoVo.totalPoint || 0) }}
  72. </text>
  73. </view>
  74. <checkbox-group @change="ChangeIntegral">
  75. <checkbox :checked='pointStatus' :disabled="orderInfoVo.totalPoint === 0 && !pointStatus"/>
  76. </checkbox-group>
  77. </view>
  78. </view>
  79. <!-- VIP 展示 -->
  80. <view class='item acea-row row-between-wrapper'
  81. v-if="orderInfoVo.price.vipPrice > 0">
  82. <view>会员优惠</view>
  83. <view class='discount'>-¥{{ fen2yuan(orderInfoVo.price.vipPrice) }}</view>
  84. </view>
  85. <!-- 配送展示 TODO -->
  86. <view class='item acea-row row-between-wrapper' v-if='deliveryType === 1'>
  87. <view>快递费用</view>
  88. <view class='discount' v-if='orderInfoVo.price.deliveryPrice > 0'>
  89. +¥{{ fen2yuan(orderInfoVo.price.deliveryPrice) }}
  90. </view>
  91. <view class='discount' v-else>免运费</view>
  92. </view>
  93. <view v-else>
  94. <view class="item acea-row row-between-wrapper">
  95. <view>联系人</view>
  96. <view class="discount textR">
  97. <input type="text" placeholder="请填写您的联系姓名" placeholder-style="color:#ccc;"
  98. placeholder-class="placeholder" @blur='realName' />
  99. </view>
  100. </view>
  101. <view class="item acea-row row-between-wrapper">
  102. <view>联系电话</view>
  103. <view class="discount textR">
  104. <input type="text" placeholder="请填写您的联系电话" placeholder-style="color:#ccc;"
  105. placeholder-class="placeholder" @blur='phone' />
  106. </view>
  107. </view>
  108. </view>
  109. <view class='item'>
  110. <view>备注信息</view>
  111. <textarea placeholder-class='placeholder' @input='bindHideKeyboard'
  112. value="" name="mark" placeholder='请添加备注(150字以内)' />
  113. </view>
  114. </view>
  115. <!-- 各种价格 -->
  116. <view class='moneyList borRadius14'>
  117. <view class='item acea-row row-between-wrapper'>
  118. <view>商品总价:</view>
  119. <view class='money'>¥{{ fen2yuan(orderInfoVo.price.totalPrice || 0 ) }}</view>
  120. </view>
  121. <view class='item acea-row row-between-wrapper' v-if="orderInfoVo.price.discountPrice > 0">
  122. <view>订单优惠:</view>
  123. <view class='money'>-¥{{ fen2yuan(orderInfoVo.price.discountPrice) }}</view>
  124. </view>
  125. <view class='item acea-row row-between-wrapper' v-if="orderInfoVo.price.couponPrice > 0">
  126. <view>优惠券抵扣:</view>
  127. <view class='money'>-¥{{ fen2yuan(orderInfoVo.price.couponPrice) }}</view>
  128. </view>
  129. <view class='item acea-row row-between-wrapper' v-if="orderInfoVo.price.pointPrice > 0">
  130. <view>积分抵扣:</view>
  131. <view class='money'>-¥{{ fen2yuan(orderInfoVo.price.pointPrice) }}</view>
  132. </view>
  133. <view class='item acea-row row-between-wrapper' v-if="orderInfoVo.price.deliveryPrice > 0">
  134. <view>运费:</view>
  135. <view class='money'>+¥{{ fen2yuan(orderInfoVo.price.deliveryPrice) }}</view>
  136. </view>
  137. </view>
  138. <view style='height:120rpx;'></view>
  139. </view>
  140. <view class='footer acea-row row-between-wrapper'>
  141. <view>合计:
  142. <text class='font-color'>¥{{ fen2yuan(orderInfoVo.price.payPrice || 0) }}</text>
  143. </view>
  144. <view class='settlement' style='z-index:100' @tap="SubOrder">立即结算</view>
  145. </view>
  146. </view>
  147. <!-- 优惠劵的弹窗选择 -->
  148. <couponListWindow
  149. :coupon='coupon'
  150. @ChangCouponsClose="ChangCouponsClose"
  151. :openType='openType'
  152. @ChangCoupons="ChangCoupons"
  153. :orderShow="orderShow"
  154. />
  155. <!-- 收货地址的弹窗选择 -->
  156. <addressWindow
  157. ref="addressWindow"
  158. :address='address'
  159. :pagesUrl="pagesUrl"
  160. @OnChangeAddress="OnChangeAddress"
  161. @changeClose="changeClose"
  162. />
  163. <home></home>
  164. </view>
  165. </template>
  166. <script>
  167. import * as CouponApi from '@/api/promotion/coupon.js';
  168. import * as OrderApi from '@/api/trade/order.js';
  169. import * as ConfigApi from '@/api/trade/config.js';
  170. import { openPaySubscribe } from '@/utils/SubscribeMessage.js';
  171. import * as DeliveryApi from '@/api/trade/delivery.js';
  172. import couponListWindow from '@/components/couponListWindow';
  173. import addressWindow from '@/components/addressWindow';
  174. import orderGoods from '@/components/orderGoods';
  175. import home from '@/components/home';
  176. import { toLogin } from '@/libs/login.js';
  177. import { mapGetters } from "vuex";
  178. import * as Util from '@/utils/util.js';
  179. export default {
  180. components: {
  181. couponListWindow,
  182. addressWindow,
  183. orderGoods,
  184. home
  185. },
  186. data() {
  187. return {
  188. items: [], // 前端传递的购物项
  189. cartInfo: [], // 后端返回的购物项
  190. orderInfoVo: { // 订单信息
  191. type: 1, // 交易类型
  192. price: {} // 价格信息
  193. },
  194. mark: '', // 备注信息
  195. bargainRecordId: undefined, // 是否是砍价
  196. seckillActivityId: undefined, // 是否是秒杀
  197. combinationActivityId: undefined, // 是否是拼团
  198. // ========== 积分 ==========
  199. pointStatus: false, //是否使用积分
  200. // ========== 优惠劵 ==========
  201. couponId: 0, // 选中的优惠券 id
  202. couponTitle: '请选择', // 优惠券的标题
  203. coupon: { // 优惠券组件
  204. coupon: false,
  205. list: [],
  206. statusTile: '立即使用'
  207. },
  208. // ========== 收货地址 ==========
  209. deliveryType: 1, // 1 - 快递配送;2 - 门店自提
  210. addressId: 0, // 页面传递的 param 对应的地址 id
  211. addressInfo: {}, // 选中的地址信息
  212. address: { // 地址组件
  213. address: false, // 是否 addressWindow 展示
  214. addressId: 0 // 真正选中的 address 编号,优先级大于 addressId
  215. },
  216. openType: 1, // 优惠券打开方式 1=使用
  217. orderShow: 'orderShow', // 下单页面使用优惠券组件不展示 tab 切换页
  218. pagesUrl: "", // 添加收货地址后,回调地址
  219. // ========== 门店自提 ==========
  220. store_self_mention: false, // 门店自提是否开启
  221. storeList: [], // 门店列表
  222. system_store: {}, // 选中的门店
  223. contacts: '', // 联系人名
  224. contactsTel: '', // 联系人手机
  225. };
  226. },
  227. computed: mapGetters(['isLogin', 'systemPlatform', 'productType']),
  228. watch: {
  229. isLogin: {
  230. handler: function(newV, oldV) {
  231. if (newV) {
  232. this.getloadPreOrder();
  233. }
  234. },
  235. deep: true
  236. }
  237. },
  238. onLoad(options) {
  239. if (!this.isLogin) {
  240. toLogin();
  241. return
  242. }
  243. // 获得订单确认信息
  244. if (options.cartIds && options.cartIds.length > 0) {
  245. const cartIds = options.cartIds.split(',');
  246. this.items = cartIds.map(cartId => ({ cartId }));
  247. } else if (options.skuId > 0) {
  248. this.items = [{
  249. skuId: options.skuId,
  250. count: options.count | 1
  251. }]
  252. }
  253. this.seckillActivityId = options.seckillActivityId;
  254. this.bargainRecordId = options.bargainRecordId;
  255. this.combinationActivityId = options.combinationActivityId;
  256. this.getloadPreOrder();
  257. // 处理 address 地址
  258. this.addressId = options.addressId || 0;
  259. // 获得门店自提是否开启
  260. ConfigApi.getTradeConfig().then(res => {
  261. this.store_self_mention = res.data.deliveryPickUpEnabled && this.productType === 'normal';
  262. })
  263. },
  264. /**
  265. * 生命周期函数--监听页面显示
  266. */
  267. onShow: function() {
  268. // 来自 goods_details_store/index.vue 的门店选择
  269. uni.$on("handClick", res => {
  270. if (res) {
  271. this.system_store = res.address
  272. }
  273. // 清除监听
  274. uni.$off('handClick');
  275. })
  276. },
  277. methods: {
  278. back() {
  279. uni.navigateBack()
  280. },
  281. /**
  282. * 获得订单确认信息
  283. */
  284. getloadPreOrder: function() {
  285. OrderApi.settlementOrder(this.getSettlementReqVO()).then(res => {
  286. const orderInfoVo = res.data
  287. this.orderInfoVo = orderInfoVo;
  288. this.cartInfo = orderInfoVo.items;
  289. this.changeAddress(orderInfoVo.address);
  290. // 获得收件地址列表
  291. this.$nextTick(function() {
  292. this.$refs.addressWindow.getAddressList();
  293. })
  294. // 获得优惠劵列表
  295. this.getCouponList();
  296. }).catch(err => {
  297. return this.$util.Tips({
  298. title: err
  299. });
  300. })
  301. },
  302. SubOrder: function(e) {
  303. // 校验参数
  304. if (!this.address.addressId && this.deliveryType === 1) {
  305. return this.$util.Tips({
  306. title: '请选择收货地址'
  307. });
  308. }
  309. if (this.deliveryType === 2) {
  310. if (this.contacts === "" || this.contactsTel === "") {
  311. return this.$util.Tips({
  312. title: '请填写联系人或联系人电话'
  313. });
  314. }
  315. if (!/^1(3|4|5|7|8|9|6)\d{9}$/.test(this.contactsTel)) {
  316. return this.$util.Tips({
  317. title: '请填写正确的手机号'
  318. });
  319. }
  320. if (!/^[\u4e00-\u9fa5\w]{2,16}$/.test(this.contacts)) {
  321. return this.$util.Tips({
  322. title: '请填写您的真实姓名'
  323. });
  324. }
  325. if (this.storeList.length === 0) {
  326. return this.$util.Tips({
  327. title: '暂无门店,请选择其他方式'
  328. });
  329. }
  330. }
  331. // #ifdef MP
  332. openPaySubscribe().then(() => {
  333. this.orderCreate();
  334. });
  335. // #endif
  336. // #ifndef MP
  337. this.orderCreate();
  338. // #endif
  339. },
  340. orderCreate: function() {
  341. OrderApi.createOrder({
  342. ...this.getSettlementReqVO(),
  343. mark: this.mark,
  344. }).then(res => {
  345. const returnUrl = encodeURIComponent('/pages/order_pay_status/index?order_id=' + res.data.id);
  346. uni.navigateTo({
  347. url: `/pages/goods/cashier/index?order_id=${res.data.payOrderId}&returnUrl=${returnUrl}`
  348. });
  349. }).catch(err => {
  350. uni.hideLoading();
  351. return this.$util.Tips({
  352. title: err
  353. });
  354. });
  355. },
  356. /**
  357. * 获得结算请求 VO
  358. */
  359. getSettlementReqVO() {
  360. return {
  361. items: this.items,
  362. deliveryType: this.deliveryType,
  363. addressId: this.address.addressId > 0 && this.deliveryType === 1 ? this.address.addressId : undefined,
  364. pickUpStoreId: this.system_store.id > 0 && this.deliveryType === 2 ? this.system_store.id : undefined,
  365. receiverName: this.deliveryType === 2 ? this.contacts : undefined,
  366. receiverMobile: this.deliveryType === 2 ? this.contactsTel : undefined,
  367. couponId: this.couponId > 0 ? this.couponId : undefined,
  368. pointStatus: this.pointStatus,
  369. seckillActivityId: this.seckillActivityId,
  370. bargainRecordId: this.bargainRecordId,
  371. combinationActivityId: this.combinationActivityId,
  372. // TODO 芋艿:秒杀等等
  373. }
  374. },
  375. /**
  376. * 输入备注
  377. */
  378. bindHideKeyboard: function(e) {
  379. this.mark = e.detail.value;
  380. },
  381. // ========== 积分 ==========
  382. /**
  383. * 使用积分抵扣
  384. */
  385. ChangeIntegral: function() {
  386. this.pointStatus = !this.pointStatus;
  387. this.getloadPreOrder();
  388. },
  389. // ========== 优惠劵 ==========
  390. /**
  391. * 获取当前金额可用优惠券
  392. */
  393. getCouponList: function() {
  394. CouponApi.getMatchCouponList({
  395. price: this.orderInfoVo.price.payPrice,
  396. spuIds: this.orderInfoVo.items.map(item => item.spuId).join(","),
  397. skuIds: this.orderInfoVo.items.map(item => item.skuId).join(","),
  398. categoryIds: this.orderInfoVo.items.map(item => item.categoryId)
  399. }).then(res => {
  400. this.$set(this.coupon, 'list', res.data);
  401. // 设置指定优惠劵已选择;用于 couponId 有参数时,默认选中一下
  402. const useCoupon = res.data.find(coupon => coupon.id === this.couponId);
  403. if (useCoupon) {
  404. useCoupon.use_title = '不使用';
  405. useCoupon.isUse = 1;
  406. this.couponTitle = useCoupon.name;
  407. }
  408. });
  409. },
  410. /**
  411. * 处理点击优惠券后的事件
  412. */
  413. ChangCoupons: function(index) {
  414. const list = this.coupon.list;
  415. // 先标记未使用
  416. for (let i = 0; i < list.length; i++) {
  417. if (i !== index) {
  418. list[i].use_title = '';
  419. list[i].isUse = 0;
  420. }
  421. }
  422. // 再标记使用中的优惠劵
  423. let couponTitle = '请选择';
  424. let couponId = 0;
  425. if (list[index].isUse) { // 不使用优惠券(就是又点了下,选中的优惠劵)
  426. list[index].use_title = '';
  427. list[index].isUse = 0;
  428. } else { // 使用优惠券
  429. list[index].use_title = '不使用';
  430. list[index].isUse = 1;
  431. couponTitle = list[index].name;
  432. couponId = list[index].id;
  433. }
  434. this.couponTitle = couponTitle;
  435. this.couponId = couponId;
  436. this.$set(this.coupon, 'coupon', false);
  437. this.$set(this.coupon, 'list', list);
  438. this.getloadPreOrder();
  439. },
  440. /**
  441. * 打开 coupon 优惠劵的选择弹窗
  442. */
  443. couponTap: function() {
  444. this.coupon.coupon = true;
  445. },
  446. /**
  447. * 关闭 coupon 优惠劵的选择弹窗
  448. */
  449. ChangCouponsClose: function() {
  450. this.$set(this.coupon, 'coupon', false);
  451. },
  452. // ========== 收货地址 ==========
  453. /**
  454. * 打开选择地址的弹窗
  455. */
  456. onAddress: function() {
  457. this.address.address = true;
  458. // TODO 芋艿:callbackUrl
  459. this.pagesUrl = '/pages/users/user_address_list/index?';
  460. },
  461. /**
  462. * 选择地址后改变事件
  463. */
  464. OnChangeAddress: function(address) {
  465. this.changeAddress(address);
  466. this.address.address = false;
  467. this.getloadPreOrder();
  468. },
  469. /**
  470. * 选择地址
  471. */
  472. changeAddress: function (address) {
  473. if (!address) {
  474. return;
  475. }
  476. this.addressInfo = address;
  477. this.address.addressId = address.id;
  478. },
  479. /**
  480. * 关闭地址弹窗
  481. */
  482. changeClose: function() {
  483. this.$set(this.address, 'address', false);
  484. },
  485. // ========== 门店自提 ==========
  486. /**
  487. * 切换物流方式
  488. */
  489. addressType: function(deliveryType) {
  490. this.deliveryType = deliveryType;
  491. this.getloadPreOrder();
  492. if (deliveryType === 2) {
  493. this.getList();
  494. }
  495. },
  496. /**
  497. * 跳转门店列表
  498. */
  499. showStoreList: function() {
  500. if (this.storeList.length > 0) {
  501. uni.navigateTo({
  502. url: '/pages/users/goods_details_store/index'
  503. })
  504. }
  505. },
  506. /**
  507. * 获取门店列表数据
  508. */
  509. getList: function() {
  510. let longitude = uni.getStorageSync("user_longitude"); // 经度
  511. let latitude = uni.getStorageSync("user_latitude"); // 纬度
  512. DeliveryApi.getDeliveryPickUpStoreList({
  513. latitude,
  514. longitude
  515. }).then(res => {
  516. let list = res.data || [];
  517. this.$set(this, 'storeList', list);
  518. this.$set(this, 'system_store', list[0]);
  519. }).catch(err => {
  520. return this.$util.Tips({
  521. title: err
  522. });
  523. })
  524. },
  525. realName: function(e) {
  526. this.contacts = e.detail.value;
  527. },
  528. phone: function(e) {
  529. this.contactsTel = e.detail.value;
  530. },
  531. fen2yuan(price) {
  532. return Util.fen2yuan(price)
  533. },
  534. }
  535. }
  536. </script>
  537. <style lang="scss" scoped>
  538. ::v-deep .uni-navbar--border {
  539. border: none !important;
  540. }
  541. .line2{
  542. width: 504rpx;
  543. }
  544. .textR {
  545. text-align: right;
  546. }
  547. .order-submission .line {
  548. width: 100%;
  549. height: 3rpx;
  550. }
  551. .order-submission .line image {
  552. width: 100%;
  553. height: 100%;
  554. display: block;
  555. }
  556. .order-submission .address {
  557. padding: 28rpx;
  558. background-color: #fff;
  559. box-sizing: border-box;
  560. }
  561. .order-submission .address .addressCon {
  562. width: 596rpx;
  563. font-size: 26rpx;
  564. color: #666;
  565. }
  566. .order-submission .address .addressCon .name {
  567. font-size: 30rpx;
  568. color: #282828;
  569. font-weight: bold;
  570. margin-bottom: 10rpx;
  571. }
  572. .order-submission .address .addressCon .name .phone {
  573. margin-left: 50rpx;
  574. }
  575. .order-submission .address .addressCon .default {
  576. margin-right: 12rpx;
  577. }
  578. .order-submission .address .addressCon .setaddress {
  579. color: #333;
  580. font-size: 28rpx;
  581. }
  582. .order-submission .address .iconfont {
  583. font-size: 35rpx;
  584. color: #707070;
  585. }
  586. .order-submission .allAddress {
  587. width: 100%;
  588. background: linear-gradient(to bottom, #F35546 0%, #f5f5f5 100%);
  589. // background-image: linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
  590. // background-image: -webkit-linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
  591. // background-image: -moz-linear-gradient(to bottom, #e93323 0%, #f5f5f5 100%);
  592. padding: 100rpx 30rpx 0 30rpx;
  593. }
  594. .order-submission .allAddress .nav {
  595. width: 690rpx;
  596. margin: 0 auto;
  597. }
  598. .order-submission .allAddress .nav .item {
  599. width: 334rpx;
  600. }
  601. .order-submission .allAddress .nav .item.on {
  602. position: relative;
  603. width: 230rpx;
  604. }
  605. .order-submission .allAddress .nav .item.on::before {
  606. position: absolute;
  607. bottom: 0;
  608. content: "快递配送";
  609. font-size: 28rpx;
  610. display: block;
  611. height: 0;
  612. width: 336rpx;
  613. border-width: 0 20rpx 80rpx 0;
  614. border-style: none solid solid;
  615. border-color: transparent transparent #fff;
  616. z-index: 2;
  617. border-radius: 14rpx 36rpx 0 0;
  618. text-align: center;
  619. line-height: 80rpx;
  620. }
  621. .order-submission .allAddress .nav .item:nth-of-type(2).on::before {
  622. content: "到店自提";
  623. border-width: 0 0 80rpx 20rpx;
  624. border-radius: 36rpx 14rpx 0 0;
  625. }
  626. .order-submission .allAddress .nav .item.on2 {
  627. position: relative;
  628. }
  629. .order-submission .allAddress .nav .item.on2::before {
  630. position: absolute;
  631. bottom: 0;
  632. content: "到店自提";
  633. font-size: 28rpx;
  634. display: block;
  635. height: 0;
  636. width: 401rpx;
  637. border-width: 0 0 60rpx 60rpx;
  638. border-style: none solid solid;
  639. border-color: transparent transparent #f7c1bd;
  640. border-radius: 36rpx 14rpx 0 0;
  641. text-align: center;
  642. line-height: 60rpx;
  643. }
  644. .order-submission .allAddress .nav .item:nth-of-type(1).on2::before {
  645. content: "快递配送";
  646. border-width: 0 60rpx 60rpx 0;
  647. border-radius: 14rpx 36rpx 0 0;
  648. }
  649. .order-submission .allAddress .address {
  650. width: 690rpx;
  651. max-height: 180rpx;
  652. margin: 0 auto;
  653. }
  654. .order-submission .allAddress .line {
  655. width: 100%;
  656. margin: 0 auto;
  657. }
  658. .order-submission .wrapper .item .discount .placeholder {
  659. color: #ccc;
  660. }
  661. .order-submission .wrapper {
  662. background-color: #fff;
  663. margin-top: 15rpx;
  664. }
  665. .order-submission .wrapper .item {
  666. padding: 27rpx 24rpx;
  667. font-size: 30rpx;
  668. color: #333333;
  669. border-bottom: 1px solid #F5F5F5;
  670. }
  671. .order-submission .wrapper .item .discount {
  672. font-size: 30rpx;
  673. color: #333;
  674. }
  675. .order-submission .wrapper .item .discount .iconfont {
  676. color: #515151;
  677. font-size: 30rpx;
  678. margin-left: 15rpx;
  679. }
  680. .order-submission .wrapper .item .discount .num {
  681. font-size: 32rpx;
  682. margin-right: 20rpx;
  683. }
  684. .order-submission .wrapper .item .shipping {
  685. font-size: 30rpx;
  686. color: #999;
  687. position: relative;
  688. padding-right: 58rpx;
  689. }
  690. .order-submission .wrapper .item .shipping .iconfont {
  691. font-size: 35rpx;
  692. color: #707070;
  693. position: absolute;
  694. right: 0;
  695. top: 50%;
  696. transform: translateY(-50%);
  697. margin-left: 30rpx;
  698. }
  699. .order-submission .wrapper .item textarea {
  700. background-color: #f9f9f9;
  701. width: auto !important;
  702. height: 140rpx;
  703. border-radius: 14rpx;
  704. margin-top: 30rpx;
  705. padding: 15rpx;
  706. box-sizing: border-box;
  707. font-weight: 400;
  708. }
  709. .order-submission .wrapper .item .placeholder {
  710. color: #ccc;
  711. }
  712. .order-submission .wrapper .item .list {
  713. margin-top: 35rpx;
  714. }
  715. .order-submission .moneyList {
  716. margin-top: 15rpx;
  717. background-color: #fff;
  718. padding: 30rpx;
  719. }
  720. .order-submission .moneyList .item {
  721. font-size: 28rpx;
  722. color: #282828;
  723. }
  724. .order-submission .moneyList .item~.item {
  725. margin-top: 20rpx;
  726. }
  727. .order-submission .moneyList .item .money {
  728. color: #666666;
  729. }
  730. .order-submission .footer {
  731. width: 100%;
  732. height: 100rpx;
  733. background-color: #fff;
  734. padding: 0 30rpx;
  735. font-size: 28rpx;
  736. color: #333;
  737. box-sizing: border-box;
  738. position: fixed;
  739. bottom: 0;
  740. left: 0;
  741. }
  742. .order-submission .footer .settlement {
  743. font-size: 30rpx;
  744. color: #fff;
  745. width: 240rpx;
  746. height: 70rpx;
  747. background-color: $theme-color;
  748. border-radius: 50rpx;
  749. text-align: center;
  750. line-height: 70rpx;
  751. }
  752. .footer .transparent {
  753. opacity: 0
  754. }
  755. </style>