createOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  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. // 生成订单
  427. createOrderkey(data, obj.orderKey)
  428. .then(({
  429. data,
  430. status,
  431. msg
  432. }) => {
  433. // 判断是否支付失败
  434. if (data.status == 'ORDER_EXIST') {
  435. uni.showModal({
  436. title: '提示',
  437. content: msg,
  438. showCancel: false
  439. });
  440. uni.hideLoading();
  441. obj.payLoding = false;
  442. return;
  443. }
  444. // 保存订单号
  445. obj.orderId = data.result.orderId;
  446. // 判断是否为余额支付
  447. if (obj.payType == 'yue') {
  448. console.log('余额支付', status == 200 && data.status == 'SUCCESS');
  449. if (status == 200 && data.status == 'SUCCESS') {
  450. obj.paySuccessTo();
  451. } else {
  452. obj.$api.msg(msg);
  453. }
  454. } else {
  455. // 立即支付
  456. obj.orderMoneyPay();
  457. }
  458. })
  459. .catch(e => {
  460. uni.hideLoading();
  461. obj.payLoding = false;
  462. console.log(e);
  463. });
  464. }
  465. }
  466. };
  467. </script>
  468. <style lang="scss">
  469. page {
  470. background: $page-color-base;
  471. padding-bottom: 100rpx;
  472. }
  473. .address-section {
  474. border-radius: 20rpx;
  475. padding: 30rpx;
  476. margin: 0 $page-row-spacing;
  477. background: #fff;
  478. position: relative;
  479. .order-content {
  480. min-height: 100rpx;
  481. display: flex;
  482. align-items: center;
  483. .leftIcon {
  484. width: 36rpx;
  485. margin: 0 30rpx;
  486. }
  487. .addAddress {
  488. text-align: center;
  489. width: 100%;
  490. display: flex;
  491. justify-content: center;
  492. align-items: center;
  493. }
  494. }
  495. .cen {
  496. display: flex;
  497. flex-direction: column;
  498. font-size: 28rpx;
  499. color: $font-color-dark;
  500. width: 0px;
  501. flex-grow: 1;
  502. }
  503. .name {
  504. font-size: 34rpx;
  505. margin-right: 24rpx;
  506. }
  507. .address {
  508. margin-top: 16rpx;
  509. margin-right: 20rpx;
  510. color: $font-color-light;
  511. }
  512. }
  513. .goodsList {
  514. margin: 0 $page-row-spacing;
  515. padding: 30rpx;
  516. background: #fff;
  517. border-radius: 20rpx;
  518. margin-top: 30rpx;
  519. }
  520. .goods-section {
  521. .logo {
  522. display: block;
  523. width: 50rpx;
  524. height: 50rpx;
  525. border-radius: 100px;
  526. }
  527. .name {
  528. font-size: 30rpx;
  529. color: $font-color-base;
  530. margin-left: 24rpx;
  531. }
  532. .g-item {
  533. display: flex;
  534. image {
  535. flex-shrink: 0;
  536. display: block;
  537. width: 170rpx;
  538. height: 170rpx;
  539. border-radius: 4rpx;
  540. }
  541. .right {
  542. flex: 1;
  543. padding-left: 24rpx;
  544. overflow: hidden;
  545. .serverSet {
  546. font-size: 22rpx;
  547. color: $font-color-light;
  548. }
  549. }
  550. .title {
  551. font-size: 30rpx;
  552. color: $font-color-dark;
  553. }
  554. .spec {
  555. font-size: 26rpx;
  556. color: $font-color-light;
  557. }
  558. .price-box {
  559. display: flex;
  560. align-items: center;
  561. font-size: 32rpx;
  562. padding-top: 10rpx;
  563. color: $font-color-light;
  564. .price {
  565. margin-bottom: 4rpx;
  566. }
  567. .number {
  568. font-size: 26rpx;
  569. margin-left: 20rpx;
  570. }
  571. }
  572. .step-box {
  573. position: relative;
  574. }
  575. }
  576. }
  577. .yt-list {
  578. background: #fff;
  579. margin: 0 $page-row-spacing;
  580. margin-top: 30rpx;
  581. border-radius: 20rpx;
  582. }
  583. .yt-list-cell {
  584. display: flex;
  585. align-items: center;
  586. justify-content: space-between;
  587. padding: 10rpx 30rpx 10rpx 40rpx;
  588. line-height: 70rpx;
  589. position: relative;
  590. .checked,
  591. .noChecked {
  592. width: 36rpx;
  593. height: 36rpx;
  594. }
  595. .noChecked {
  596. border: 1px solid $font-color-light;
  597. border-radius: 100rpx;
  598. }
  599. &.cell-hover {
  600. background: #fafafa;
  601. }
  602. &.b-b:after {
  603. left: 30rpx;
  604. }
  605. .cell-icon {
  606. height: 32rpx;
  607. width: 32rpx;
  608. font-size: 22rpx;
  609. color: #fff;
  610. text-align: center;
  611. line-height: 32rpx;
  612. background: #f85e52;
  613. border-radius: 4rpx;
  614. margin-right: 12rpx;
  615. &.hb {
  616. background: #ffaa0e;
  617. }
  618. &.lpk {
  619. background: #3ab54a;
  620. }
  621. }
  622. .cell-more {
  623. align-self: center;
  624. font-size: 24rpx;
  625. color: $font-color-light;
  626. margin-left: 8rpx;
  627. margin-right: -10rpx;
  628. }
  629. .cell-tit {
  630. font-size: 26rpx;
  631. color: $font-color-light;
  632. margin-right: 10rpx;
  633. .orderIcon {
  634. width: 48rpx;
  635. }
  636. }
  637. .cell-tip {
  638. font-size: 26rpx;
  639. color: $font-color-dark;
  640. &.disabled {
  641. color: $font-color-light;
  642. }
  643. &.active {
  644. color: $base-color;
  645. }
  646. &.red {
  647. color: $base-color;
  648. }
  649. }
  650. &.desc-cell {
  651. .cell-tit {
  652. max-width: 90rpx;
  653. }
  654. }
  655. .desc {
  656. text-align: right;
  657. font-size: $font-base;
  658. color: $font-color-light;
  659. }
  660. }
  661. /* 支付列表 */
  662. .pay-list {
  663. padding-left: 40rpx;
  664. margin-top: 16rpx;
  665. background: #fff;
  666. .pay-item {
  667. display: flex;
  668. align-items: center;
  669. padding-right: 20rpx;
  670. line-height: 1;
  671. height: 110rpx;
  672. position: relative;
  673. }
  674. .icon-weixinzhifu {
  675. width: 80rpx;
  676. font-size: 40rpx;
  677. color: #6bcc03;
  678. }
  679. .icon-alipay {
  680. width: 80rpx;
  681. font-size: 40rpx;
  682. color: #06b4fd;
  683. }
  684. .icon-xuanzhong2 {
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. width: 60rpx;
  689. height: 60rpx;
  690. font-size: 40rpx;
  691. color: $base-color;
  692. }
  693. .tit {
  694. font-size: 32rpx;
  695. color: $font-color-dark;
  696. flex: 1;
  697. }
  698. }
  699. .footer {
  700. position: fixed;
  701. left: 0;
  702. bottom: 0;
  703. z-index: 995;
  704. display: flex;
  705. align-items: center;
  706. width: 100%;
  707. height: 90rpx;
  708. justify-content: space-between;
  709. font-size: 30rpx;
  710. background-color: #fff;
  711. z-index: 998;
  712. color: $font-color-base;
  713. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  714. .price-content {
  715. padding-left: 30rpx;
  716. }
  717. .price-tip {
  718. color: $font-color-base;
  719. margin-left: 8rpx;
  720. }
  721. .price {
  722. font-size: 36rpx;
  723. color: $font-color-base;
  724. }
  725. .submit {
  726. display: flex;
  727. align-items: center;
  728. justify-content: center;
  729. width: 280rpx;
  730. height: 100%;
  731. color: #fff;
  732. font-size: 32rpx;
  733. background: $bg-gradual;
  734. &.submitNo {
  735. background-color: $font-color-disabled;
  736. }
  737. }
  738. }
  739. .tab-address {
  740. margin-bottom: 30rpx;
  741. margin-top: 0;
  742. .left {
  743. font-size: $font-base;
  744. }
  745. .right {
  746. font-size: $font-sm;
  747. color: #FFF;
  748. background: $bg-gradual;
  749. padding: 6rpx;
  750. border-radius: 10rpx;
  751. line-height: 1;
  752. .item {
  753. padding: 16rpx 20rpx;
  754. &.action {
  755. color: $uni-color-primary;
  756. background-color: #FFF;
  757. border-radius: 10rpx;
  758. }
  759. }
  760. }
  761. }
  762. .shop-box{
  763. .shop-top {
  764. width: 100%;
  765. .shop-title{
  766. width: 0px;
  767. flex-grow: 1;
  768. justify-content: flex-start;
  769. .shopImg {
  770. height: 65rpx;
  771. width: 65rpx;
  772. border-radius: 100rpx;
  773. margin-right: 20rpx;
  774. flex-shrink: 0;
  775. }
  776. .shop-name{
  777. font-weight: bold;
  778. font-size: $font-lg;
  779. }
  780. }
  781. .shop-tip{
  782. color: #FFF;
  783. padding: 5rpx 10rpx;
  784. font-size: $font-sm;
  785. background: linear-gradient(-90deg, #DCB876 0%, #EECD92 100%);
  786. border-radius: 5rpx;
  787. }
  788. }
  789. .shop-content{
  790. color: $font-color-light;
  791. font-size: $font-sm;
  792. }
  793. }
  794. </style>