createOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  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" 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. }).then(({
  264. data
  265. }) => {
  266. obj.addressData = data.addressInfo || {};
  267. obj.shopList = data.cartInfo; //商品列表
  268. obj.moneyAll = data.priceGroup; //金额数据
  269. obj.orderKey = data.orderKey; //订单key
  270. obj.shopAddress = data.system_store; //到店自提列表
  271. // 计算金额
  272. this.payMoneyNub();
  273. });
  274. },
  275. // 提交订单
  276. submit() {
  277. let obj = this;
  278. if (!this.addressData.real_name) {
  279. this.$api.msg('请选择收货地址');
  280. return false;
  281. }
  282. // 判断是否余额不足
  283. if (obj.payType == 'yue' && +obj.now_money < obj.payPrice) {
  284. uni.showModal({
  285. title: '提示',
  286. content: '账户余额不足!',
  287. showCancel: false,
  288. });
  289. return;
  290. }
  291. uni.showLoading({
  292. title: '支付中',
  293. mask: true
  294. })
  295. // 支付中
  296. obj.payLoding = true;
  297. // 判断是否为未支付订单中跳转进入
  298. obj.firstCreateOrder();
  299. },
  300. // 订单金额支付
  301. orderMoneyPay() {
  302. let obj = this;
  303. orderPay({
  304. uni: obj.orderId,
  305. // #ifdef H5
  306. from: 'weixin', //来源
  307. // #endif
  308. // #ifdef MP-WEIXIN
  309. from: 'routine', //来源
  310. // #endif
  311. // #ifdef APP-PLUS
  312. from: 'app', //来源
  313. // #endif
  314. paytype: obj.payType //支付类型 weixin-微信 yue-余额
  315. })
  316. .then(e => {
  317. // 判断是否微信小程序支付
  318. if (obj.payType == 'weixin') {
  319. // #ifdef H5 || MP
  320. let da = e.data.result.jsConfig;
  321. let data = {
  322. nonceStr: da.nonceStr,
  323. package: da.package,
  324. signType: da.signType,
  325. paySign: da.paySign,
  326. success: function(res) {
  327. obj.paySuccessTo();
  328. },
  329. fail: () => {
  330. uni.navigateTo({
  331. url: '/pages/order/order?state=0'
  332. });
  333. }
  334. };
  335. // #endif
  336. // #ifdef H5
  337. data.timestamp = da.timestamp;
  338. weixinObj.chooseWXPay(data);
  339. // #endif
  340. // #ifdef MP-WEIXIN
  341. data.timeStamp = da.timestamp;
  342. wx.requestPayment(data);
  343. // #endif
  344. // #ifdef APP
  345. console.log(e.data.result.jsConfig, '返回数值');
  346. uni.requestPayment({
  347. provider: 'wxpay',
  348. orderInfo: e.data.result.jsConfig,
  349. success(e) {
  350. obj.paySuccessTo();
  351. },
  352. fail: (e) => {
  353. console.log(e, '支付失败');
  354. uni.navigateTo({
  355. url: '/pages/order/order?state=0'
  356. });
  357. }
  358. })
  359. // #endif
  360. }
  361. // #ifdef APP
  362. if (obj.payType == 'ali') {
  363. uni.requestPayment({
  364. provider: 'alipay',
  365. orderInfo: e.data.result.jsConfig,
  366. success(e) {
  367. obj.paySuccessTo();
  368. },
  369. fail: (e) => {
  370. console.log(e, '支付失败');
  371. uni.navigateTo({
  372. url: '/pages/order/order?state=0'
  373. });
  374. }
  375. })
  376. }
  377. // #endif
  378. uni.hideLoading();
  379. obj.payLoding = false;
  380. })
  381. .catch(e => {
  382. // 支付完成
  383. uni.hideLoading();
  384. obj.payLoding = false;
  385. console.log(e);
  386. });
  387. },
  388. // 支付成功跳转
  389. paySuccessTo() {
  390. uni.hideLoading();
  391. uni.redirectTo({
  392. url: '/pages/user/money/paySuccess?orderid=' + this.orderId,
  393. });
  394. },
  395. // 初次订单创建
  396. firstCreateOrder() {
  397. let obj = this;
  398. // 获取下单页面数据
  399. let prepage = obj;
  400. let data = {
  401. real_name: prepage.addressData.real_name, //联系人名称
  402. phone: prepage.addressData.phone, //联系人号码
  403. addressId: prepage.addressData.id, //支付地址id
  404. useIntegral: 0, //是否积分抵扣1为是0为否
  405. payType: obj.payType, //支付类型 weixin-微信 yue-余额
  406. mark: prepage.desc, //备注
  407. // #ifdef H5
  408. from: 'weixin', //来源
  409. // #endif
  410. // #ifdef MP-WEIXIN
  411. from: 'routine', //来源
  412. // #endif
  413. // #ifdef APP-PLUS
  414. from: 'app', //来源
  415. // #endif
  416. shipping_type: obj.tabCurrentIndex, //提货方式 1 快递 2自提
  417. };
  418. // 判断是否需要读取非默认商家id
  419. if (obj.onShopId != -1) {
  420. data.store_id = obj.onShopId;
  421. } else {
  422. data.store_id = obj.shopDetail.id;
  423. }
  424. // 生成订单
  425. createOrderkey(data, obj.orderKey)
  426. .then(({
  427. data,
  428. status,
  429. msg
  430. }) => {
  431. // 判断是否支付失败
  432. if (data.status == 'ORDER_EXIST') {
  433. uni.showModal({
  434. title: '提示',
  435. content: msg,
  436. showCancel: false
  437. });
  438. uni.hideLoading();
  439. obj.payLoding = false;
  440. return;
  441. }
  442. // 保存订单号
  443. obj.orderId = data.result.orderId;
  444. // 判断是否为余额支付
  445. if (obj.payType == 'yue') {
  446. console.log('余额支付', status == 200 && data.status == 'SUCCESS');
  447. if (status == 200 && data.status == 'SUCCESS') {
  448. obj.paySuccessTo();
  449. } else {
  450. obj.$api.msg(msg);
  451. }
  452. } else {
  453. // 立即支付
  454. obj.orderMoneyPay();
  455. }
  456. })
  457. .catch(e => {
  458. uni.hideLoading();
  459. obj.payLoding = false;
  460. console.log(e);
  461. });
  462. }
  463. }
  464. };
  465. </script>
  466. <style lang="scss">
  467. page {
  468. background: $page-color-base;
  469. padding-bottom: 100rpx;
  470. }
  471. .address-section {
  472. border-radius: 20rpx;
  473. padding: 30rpx;
  474. margin: 0 $page-row-spacing;
  475. background: #fff;
  476. position: relative;
  477. .order-content {
  478. min-height: 100rpx;
  479. display: flex;
  480. align-items: center;
  481. .leftIcon {
  482. width: 36rpx;
  483. margin: 0 30rpx;
  484. }
  485. .addAddress {
  486. text-align: center;
  487. width: 100%;
  488. display: flex;
  489. justify-content: center;
  490. align-items: center;
  491. }
  492. }
  493. .cen {
  494. display: flex;
  495. flex-direction: column;
  496. font-size: 28rpx;
  497. color: $font-color-dark;
  498. width: 0px;
  499. flex-grow: 1;
  500. }
  501. .name {
  502. font-size: 34rpx;
  503. margin-right: 24rpx;
  504. }
  505. .address {
  506. margin-top: 16rpx;
  507. margin-right: 20rpx;
  508. color: $font-color-light;
  509. }
  510. }
  511. .goodsList {
  512. margin: 0 $page-row-spacing;
  513. padding: 30rpx;
  514. background: #fff;
  515. border-radius: 20rpx;
  516. margin-top: 30rpx;
  517. }
  518. .goods-section {
  519. .logo {
  520. display: block;
  521. width: 50rpx;
  522. height: 50rpx;
  523. border-radius: 100px;
  524. }
  525. .name {
  526. font-size: 30rpx;
  527. color: $font-color-base;
  528. margin-left: 24rpx;
  529. }
  530. .g-item {
  531. display: flex;
  532. image {
  533. flex-shrink: 0;
  534. display: block;
  535. width: 170rpx;
  536. height: 170rpx;
  537. border-radius: 4rpx;
  538. }
  539. .right {
  540. flex: 1;
  541. padding-left: 24rpx;
  542. overflow: hidden;
  543. .serverSet {
  544. font-size: 22rpx;
  545. color: $font-color-light;
  546. }
  547. }
  548. .title {
  549. font-size: 30rpx;
  550. color: $font-color-dark;
  551. }
  552. .spec {
  553. font-size: 26rpx;
  554. color: $font-color-light;
  555. }
  556. .price-box {
  557. display: flex;
  558. align-items: center;
  559. font-size: 32rpx;
  560. padding-top: 10rpx;
  561. color: $font-color-light;
  562. .price {
  563. margin-bottom: 4rpx;
  564. }
  565. .number {
  566. font-size: 26rpx;
  567. margin-left: 20rpx;
  568. }
  569. }
  570. .step-box {
  571. position: relative;
  572. }
  573. }
  574. }
  575. .yt-list {
  576. background: #fff;
  577. margin: 0 $page-row-spacing;
  578. margin-top: 30rpx;
  579. border-radius: 20rpx;
  580. }
  581. .yt-list-cell {
  582. display: flex;
  583. align-items: center;
  584. justify-content: space-between;
  585. padding: 10rpx 30rpx 10rpx 40rpx;
  586. line-height: 70rpx;
  587. position: relative;
  588. .checked,
  589. .noChecked {
  590. width: 36rpx;
  591. height: 36rpx;
  592. }
  593. .noChecked {
  594. border: 1px solid $font-color-light;
  595. border-radius: 100rpx;
  596. }
  597. &.cell-hover {
  598. background: #fafafa;
  599. }
  600. &.b-b:after {
  601. left: 30rpx;
  602. }
  603. .cell-icon {
  604. height: 32rpx;
  605. width: 32rpx;
  606. font-size: 22rpx;
  607. color: #fff;
  608. text-align: center;
  609. line-height: 32rpx;
  610. background: #f85e52;
  611. border-radius: 4rpx;
  612. margin-right: 12rpx;
  613. &.hb {
  614. background: #ffaa0e;
  615. }
  616. &.lpk {
  617. background: #3ab54a;
  618. }
  619. }
  620. .cell-more {
  621. align-self: center;
  622. font-size: 24rpx;
  623. color: $font-color-light;
  624. margin-left: 8rpx;
  625. margin-right: -10rpx;
  626. }
  627. .cell-tit {
  628. font-size: 26rpx;
  629. color: $font-color-light;
  630. margin-right: 10rpx;
  631. .orderIcon {
  632. width: 48rpx;
  633. }
  634. }
  635. .cell-tip {
  636. font-size: 26rpx;
  637. color: $font-color-dark;
  638. &.disabled {
  639. color: $font-color-light;
  640. }
  641. &.active {
  642. color: $base-color;
  643. }
  644. &.red {
  645. color: $base-color;
  646. }
  647. }
  648. &.desc-cell {
  649. .cell-tit {
  650. max-width: 90rpx;
  651. }
  652. }
  653. .desc {
  654. text-align: right;
  655. font-size: $font-base;
  656. color: $font-color-light;
  657. }
  658. }
  659. /* 支付列表 */
  660. .pay-list {
  661. padding-left: 40rpx;
  662. margin-top: 16rpx;
  663. background: #fff;
  664. .pay-item {
  665. display: flex;
  666. align-items: center;
  667. padding-right: 20rpx;
  668. line-height: 1;
  669. height: 110rpx;
  670. position: relative;
  671. }
  672. .icon-weixinzhifu {
  673. width: 80rpx;
  674. font-size: 40rpx;
  675. color: #6bcc03;
  676. }
  677. .icon-alipay {
  678. width: 80rpx;
  679. font-size: 40rpx;
  680. color: #06b4fd;
  681. }
  682. .icon-xuanzhong2 {
  683. display: flex;
  684. align-items: center;
  685. justify-content: center;
  686. width: 60rpx;
  687. height: 60rpx;
  688. font-size: 40rpx;
  689. color: $base-color;
  690. }
  691. .tit {
  692. font-size: 32rpx;
  693. color: $font-color-dark;
  694. flex: 1;
  695. }
  696. }
  697. .footer {
  698. position: fixed;
  699. left: 0;
  700. bottom: 0;
  701. z-index: 995;
  702. display: flex;
  703. align-items: center;
  704. width: 100%;
  705. height: 90rpx;
  706. justify-content: space-between;
  707. font-size: 30rpx;
  708. background-color: #fff;
  709. z-index: 998;
  710. color: $font-color-base;
  711. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  712. .price-content {
  713. padding-left: 30rpx;
  714. }
  715. .price-tip {
  716. color: $font-color-base;
  717. margin-left: 8rpx;
  718. }
  719. .price {
  720. font-size: 36rpx;
  721. color: $font-color-base;
  722. }
  723. .submit {
  724. display: flex;
  725. align-items: center;
  726. justify-content: center;
  727. width: 280rpx;
  728. height: 100%;
  729. color: #fff;
  730. font-size: 32rpx;
  731. background: $bg-green-gradual;
  732. &.submitNo {
  733. background-color: $font-color-disabled;
  734. }
  735. }
  736. }
  737. .tab-address {
  738. margin-bottom: 30rpx;
  739. margin-top: 0;
  740. .left {
  741. font-size: $font-base;
  742. }
  743. .right {
  744. font-size: $font-sm;
  745. color: #FFF;
  746. background: $bg-green-gradual;
  747. padding: 6rpx;
  748. border-radius: 10rpx;
  749. line-height: 1;
  750. .item {
  751. padding: 16rpx 20rpx;
  752. &.action {
  753. color: $uni-color-primary;
  754. background-color: #FFF;
  755. border-radius: 10rpx;
  756. }
  757. }
  758. }
  759. }
  760. .shop-box{
  761. .shop-top {
  762. width: 100%;
  763. .shop-title{
  764. width: 0px;
  765. flex-grow: 1;
  766. justify-content: flex-start;
  767. .shopImg {
  768. height: 65rpx;
  769. width: 65rpx;
  770. border-radius: 100rpx;
  771. margin-right: 20rpx;
  772. flex-shrink: 0;
  773. }
  774. .shop-name{
  775. font-weight: bold;
  776. font-size: $font-lg;
  777. }
  778. }
  779. .shop-tip{
  780. color: #FFF;
  781. padding: 5rpx 10rpx;
  782. font-size: $font-sm;
  783. background: linear-gradient(-90deg, #DCB876 0%, #EECD92 100%);
  784. border-radius: 5rpx;
  785. }
  786. }
  787. .shop-content{
  788. color: $font-color-light;
  789. font-size: $font-sm;
  790. }
  791. }
  792. </style>