confirm.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  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. ¥{{ finalPrice }}
  207. </view>
  208. </view>
  209. <button class="ss-reset-button ui-BG-Main-Gradient ss-r-40 submit-btn ui-Shadow-Main" @tap="onConfirm" v-if="!Android || (Android && finalPrice == 0)">
  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. import {
  237. isAndroid,
  238. } from '@/sheep/hooks/useApp'
  239. const Android = isAndroid();
  240. const state = reactive({
  241. orderPayload: {},
  242. orderInfo: {
  243. items: [], // 商品项列表
  244. price: {}, // 价格信息
  245. },
  246. addressInfo: {}, // 选择的收货地址
  247. showPoints: false, // 是否佣金抵扣
  248. showConsumptionPoints: false, // 是否消费分抵扣
  249. couponInfo: [], // 优惠劵列表
  250. showDiscount: false, // 是否展示营销活动
  251. currentMemberPoints: 0, //用户当前可用佣金
  252. currentMemberConsumptionPoints: 0, //用户当前可用消费分
  253. usedPoint: 0, //用户使用的佣金
  254. usedConsumptionPoints:0,//用户使用的消费分
  255. currentTotalPrice: 0, //当前的整个订单的总价格
  256. currentDeliveryPrice: 0 // 当前订单的总运费
  257. });
  258. const finalPrice = computed(() => {
  259. return fen2yuan(state.orderInfo.price.payPrice - (100 * state.usedPoint) - (100 * state.usedConsumptionPoints));
  260. });
  261. // 返回来的数据根据店铺名过滤 TODO
  262. const shopsByNames = computed(() => {
  263. // console.log(state.orderInfo.shopRespVOMap)
  264. const shops = {};
  265. try {
  266. Object.keys(state.orderInfo.shopRespVOMap).forEach(shopId => {
  267. const shopName = state.orderInfo.shopNameMap[shopId];
  268. if (shopName) {
  269. shops[shopName] = state.orderInfo.shopRespVOMap[shopId];
  270. shops[shopName].remark = ""
  271. shops[shopName].shopId = shopId
  272. }
  273. });
  274. } catch (e) {
  275. // console.log(e)
  276. }
  277. return shops;
  278. });
  279. // 计算所有商品的总数
  280. const totalItemCount = computed(() => {
  281. let totalCount = 0;
  282. Object.values(shopsByNames.value).forEach(shop => {
  283. shop.items.forEach(item => {
  284. totalCount += item.count;
  285. });
  286. });
  287. return totalCount;
  288. });
  289. // 选择地址
  290. function onSelectAddress() {
  291. uni.$once('SELECT_ADDRESS', (e) => {
  292. changeConsignee(e.addressInfo);
  293. });
  294. // console.log(state.orderPayload.spuType)
  295. // 如果是虚拟商品 进入选虚拟地址
  296. if (state.orderPayload.spuType) {
  297. sheep.$router.go('/pages/user/address/list');
  298. } else {
  299. sheep.$router.go('/pages/user/dummyAddress/list');
  300. }
  301. }
  302. // 更改收货人地址&计算订单信息
  303. async function changeConsignee(addressInfo = {}) {
  304. if (!isEmpty(addressInfo)) {
  305. state.addressInfo = addressInfo;
  306. }
  307. await getOrderInfo();
  308. }
  309. // 使用佣金
  310. async function onInputPoints(points) {
  311. if (points == undefined) {
  312. points = 0
  313. }
  314. const payprice = state.currentTotalPrice
  315. console.log(points,payprice)
  316. // state.orderInfo.price.payPrice = (payprice - points) * 100
  317. state.usedPoint = points
  318. // 与消费分互斥
  319. state.usedConsumptionPoints = 0
  320. state.showPoints = false;
  321. }
  322. // 使用消费分
  323. function onInputConsumptionPoints(points) {
  324. if (points == undefined) {
  325. points = 0
  326. }
  327. const payprice = state.currentTotalPrice
  328. // state.orderInfo.price.payPrice = (payprice - points) * 100
  329. state.usedConsumptionPoints = points
  330. // 与佣金互斥
  331. state.usedPoint = 0
  332. state.showConsumptionPoints = false;
  333. }
  334. // 提交订单
  335. function onConfirm() {
  336. if (!state.addressInfo.id) {
  337. sheep.$helper.toast(t('confirm.select_shipping_address'))
  338. return;
  339. }
  340. // 如果使用的佣金为0 那就不需要提示
  341. if (parseFloat(state.usedPoint) && parseFloat(state.usedPoint) > parseFloat(state.currentMemberPoints)) {
  342. sheep.$helper.toast(t('confirm.insufficient_commission'));
  343. return;
  344. }
  345. if (parseFloat(state.usedConsumptionPoints) && parseFloat(state.usedConsumptionPoints) > parseFloat(state.currentMemberConsumptionPoints)) {
  346. sheep.$helper.toast(t('confirm.insufficient_consumption_points'));
  347. return;
  348. }
  349. if (parseFloat(state.usedPoint) && parseFloat(state.usedConsumptionPoints) ) {
  350. sheep.$helper.toast(t('confirm.commission_points_no_mix'));
  351. return;
  352. }
  353. submitOrder();
  354. }
  355. // 截取小数 不保留四舍五入
  356. /**
  357. * @param number 数字
  358. * @param decimals 小数点位数
  359. *
  360. */
  361. function customRound(number, decimals) {
  362. let factor = Math.pow(10, decimals);
  363. let tempNumber = Math.floor(number * factor) / factor;
  364. return tempNumber.toFixed(decimals);
  365. }
  366. // 创建订单&跳转
  367. async function submitOrder() {
  368. // 处理每个店铺的留言 以{店铺id:留言}的形式返回
  369. const shops = shopsByNames.value;
  370. const shopRemarks = {};
  371. Object.keys(shops).forEach(shopName => {
  372. const shop = shops[shopName];
  373. shopRemarks[shop.shopId] = shop.remark;
  374. });
  375. // 如果不是高精度商品 就走原来的程序,如果是高精度的商品,就拿到高精度返回的商品总价 / 100 然后保留四位小数再干掉两位,实现佣金可以刚好大于当前佣金的0.01
  376. const usedPoint = state.orderPayload.highPrecision ? customRound((state.orderInfo.price.virtualPayPrice / 100 ), 2): state.usedPoint;
  377. const {
  378. code,
  379. data
  380. } = await OrderApi.createOrder({
  381. items: state.orderPayload.items,
  382. couponId: state.orderPayload.couponId,
  383. addressId: state.addressInfo.id,
  384. deliveryType: state.orderPayload.spuType == 1 ? 1 : 3, // TODO 非繁人:需要支持【门店自提】
  385. pointStatus: false, // TODO 非繁人:需要支持【佣金选择】
  386. combinationActivityId: state.orderPayload.combinationActivityId,
  387. combinationHeadId: state.orderPayload.combinationHeadId,
  388. seckillActivityId: state.orderPayload.seckillActivityId,
  389. payIntegral: usedPoint,
  390. payConsumptionPoints:state.usedConsumptionPoints,
  391. shopRemarks: shopRemarks
  392. });
  393. if (code !== 0) {
  394. return;
  395. }
  396. // 更新购物车列表,如果来自购物车
  397. if (state.orderPayload.items[0].cartId > 0) {
  398. sheep.$store('cart').getList();
  399. }
  400. // 跳转到支付页面
  401. sheep.$router.redirect('/pages/pay/index', {
  402. id: data.payOrderId,
  403. type:1
  404. });
  405. }
  406. // 检查库存 & 计算订单价格
  407. async function getOrderInfo() {
  408. // 每次查询设置订单之前 看有没有评论 如果有评论就存到shopRemarks
  409. const shops = shopsByNames.value
  410. let shopRemarks = {};
  411. if (Object.keys(shops).length !== 0) {
  412. Object.keys(shops).forEach(shopName => {
  413. const shop = shops[shopName];
  414. shopRemarks[shopName] = shop.remark;
  415. });
  416. }
  417. const {
  418. data,
  419. code
  420. } = await OrderApi.settlementOrder({
  421. items: state.orderPayload.items,
  422. couponId: state.orderPayload.couponId,
  423. addressId: state.addressInfo.id,
  424. deliveryType: state.orderPayload.spuType == 1 ? 1 : 3, // TODO 非繁人:需要支持【门店自提】
  425. pointStatus: false, // TODO 非繁人:需要支持【佣金选择】
  426. combinationActivityId: state.orderPayload.combinationActivityId,
  427. combinationHeadId: state.orderPayload.combinationHeadId,
  428. seckillActivityId: state.orderPayload.seckillActivityId,
  429. usedPoint: state.usedPoint,
  430. addressType: state.orderPayload.spuType == 1 ? 1 : 2 //如果是虚拟产品
  431. });
  432. if (code !== 0) {
  433. return;
  434. }
  435. state.orderInfo = data;
  436. // 如果shopRemarks有评论的话 就放回shopsByNames
  437. if (Object.keys(shopRemarks).length !== 0) {
  438. Object.keys(shopRemarks).forEach(shopName => {
  439. shopsByNames.value[shopName].remark = shopRemarks[shopName]
  440. });
  441. }
  442. // 设置收货地址
  443. if (state.orderInfo.address) {
  444. state.addressInfo = state.orderInfo.address;
  445. }
  446. // console.log(state.orderInfo)/
  447. state.currentMemberPoints = state.orderInfo.currentQuota > 0 ? points2point(state.orderInfo.currentQuota) : 0
  448. state.currentMemberConsumptionPoints = state.orderInfo.consumePoints > 0 ? points2point(state.orderInfo.consumePoints) : 0
  449. state.currentTotalPrice = fen2yuan(state.orderInfo.price.payPrice)
  450. state.currentDeliveryPrice = fen2yuan(state.orderInfo.price.deliveryPrice)
  451. // console.log("父",state.currentTotalPrice)
  452. if (state.orderPayload.spuPayType == 2) {
  453. state.usedPoint = state.currentTotalPrice - 0.01
  454. // console.log(state.spuType)
  455. }
  456. }
  457. // 获取可用优惠券
  458. // async function getCoupons() {
  459. // const {
  460. // code,
  461. // data
  462. // } = await CouponApi.getMatchCouponList(
  463. // state.orderInfo.price.payPrice,
  464. // state.orderInfo.items.map((item) => item.spuId),
  465. // state.orderPayload.items.map((item) => item.skuId),
  466. // state.orderPayload.items.map((item) => item.categoryId),
  467. // );
  468. // if (code === 0) {
  469. // state.couponInfo = data;
  470. // }
  471. // }
  472. onLoad(async (options) => {
  473. if (!options.data) {
  474. sheep.$helper.toast('参数不正确,请检查!');
  475. return;
  476. }
  477. state.orderPayload = JSON.parse(options.data);
  478. // console.log(state.orderPayload)
  479. await getOrderInfo();
  480. });
  481. </script>
  482. <style lang="scss" scoped>
  483. :deep() {
  484. .uni-input-wrapper {
  485. width: 320rpx;
  486. }
  487. .uni-easyinput__content-input {
  488. font-size: 28rpx;
  489. height: 72rpx;
  490. text-align: right !important;
  491. padding-right: 0 !important;
  492. .uni-input-input {
  493. font-weight: 500;
  494. color: #333333;
  495. font-size: 26rpx;
  496. height: 32rpx;
  497. margin-top: 4rpx;
  498. }
  499. }
  500. .uni-easyinput__content {
  501. display: flex !important;
  502. align-items: center !important;
  503. justify-content: right !important;
  504. }
  505. }
  506. .order-card-box,
  507. .address-box,
  508. .total-card-box {
  509. background: white;
  510. margin: 20rpx;
  511. border-radius: 20rpx;
  512. }
  513. .title-text {
  514. font-size: 30rpx;
  515. font-weight: bold;
  516. line-height: 42rpx;
  517. }
  518. .score-img {
  519. width: 36rpx;
  520. height: 36rpx;
  521. margin: 0 4rpx;
  522. }
  523. .order-item {
  524. height: 80rpx;
  525. .item-title {
  526. font-size: 28rpx;
  527. font-weight: 400;
  528. }
  529. .item-value {
  530. font-size: 28rpx;
  531. font-weight: 500;
  532. font-family: OPPOSANS;
  533. }
  534. .text-disabled {
  535. color: #bbbbbb;
  536. }
  537. .item-icon {
  538. color: $dark-9;
  539. }
  540. .remark-input {
  541. text-align: right;
  542. }
  543. .item-placeholder {
  544. color: $dark-9;
  545. font-size: 26rpx;
  546. text-align: right;
  547. }
  548. }
  549. .total-box-footer {
  550. height: 90rpx;
  551. .total-num {
  552. color: #333333;
  553. font-family: OPPOSANS;
  554. }
  555. }
  556. .footer-box {
  557. height: 100rpx;
  558. .submit-btn {
  559. width: 230rpx;
  560. height: 70rpx;
  561. font-size: 28rpx;
  562. font-weight: 500;
  563. .goto-pay-text {
  564. line-height: 28rpx;
  565. }
  566. }
  567. .cancel-btn {
  568. width: 230rpx;
  569. height: 80rpx;
  570. font-size: 26rpx;
  571. background-color: #e5e5e5;
  572. color: $dark-9;
  573. }
  574. }
  575. .title {
  576. font-size: 36rpx;
  577. font-weight: bold;
  578. color: #333333;
  579. }
  580. .subtitle {
  581. font-size: 28rpx;
  582. color: #999999;
  583. }
  584. .cicon-checkbox {
  585. font-size: 36rpx;
  586. color: var(--ui-BG-Main);
  587. }
  588. .cicon-box {
  589. font-size: 36rpx;
  590. color: #999999;
  591. }
  592. </style>