confirm.vue 20 KB

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