createOrder.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. <template>
  2. <view class="padding-t-30">
  3. <!-- 地址 -->
  4. <!-- <navigator url="/pages/set/address?source=1" class="address-section">
  5. <view class="order-content" v-if="addressData.real_name">
  6. <view class="cen">
  7. <view class="top">
  8. <text class="name">{{ addressData.real_name }}</text>
  9. <text class="mobile">{{ addressData.phone }}</text>
  10. </view>
  11. <text
  12. class="address flex">{{ addressData.province + addressData.city + addressData.district }}{{ addressData.detail }}</text>
  13. </view>
  14. <text class="iconfont iconenter"></text>
  15. </view>
  16. <view class="order-content" v-if="!addressData.real_name">
  17. <view class="addAddress">
  18. <text class="iconfont iconaddition"></text>
  19. <text>添加收货地址</text>
  20. </view>
  21. </view>
  22. </navigator> -->
  23. <!-- 门店 -->
  24. <view class="yt-list tc-wrap" @click="navTo('/pages/shop/shopTab?select=1')">
  25. <view class="store-wrap flex" v-if="selctStore && selctStore.id">
  26. <view class="imgBox">
  27. <image class="logo" :src="selctStore.image" mode="aspectFit"></image>
  28. </view>
  29. <view class="padding-l-20 flex-grow-true">
  30. <view class="title clamp flex">
  31. <view class="name">
  32. {{selctStore.name}}
  33. </view>
  34. <view class="km" v-if="selctStore.range">
  35. {{selctStore.range<1?selctStore.distance+'m':selctStore.range+'km'}}
  36. </view>
  37. </view>
  38. <view class="flex addressBox margin-t-20">
  39. <image class="iconA margin-r-10" src="../../static/icon/shop.png" mode="">
  40. </image>
  41. <text class="clamp">
  42. {{selctStore.detailed_address}}
  43. </text>
  44. </view>
  45. <view class="addressBox flex">
  46. <image class="iconA margin-r-10" src="../../static/icon/shopPhone.png" mode="">
  47. <text class="clamp">
  48. {{selctStore.phone}}
  49. </text>
  50. </view>
  51. <view class="yysj">
  52. 营业时间:{{selctStore.day_time}}
  53. </view>
  54. </view>
  55. </view>
  56. <view class="store-wrap-empty" v-else>
  57. 选择门店
  58. </view>
  59. </view>
  60. <view class="yt-list">
  61. <view class="yt-list-cell b-b">
  62. <text class="cell-tit clamp">提货人</text>
  63. <input class="desc" type="text" v-model="addressData.real_name" placeholder="请填写提货人姓名" placeholder-class="placeholder" />
  64. </view>
  65. <view class="yt-list-cell b-b">
  66. <text class="cell-tit clamp">提货手机号</text>
  67. <input class="desc" type="text" v-model="addressData.phone" placeholder="请填写提货人手机号" placeholder-class="placeholder" />
  68. </view>
  69. </view>
  70. <view class="goodsList">
  71. <view class="goods-section" v-for="(ls, ind) in shopList" :key="ind">
  72. <!-- 商品列表 -->
  73. <view class="g-item">
  74. <image :src="ls.productInfo.image"></image>
  75. <view class="right">
  76. <text class="title clamp">{{ ls.productInfo.store_name }}</text>
  77. <text class="spec">{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.suk : '默认' }}</text>
  78. <view class="price-box">
  79. <text
  80. class="price">¥{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.price : ls.productInfo.price }}</text>
  81. <text class="number">{{ 'x ' + ls.cart_num + (ls.productInfo.unit_name || '') }}</text>
  82. <!-- <view class="number">
  83. <uni-number-box class="step" :value="lss.number" :index="indx" @eventChange="numberChange"></uni-number-box>
  84. </view> -->
  85. </view>
  86. <view class="serverSet" v-if="ls.day>0">
  87. (<text>服务费:{{ls.day_deducted}}</text>
  88. <text class="margin-l-10">服务天数:{{ls.day}}天</text>)
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. <!-- 金额明细 -->
  95. <view class="yt-list">
  96. <!-- <view class="yt-list-cell b-b">
  97. <text class="cell-tit clamp">运费</text>
  98. <text class="cell-tip disabled">{{ Postage }}</text>
  99. </view> -->
  100. <view class="yt-list-cell b-b">
  101. <text class="cell-tit clamp">备注</text>
  102. <input class="desc" type="text" v-model="desc" placeholder="请填写备注信息" placeholder-class="placeholder" />
  103. </view>
  104. </view>
  105. <view class="yt-list">
  106. <view class="yt-list-cell b-b" @click="payType='weixin'">
  107. <view class="cell-tit flex">
  108. <image class="orderIcon" src="../../static/icon/orderWx.png" mode="widthFix"></image>
  109. <text class="margin-l-10">微信支付</text>
  110. </view>
  111. <image class="checked" v-if="payType=='weixin'" src="../../static/icon/addressIconXz.png"
  112. mode="widthFix"></image>
  113. <view v-else class="noChecked"></view>
  114. </view>
  115. <!-- #ifdef APP-PLUS -->
  116. <view class="yt-list-cell b-b" @click="payType='ali'">
  117. <view class="cell-tit flex">
  118. <image class="orderIcon" src="../../static/icon/orderAli.png" mode="widthFix"></image>
  119. <text class="margin-l-10">支付宝</text>
  120. </view>
  121. <image class="checked" v-if="payType=='ali'" src="../../static/icon/addressIconXz.png" mode="widthFix">
  122. </image>
  123. <view v-else class="noChecked"></view>
  124. </view>
  125. <!-- #endif -->
  126. <view class="yt-list-cell b-b" @click="payType='yue'">
  127. <view class="cell-tit flex">
  128. <image class="orderIcon" src="../../static/icon/ye.png" mode="widthFix"></image>
  129. <text class="margin-l-10">卡券({{now_money}})</text>
  130. </view>
  131. <image class="checked" v-if="payType=='yue'" src="../../static/icon/addressIconXz.png" mode="widthFix">
  132. </image>
  133. <view v-else class="noChecked"></view>
  134. </view>
  135. </view>
  136. <!-- 底部 -->
  137. <view class="footer">
  138. <view class="price-content">
  139. <text>实付款</text>
  140. <text class="price-tip">¥</text>
  141. <text class="price">{{ payPrice }}</text>
  142. </view>
  143. <text class="submit" :class="{submitNo:payLoding}" @click="payLoding?'':submit()">提交订单</text>
  144. </view>
  145. </view>
  146. </template>
  147. <script>
  148. import {
  149. mapState
  150. } from 'vuex';
  151. import {
  152. confirm,
  153. computedOrderkey,
  154. createOrderkey,
  155. orderPay
  156. } from '@/api/order.js';
  157. import {
  158. getUserInfo
  159. } from '@/api/user.js';
  160. // #ifdef H5
  161. import weixinObj from "@/plugin/jweixin-module/index.js";
  162. // #endif
  163. export default {
  164. data() {
  165. return {
  166. shipping_type: 2,//1->快递,2->自提
  167. selctStore: {id:''},//选中的门店
  168. payType: 'ali',
  169. desc: '', //备注
  170. // 收货地址
  171. addressData: {},
  172. // 商品列表
  173. shopList: [],
  174. // 购物车id
  175. cartId: '',
  176. //购物金额详情
  177. moneyAll: {
  178. storeFreePostage: 0, //邮费优惠
  179. storePostage: 0, //邮费
  180. totalPrice: 0, //总支付金额
  181. vipPrice: 0 //vip优惠价
  182. },
  183. payPrice: 0, //总支付金额
  184. orderKey: '', //订单id
  185. payLoding: false, //判断是否支付中
  186. orderId: '', //订单id
  187. now_money: 0, //卡券
  188. onShopId: -1, //默认-1为不存在商家id
  189. };
  190. },
  191. onLoad(option) {
  192. // 保存当前商品在购物车中的id
  193. this.cartId = option.id;
  194. // 判断是否要读取商家id
  195. if (option.shopId) {
  196. this.onShopId = option.shopId;
  197. }
  198. this.loadData();
  199. this.userinfo();
  200. },
  201. computed: {
  202. Postage() {
  203. let money = +this.moneyAll.storePostage;
  204. if (money == 0) {
  205. return '免运费';
  206. } else {
  207. return '¥' + money;
  208. }
  209. },
  210. payAllMoney() {
  211. return +this.moneyAll.totalPrice + +this.moneyAll.vipPrice;
  212. },
  213. ...mapState('shop', ['shopDetail']),
  214. ...mapState(['fx']),
  215. ...mapState('user', ['address'])
  216. },
  217. methods: {
  218. navTo(url) {
  219. uni.navigateTo({
  220. url,
  221. fail() {
  222. uni.switchTab({
  223. url
  224. })
  225. }
  226. })
  227. },
  228. // 加载用户基础信息
  229. userinfo() {
  230. getUserInfo({}).then(({
  231. data
  232. }) => {
  233. this.now_money = data.now_money;
  234. this.addressData.real_name = data.real_name || '';
  235. this.addressData.phone = data.phone || '';
  236. });
  237. },
  238. // 计算支付金额
  239. payMoneyNub() {
  240. computedOrderkey({
  241. orderkey: this.orderKey,
  242. useIntegral: 0, //是否积分抵扣
  243. addressId: this.addressData.id //地址编号
  244. })
  245. .then(({
  246. data
  247. }) => {
  248. this.integralShow = true;
  249. // 获取支付金额
  250. this.payPrice = +data.result.pay_price;
  251. this.integralMoney = data.result.deduction_price;
  252. })
  253. .catch(e => {
  254. console.log(e);
  255. this.integralShow = false;
  256. });
  257. },
  258. // 加载基础数据
  259. loadData() {
  260. let obj = this;
  261. confirm({
  262. cartId: obj.cartId + ''
  263. }).then(({
  264. data
  265. }) => {
  266. // obj.addressData = data.addressInfo || {};
  267. // console.log(obj.addressData,'obj.addressData')
  268. obj.shopList = data.cartInfo; //商品列表
  269. obj.moneyAll = data.priceGroup; //金额数据
  270. obj.orderKey = data.orderKey; //订单key
  271. // 计算金额
  272. this.payMoneyNub();
  273. });
  274. },
  275. // 提交订单
  276. submit() {
  277. let obj = this;
  278. if(obj.shipping_type == 2) {
  279. if (!obj.addressData.real_name) {
  280. // this.$api.msg('请选择收货地址');
  281. obj.$api.msg('请输入提货人姓名')
  282. return false;
  283. }
  284. if (!obj.addressData.phone) {
  285. // this.$api.msg('请选择收货地址');
  286. obj.$api.msg('请输入提货人手机号')
  287. return false;
  288. }
  289. if(obj.selctStore.id == '') {
  290. obj.$api.msg('请选择提货门店')
  291. return false;
  292. }
  293. }
  294. // 判断是否卡券不足
  295. if (obj.payType == 'yue' && +obj.now_money < obj.payPrice) {
  296. uni.showModal({
  297. title: '提示',
  298. content: '账户卡券不足!',
  299. showCancel: false,
  300. });
  301. return;
  302. }
  303. uni.showLoading({
  304. title: '支付中',
  305. mask: true
  306. })
  307. // 支付中
  308. obj.payLoding = true;
  309. // 判断是否为未支付订单中跳转进入
  310. obj.firstCreateOrder();
  311. },
  312. // 订单金额支付
  313. orderMoneyPay() {
  314. let obj = this;
  315. orderPay({
  316. uni: obj.orderId,
  317. // #ifdef H5
  318. from: 'weixin', //来源
  319. // #endif
  320. // #ifdef MP-WEIXIN
  321. from: 'routine', //来源
  322. // #endif
  323. // #ifdef APP-PLUS
  324. from: 'app', //来源
  325. // #endif
  326. paytype: obj.payType //支付类型 weixin-微信 yue-卡券
  327. })
  328. .then(e => {
  329. // 判断是否微信小程序支付
  330. if (obj.payType == 'weixin') {
  331. // #ifdef H5 || MP
  332. let da = e.data.result.jsConfig;
  333. let data = {
  334. nonceStr: da.nonceStr,
  335. package: da.package,
  336. signType: da.signType,
  337. paySign: da.paySign,
  338. success: function(res) {
  339. obj.paySuccessTo();
  340. },
  341. fail: () => {
  342. uni.navigateTo({
  343. url: '/pages/order/order?state=0'
  344. });
  345. }
  346. };
  347. // #endif
  348. // #ifdef H5
  349. data.timestamp = da.timestamp;
  350. weixinObj.chooseWXPay(data);
  351. // #endif
  352. // #ifdef MP-WEIXIN
  353. data.timeStamp = da.timestamp;
  354. wx.requestPayment(data);
  355. // #endif
  356. // #ifdef APP
  357. console.log( e.data.result.jsConfig,'返回数值');
  358. uni.requestPayment({
  359. provider: 'wxpay',
  360. orderInfo: e.data.result.jsConfig,
  361. success(e) {
  362. obj.paySuccessTo();
  363. },
  364. fail: (e) => {
  365. console.log(e,'支付失败');
  366. uni.navigateTo({
  367. url: '/pages/order/order?state=0'
  368. });
  369. }
  370. })
  371. // #endif
  372. }
  373. // #ifdef APP
  374. if(obj.payType == 'ali'){
  375. uni.requestPayment({
  376. provider: 'alipay',
  377. orderInfo: e.data.result.jsConfig,
  378. success(e) {
  379. obj.paySuccessTo();
  380. },
  381. fail: (e) => {
  382. console.log(e,'支付失败');
  383. uni.navigateTo({
  384. url: '/pages/order/order?state=0'
  385. });
  386. }
  387. })
  388. }
  389. // #endif
  390. uni.hideLoading();
  391. obj.payLoding = false;
  392. })
  393. .catch(e => {
  394. // 支付完成
  395. uni.hideLoading();
  396. obj.payLoding = false;
  397. console.log(e);
  398. });
  399. },
  400. // 支付成功跳转
  401. paySuccessTo() {
  402. uni.hideLoading();
  403. uni.redirectTo({
  404. url: '/pages/user_home/money/paySuccess?orderid=' + this.orderId,
  405. });
  406. },
  407. // 初次订单创建
  408. firstCreateOrder() {
  409. let obj = this;
  410. // 获取下单页面数据
  411. let prepage = obj;
  412. let data = {
  413. store_id: this.selctStore.id,
  414. real_name: prepage.addressData.real_name, //联系人名称
  415. phone: prepage.addressData.phone, //联系人号码
  416. addressId: prepage.addressData.id, //支付地址id
  417. useIntegral: 0, //是否积分抵扣1为是0为否
  418. payType: obj.payType, //支付类型 weixin-微信 yue-卡券
  419. mark: prepage.desc, //备注
  420. // #ifdef H5
  421. from: 'weixin', //来源
  422. // #endif
  423. // #ifdef MP-WEIXIN
  424. from: 'routine', //来源
  425. // #endif
  426. // #ifdef APP-PLUS
  427. from: 'app', //来源
  428. // #endif
  429. shipping_type: prepage.shipping_type, //提货方式 1 快递 2自提
  430. };
  431. // 判断是否需要读取非默认商家id
  432. // if (obj.onShopId != -1) {
  433. // data.store_id = obj.onShopId;
  434. // } else {
  435. // data.store_id = obj.shopDetail.id;
  436. // }
  437. // 生成订单
  438. createOrderkey(data, obj.orderKey)
  439. .then(({
  440. data,
  441. status,
  442. msg
  443. }) => {
  444. // 判断是否支付失败
  445. if (data.status == 'ORDER_EXIST') {
  446. uni.showModal({
  447. title: '提示',
  448. content: msg,
  449. showCancel: false
  450. });
  451. uni.hideLoading();
  452. obj.payLoding = false;
  453. return;
  454. }
  455. // 保存订单号
  456. obj.orderId = data.result.orderId;
  457. // 判断是否为卡券支付
  458. if (obj.payType == 'yue') {
  459. console.log('卡券支付', status == 200 && data.status == 'SUCCESS');
  460. if (status == 200 && data.status == 'SUCCESS') {
  461. obj.paySuccessTo();
  462. } else {
  463. obj.$api.msg(msg);
  464. }
  465. } else {
  466. // 立即支付
  467. obj.orderMoneyPay();
  468. }
  469. })
  470. .catch(e => {
  471. uni.hideLoading();
  472. obj.payLoding = false;
  473. console.log(e);
  474. });
  475. }
  476. }
  477. };
  478. </script>
  479. <style lang="scss">
  480. page {
  481. background: $page-color-base;
  482. padding-bottom: 100rpx;
  483. }
  484. .address-section {
  485. border-radius: 20rpx;
  486. padding: 30rpx;
  487. margin: 0 $page-row-spacing;
  488. background: #fff;
  489. position: relative;
  490. .order-content {
  491. min-height: 100rpx;
  492. display: flex;
  493. align-items: center;
  494. .leftIcon {
  495. width: 36rpx;
  496. margin: 0 30rpx;
  497. }
  498. .addAddress {
  499. text-align: center;
  500. width: 100%;
  501. display: flex;
  502. justify-content: center;
  503. align-items: center;
  504. .iconaddition {
  505. font-size: 55rpx;
  506. line-height: 1;
  507. border-radius: 100rpx;
  508. margin-right: 20rpx;
  509. }
  510. }
  511. }
  512. .iconlocation {
  513. flex-shrink: 0;
  514. display: flex;
  515. align-items: center;
  516. justify-content: center;
  517. width: 90rpx;
  518. color: #888;
  519. font-size: 44rpx;
  520. }
  521. .cen {
  522. display: flex;
  523. flex-direction: column;
  524. flex: 1;
  525. font-size: 28rpx;
  526. color: $font-color-dark;
  527. }
  528. .name {
  529. font-size: 34rpx;
  530. margin-right: 24rpx;
  531. }
  532. .address {
  533. margin-top: 16rpx;
  534. margin-right: 20rpx;
  535. color: $font-color-light;
  536. }
  537. .icon-you {
  538. font-size: 32rpx;
  539. color: $font-color-light;
  540. margin-right: 30rpx;
  541. }
  542. .a-bg {
  543. position: absolute;
  544. left: 0;
  545. bottom: 0;
  546. display: block;
  547. width: 100%;
  548. height: 5rpx;
  549. }
  550. }
  551. .goodsList {
  552. margin: 0 $page-row-spacing;
  553. padding: 30rpx;
  554. background: #fff;
  555. border-radius: 20rpx;
  556. margin-top: 30rpx;
  557. }
  558. .goods-section {
  559. .logo {
  560. display: block;
  561. width: 50rpx;
  562. height: 50rpx;
  563. border-radius: 100px;
  564. }
  565. .name {
  566. font-size: 30rpx;
  567. color: $font-color-base;
  568. margin-left: 24rpx;
  569. }
  570. .g-item {
  571. display: flex;
  572. image {
  573. flex-shrink: 0;
  574. display: block;
  575. width: 170rpx;
  576. height: 170rpx;
  577. border-radius: 4rpx;
  578. }
  579. .right {
  580. flex: 1;
  581. padding-left: 24rpx;
  582. overflow: hidden;
  583. .serverSet {
  584. font-size: 22rpx;
  585. color: $font-color-light;
  586. }
  587. }
  588. .title {
  589. font-size: 30rpx;
  590. color: $font-color-dark;
  591. }
  592. .spec {
  593. font-size: 26rpx;
  594. color: $font-color-light;
  595. }
  596. .price-box {
  597. display: flex;
  598. align-items: center;
  599. font-size: 32rpx;
  600. padding-top: 10rpx;
  601. color: $font-color-light;
  602. .price {
  603. margin-bottom: 4rpx;
  604. }
  605. .number {
  606. font-size: 26rpx;
  607. margin-left: 20rpx;
  608. }
  609. }
  610. .step-box {
  611. position: relative;
  612. }
  613. }
  614. }
  615. .yt-list {
  616. background: #fff;
  617. margin: 0 $page-row-spacing;
  618. margin-top: 30rpx;
  619. border-radius: 20rpx;
  620. }
  621. .yt-list-cell {
  622. display: flex;
  623. align-items: center;
  624. justify-content: space-between;
  625. padding: 10rpx 30rpx 10rpx 40rpx;
  626. line-height: 70rpx;
  627. position: relative;
  628. .checked,
  629. .noChecked {
  630. width: 36rpx;
  631. height: 36rpx;
  632. }
  633. .noChecked {
  634. border: 1px solid $font-color-light;
  635. border-radius: 100rpx;
  636. }
  637. &.cell-hover {
  638. background: #fafafa;
  639. }
  640. &.b-b:after {
  641. left: 30rpx;
  642. }
  643. .cell-icon {
  644. height: 32rpx;
  645. width: 32rpx;
  646. font-size: 22rpx;
  647. color: #fff;
  648. text-align: center;
  649. line-height: 32rpx;
  650. background: #f85e52;
  651. border-radius: 4rpx;
  652. margin-right: 12rpx;
  653. &.hb {
  654. background: #ffaa0e;
  655. }
  656. &.lpk {
  657. background: #3ab54a;
  658. }
  659. }
  660. .cell-more {
  661. align-self: center;
  662. font-size: 24rpx;
  663. color: $font-color-light;
  664. margin-left: 8rpx;
  665. margin-right: -10rpx;
  666. }
  667. .cell-tit {
  668. font-size: 26rpx;
  669. color: $font-color-light;
  670. margin-right: 10rpx;
  671. .orderIcon {
  672. width: 48rpx;
  673. }
  674. }
  675. .cell-tip {
  676. font-size: 26rpx;
  677. color: $font-color-dark;
  678. &.disabled {
  679. color: $font-color-light;
  680. }
  681. &.active {
  682. color: $base-color;
  683. }
  684. &.red {
  685. color: $base-color;
  686. }
  687. }
  688. &.desc-cell {
  689. .cell-tit {
  690. max-width: 90rpx;
  691. }
  692. }
  693. .desc {
  694. text-align: right;
  695. font-size: $font-base;
  696. color: $font-color-light;
  697. }
  698. }
  699. /* 支付列表 */
  700. .pay-list {
  701. padding-left: 40rpx;
  702. margin-top: 16rpx;
  703. background: #fff;
  704. .pay-item {
  705. display: flex;
  706. align-items: center;
  707. padding-right: 20rpx;
  708. line-height: 1;
  709. height: 110rpx;
  710. position: relative;
  711. }
  712. .icon-weixinzhifu {
  713. width: 80rpx;
  714. font-size: 40rpx;
  715. color: #6bcc03;
  716. }
  717. .icon-alipay {
  718. width: 80rpx;
  719. font-size: 40rpx;
  720. color: #06b4fd;
  721. }
  722. .icon-xuanzhong2 {
  723. display: flex;
  724. align-items: center;
  725. justify-content: center;
  726. width: 60rpx;
  727. height: 60rpx;
  728. font-size: 40rpx;
  729. color: $base-color;
  730. }
  731. .tit {
  732. font-size: 32rpx;
  733. color: $font-color-dark;
  734. flex: 1;
  735. }
  736. }
  737. .footer {
  738. position: fixed;
  739. left: 0;
  740. bottom: 0;
  741. z-index: 995;
  742. display: flex;
  743. align-items: center;
  744. width: 100%;
  745. height: 90rpx;
  746. justify-content: space-between;
  747. font-size: 30rpx;
  748. background-color: #fff;
  749. z-index: 998;
  750. color: $font-color-base;
  751. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  752. .price-content {
  753. padding-left: 30rpx;
  754. }
  755. .price-tip {
  756. color: $font-color-base;
  757. margin-left: 8rpx;
  758. }
  759. .price {
  760. font-size: 36rpx;
  761. color: $font-color-base;
  762. }
  763. .submit {
  764. display: flex;
  765. align-items: center;
  766. justify-content: center;
  767. width: 280rpx;
  768. height: 100%;
  769. color: #fff;
  770. font-size: 32rpx;
  771. background-color: $base-color;
  772. &.submitNo {
  773. background-color: $font-color-disabled;
  774. }
  775. }
  776. }
  777. .store-wrap {
  778. background-color: #FFFFFF;
  779. margin-bottom: 30rpx;
  780. padding: 30rpx;
  781. border-radius: 20rpx;
  782. .list,.km{
  783. color: $font-color-light;
  784. font-size: $font-sm;
  785. }
  786. .logo {
  787. height: 200rpx;
  788. width: 200rpx;
  789. border-radius: 20rpx;
  790. }
  791. .title {
  792. font-size: 36rpx;
  793. color: $font-color-dark;
  794. }
  795. .iconR {
  796. height: 24rpx;
  797. }
  798. .iconA {
  799. width: 24rpx;
  800. height: 24rpx;
  801. }
  802. .addressBox {
  803. font-size: 24rpx;
  804. color: $font-color-light;
  805. justify-content: flex-start;
  806. padding: 10rpx 0;
  807. }
  808. .yysj {
  809. display: inline-block;
  810. // width: 239rpx;
  811. padding: 0 10rpx;
  812. height: 32rpx;
  813. background: #ddf8f1;
  814. border-radius: 16rpx 16rpx 16rpx 0rpx;
  815. font-size: 20rpx;
  816. font-weight: bold;
  817. color: #5FCCA7;
  818. text-align: center;
  819. line-height: 32rpx;
  820. margin-top: 10rpx;
  821. }
  822. }
  823. .store-wrap-empty {
  824. text-align: center;
  825. height: 200rpx;
  826. line-height: 200rpx;
  827. }
  828. </style>