confirm.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. <template>
  2. <s-layout :title="t('confirm.confirm_order')">
  3. <!-- TODO:这个判断先删除 v-if="state.orderInfo.need_address === 1" -->
  4. <view class="bg-white address-box ss-m-b-14 ss-r-b-10" @tap="onSelectAddress">
  5. <s-address-item :item="state.addressInfo" :spuType="state.orderPayload.spuType" :hasBorderBottom="false">
  6. <view class="ss-rest-button">
  7. <text class="_icon-forward" />
  8. </view>
  9. </s-address-item>
  10. </view>
  11. <!-- 商品信息 -->
  12. <!-- {{shopsByNames}} -->
  13. <view class="order-card-box ss-m-b-14" v-for="(items, name) in shopsByNames" :key="name">
  14. <view class="title-text ss-p-x-20 ss-p-t-20">
  15. {{name}}
  16. </view>
  17. <s-goods-item v-for="item in items.items" :key="item?.skuId" :img="item?.picUrl" :title="item?.spuName"
  18. :skuText="item?.properties?.map((property) => property.valueName).join(' ')"
  19. :price="item.highPrecisionPrice ? item?.highPrecisionPrice :item?.price " :num="item?.count"
  20. :virtualPirce="item.highPrecisionPrice ? true :false " />
  21. <view class="order-item ss-flex ss-col-center ss-row-between ss-p-x-20 bg-white ss-r-10">
  22. <view class="item-title">{{ t('confirm.shipping_fee') }}</view>
  23. <view class="ss-flex ss-col-center">
  24. {{items.price.deliveryPrice?"¥"+fen2yuan(items.price.deliveryPrice):t('confirm.free_shipping')}}
  25. </view>
  26. </view>
  27. <!-- 暂不做开发票 -->
  28. <!-- <view class="order-item ss-flex ss-col-center ss-row-between ss-p-x-20 bg-white ss-r-10">
  29. <view class="item-title">开具发票</view>
  30. <view class="ss-flex ss-col-center">
  31. <text class="item-value" :class="state.couponInfo.length > 0 ? 'text-red' : 'text-disabled'">
  32. {{
  33. state.couponInfo.length > 0 ? state.couponInfo.length + ' 张可用' : '不开具发票'
  34. }}
  35. </text>
  36. <text class="_icon-forward item-icon" />
  37. </view>
  38. </view> -->
  39. <view class="order-item ss-flex ss-col-center ss-row-between ss-p-x-20 bg-white ss-r-10">
  40. <view class="item-title">{{ t('confirm.order_note') }}</view>
  41. <view class="ss-flex ss-col-center">
  42. <uni-easyinput maxlength="20" :placeholder="t('confirm.communication_advice')" v-model="items.remark" :inputBorder="false"
  43. :clearable="false" />
  44. </view>
  45. </view>
  46. <view class="order-item ss-flex ss-col-center ss-row-between ss-p-x-20 bg-white ss-r-10"
  47. v-if="state.orderPayload.spuType == 0">
  48. <view class="item-title">{{ t('confirm.quantity') }}</view>
  49. <view class="ss-flex ss-col-center">
  50. {{totalItemCount}}
  51. </view>
  52. </view>
  53. <view class="order-item ss-flex ss-col-center ss-row-between ss-p-x-20 bg-white ss-r-10" v-else>
  54. <view class="item-title">{{ t('common.total') }}</view>
  55. <view class="ss-flex ss-col-center">
  56. <image src="@/static/icon/points.png" v-if="state.orderPayload.spuPayType == 2"
  57. style="width:30rpx;height:30rpx"></image>
  58. <text v-else>¥</text>
  59. {{fen2yuan(items.price.payPrice)}}
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 价格信息 -->
  64. <view class="bg-white total-card-box ss-p-20 ss-m-b-14 ss-r-10">
  65. <view class="title-text">
  66. {{ t('confirm.price_details') }}
  67. </view>
  68. <view class="total-box-content border-bottom">
  69. <view class="order-item ss-flex ss-col-center ss-row-between">
  70. <view class="item-title">{{ t('confirm.total_price') }} {{ t('confirm.total_items',{count:totalItemCount}) }}</view>
  71. <view class="ss-flex ss-col-center">
  72. <text class="item-value ss-m-r-24">
  73. <image src="@/static/icon/points.png" v-if="state.orderPayload.spuPayType == 2"
  74. style="width:30rpx;height:30rpx"></image>
  75. <text v-else>¥</text>
  76. <text
  77. v-if="state.orderPayload.highPrecision">{{ fen2yuan6(state.orderInfo.price.virtualTotalPrice) }}
  78. </text>
  79. <text v-else>
  80. {{ fen2yuan(state.orderInfo.price.totalPrice) }}
  81. </text>
  82. </text>
  83. </view>
  84. </view>
  85. <!-- TODO 非繁人:接入佣金 -->
  86. <view class="order-item ss-flex ss-col-center ss-row-between">
  87. <view class="item-title">{{ t('confirm.shipping_fee') }}</view>
  88. <view class="ss-flex ss-col-center">
  89. <text class="item-value ss-m-r-24">
  90. <image src="@/static/icon/points.png" v-if="state.orderPayload.spuPayType == 2"
  91. style="width:30rpx;height:30rpx"></image>
  92. <text v-else>¥</text>
  93. {{ fen2yuan(state.orderInfo.price.deliveryPrice) }}
  94. </text>
  95. </view>
  96. </view>
  97. <view class="order-item ss-flex ss-col-center ss-row-between" v-if="state.orderPayload.spuPayType != 2">
  98. <view class="item-title">{{ t('confirm.commission_deduction') }}</view>
  99. <view class="ss-flex ss-col-center" @tap="state.showPoints = true">
  100. <!-- <text class="item-value text-red">
  101. </text> -->
  102. <text class="item-value" :class="state.usedPoint > 0 ? 'text-red' : 'text-disabled'">
  103. {{ state.usedPoint > 0 ? t('confirm.deduction',{count:state.usedPoint}) : t('confirm.no_commission') }}
  104. </text>
  105. <text class="_icon-forward item-icon" />
  106. </view>
  107. </view>
  108. <view class="order-item ss-flex ss-col-center ss-row-between" v-if="state.orderPayload.spuPayType != 2">
  109. <view class="item-title">{{ t('confirm.consumption_point_deduction') }}</view>
  110. <view class="ss-flex ss-col-center" @tap="state.showConsumptionPoints = true">
  111. <!-- <text class="item-value text-red">
  112. </text> -->
  113. <text class="item-value" :class="state.usedConsumptionPoints > 0 ? 'text-red' : 'text-disabled'">
  114. {{ state.usedConsumptionPoints > 0 ? t('confirm.deduction',{count:state.usedConsumptionPoints}) : t('confirm.no_consumption_points') }}
  115. </text>
  116. <text class="_icon-forward item-icon" />
  117. </view>
  118. </view>
  119. <!-- 优惠劵:只有 type = 0 普通订单(非拼团、秒杀、砍价),才可以使用优惠劵 -->
  120. <!-- 暂时隐藏优惠卷 -->
  121. <!-- <view
  122. class="order-item ss-flex ss-col-center ss-row-between"
  123. v-if="state.orderInfo.type === 0"
  124. >
  125. <view class="item-title">优惠券</view>
  126. <view class="ss-flex ss-col-center" @tap="state.showCoupon = true">
  127. <text class="item-value text-red" v-if="state.orderPayload.couponId > 0">
  128. -¥{{ fen2yuan(state.orderInfo.price.couponPrice) }}
  129. </text>
  130. <text
  131. class="item-value"
  132. :class="state.couponInfo.length > 0 ? 'text-red' : 'text-disabled'"
  133. v-else
  134. >
  135. {{
  136. state.couponInfo.length > 0 ? state.couponInfo.length + ' 张可用' : '暂无可用优惠券'
  137. }}
  138. </text>
  139. <text class="_icon-forward item-icon" />
  140. </view>
  141. </view> -->
  142. <!-- <view
  143. class="order-item ss-flex ss-col-center ss-row-between"
  144. v-if="state.orderInfo.price.discountPrice > 0"
  145. >
  146. <view class="item-title">活动优惠</view>
  147. <view class="ss-flex ss-col-center">
  148. @tap="state.showDiscount = true" TODO 非繁人:后续要把优惠信息打进去
  149. <text class="item-value text-red">
  150. -¥{{ fen2yuan(state.orderInfo.price.discountPrice) }}
  151. </text>
  152. <text class="_icon-forward item-icon" />
  153. </view>
  154. </view> -->
  155. </view>
  156. <view class="total-box-footer ss-font-28 ss-flex ss-row-right ss-col-center ss-m-r-28">
  157. <view class="total-num ss-m-r-20">
  158. {{ t('confirm.total_items_count',{count:totalItemCount}) }}
  159. </view>
  160. <view>{{ t('common.total') }}:</view>
  161. <view class="total-num text-red ss-flex">
  162. <image src="@/static/icon/points.png" class='ss-m-r-10' v-if="state.orderPayload.spuPayType == 2"
  163. style="width:30rpx;height:30rpx"></image>
  164. <text v-else>¥</text>
  165. <text
  166. v-if="state.orderPayload.highPrecision">{{ fen2yuan6(state.orderInfo.price.virtualTotalPrice) }}
  167. </text>
  168. <text
  169. v-else-if="state.orderPayload.spuPayType == 2">{{ fen2yuan(state.orderInfo.price.payPrice) - 0.01 }}
  170. </text>
  171. <text v-else>{{ fen2yuan(state.orderInfo.price.payPrice) }} </text>
  172. </view>
  173. </view>
  174. </view>
  175. <!-- 佣金-->
  176. <s-points-pop v-model="state.couponInfo" :currentMemberPoints="state.currentMemberPoints"
  177. :currentTotalPrice="state.currentTotalPrice" :currentDeliveryPrice="state.currentDeliveryPrice"
  178. :show="state.showPoints" @confirm="onInputPoints" @close="state.showPoints = false" />
  179. <!-- 消费分 -->
  180. <s-consumptionPoints-pop v-model="state.couponInfo" :currentMemberConsumptionPoints="state.currentMemberConsumptionPoints"
  181. :currentTotalPrice="state.currentTotalPrice" :currentDeliveryPrice="state.currentDeliveryPrice"
  182. :show="state.showConsumptionPoints" @confirm="onInputConsumptionPoints" @close="state.showConsumptionPoints = false" />
  183. <!-- 满额折扣弹框 TODO 非繁人:后续要把优惠信息打进去 -->
  184. <!-- <s-discount-list
  185. v-model="state.orderInfo"
  186. :show="state.showDiscount"
  187. @close="state.showDiscount = false"
  188. /> -->
  189. <!-- 底部 -->
  190. <su-fixed bottom :opacity="false" bg="bg-white" placeholder :noFixed="false" :index="200">
  191. <view class="footer-box border-top ss-flex ss-row-between ss-p-x-20 ss-col-center">
  192. <view class="total-box-footer ss-flex ss-col-center">
  193. <view v-if="state.orderPayload.highPrecision">
  194. <image src="@/static/icon/points.png" v-if="state.orderPayload.spuPayType == 2"
  195. style="width:30rpx;height:30rpx"></image>
  196. {{ fen2yuan6(state.orderInfo.price.virtualPayPrice) - 0.01 }}
  197. ¥0.01
  198. </view>
  199. <view class="total-num ss-font-30 text-red " v-else-if="state.orderPayload.spuPayType == 2">
  200. <image src="@/static/icon/points.png" v-if="state.orderPayload.spuPayType == 2"
  201. style="width:30rpx;height:30rpx"></image>
  202. {{ state.usedPoint }}
  203. ¥0.01
  204. </view>
  205. <view class="total-num ss-font-30 text-red" v-else>
  206. ¥{{ fen2yuan((state.orderInfo.price.payPrice - (100 * state.usedPoint) - (100 * state.usedConsumptionPoints) ) ) }}
  207. </view>
  208. </view>
  209. <button class="ss-reset-button ui-BG-Main-Gradient ss-r-40 submit-btn ui-Shadow-Main" @tap="onConfirm">
  210. {{ t('confirm.submit_order') }}
  211. </button>
  212. </view>
  213. </su-fixed>
  214. </s-layout>
  215. </template>
  216. <script setup>
  217. import {
  218. reactive,
  219. computed
  220. } from 'vue';
  221. import {
  222. onLoad
  223. } from '@dcloudio/uni-app';
  224. import sheep from '@/sheep';
  225. import {
  226. isEmpty
  227. } from 'lodash';
  228. import OrderApi from '@/sheep/api/trade/order';
  229. import CouponApi from '@/sheep/api/promotion/coupon';
  230. import {
  231. fen2yuan,
  232. points2point,
  233. fen2yuan6
  234. } from '@/sheep/hooks/useGoods';
  235. import { t } from '@/locale'
  236. const state = reactive({
  237. orderPayload: {},
  238. orderInfo: {
  239. items: [], // 商品项列表
  240. price: {}, // 价格信息
  241. },
  242. addressInfo: {}, // 选择的收货地址
  243. showPoints: false, // 是否佣金抵扣
  244. showConsumptionPoints: false, // 是否消费分抵扣
  245. couponInfo: [], // 优惠劵列表
  246. showDiscount: false, // 是否展示营销活动
  247. currentMemberPoints: 0, //用户当前可用佣金
  248. currentMemberConsumptionPoints: 0, //用户当前可用消费分
  249. usedPoint: 0, //用户使用的佣金
  250. usedConsumptionPoints:0,//用户使用的消费分
  251. currentTotalPrice: 0, //当前的整个订单的总价格
  252. currentDeliveryPrice: 0 // 当前订单的总运费
  253. });
  254. // 返回来的数据根据店铺名过滤 TODO
  255. const shopsByNames = computed(() => {
  256. // console.log(state.orderInfo.shopRespVOMap)
  257. const shops = {};
  258. try {
  259. Object.keys(state.orderInfo.shopRespVOMap).forEach(shopId => {
  260. const shopName = state.orderInfo.shopNameMap[shopId];
  261. if (shopName) {
  262. shops[shopName] = state.orderInfo.shopRespVOMap[shopId];
  263. shops[shopName].remark = ""
  264. shops[shopName].shopId = shopId
  265. }
  266. });
  267. } catch (e) {
  268. // console.log(e)
  269. }
  270. return shops;
  271. });
  272. // 计算所有商品的总数
  273. const totalItemCount = computed(() => {
  274. let totalCount = 0;
  275. Object.values(shopsByNames.value).forEach(shop => {
  276. shop.items.forEach(item => {
  277. totalCount += item.count;
  278. });
  279. });
  280. return totalCount;
  281. });
  282. // 选择地址
  283. function onSelectAddress() {
  284. uni.$once('SELECT_ADDRESS', (e) => {
  285. changeConsignee(e.addressInfo);
  286. });
  287. // console.log(state.orderPayload.spuType)
  288. // 如果是虚拟商品 进入选虚拟地址
  289. if (state.orderPayload.spuType) {
  290. sheep.$router.go('/pages/user/address/list');
  291. } else {
  292. sheep.$router.go('/pages/user/dummyAddress/list');
  293. }
  294. }
  295. // 更改收货人地址&计算订单信息
  296. async function changeConsignee(addressInfo = {}) {
  297. if (!isEmpty(addressInfo)) {
  298. state.addressInfo = addressInfo;
  299. }
  300. await getOrderInfo();
  301. }
  302. // 使用佣金
  303. async function onInputPoints(points) {
  304. if (points == undefined) {
  305. points = 0
  306. }
  307. const payprice = state.currentTotalPrice
  308. console.log(points,payprice)
  309. // state.orderInfo.price.payPrice = (payprice - points) * 100
  310. state.usedPoint = points
  311. // 与消费分互斥
  312. state.usedConsumptionPoints = 0
  313. state.showPoints = false;
  314. }
  315. // 使用消费分
  316. function onInputConsumptionPoints(points) {
  317. if (points == undefined) {
  318. points = 0
  319. }
  320. const payprice = state.currentTotalPrice
  321. // state.orderInfo.price.payPrice = (payprice - points) * 100
  322. state.usedConsumptionPoints = points
  323. // 与佣金互斥
  324. state.usedPoint = 0
  325. state.showConsumptionPoints = false;
  326. }
  327. // 提交订单
  328. function onConfirm() {
  329. if (!state.addressInfo.id) {
  330. sheep.$helper.toast(t('confirm.select_shipping_address'))
  331. return;
  332. }
  333. // 如果使用的佣金为0 那就不需要提示
  334. if (parseFloat(state.usedPoint) && parseFloat(state.usedPoint) > parseFloat(state.currentMemberPoints)) {
  335. sheep.$helper.toast(t('confirm.insufficient_commission'));
  336. return;
  337. }
  338. if (parseFloat(state.usedConsumptionPoints) && parseFloat(state.usedConsumptionPoints) > parseFloat(state.currentMemberConsumptionPoints)) {
  339. sheep.$helper.toast(t('confirm.insufficient_consumption_points'));
  340. return;
  341. }
  342. if (parseFloat(state.usedPoint) && parseFloat(state.usedConsumptionPoints) ) {
  343. sheep.$helper.toast(t('confirm.commission_points_no_mix'));
  344. return;
  345. }
  346. submitOrder();
  347. }
  348. // 截取小数 不保留四舍五入
  349. /**
  350. * @param number 数字
  351. * @param decimals 小数点位数
  352. *
  353. */
  354. function customRound(number, decimals) {
  355. let factor = Math.pow(10, decimals);
  356. let tempNumber = Math.floor(number * factor) / factor;
  357. return tempNumber.toFixed(decimals);
  358. }
  359. // 创建订单&跳转
  360. async function submitOrder() {
  361. // 处理每个店铺的留言 以{店铺id:留言}的形式返回
  362. const shops = shopsByNames.value;
  363. const shopRemarks = {};
  364. Object.keys(shops).forEach(shopName => {
  365. const shop = shops[shopName];
  366. shopRemarks[shop.shopId] = shop.remark;
  367. });
  368. // 如果不是高精度商品 就走原来的程序,如果是高精度的商品,就拿到高精度返回的商品总价 / 100 然后保留四位小数再干掉两位,实现佣金可以刚好大于当前佣金的0.01
  369. const usedPoint = state.orderPayload.highPrecision ? customRound((state.orderInfo.price.virtualPayPrice / 100 ), 2): state.usedPoint;
  370. const {
  371. code,
  372. data
  373. } = await OrderApi.createOrder({
  374. items: state.orderPayload.items,
  375. couponId: state.orderPayload.couponId,
  376. addressId: state.addressInfo.id,
  377. deliveryType: state.orderPayload.spuType == 1 ? 1 : 3, // TODO 非繁人:需要支持【门店自提】
  378. pointStatus: false, // TODO 非繁人:需要支持【佣金选择】
  379. combinationActivityId: state.orderPayload.combinationActivityId,
  380. combinationHeadId: state.orderPayload.combinationHeadId,
  381. seckillActivityId: state.orderPayload.seckillActivityId,
  382. payIntegral: usedPoint,
  383. payConsumptionPoints:state.usedConsumptionPoints,
  384. shopRemarks: shopRemarks
  385. });
  386. if (code !== 0) {
  387. return;
  388. }
  389. // 更新购物车列表,如果来自购物车
  390. if (state.orderPayload.items[0].cartId > 0) {
  391. sheep.$store('cart').getList();
  392. }
  393. // 跳转到支付页面
  394. sheep.$router.redirect('/pages/pay/index', {
  395. id: data.payOrderId,
  396. type:1
  397. });
  398. }
  399. // 检查库存 & 计算订单价格
  400. async function getOrderInfo() {
  401. // 每次查询设置订单之前 看有没有评论 如果有评论就存到shopRemarks
  402. const shops = shopsByNames.value
  403. let shopRemarks = {};
  404. if (Object.keys(shops).length !== 0) {
  405. Object.keys(shops).forEach(shopName => {
  406. const shop = shops[shopName];
  407. shopRemarks[shopName] = shop.remark;
  408. });
  409. }
  410. const {
  411. data,
  412. code
  413. } = await OrderApi.settlementOrder({
  414. items: state.orderPayload.items,
  415. couponId: state.orderPayload.couponId,
  416. addressId: state.addressInfo.id,
  417. deliveryType: state.orderPayload.spuType == 1 ? 1 : 3, // TODO 非繁人:需要支持【门店自提】
  418. pointStatus: false, // TODO 非繁人:需要支持【佣金选择】
  419. combinationActivityId: state.orderPayload.combinationActivityId,
  420. combinationHeadId: state.orderPayload.combinationHeadId,
  421. seckillActivityId: state.orderPayload.seckillActivityId,
  422. usedPoint: state.usedPoint,
  423. addressType: state.orderPayload.spuType == 1 ? 1 : 2 //如果是虚拟产品
  424. });
  425. if (code !== 0) {
  426. return;
  427. }
  428. state.orderInfo = data;
  429. // 如果shopRemarks有评论的话 就放回shopsByNames
  430. if (Object.keys(shopRemarks).length !== 0) {
  431. Object.keys(shopRemarks).forEach(shopName => {
  432. shopsByNames.value[shopName].remark = shopRemarks[shopName]
  433. });
  434. }
  435. // 设置收货地址
  436. if (state.orderInfo.address) {
  437. state.addressInfo = state.orderInfo.address;
  438. }
  439. // console.log(state.orderInfo)/
  440. state.currentMemberPoints = state.orderInfo.currentQuota > 0 ? points2point(state.orderInfo.currentQuota) : 0
  441. state.currentMemberConsumptionPoints = state.orderInfo.consumePoints > 0 ? points2point(state.orderInfo.consumePoints) : 0
  442. state.currentTotalPrice = fen2yuan(state.orderInfo.price.payPrice)
  443. state.currentDeliveryPrice = fen2yuan(state.orderInfo.price.deliveryPrice)
  444. // console.log("父",state.currentTotalPrice)
  445. if (state.orderPayload.spuPayType == 2) {
  446. state.usedPoint = state.currentTotalPrice - 0.01
  447. // console.log(state.spuType)
  448. }
  449. }
  450. // 获取可用优惠券
  451. // async function getCoupons() {
  452. // const {
  453. // code,
  454. // data
  455. // } = await CouponApi.getMatchCouponList(
  456. // state.orderInfo.price.payPrice,
  457. // state.orderInfo.items.map((item) => item.spuId),
  458. // state.orderPayload.items.map((item) => item.skuId),
  459. // state.orderPayload.items.map((item) => item.categoryId),
  460. // );
  461. // if (code === 0) {
  462. // state.couponInfo = data;
  463. // }
  464. // }
  465. onLoad(async (options) => {
  466. if (!options.data) {
  467. sheep.$helper.toast('参数不正确,请检查!');
  468. return;
  469. }
  470. state.orderPayload = JSON.parse(options.data);
  471. // console.log(state.orderPayload)
  472. await getOrderInfo();
  473. });
  474. </script>
  475. <style lang="scss" scoped>
  476. :deep() {
  477. .uni-input-wrapper {
  478. width: 320rpx;
  479. }
  480. .uni-easyinput__content-input {
  481. font-size: 28rpx;
  482. height: 72rpx;
  483. text-align: right !important;
  484. padding-right: 0 !important;
  485. .uni-input-input {
  486. font-weight: 500;
  487. color: #333333;
  488. font-size: 26rpx;
  489. height: 32rpx;
  490. margin-top: 4rpx;
  491. }
  492. }
  493. .uni-easyinput__content {
  494. display: flex !important;
  495. align-items: center !important;
  496. justify-content: right !important;
  497. }
  498. }
  499. .order-card-box,
  500. .address-box,
  501. .total-card-box {
  502. background: white;
  503. margin: 20rpx;
  504. border-radius: 20rpx;
  505. }
  506. .title-text {
  507. font-size: 30rpx;
  508. font-weight: bold;
  509. line-height: 42rpx;
  510. }
  511. .score-img {
  512. width: 36rpx;
  513. height: 36rpx;
  514. margin: 0 4rpx;
  515. }
  516. .order-item {
  517. height: 80rpx;
  518. .item-title {
  519. font-size: 28rpx;
  520. font-weight: 400;
  521. }
  522. .item-value {
  523. font-size: 28rpx;
  524. font-weight: 500;
  525. font-family: OPPOSANS;
  526. }
  527. .text-disabled {
  528. color: #bbbbbb;
  529. }
  530. .item-icon {
  531. color: $dark-9;
  532. }
  533. .remark-input {
  534. text-align: right;
  535. }
  536. .item-placeholder {
  537. color: $dark-9;
  538. font-size: 26rpx;
  539. text-align: right;
  540. }
  541. }
  542. .total-box-footer {
  543. height: 90rpx;
  544. .total-num {
  545. color: #333333;
  546. font-family: OPPOSANS;
  547. }
  548. }
  549. .footer-box {
  550. height: 100rpx;
  551. .submit-btn {
  552. width: 230rpx;
  553. height: 70rpx;
  554. font-size: 28rpx;
  555. font-weight: 500;
  556. .goto-pay-text {
  557. line-height: 28rpx;
  558. }
  559. }
  560. .cancel-btn {
  561. width: 230rpx;
  562. height: 80rpx;
  563. font-size: 26rpx;
  564. background-color: #e5e5e5;
  565. color: $dark-9;
  566. }
  567. }
  568. .title {
  569. font-size: 36rpx;
  570. font-weight: bold;
  571. color: #333333;
  572. }
  573. .subtitle {
  574. font-size: 28rpx;
  575. color: #999999;
  576. }
  577. .cicon-checkbox {
  578. font-size: 36rpx;
  579. color: var(--ui-BG-Main);
  580. }
  581. .cicon-box {
  582. font-size: 36rpx;
  583. color: #999999;
  584. }
  585. </style>