createOrder.vue 19 KB

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