index.vue 23 KB

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