order.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <view class="content">
  3. <view class="navbar">
  4. <view v-for="(item, index) in navList" :key="index" class="nav-item"
  5. :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
  6. </view>
  7. <swiper :current="tabCurrentIndex" class="swiper-box" duration="300" @change="changeTab">
  8. <swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
  9. <scroll-view class="list-scroll-content" scroll-y @scrolltolower="loadData">
  10. <!-- 空白页 -->
  11. <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
  12. <!-- 订单列表 -->
  13. <view @click="goToOrderDetail(item)" v-for="(item, index) in tabItem.orderList" :key="index"
  14. class="order-item">
  15. <view class="i-top b-b">
  16. <text class="time">{{ item._add_time }}</text>
  17. <text class="state" :style="{ color: item.stateTipColor }">{{ item._status._title }}</text>
  18. <!-- <text v-if="item.status === 0" class="del-btn iconfont icondelete" @click.stop="deleteOrder(item, index)"></text> -->
  19. </view>
  20. <scroll-view v-if="item.cartInfo.length > 1" class="goods-box" scroll-x>
  21. <view v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex" class="goods-item">
  22. <image class="goods-img" :src="goodsItem.productInfo.image" mode="scaleToFill"></image>
  23. </view>
  24. </scroll-view>
  25. <view v-if="item.cartInfo.length === 1" class="goods-box-single"
  26. v-for="(goodsItem, goodsIndex) in item.cartInfo" :key="goodsIndex">
  27. <image class="goods-img" :src="goodsItem.productInfo.image" mode="scaleToFill"></image>
  28. <view class="right">
  29. <text class="title clamp">{{ goodsItem.productInfo.store_name }}</text>
  30. <text
  31. class="attr-box">{{ goodsItem.attrInfo ? goodsItem.attrInfo.suk : '' }}x{{ goodsItem.cart_num }}</text>
  32. <text class="price"
  33. v-if="!goodsItem.productInfo.attrInfo.integral">{{ goodsItem.productInfo.price | moneyNum }}</text>
  34. <text class="price"
  35. v-else>{{ goodsItem.productInfo.price | moneyNum }}+{{ goodsItem.productInfo.attrInfo.integral | moneyNum }}积分</text>
  36. </view>
  37. </view>
  38. <view class="price-box">
  39. <text class="num">{{ item.cartInfo.length }}</text>
  40. 件商品 邮费:
  41. <text class="price blank">{{ item.pay_postage | moneyNum }}</text>
  42. 合计:
  43. <text class="price">{{ item.pay_price | moneyNum }}</text>
  44. </view>
  45. <view class="action-box b-t" v-if="item.status != 5">
  46. <button v-if="item._status._type == 0" class="action-btn"
  47. @click.stop="cancelOrder(item)">取消订单</button>
  48. <button v-if="item._status._type == 0" @click.stop="orderPay(item)"
  49. class="action-btn recom">立即支付</button>
  50. <button v-if="item._status._type == 3" class="action-btn"
  51. @click.stop="goToOrderDetail(item)">去评价</button>
  52. <button v-if="item._status._type == 2" @click.stop="orderTake(item, index)"
  53. class="action-btn">确认收货</button>
  54. <button v-if="item._status._type == 1 && item.pink_id == 0 " class="action-btn"
  55. @click.stop="orderRefund(item)">申请退款
  56. </button>
  57. <!-- <button v-if="item._status._type == 1" class="action-btn" @click.stop="showModal=true">投注积分</button> -->
  58. <!-- <button v-if="item._status._type == 1 && item.pink_id >0 " class="action-btn share"
  59. @click.stop="share(item)">分享助力
  60. </button> -->
  61. </view>
  62. </view>
  63. <uni-load-more :status="tabItem.loadingType"></uni-load-more>
  64. </scroll-view>
  65. </swiper-item>
  66. </swiper>
  67. <!-- 积分投注弹窗 -->
  68. <view class="mask" v-if="showModal">
  69. <view class="pop" v-if="showModal">
  70. <view class="pop-box">
  71. <image class="pop-img" src="https://xipin.liuniu946.com/img/gift.png"></image>
  72. <text class="pop-title">积分投注</text>
  73. <input class="number" type="number" placeholder="输入您的投注数目" />
  74. </view>
  75. <view class="close-box">
  76. <image class="close" src="https://xipin.liuniu946.com/img/close.png" @click="showModal = false">
  77. </image>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  85. import empty from '@/components/empty';
  86. import {
  87. mapState
  88. } from 'vuex';
  89. import {
  90. saveUrl
  91. } from '@/utils/loginUtils.js';
  92. import {
  93. orderList,
  94. orderCancel,
  95. orderDel,
  96. orderTake
  97. } from '@/api/order.js';
  98. export default {
  99. filters: {
  100. // 过滤金额为数字
  101. moneyNum: function(value) {
  102. return +value;
  103. }
  104. },
  105. components: {
  106. uniLoadMore,
  107. empty
  108. },
  109. data() {
  110. return {
  111. tabCurrentIndex: 0,
  112. state: '',
  113. showModal: false,
  114. navList: [{
  115. state: '',
  116. text: '全部',
  117. loadingType: 'more',
  118. orderList: [],
  119. page: 1, //当前页数
  120. limit: 10 //每次信息条数
  121. },
  122. {
  123. state: 0,
  124. text: '待付款',
  125. loadingType: 'more',
  126. orderList: [],
  127. page: 1, //当前页数
  128. limit: 10 //每次信息条数
  129. },
  130. {
  131. state: 1,
  132. text: '待发货',
  133. loadingType: 'more',
  134. orderList: [],
  135. page: 1, //当前页数
  136. limit: 10 //每次信息条数
  137. },
  138. {
  139. state: 2,
  140. text: '待收货',
  141. loadingType: 'more',
  142. orderList: [],
  143. page: 1, //当前页数
  144. limit: 10 //每次信息条数
  145. },
  146. {
  147. state: 3,
  148. text: '评价',
  149. loadingType: 'more',
  150. orderList: [],
  151. page: 1, //当前页数
  152. limit: 10 //每次信息条数
  153. },
  154. {
  155. state: -3,
  156. text: '售后',
  157. loadingType: 'more',
  158. orderList: [],
  159. page: 1, //当前页数
  160. limit: 10 //每次信息条数
  161. }
  162. ]
  163. };
  164. },
  165. onLoad(options) {
  166. this.state = options.state;
  167. saveUrl();
  168. /**
  169. * 修复app端点击除全部订单外的按钮进入时不加载数据的问题
  170. * 替换onLoad下代码即可
  171. */
  172. this.tabCurrentIndex = +options.state;
  173. // #ifndef MP
  174. this.loadData();
  175. // #endif
  176. // #ifdef MP
  177. if (options.state == 0) {
  178. this.loadData();
  179. }
  180. // #endif
  181. },
  182. computed: {
  183. ...mapState(['userInfo'])
  184. },
  185. methods: {
  186. // 确认收货
  187. orderTake(item, index) {
  188. let obj = this;
  189. uni.showModal({
  190. title: '是否确认收货?',
  191. success: function(res) {
  192. if (res.confirm) {
  193. orderTake({
  194. uni: item.order_id
  195. })
  196. .then(e => {
  197. obj.navList[obj.tabCurrentIndex].orderList.splice(index, 1);
  198. uni.showToast({
  199. title: '收货成功',
  200. icon: 'none'
  201. });
  202. })
  203. .catch(e => {
  204. console.log(e);
  205. });
  206. } else if (res.cancel) {
  207. console.log('用户点击取消');
  208. }
  209. }
  210. });
  211. },
  212. //跳转到订单详情
  213. goToOrderDetail(e) {
  214. uni.navigateTo({
  215. url: '/pages/order/orderDetail?id=' + e.order_id
  216. });
  217. },
  218. //分享
  219. share(e) {
  220. console.log(e);
  221. uni.navigateTo({
  222. url: '/pages/product/details?pink_id=' + e.pink_id
  223. });
  224. },
  225. // 申请退款
  226. orderRefund(e) {
  227. uni.navigateTo({
  228. url: '/pages/order/orderRefund?id=' + e.order_id
  229. });
  230. },
  231. // 订单支付
  232. orderPay(e) {
  233. uni.navigateTo({
  234. url: '/pages/money/pay?type=1&ordid=' + e.order_id + '&money=' + e.pay_price
  235. });
  236. },
  237. //获取订单列表
  238. loadData(source) {
  239. //这里是将订单挂载到tab列表下
  240. let index = this.tabCurrentIndex;
  241. let navItem = this.navList[index];
  242. let state = navItem.state;
  243. if (source === 'tabChange' && navItem.loaded === true) {
  244. //tab切换只有第一次需要加载数据
  245. return;
  246. }
  247. if (navItem.loadingType === 'loading') {
  248. //防止重复加载
  249. return;
  250. }
  251. if (navItem.loadingType === 'noMore') {
  252. //防止重复加载
  253. return;
  254. }
  255. // 修改当前对象状态为加载中
  256. navItem.loadingType = 'loading';
  257. orderList({
  258. type: state,
  259. page: navItem.page,
  260. limit: navItem.limit
  261. })
  262. .then(({
  263. data
  264. }) => {
  265. let arr = data.map(e => {
  266. let b = this.orderStateExp(e.status);
  267. e.stateTip = b.stateTip;
  268. e.stateTipColor = b.stateTipColor;
  269. return e;
  270. });
  271. navItem.orderList = navItem.orderList.concat(arr);
  272. // console.log(navItem.orderList);
  273. navItem.page++;
  274. if (navItem.limit == data.length) {
  275. //判断是否还有数据, 有改为 more, 没有改为noMore
  276. navItem.loadingType = 'more';
  277. return;
  278. } else {
  279. //判断是否还有数据, 有改为 more, 没有改为noMore
  280. navItem.loadingType = 'noMore';
  281. }
  282. this.$set(navItem, 'loaded', true);
  283. })
  284. .catch(e => {
  285. console.log(e);
  286. });
  287. },
  288. //swiper 切换
  289. changeTab(e) {
  290. this.tabCurrentIndex = e.target.current;
  291. this.loadData('tabChange');
  292. },
  293. //顶部tab点击
  294. tabClick(index) {
  295. this.tabCurrentIndex = index;
  296. },
  297. //删除订单
  298. deleteOrder(item, index) {
  299. uni.showModal({
  300. content: '是否确认删除订单?',
  301. success: res => {
  302. uni.showLoading({
  303. title: '请稍后'
  304. });
  305. setTimeout((e) => {
  306. orderDel({
  307. uni: item.order_id
  308. })
  309. .then(e => {
  310. this.navList[this.tabCurrentIndex].orderList.splice(index, 1);
  311. uni.hideLoading();
  312. })
  313. .catch(e => {
  314. console.log(e);
  315. uni.hideLoading();
  316. });
  317. }, 1000)
  318. },
  319. fail: e => {
  320. console.log(e);
  321. }
  322. });
  323. },
  324. //取消订单
  325. cancelOrder(item) {
  326. uni.showModal({
  327. title: '订单取消',
  328. content: '是否取消订单?',
  329. success: e => {
  330. if (e.confirm) {
  331. uni.showLoading({
  332. title: '请稍后'
  333. });
  334. orderCancel({
  335. id: item.order_id
  336. })
  337. .then(e => {
  338. uni.showToast({
  339. title: '取消成功',
  340. duration: 2000,
  341. position: 'top'
  342. });
  343. })
  344. .catch(e => {
  345. console.log(e);
  346. });
  347. //取消订单后删除待付款中该项
  348. let list = this.navList[this.tabCurrentIndex].orderList;
  349. let index = list.findIndex(val => val.id === item.id);
  350. index !== -1 && list.splice(index, 1);
  351. uni.hideLoading();
  352. }
  353. }
  354. });
  355. },
  356. //订单状态文字和颜色
  357. orderStateExp(state) {
  358. let stateTip = '',
  359. stateTipColor = '#fa436a';
  360. switch (+state) {
  361. case 0:
  362. stateTip = '全部';
  363. break;
  364. case 1:
  365. stateTip = '待付款';
  366. break;
  367. case 2:
  368. stateTip = '待发货';
  369. break;
  370. case 3:
  371. stateTip = '待收货';
  372. break;
  373. case 4:
  374. stateTip = '已完成';
  375. stateTipColor = '#5dbc7c';
  376. break;
  377. case 9:
  378. stateTip = '订单已关闭';
  379. stateTipColor = '#909399';
  380. break;
  381. //更多自定义
  382. }
  383. return {
  384. stateTip,
  385. stateTipColor
  386. };
  387. }
  388. }
  389. };
  390. </script>
  391. <style lang="scss">
  392. page,
  393. .content {
  394. background: $page-color-base;
  395. height: 100%;
  396. }
  397. .swiper-box {
  398. height: calc(100% - 40px);
  399. }
  400. .list-scroll-content {
  401. height: 100%;
  402. }
  403. .navbar {
  404. display: flex;
  405. height: 40px;
  406. padding: 0 5px;
  407. background: #fff;
  408. box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  409. position: relative;
  410. z-index: 10;
  411. .nav-item {
  412. flex: 1;
  413. display: flex;
  414. justify-content: center;
  415. align-items: center;
  416. height: 100%;
  417. font-size: 15px;
  418. color: $font-color-dark;
  419. position: relative;
  420. &.current {
  421. color: #FF6903;
  422. &:after {
  423. content: '';
  424. position: absolute;
  425. left: 50%;
  426. bottom: 0;
  427. transform: translateX(-50%);
  428. width: 44px;
  429. height: 0;
  430. border-bottom: 2px solid #FF6903;
  431. }
  432. }
  433. }
  434. }
  435. .uni-swiper-item {
  436. height: auto;
  437. }
  438. .order-item {
  439. display: flex;
  440. flex-direction: column;
  441. padding-left: 30rpx;
  442. background: #fff;
  443. margin-top: 16rpx;
  444. .i-top {
  445. display: flex;
  446. align-items: center;
  447. height: 80rpx;
  448. padding-right: 30rpx;
  449. font-size: $font-base;
  450. color: $font-color-dark;
  451. position: relative;
  452. .time {
  453. flex: 1;
  454. }
  455. .state {
  456. color: $font-color;
  457. }
  458. .del-btn {
  459. padding: 10rpx 0 10rpx 36rpx;
  460. font-size: $font-lg;
  461. color: $font-color-light;
  462. position: relative;
  463. &:after {
  464. content: '';
  465. width: 0;
  466. height: 30rpx;
  467. border-left: 1px solid $border-color-dark;
  468. position: absolute;
  469. left: 20rpx;
  470. top: 50%;
  471. transform: translateY(-50%);
  472. }
  473. }
  474. }
  475. /* 多条商品 */
  476. .goods-box {
  477. height: 160rpx;
  478. padding: 20rpx 0;
  479. white-space: nowrap;
  480. .goods-item {
  481. width: 120rpx;
  482. height: 120rpx;
  483. display: inline-block;
  484. margin-right: 24rpx;
  485. }
  486. .goods-img {
  487. display: block;
  488. width: 120rpx;
  489. height: 120rpx;
  490. }
  491. }
  492. /* 单条商品 */
  493. .goods-box-single {
  494. display: flex;
  495. padding: 20rpx 0;
  496. .goods-img {
  497. display: block;
  498. width: 120rpx;
  499. height: 120rpx;
  500. }
  501. .right {
  502. flex: 1;
  503. display: flex;
  504. flex-direction: column;
  505. padding: 0 30rpx 0 24rpx;
  506. overflow: hidden;
  507. .title {
  508. font-size: $font-base + 2rpx;
  509. color: $font-color-dark;
  510. line-height: 1;
  511. }
  512. .attr-box {
  513. font-size: $font-sm + 2rpx;
  514. color: $font-color-light;
  515. padding: 10rpx 12rpx;
  516. }
  517. .price {
  518. font-size: $font-base + 2rpx;
  519. color: $font-color-dark;
  520. &:before {
  521. content: '¥';
  522. font-size: $font-sm;
  523. margin: 0 2rpx 0 8rpx;
  524. }
  525. }
  526. }
  527. }
  528. .price-box {
  529. display: flex;
  530. justify-content: flex-end;
  531. align-items: baseline;
  532. padding: 20rpx 30rpx;
  533. font-size: $font-sm + 2rpx;
  534. color: $font-color-light;
  535. .num {
  536. margin: 0 8rpx;
  537. color: $font-color-dark;
  538. }
  539. .blank {
  540. margin-right: 10rpx;
  541. }
  542. .price {
  543. font-size: $font-lg;
  544. color: $font-color-dark;
  545. &:before {
  546. content: '¥';
  547. font-size: $font-sm;
  548. margin: 0 2rpx 0 8rpx;
  549. }
  550. }
  551. }
  552. .action-box {
  553. display: flex;
  554. justify-content: flex-end;
  555. align-items: center;
  556. height: 100rpx;
  557. position: relative;
  558. padding-right: 30rpx;
  559. }
  560. .action-btn {
  561. width: 160rpx;
  562. height: 60rpx;
  563. margin: 0;
  564. margin-left: 24rpx;
  565. padding: 0;
  566. text-align: center;
  567. line-height: 60rpx;
  568. font-size: $font-sm + 2rpx;
  569. color: $font-color-dark;
  570. background: #fff;
  571. border-radius: 100px;
  572. &:after {
  573. border-radius: 100px;
  574. }
  575. &.recom {
  576. color: #fc2a3f;
  577. &:after {
  578. border-color: #fc2a3f;
  579. }
  580. }
  581. &.evaluate {
  582. color: $color-yellow;
  583. &:after {
  584. border-color: $color-yellow;
  585. }
  586. }
  587. &.share {
  588. color: #ffffff;
  589. background: linear-gradient(0deg, rgba(250, 39, 64, 1), rgba(254, 85, 68, 1));
  590. }
  591. }
  592. }
  593. // 积分投注弹窗
  594. .mask {
  595. z-index: 10;
  596. position: fixed;
  597. top: 0;
  598. right: 0;
  599. bottom: 0;
  600. left: 0;
  601. background-color: rgba(0, 0, 0, 0.5);
  602. width: 100%;
  603. height: 100%;
  604. display: flex;
  605. justify-content: center;
  606. align-items: center;
  607. flex-direction: column;
  608. .pop {
  609. z-index: 12;
  610. width: 560rpx;
  611. height: 379rpx;
  612. background: rgba(255, 255, 255, 1);
  613. border-radius: 30px;
  614. .pop-box {
  615. width: 100%;
  616. height: 100%;
  617. display: flex;
  618. flex-direction: column;
  619. text-align: center;
  620. align-items: center;
  621. margin-top: -72rpx !important;
  622. .pop-img {
  623. width: 177rpx;
  624. height: 186rpx;
  625. margin-bottom: 34rpx;
  626. }
  627. .pop-title {
  628. height: 34rpx;
  629. font-size: 36rpx;
  630. font-weight: 500;
  631. color: rgba(51, 51, 51, 1);
  632. margin-bottom: 32rpx;
  633. }
  634. .number {
  635. width: 454rpx;
  636. height: 78rpx;
  637. background: rgba(234, 234, 234, 1);
  638. background: #eaeaea;
  639. }
  640. }
  641. //关闭按钮
  642. .close-box {
  643. margin-top: 130rpx;
  644. text-align: center;
  645. .close {
  646. width: 83rpx;
  647. height: 83rpx;
  648. }
  649. }
  650. }
  651. }
  652. /* load-more */
  653. .uni-load-more {
  654. display: flex;
  655. flex-direction: row;
  656. height: 80rpx;
  657. align-items: center;
  658. justify-content: center;
  659. }
  660. .uni-load-more__text {
  661. font-size: 28rpx;
  662. color: #999;
  663. }
  664. .uni-load-more__img {
  665. height: 24px;
  666. width: 24px;
  667. margin-right: 10px;
  668. }
  669. .uni-load-more__img>view {
  670. position: absolute;
  671. }
  672. .uni-load-more__img>view view {
  673. width: 6px;
  674. height: 2px;
  675. border-top-left-radius: 1px;
  676. border-bottom-left-radius: 1px;
  677. background: #999;
  678. position: absolute;
  679. opacity: 0.2;
  680. transform-origin: 50%;
  681. animation: load 1.56s ease infinite;
  682. }
  683. .uni-load-more__img>view view:nth-child(1) {
  684. transform: rotate(90deg);
  685. top: 2px;
  686. left: 9px;
  687. }
  688. .uni-load-more__img>view view:nth-child(2) {
  689. transform: rotate(180deg);
  690. top: 11px;
  691. right: 0;
  692. }
  693. .uni-load-more__img>view view:nth-child(3) {
  694. transform: rotate(270deg);
  695. bottom: 2px;
  696. left: 9px;
  697. }
  698. .uni-load-more__img>view view:nth-child(4) {
  699. top: 11px;
  700. left: 0;
  701. }
  702. .load1,
  703. .load2,
  704. .load3 {
  705. height: 24px;
  706. width: 24px;
  707. }
  708. .load2 {
  709. transform: rotate(30deg);
  710. }
  711. .load3 {
  712. transform: rotate(60deg);
  713. }
  714. .load1 view:nth-child(1) {
  715. animation-delay: 0s;
  716. }
  717. .load2 view:nth-child(1) {
  718. animation-delay: 0.13s;
  719. }
  720. .load3 view:nth-child(1) {
  721. animation-delay: 0.26s;
  722. }
  723. .load1 view:nth-child(2) {
  724. animation-delay: 0.39s;
  725. }
  726. .load2 view:nth-child(2) {
  727. animation-delay: 0.52s;
  728. }
  729. .load3 view:nth-child(2) {
  730. animation-delay: 0.65s;
  731. }
  732. .load1 view:nth-child(3) {
  733. animation-delay: 0.78s;
  734. }
  735. .load2 view:nth-child(3) {
  736. animation-delay: 0.91s;
  737. }
  738. .load3 view:nth-child(3) {
  739. animation-delay: 1.04s;
  740. }
  741. .load1 view:nth-child(4) {
  742. animation-delay: 1.17s;
  743. }
  744. .load2 view:nth-child(4) {
  745. animation-delay: 1.3s;
  746. }
  747. .load3 view:nth-child(4) {
  748. animation-delay: 1.43s;
  749. }
  750. @-webkit-keyframes load {
  751. 0% {
  752. opacity: 1;
  753. }
  754. 100% {
  755. opacity: 0.2;
  756. }
  757. }
  758. </style>