coupon.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. <template>
  2. <!-- 优惠券 -->
  3. <view :style="[couponWrapStyle]" v-show="!isSortType">
  4. <view class="coupon-wrap" :style="[couponWrapBgColor]" v-if="couponList.length">
  5. <view v-if="dataConfig.styleConfig.tabVal == 0" class="coupon1 p-24">
  6. <scroll-view scroll-x="true">
  7. <view class="list acea-row">
  8. <view v-for="item in couponList" :key="item.id" class="item" :style="[couponItemFirstStyle]">
  9. <view class="text">
  10. <view class="money" :style="[couponMoneyColor]">
  11. <template>
  12. {{ $t(`¥`) }}<text class="number">{{ item.coupon_price }}</text>
  13. </template>
  14. </view>
  15. <view class="info">
  16. <text v-if="item.use_min_price">{{ $t(`满`) }}{{ item.use_min_price }}{{ $t(`可用`) }}</text>
  17. <text v-else>{{ $t(`无门槛券`) }}</text>
  18. </view>
  19. </view>
  20. <view v-if="item.is_use == true" class="button" :style="[bntBgColor]">{{ $t(`已领取`) }}</view>
  21. <view v-else-if="item.is_use == false" class="button" :style="[bntBgColor]" @click="receiveCoupon(item)">{{ $t(`去领取`) }}</view>
  22. <view v-else-if="item.is_use == 2" class="button" :style="[bntBgColor]">{{ $t(`已过期`) }}</view>
  23. </view>
  24. </view>
  25. </scroll-view>
  26. </view>
  27. <view v-else-if="dataConfig.styleConfig.tabVal == 1" class="coupon2 p-24">
  28. <scroll-view scroll-x="true">
  29. <view class="list acea-row">
  30. <view v-for="item in couponList" :key="item.id" class="item">
  31. <view class="name">{{ item.type | typeFilter}}</view>
  32. <view class="text" :style="[couponMoneyColor]">
  33. <view class="money">
  34. <template>
  35. {{ $t(`¥`) }}<text class="number">{{ item.coupon_price }}</text>
  36. </template>
  37. </view>
  38. <view class="info">
  39. <text v-if="item.use_min_price">{{ $t(`满`) }}{{ item.use_min_price }}{{ $t(`可用`) }}</text>
  40. <text v-else>{{ $t(`无门槛券`) }}</text>
  41. </view>
  42. </view>
  43. <view v-if="item.is_use == true" class="button" :style="[bntBgColor]">{{ $t(`已领取`) }}</view>
  44. <view v-else-if="item.is_use == false" class="button" :style="[bntBgColor]" @click="receiveCoupon(item)">{{ $t(`去领取`) }}</view>
  45. <view v-else-if="item.is_use == 2" class="button" :style="[bntBgColor]">{{ $t(`已过期`) }}</view>
  46. </view>
  47. </view>
  48. </scroll-view>
  49. </view>
  50. <view v-else-if="dataConfig.styleConfig.tabVal == 2" class="coupon3 p-24 rd-16rpx" :style="[coupon3Color]">
  51. <scroll-view scroll-x="true">
  52. <view class="list acea-row">
  53. <view v-for="item in couponList" :key="item.id" class="item">
  54. <view class="inner acea-row">
  55. <view class="text acea-row row-column row-middle row-center">
  56. <view class="money">
  57. <template>
  58. {{ $t(`¥`) }}<text class="number">{{ item.coupon_price }}</text>
  59. </template>
  60. </view>
  61. <view class="info">
  62. <text v-if="item.use_min_price">{{ $t(`满`) }}{{ item.use_min_price }}{{ $t(`可用`) }}</text>
  63. <text v-else>{{ $t(`无门槛券`) }}</text>
  64. </view>
  65. </view>
  66. <view v-if="item.is_use == true" class="button acea-row row-middle">{{ $t(`已领取`) }}</view>
  67. <view v-else-if="item.is_use == false" class="button acea-row row-middle" @click="receiveCoupon(item)">{{ $t(`立即领取`) }}</view>
  68. <view v-else-if="item.is_use == 2" class="button acea-row row-middle">{{ $t(`已过期`) }}</view>
  69. </view>
  70. </view>
  71. </view>
  72. </scroll-view>
  73. </view>
  74. <view v-else-if="dataConfig.styleConfig.tabVal == 3" class="coupon4" :style="[coupon4Color]">
  75. <view class="content">
  76. <scroll-view scroll-x="true">
  77. <view class="list acea-row">
  78. <view v-for="item in couponList" :key="item.id" :style="[couponItemStyle]" class="item">
  79. <view class="name" :style="typeStyle">
  80. <view class="inner">{{ item.type | typeFilter }}</view>
  81. </view>
  82. <view class="text">
  83. <view class="money" :style="[couponMoneyColor]">
  84. <template>
  85. {{ $t(`¥`) }}<text class="number">{{ item.coupon_price }}</text>
  86. </template>
  87. </view>
  88. <view class="info">
  89. <text v-if="item.use_min_price">{{ $t(`满`) }}{{ item.use_min_price }}{{ $t(`可用`) }}</text>
  90. <text v-else>{{ $t(`无门槛券`) }}</text>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </scroll-view>
  96. <view class="station acea-row row-column row-middle row-center" :style="[bntBgColor]">
  97. <view class="station-name">{{ $t(`先领券 再购物`) }}</view>
  98. <view class="station-info">{{ $t(`领券下单·享购物优惠`) }}</view>
  99. <view class="button" @click="goCoupon">{{ $t(`立即领取`) }}</view>
  100. </view>
  101. </view>
  102. </view>
  103. <view v-else-if="dataConfig.styleConfig.tabVal == 4" class="coupon5 pt-24 pb-24 pr-20 pl-20 rd-16rpx">
  104. <scroll-view scroll-x="true">
  105. <view class="list acea-row">
  106. <view v-for="item in couponList" :key="item.id" class="item acea-row" :style="[bntBgColor]">
  107. <view class="text acea-row row-column row-middle row-center">
  108. <view class="money" :style="[couponMoneyColor]">
  109. <template>
  110. {{ $t(`¥`) }}<text class="number">{{ item.coupon_price }}</text>
  111. </template>
  112. </view>
  113. <view class="info" :style="[couponMoneyColor]">
  114. <text v-if="item.use_min_price">{{ $t(`满`) }}{{ item.use_min_price }}{{ $t(`可用`) }}</text>
  115. <text v-else>{{ $t(`无门槛券`) }}</text>
  116. </view>
  117. </view>
  118. <view v-if="item.is_use == true" class="button acea-row row-middle">{{ $t(`已领取`) }}</view>
  119. <view v-else-if="item.is_use == false" class="button acea-row row-middle" @click="receiveCoupon(item)">{{ $t(`领取`) }}</view>
  120. <view v-else-if="item.is_use == 2" class="button acea-row row-middle">{{ $t(`已过期`) }}</view>
  121. </view>
  122. </view>
  123. </scroll-view>
  124. </view>
  125. </view>
  126. </view>
  127. </template>
  128. <script>
  129. import {
  130. getCoupons,
  131. setCouponReceive
  132. } from '@/api/api.js';
  133. import {
  134. mapGetters
  135. } from "vuex";
  136. export default {
  137. props: {
  138. dataConfig: {
  139. type: Object,
  140. default: () => {}
  141. },
  142. isSortType: {
  143. type: String | Number,
  144. default: 0
  145. }
  146. },
  147. watch: {
  148. isLogin: {
  149. handler: function(newV, oldV) {
  150. if (newV) {
  151. this.getCoupon();
  152. }
  153. },
  154. deep: true
  155. }
  156. },
  157. filters:{
  158. typeFilter(val){
  159. let obj = {
  160. 0: '通用券',
  161. 1: '品类券',
  162. 2: '商品券',
  163. 3: '品牌券',
  164. };
  165. return obj[val]
  166. }
  167. },
  168. data() {
  169. return {
  170. isAuto: false, //没有授权的不会自动授权
  171. isShowAuth: false, //是否隐藏授权
  172. couponList: [],
  173. };
  174. },
  175. computed: {
  176. ...mapGetters(['isLogin']),
  177. couponMoneyColor() {
  178. let styleObject = {};
  179. if (this.dataConfig.toneConfig.tabVal) {
  180. styleObject['color'] = this.dataConfig.couponMoneyColor.color[0].item;
  181. }
  182. return styleObject;
  183. },
  184. couponItemFirstStyle(){
  185. if (this.dataConfig.toneConfig.tabVal) {
  186. return {
  187. background: this.dataConfig.couponBgColor.color[0].item
  188. }
  189. }else{
  190. return {
  191. background: 'var(--view-theme)'
  192. }
  193. }
  194. },
  195. couponItemStyle() {
  196. return {
  197. 'margin-right': `${this.dataConfig.spacingConfig.val * 2}rpx`,
  198. }
  199. },
  200. typeStyle(){
  201. if (!this.dataConfig.toneConfig.tabVal) {
  202. return {
  203. background: 'var(--view-theme)',
  204. color: 'var(--view-theme)'
  205. }
  206. }else{
  207. return {
  208. background: this.dataConfig.couponMoneyColor.color[0].item,
  209. color: this.dataConfig.couponMoneyColor.color[0].item
  210. }
  211. }
  212. },
  213. bntBgColor() {
  214. let styleObject = {};
  215. if (this.dataConfig.toneConfig.tabVal) {
  216. styleObject['background'] = `linear-gradient(180deg, ${this.dataConfig.bntBgColor.color[0].item} 0%, ${this.dataConfig.bntBgColor.color[1].item} 100%)`;
  217. }
  218. return styleObject;
  219. },
  220. coupon3Color() {
  221. let styleObject = {
  222. '--coupon3-color': 'var(--view-theme)',
  223. };
  224. if (this.dataConfig.toneConfig.tabVal) {
  225. styleObject['--coupon3-color'] = this.dataConfig.couponMoneyColor.color[0].item;
  226. }
  227. return styleObject;
  228. },
  229. coupon4Color() {
  230. let styleObject = {
  231. '--coupon4-color': 'var(--view-theme)',
  232. };
  233. if (this.dataConfig.toneConfig.tabVal) {
  234. styleObject['--coupon4-color'] = this.dataConfig.couponBgColor.color[0].item;
  235. }
  236. return styleObject;
  237. },
  238. couponWrapBgColor() {
  239. let styleObject = {
  240. '--module-color': this.dataConfig.moduleColor2.color[0].item,
  241. };
  242. if (this.dataConfig.styleConfig.tabVal == 1) {
  243. styleObject['--module-color'] = `linear-gradient(90deg,${this.dataConfig.moduleColor.color[0].item} 0%,${this.dataConfig.moduleColor.color[1].item} 100%)`;
  244. }
  245. // if (this.dataConfig.styleConfig.tabVal == 3) {
  246. let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
  247. if (this.dataConfig.fillet.type) {
  248. borderRadius =
  249. `${this.dataConfig.fillet.valList[0].val * 2}rpx ${this.dataConfig.fillet.valList[1].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx ${this.dataConfig.fillet.valList[2].val * 2}rpx`;
  250. }
  251. styleObject['border-radius'] = borderRadius;
  252. // }
  253. return styleObject;
  254. },
  255. couponWrapStyle() {
  256. return {
  257. 'padding': `${this.dataConfig.topConfig.val * 2}rpx ${this.dataConfig.prConfig.val * 2}rpx ${this.dataConfig.bottomConfig.val * 2}rpx`,
  258. 'margin-top': `${this.dataConfig.mbConfig.val * 2}rpx`,
  259. 'background': this.dataConfig.bottomBgColor.color[0].item,
  260. };
  261. },
  262. },
  263. mounted() {
  264. this.getCoupon();
  265. },
  266. methods: {
  267. getCoupon: function() {
  268. let that = this;
  269. let limit = that.$config.LIMIT;
  270. getCoupons({
  271. page: 1,
  272. limit: this.dataConfig.numberConfig.val >= limit ? limit : this.dataConfig.numberConfig.val,
  273. type: -1,
  274. }).then(res => {
  275. that.$set(that, 'couponList', res.data.list);
  276. }).catch(err => {
  277. return that.$util.Tips({
  278. title: err
  279. });
  280. });
  281. },
  282. receiveCoupon: function(item) {
  283. let that = this;
  284. if (!that.isLogin) {
  285. this.$emit('changeLogin');
  286. } else {
  287. setCouponReceive(item.id)
  288. .then(function() {
  289. item.is_use = true;
  290. that.$set(that, 'couponList', that.couponList);
  291. that.$util.Tips({
  292. title: "领取成功"
  293. });
  294. })
  295. .catch(function(err) {
  296. that.$util.Tips({
  297. title: err
  298. });
  299. });
  300. }
  301. },
  302. goCoupon() {
  303. uni.navigateTo({
  304. url: '/pages/users/user_get_coupon/index'
  305. })
  306. },
  307. }
  308. }
  309. </script>
  310. <style lang="scss">
  311. .coupon-wrap {
  312. background: var(--module-color);
  313. }
  314. .coupon1 {
  315. .list {
  316. flex-wrap: nowrap;
  317. }
  318. .item {
  319. flex-shrink: 0;
  320. position: relative;
  321. width: 156rpx;
  322. height: 156rpx;
  323. border-radius: 32rpx;
  324. margin-top: 20rpx;
  325. margin-right: 12rpx;
  326. background: var(--view-theme);
  327. .text {
  328. width: 144rpx;
  329. height: 156rpx;
  330. padding-top: 22rpx;
  331. border: 2rpx solid #FCEAE9;
  332. border-radius: 16rpx;
  333. margin: -20rpx auto 0;
  334. background: #FFFFFF;
  335. }
  336. .money {
  337. height: 40rpx;
  338. text-align: center;
  339. font-weight: 500;
  340. font-size: 28rpx;
  341. color: var(--view-theme);
  342. }
  343. .number {
  344. font-family: SemiBold;
  345. font-size: 40rpx;
  346. line-height: 40rpx;
  347. }
  348. .info {
  349. margin-top: 10rpx;
  350. text-align: center;
  351. font-size: 18rpx;
  352. line-height: 26rpx;
  353. color: #999999;
  354. }
  355. .button {
  356. position: absolute;
  357. right: 0;
  358. bottom: 0;
  359. left: 0;
  360. height: 76rpx;
  361. padding-top: 28rpx;
  362. border-radius: 0 0 32rpx 32rpx;
  363. background: linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  364. text-align: center;
  365. font-weight: 500;
  366. font-size: 24rpx;
  367. color: #FFFFFF;
  368. &::before {
  369. content: "";
  370. position: absolute;
  371. top: 0;
  372. left: 0;
  373. width: 156rpx;
  374. height: 20rpx;
  375. border: 8rpx solid #FCEAE9;
  376. border-top-color: #FFFFFF;
  377. border-bottom-right-radius: 78rpx 20rpx;
  378. border-bottom-left-radius: 78rpx 20rpx;
  379. box-sizing: border-box;
  380. background: #FFFFFF;
  381. }
  382. }
  383. }
  384. }
  385. .coupon2 {
  386. .list {
  387. flex-wrap: nowrap;
  388. }
  389. .item {
  390. flex-shrink: 0;
  391. width: 204rpx;
  392. height: 232rpx;
  393. padding-top: 28rpx;
  394. border-radius: 16rpx;
  395. margin-top: 0;
  396. margin-right: 12rpx;
  397. background: #FFFFFF;
  398. }
  399. .name {
  400. text-align: center;
  401. font-weight: 500;
  402. font-size: 24rpx;
  403. line-height: 34rpx;
  404. color: #333333;
  405. }
  406. .text {
  407. margin-top: 8rpx;
  408. text-align: center;
  409. color: var(--view-theme);
  410. }
  411. .money {
  412. height: 48rpx;
  413. font-weight: 500;
  414. font-size: 28rpx;
  415. }
  416. .number {
  417. font-family: SemiBold;
  418. font-size: 44rpx;
  419. }
  420. .info {
  421. font-size: 18rpx;
  422. line-height: 26rpx;
  423. }
  424. .button {
  425. width: 136rpx;
  426. height: 48rpx;
  427. border-radius: 24rpx;
  428. margin: 12rpx auto 0;
  429. background: linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  430. text-align: center;
  431. font-weight: 500;
  432. font-size: 24rpx;
  433. line-height: 48rpx;
  434. color: #FFFFFF;
  435. }
  436. }
  437. .coupon3 {
  438. .list {
  439. flex-wrap: nowrap;
  440. }
  441. .item {
  442. flex-shrink: 0;
  443. width: 274rpx;
  444. height: 150rpx;
  445. border: 1rpx solid var(--coupon3-color);
  446. border-radius: 16rpx;
  447. margin-top: 0;
  448. margin-right: 12rpx;
  449. background: var(--coupon3-color);
  450. }
  451. .inner {
  452. height: 100%;
  453. border-radius: 15rpx;
  454. background: rgba(255, 255, 255, 0.9);
  455. }
  456. .text {
  457. flex: 1;
  458. position: relative;
  459. &::before {
  460. content: "";
  461. position: absolute;
  462. top: 0;
  463. right: 0;
  464. z-index: 2;
  465. width: 16rpx;
  466. height: 16rpx;
  467. border: 1rpx solid var(--coupon3-color);
  468. border-radius: 50%;
  469. background: var(--module-color);
  470. transform: translate(50%, -50%);
  471. }
  472. &::after {
  473. content: "";
  474. position: absolute;
  475. bottom: 0;
  476. right: 0;
  477. z-index: 2;
  478. width: 16rpx;
  479. height: 16rpx;
  480. border: 1rpx solid var(--coupon3-color);
  481. border-radius: 50%;
  482. background: var(--module-color);
  483. transform: translate(50%, 50%);
  484. }
  485. }
  486. .money {
  487. height: 48rpx;
  488. text-align: center;
  489. font-weight: 500;
  490. font-size: 28rpx;
  491. color: var(--coupon3-color);
  492. }
  493. .number {
  494. font-family: SemiBold;
  495. font-size: 44rpx;
  496. }
  497. .info {
  498. margin-top: 8rpx;
  499. text-align: center;
  500. font-size: 24rpx;
  501. line-height: 34rpx;
  502. color: var(--coupon3-color);
  503. }
  504. .button {
  505. position: relative;
  506. width: 74rpx;
  507. padding: 0 24rpx;
  508. font-size: 26rpx;
  509. line-height: 28rpx;
  510. color: var(--coupon3-color);
  511. &::before {
  512. content: "";
  513. position: absolute;
  514. top: 12rpx;
  515. bottom: 12rpx;
  516. left: 0;
  517. border-left: 1rpx dashed var(--coupon3-color);
  518. }
  519. }
  520. }
  521. .coupon5 {
  522. .list {
  523. flex-wrap: nowrap;
  524. }
  525. .item {
  526. flex-shrink: 0;
  527. width: 228rpx;
  528. height: 108rpx;
  529. border-radius: 12rpx;
  530. margin-right: 12rpx;
  531. background: linear-gradient(0deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  532. }
  533. .text {
  534. flex: 1;
  535. border-radius: 12rpx;
  536. background: radial-gradient(circle at left 54rpx, var(--module-color) 11rpx, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%) top;
  537. }
  538. .money {
  539. height: 48rpx;
  540. font-weight: 500;
  541. font-size: 28rpx;
  542. color: var(--view-theme);
  543. }
  544. .number {
  545. font-family: SemiBold;
  546. font-size: 44rpx;
  547. }
  548. .info {
  549. font-size: 22rpx;
  550. line-height: 30rpx;
  551. color: var(--view-theme);
  552. }
  553. .button {
  554. width: 56rpx;
  555. padding: 0 16rpx;
  556. font-size: 24rpx;
  557. line-height: 28rpx;
  558. color: #FFFFFF;
  559. }
  560. }
  561. .coupon4 {
  562. padding: 24rpx 20rpx;
  563. border-radius: 16rpx;
  564. .content {
  565. position: relative;
  566. padding: 20rpx 296rpx 20rpx 20rpx;
  567. border-radius: 24rpx;
  568. background: var(--coupon4-color);
  569. }
  570. .list {
  571. flex-wrap: nowrap;
  572. }
  573. .item {
  574. flex-shrink: 0;
  575. width: 140rpx;
  576. height: 132rpx;
  577. border-radius: 12rpx;
  578. margin-right: 12rpx;
  579. background: #FFFFFF;
  580. }
  581. .name {
  582. width: 108rpx;
  583. height: 38rpx;
  584. line-height: 38rpx;
  585. border-radius: 0 0 19rpx 19rpx;
  586. margin: 0 auto;
  587. background: var(--coupon4-color);
  588. text-align: center;
  589. font-size: 22rpx;
  590. color: var(--coupon4-color);
  591. }
  592. .inner {
  593. width: 100%;
  594. height: 100%;
  595. border-radius: 0 0 19rpx 19rpx;
  596. background: rgba(255, 255, 255, 0.9);
  597. }
  598. .money {
  599. height: 46rpx;
  600. margin-top: 10rpx;
  601. text-align: center;
  602. font-weight: 500;
  603. font-size: 28rpx;
  604. color: var(--coupon4-color);
  605. }
  606. .number {
  607. font-family: SemiBold;
  608. font-size: 40rpx;
  609. }
  610. .info {
  611. margin-top: 4rpx;
  612. text-align: center;
  613. font-size: 18rpx;
  614. line-height: 26rpx;
  615. color: #333333;
  616. }
  617. .station {
  618. position: absolute;
  619. top: 0;
  620. right: 0;
  621. bottom: 0;
  622. width: 296rpx;
  623. // padding-left: 12rpx;
  624. border-radius: 0 24rpx 24rpx 0;
  625. // background: radial-gradient(circle at -180rpx 86rpx, transparent 200rpx, var(--coupon4-color) 0%, var(--coupon4-color) 100%);
  626. background: linear-gradient(0deg, var(--view-theme) 0%, var(--view-gradient) 100%);
  627. // filter: drop-shadow(-16rpx 0rpx 10rpx rgba(0, 0, 0, 0.10));
  628. }
  629. .station-name {
  630. font-weight: 500;
  631. font-size: 32rpx;
  632. line-height: 44rpx;
  633. color: #FFFFFF;
  634. }
  635. .station-info {
  636. margin-top: 4rpx;
  637. font-size: 20rpx;
  638. line-height: 28rpx;
  639. color: #F5F5F5;
  640. }
  641. .button {
  642. width: 160rpx;
  643. height: 48rpx;
  644. border-radius: 24rpx;
  645. margin-top: 8rpx;
  646. background: rgba(255, 255, 255, 0.9);
  647. text-align: center;
  648. font-weight: 500;
  649. font-size: 24rpx;
  650. line-height: 48rpx;
  651. color: var(--coupon4-color);
  652. }
  653. }
  654. </style>