confirmCreateOrder.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. <template>
  2. <view>
  3. <view class="inner-box">
  4. <!-- 收货人 -->
  5. <view class="address-box" v-if="address==null" @click="openAddress()">
  6. <view class="left">
  7. <view class="name-box">
  8. <text class="text name">添加收货地址</text>
  9. </view>
  10. </view>
  11. <view class="arrow-box">
  12. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow_gray.png"
  13. mode=""></image>
  14. </view>
  15. </view>
  16. <view class="address-box" v-if="address!=null" @click="openAddress()">
  17. <view class="left">
  18. <view class="name-box">
  19. <text class="text name">{{address.realName}}</text>
  20. <text class="text" v-if="address.phone!=null">{{address.phone}}</text>
  21. </view>
  22. <view class="address">
  23. {{address.province}}{{address.city}}{{address.district}}{{address.detail}}
  24. </view>
  25. </view>
  26. <view class="arrow-box">
  27. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow_gray.png"
  28. mode=""></image>
  29. </view>
  30. </view>
  31. <!-- 积分 -->
  32. <view class="price-info">
  33. <view class="price-info-title">价格明细</view>
  34. <view class="points">
  35. <view class="left">
  36. <text class="text">商品总价</text>
  37. </view>
  38. <view class="right" style="align-items: baseline;">
  39. <text class="price-info-unit">¥</text>
  40. <text class="price-info-num">{{(orderData.totalPrice||0).toFixed(2)}}</text>
  41. </view>
  42. </view>
  43. <view class="points" @click="couponVisible = true;">
  44. <view class="left">
  45. <text class="text">优惠券</text>
  46. </view>
  47. <view class="right">
  48. <text class="text">{{couponText}}</text>
  49. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/arrow4.png"
  50. mode=""></image>
  51. </view>
  52. </view>
  53. <view class="points">
  54. <view class="left">
  55. <text class="text">运费</text>
  56. </view>
  57. <view class="right">
  58. <text class="text"
  59. v-if="address!=null">{{orderData.payDelivery==null||orderData.payDelivery==0?'免运费':orderData.payDelivery.toFixed(2)}}</text>
  60. <text class="text" v-if="address==null">--</text>
  61. </view>
  62. </view>
  63. <!-- 备注 -->
  64. <view class="remarks">
  65. <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
  66. </view>
  67. <view class="points">
  68. <view class="left">
  69. <text class="text">合计</text>
  70. </view>
  71. <view class="right" style="align-items: baseline;">
  72. <text class="price-info-unit">¥</text>
  73. <text class="price-info-num">{{(orderData.payPrice||0).toFixed(2)}}</text>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="btn-foot">
  79. <view class="right">
  80. <view class="total">
  81. <text class="label">合计:</text>
  82. <view class="price">
  83. <text class="unit">¥</text>
  84. <text class="num">{{(orderData.payPrice||0).toFixed(2)}}</text>
  85. </view>
  86. </view>
  87. <view class="btn" @click="submitOrder">提交订单</view>
  88. </view>
  89. </view>
  90. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  91. <view class="coupon" style="height:650rpx;">
  92. <div class="coupon-list" v-if="couponsList.length > 0">
  93. <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  94. <div class="money">
  95. <image v-if="item.status==0&&item.useMinPrice<=orderData.totalPrice" class="img"
  96. src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon1.png"
  97. mode="widthFix"></image>
  98. <image v-if="item.status!=0||item.useMinPrice>orderData.totalPrice" class="img"
  99. src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/coupon2.png"
  100. mode="widthFix"></image>
  101. <div style="z-index: 999;">
  102. ¥<span class="num">{{ item.couponPrice }}</span>
  103. </div>
  104. <div class="pic-num">满{{ item.useMinPrice }}元可用</div>
  105. </div>
  106. <div class="text">
  107. <div class="condition line1">
  108. {{ item.couponTitle }}
  109. </div>
  110. <div class="data acea-row row-between-wrapper">
  111. <div>{{ item.limitTime }}到期</div>
  112. <div v-if=" item.status==0&&item.useMinPrice<=orderData.totalPrice"
  113. class="bnt bg-color-red" @click="couponSelect(item)">选择</div>
  114. <div v-else-if="item.status!=0" class="bnt " style="background-color: #878787;">已失效
  115. </div>
  116. <div v-else-if="item.useMinPrice>orderData.totalPrice" class="bnt "
  117. style="background-color: #878787;">未达门槛</div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <view v-if="couponsList.length == 0" class="no-data-box">
  123. <image src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/no_data.png"
  124. mode="aspectFit"></image>
  125. <view class="empty-title">暂无数据</view>
  126. </view>
  127. </view>
  128. </popupBottom>
  129. </view>
  130. </template>
  131. <script>
  132. import {
  133. createliveOrder, // 创建订单
  134. createReward, // 创建中奖订单
  135. userAddr, // 获取用户收货地址
  136. computed,
  137. computedReward,
  138. liveOrderKey, // 生成订单key
  139. } from "@/api/order.js"
  140. import {
  141. curCoupon
  142. } from "@/api/living.js"
  143. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  144. export default {
  145. components: {
  146. popupBottom
  147. },
  148. data() {
  149. return {
  150. orderData: {
  151. totalPrice: null
  152. },
  153. cityId: null,
  154. address: null,
  155. addressId: null,
  156. totalNum: null,
  157. orderKey: null,
  158. goodsId: null,
  159. liveId: null,
  160. orderList: [],
  161. temps: [],
  162. couponUserId: null,
  163. couponText: "请选择",
  164. couponsList: [],
  165. couponVisible: false,
  166. carts: [],
  167. checked: false,
  168. cartIds: null,
  169. confirmParam: [],
  170. type: '',
  171. isFirstLoad: true,
  172. recordId: ''
  173. }
  174. },
  175. onLoad(options) {
  176. console.log("确认订单", options)
  177. this.orderKey = options.orderKey || '';
  178. this.liveId = options.liveId || '';
  179. this.goodsId = options.goodsId || '';
  180. this.productId = options.productId || '';
  181. this.totalNum = Number(options.totalNum) || 0;
  182. this.type = options.type;
  183. this.isFirstLoad = true;
  184. this.recordId = options.recordId || '';
  185. if (options.type == 'win') {
  186. this.getKey()
  187. }
  188. },
  189. onShow() {
  190. this.openCoupon()
  191. if (this.type == 'win') {
  192. this.computedRewardOrder()
  193. } else {
  194. this.computedOrder()
  195. }
  196. if(!this.cityId){
  197. this.getUserAddr()
  198. }
  199. // this.getUserAddr()
  200. uni.$on('updateAddress', (e) => {
  201. this.address = e;
  202. this.addressId = e.addressId;
  203. this.cityId = e.cityId;
  204. console.log("地址", e.cityId)
  205. });
  206. },
  207. mounted() {
  208. // uni.$on('updateAddress', (e) => {
  209. // this.address = e;
  210. // this.addressId = e.addressId;
  211. // });
  212. },
  213. onUnload() {
  214. uni.$off('updateAddress', this.handleAddressUpdate);
  215. },
  216. beforeDestroy() {
  217. uni.$off('updateAddress');
  218. },
  219. methods: {
  220. handleAddressUpdate(item) {
  221. console.log('接收到地址数据:', item);
  222. this.cityId = item.cityId;
  223. this.address = item;
  224. this.addressId = item.addressId;
  225. if (this.type == 'win') {
  226. this.computedRewardOrder()
  227. } else {
  228. this.computedOrder()
  229. }
  230. },
  231. // 获取用户收货地址
  232. getUserAddr() {
  233. userAddr().then(res => {
  234. if (res.code == 200) {
  235. console.log("用户收货地址>>>>", res.data)
  236. if (res.data && !this.address) {
  237. this.address = res.data;
  238. }
  239. if (res.data && res.data.cityIds) {
  240. this.cityId = res.data.cityIds;
  241. }
  242. if (this.type == 'win') {
  243. this.computedRewardOrder()
  244. } else {
  245. this.computedOrder()
  246. }
  247. } else {
  248. uni.showToast({
  249. title: res.msg,
  250. icon: 'none'
  251. });
  252. }
  253. },
  254. rej => {}
  255. );
  256. },
  257. // 获得key
  258. getKey() {
  259. liveOrderKey().then(res => {
  260. if (res.code == 200) {
  261. this.orderKey = res.orderKey
  262. } else {
  263. uni.showToast({
  264. title: res.msg,
  265. icon: 'none'
  266. });
  267. }
  268. },
  269. rej => {}
  270. );
  271. },
  272. // 查询创建订单信息
  273. computedOrder() {
  274. let data = {
  275. cityId: this.cityId || '',
  276. totalNum: this.totalNum,
  277. productId: this.productId,
  278. orderKey: this.orderKey,
  279. couponUserId: this.couponUserId || ''
  280. }
  281. computed(data).then(res => {
  282. if (res.code == 200) {
  283. console.log("查询创建订单信息>>>>", res.data)
  284. this.orderData = res.data
  285. } else {
  286. uni.showToast({
  287. title: res.msg,
  288. icon: 'none'
  289. });
  290. }
  291. },
  292. rej => {}
  293. );
  294. },
  295. // 查询中奖创建订单信息
  296. computedRewardOrder() {
  297. let data = {
  298. cityId: this.cityId || '',
  299. productId: this.productId,
  300. orderKey: this.orderKey,
  301. totalNum: 1,
  302. }
  303. computedReward(data).then(res => {
  304. if (res.code == 200) {
  305. console.log("查询创建订单信息>>>>", res.data)
  306. this.orderData = res.data || {}
  307. } else {
  308. uni.showToast({
  309. title: res.msg,
  310. icon: 'none'
  311. });
  312. }
  313. },
  314. rej => {}
  315. );
  316. },
  317. // 创建订单
  318. createLiveOrder() {
  319. let data = {
  320. cityId: this.cityId,
  321. liveId: this.liveId,
  322. orderKey: this.orderKey,
  323. userName: this.address.realName,
  324. userPhone: this.address.phone,
  325. userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
  326. this.address
  327. .detail,
  328. cartId: "5",
  329. productId: this.productId,
  330. totalNum: this.totalNum,
  331. couponUserId: this.couponUserId
  332. }
  333. return createliveOrder(data).then(res => {
  334. if (res.code == 200) {
  335. this.orderList = res.order;
  336. return res.order;
  337. } else {
  338. uni.showToast({
  339. title: res.msg,
  340. icon: 'none'
  341. });
  342. throw new Error(res.msg);
  343. }
  344. });
  345. },
  346. // 创建抽奖订单
  347. createRewardOrder() {
  348. let data = {
  349. cityId: this.cityId,
  350. liveId: this.liveId,
  351. orderKey: this.orderKey,
  352. userName: this.address.realName,
  353. userPhone: this.address.phone,
  354. userAddress: this.address.province + ' ' + this.address.city + ' ' + this.address.district + ' ' +
  355. this.address.detail,
  356. cartId: "5",
  357. productId: this.productId,
  358. totalNum: 1,
  359. couponUserId: this.couponUserId,
  360. recordId: this.recordId
  361. }
  362. return createReward(data).then(res => {
  363. if (res.code == 200) {
  364. this.orderList = res.order || {};
  365. return res.order || {};
  366. } else {
  367. uni.showToast({
  368. title: res.msg,
  369. icon: 'none'
  370. });
  371. throw new Error(res.msg);
  372. }
  373. });
  374. },
  375. couponSelect(item) {
  376. this.couponText = "-¥" + (item.couponPrice || 0).toFixed(2);
  377. this.couponUserId = item.id;
  378. this.couponVisible = false;
  379. if (this.type == 'win') {
  380. this.computedRewardOrder()
  381. } else {
  382. this.computedOrder()
  383. }
  384. },
  385. // 自动选择最大优惠券
  386. autoSelectMaxCoupon() {
  387. if (this.couponsList.length === 0 || !this.isFirstLoad) {
  388. return;
  389. }
  390. const availableCoupons = this.couponsList.filter(item =>
  391. item.status === 0 && item.useMinPrice <= (this.orderData.totalPrice || 0)
  392. );
  393. if (availableCoupons.length === 0) {
  394. return;
  395. }
  396. availableCoupons.sort((a, b) => b.couponPrice - a.couponPrice);
  397. const maxCoupon = availableCoupons[0];
  398. this.couponText = "-¥" + (maxCoupon.couponPrice || 0).toFixed(2);
  399. this.couponUserId = maxCoupon.id;
  400. console.log('自动选择最大优惠券:', maxCoupon);
  401. this.isFirstLoad = false;
  402. // 重新计算订单价格
  403. if (this.type == 'win') {
  404. this.computedRewardOrder()
  405. } else {
  406. this.computedOrder()
  407. }
  408. },
  409. openCoupon() {
  410. console.log("点了优惠券列表")
  411. if (!this.liveId || !this.goodsId) {
  412. console.log('缺少必要参数,跳过优惠券请求');
  413. return;
  414. }
  415. const data = {
  416. liveId: this.liveId,
  417. goodsId: this.goodsId
  418. };
  419. curCoupon(data).then(res => {
  420. this.couponsList = res.data || [];
  421. if (this.isFirstLoad) {
  422. setTimeout(() => {
  423. this.autoSelectMaxCoupon();
  424. }, 100);
  425. }
  426. })
  427. },
  428. openAddress() {
  429. uni.navigateTo({
  430. url: '/pages_user/user/address'
  431. })
  432. },
  433. // 提交订单
  434. async submitOrder() {
  435. try {
  436. if (this.orderKey == null) {
  437. uni.showToast({
  438. icon: 'none',
  439. title: '订单KEY不存在',
  440. });
  441. return;
  442. }
  443. if (this.address == null) {
  444. uni.showToast({
  445. icon: 'none',
  446. title: '收货地址不能为空',
  447. });
  448. return;
  449. }
  450. let orderList;
  451. if (this.type == "win") {
  452. orderList = await this.createRewardOrder(); // 中奖订单
  453. } else {
  454. orderList = await this.createLiveOrder(); // 购买订单
  455. }
  456. console.log("orderList>>", orderList)
  457. const orderListStr = encodeURIComponent(JSON.stringify(orderList));
  458. uni.navigateTo({
  459. url: `/pages_shopping/live/paymentOrder?orderList=${orderListStr}&couponUserId=${this.couponUserId}&type=${this.type}`
  460. });
  461. } catch (error) {
  462. console.error('提交订单错误:', error);
  463. uni.showToast({
  464. title: error.message || '提交订单失败',
  465. icon: 'none'
  466. });
  467. }
  468. },
  469. }
  470. }
  471. </script>
  472. <style lang="scss">
  473. .inner-box {
  474. padding: 20rpx 20rpx 140rpx;
  475. .address-box {
  476. margin-bottom: 20rpx;
  477. box-sizing: border-box;
  478. min-height: 171rpx;
  479. background: #FFFFFF;
  480. border-radius: 16rpx;
  481. background-repeat: no-repeat;
  482. background-size: 100% 30rpx;
  483. background-position: left bottom;
  484. padding: 38rpx 30rpx 36rpx;
  485. display: flex;
  486. align-items: center;
  487. justify-content: space-between;
  488. .left {
  489. width: 92%;
  490. .name-box {
  491. display: flex;
  492. align-items: center;
  493. .text {
  494. font-size: 32rpx;
  495. font-family: PingFang SC;
  496. font-weight: bold;
  497. color: #111111;
  498. line-height: 1;
  499. &.name {
  500. margin-right: 30rpx;
  501. }
  502. }
  503. }
  504. .address {
  505. font-size: 28rpx;
  506. font-family: PingFang SC;
  507. font-weight: 500;
  508. color: #666666;
  509. line-height: 42rpx;
  510. text-align: left;
  511. margin-top: 23rpx;
  512. }
  513. }
  514. .arrow-box {
  515. width: 12rpx;
  516. height: 23rpx;
  517. display: flex;
  518. align-items: cenetr;
  519. justify-content: cenetr;
  520. image {
  521. width: 100%;
  522. height: 100%;
  523. }
  524. }
  525. }
  526. .price-info {
  527. background: #FFFFFF;
  528. border-radius: 16rpx;
  529. &-title {
  530. padding: 30rpx 30rpx 20rpx 30rpx;
  531. font-family: PingFang SC, PingFang SC;
  532. font-weight: 500;
  533. font-size: 30rpx;
  534. color: #111;
  535. }
  536. &-unit {
  537. font-size: 24rpx;
  538. }
  539. &-num {
  540. font-size: 28rpx;
  541. }
  542. }
  543. .remarks {
  544. height: 88upx;
  545. padding: 0 30upx;
  546. background: #FFFFFF;
  547. border-radius: 16upx;
  548. margin-top: 20upx;
  549. display: flex;
  550. align-items: center;
  551. input {
  552. width: 100%;
  553. font-size: 28upx;
  554. font-family: PingFang SC;
  555. font-weight: 500;
  556. color: #000000;
  557. }
  558. .input {
  559. font-size: 28upx;
  560. font-family: PingFang SC;
  561. font-weight: 500;
  562. color: #999999;
  563. }
  564. }
  565. .points {
  566. height: 88rpx;
  567. padding: 0 30rpx;
  568. background: #FFFFFF;
  569. border-radius: 16rpx;
  570. display: flex;
  571. align-items: center;
  572. justify-content: space-between;
  573. .left {
  574. display: flex;
  575. align-items: center;
  576. image {
  577. width: 28rpx;
  578. height: 28rpx;
  579. margin-right: 20rpx;
  580. }
  581. .text {
  582. font-size: 28rpx;
  583. font-family: PingFang SC;
  584. font-weight: 500;
  585. color: #666666;
  586. }
  587. }
  588. .right {
  589. display: flex;
  590. align-items: center;
  591. .text {
  592. font-size: 28rpx;
  593. font-family: PingFang SC;
  594. font-weight: 500;
  595. color: #111111;
  596. }
  597. image {
  598. margin-left: 15rpx;
  599. width: 14rpx;
  600. height: 24rpx;
  601. }
  602. }
  603. }
  604. }
  605. .btn-foot {
  606. box-sizing: border-box;
  607. width: 100%;
  608. height: 121rpx;
  609. background: #FFFFFF;
  610. padding: 16rpx 30rpx 16rpx 60rpx;
  611. display: flex;
  612. align-items: center;
  613. justify-content: flex-end;
  614. position: fixed;
  615. left: 0;
  616. bottom: 0;
  617. z-index: 99;
  618. .right {
  619. display: flex;
  620. align-items: center;
  621. .total {
  622. display: flex;
  623. align-items: flex-end;
  624. margin-right: 36rpx;
  625. .label {
  626. font-size: 26rpx;
  627. font-family: PingFang SC;
  628. font-weight: 500;
  629. color: #999999;
  630. line-height: 1.5;
  631. }
  632. .price {
  633. display: flex;
  634. align-items: flex-end;
  635. .unit {
  636. font-size: 32rpx;
  637. font-family: PingFang SC;
  638. font-weight: bold;
  639. color: #FF6633;
  640. line-height: 1.2;
  641. margin-right: 10rpx;
  642. }
  643. .num {
  644. font-size: 50rpx;
  645. font-family: PingFang SC;
  646. font-weight: bold;
  647. color: #FF6633;
  648. line-height: 1;
  649. }
  650. }
  651. }
  652. .btn {
  653. width: 200rpx;
  654. height: 88rpx;
  655. line-height: 88rpx;
  656. text-align: center;
  657. font-size: 30rpx;
  658. font-family: PingFang SC;
  659. font-weight: bold;
  660. color: #FFFFFF;
  661. background: #2BC7B9;
  662. border-radius: 44rpx;
  663. }
  664. }
  665. }
  666. .coupon {
  667. height: 100%;
  668. }
  669. /*优惠券列表公共*/
  670. .coupon-list {}
  671. .coupon-list .item {
  672. display: flex;
  673. flex-direction: column;
  674. justify-content: center;
  675. align-items: center;
  676. width: 100%;
  677. height: 1.7 * 100rpx;
  678. margin-bottom: 0.16 * 100rpx;
  679. }
  680. .coupon-list .item .money {
  681. background-size: 100% 100%;
  682. width: 2.4 * 100rpx;
  683. height: 100%;
  684. color: #fff;
  685. font-size: 0.36 * 100rpx;
  686. font-weight: bold;
  687. text-align: center;
  688. display: flex;
  689. flex-direction: column;
  690. align-items: center;
  691. justify-content: center;
  692. position: relative;
  693. }
  694. .coupon-list .item .money .img {
  695. position: absolute;
  696. width: 2.4 * 100rpx;
  697. height: 100%;
  698. color: #fff;
  699. }
  700. .coupon-list .item .money .num {
  701. font-size: 0.6 * 100rpx;
  702. }
  703. .coupon-list .item .money .pic-num {
  704. font-size: 20rpx;
  705. z-index: 99;
  706. }
  707. .coupon-list .item .text {
  708. width: 4.5 * 100rpx;
  709. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  710. background-color: #fff;
  711. box-sizing: border-box;
  712. }
  713. .coupon-list .item .text .condition {
  714. font-size: 0.3 * 100rpx;
  715. color: #282828;
  716. height: 0.93 * 100rpx;
  717. line-height: 0.93 * 100rpx;
  718. border-bottom: 1px solid #f0f0f0;
  719. }
  720. .coupon-list .item .text .data {
  721. font-size: 0.2 * 100rpx;
  722. color: #999;
  723. height: 0.76 * 100rpx;
  724. }
  725. .coupon-list .item .text .data .bnt {
  726. width: 1.36 * 100rpx;
  727. height: 0.44 * 100rpx;
  728. border-radius: 0.22 * 100rpx;
  729. font-size: 0.22 * 100rpx;
  730. color: #fff;
  731. text-align: center;
  732. line-height: 0.44 * 100rpx;
  733. background-color: red;
  734. }
  735. </style>