createOrder.vue 19 KB

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