shortcut.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="shortcut-box" @click.stop="goShortcutBuy()">
  3. <image class="shortcut-icon" src="@/static/images/icon_04.png" mode="aspectFit"></image>
  4. <view class="shortcut-content">
  5. <text class="shortcut-content-title">快捷买币</text>
  6. <text class="shortcut-content-hint">支持一键快速购买USDT</text>
  7. </view>
  8. <view class="shortcut-more">
  9. <image class="shortcut-more-icon" src="@/static/images/icon_03.png" mode="aspectFit"></image>
  10. <!-- <view class="shortcut-more-icon iconfont">
  11. &#xe604;
  12. </view> -->
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: "shortcutModules",
  19. data() {
  20. return {
  21. };
  22. },
  23. methods: {
  24. goShortcutBuy() {
  25. uni.navigateTo({
  26. url: '/pages/content/shortcut-buy'
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .shortcut-box {
  34. width: 100%;
  35. background-color: $modules-box-bg;
  36. padding: 14rpx 60rpx 14rpx $pages-padding ;
  37. display: flex;
  38. align-items: stretch;
  39. .shortcut-icon {
  40. width: 66rpx;
  41. height: 83rpx;
  42. flex-shrink: 0;
  43. }
  44. .shortcut-more {
  45. width: 81rpx;
  46. height: 81rpx;
  47. flex-shrink: 0;
  48. .shortcut-more-icon {
  49. width: 81rpx;
  50. height: 81rpx;
  51. }
  52. // background: linear-gradient(90deg, #ffffff 23%, #d4f1e5);
  53. // border-radius: 50%;
  54. // display: flex;
  55. // justify-content: center;
  56. // align-items: center;
  57. // .shortcut-more-icon {
  58. // width: 40rpx;
  59. // height: 40rpx;
  60. // border-radius: 50%;
  61. // background-color: $Theme-Color;
  62. // font-size: 26rpx;
  63. // line-height: 40rpx;
  64. // color: #ffffff;
  65. // transform: rotate(180deg);
  66. // text-align: right;
  67. // }
  68. }
  69. .shortcut-content {
  70. width: calc(100% - 63rpx - 81rpx);
  71. padding:4rpx 0 4rpx 35rpx;
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: space-between;
  75. .shortcut-content-title {
  76. font-size: 30rpx;
  77. font-family: PingFang SC, PingFang SC-Bold;
  78. font-weight: 700;
  79. color: #1a1a1a;
  80. line-height: 38rpx;
  81. letter-spacing: 0.6rpx;
  82. }
  83. .shortcut-content-hint {
  84. font-size: 24rpx;
  85. font-family: PingFang SC, PingFang SC-Regular;
  86. font-weight: 400;
  87. color: #808080;
  88. line-height: 38rpx;
  89. letter-spacing: 0.48rpx;
  90. }
  91. }
  92. }
  93. </style>