questionCardOld.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <Theme>
  3. <view class="question-card__wrap">
  4. <view class="question-card__head">
  5. <view class="question-card__head-title">{{ $t("猜你想问") }}</view>
  6. </view>
  7. <view class="question-card__body">
  8. <view class="question-card__item" v-for="(item, index) in 3" :key="index">
  9. <view class="question-card__item-left">
  10. <text class="question-card__item-title">{{index + 1}}. 第 {{index + 1}} 个问题?</text>
  11. </view>
  12. <view class="question-card__item-right">
  13. <image src="@/static/chat/arrow_right-icon.png" mode=""></image>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </Theme>
  19. </template>
  20. <script>
  21. </script>
  22. <style lang="less" scoped>
  23. .question-card__wrap {
  24. width: 100%;
  25. height: auto;
  26. padding: 16rpx 24rpx;
  27. border-radius: 20rpx;
  28. background: #FAFAFA;
  29. }
  30. .question-card__head {
  31. width: 100%;
  32. height: 44rpx;
  33. .question-card__head-title {
  34. font-size: 26rpx;
  35. font-weight: 500;
  36. color: #000;
  37. }
  38. }
  39. .question-card__body {
  40. .question-card__item {
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. padding: 10rpx 0;
  45. }
  46. .question-card__item-left {
  47. width: calc(100% - 60rpx);
  48. font-size: 28rpx;
  49. color: #3D3D3D;
  50. padding-right: 30rpx;
  51. white-space: nowrap;
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. }
  55. .question-card__item-title {
  56. width: 100%;
  57. white-space: nowrap;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. }
  61. .question-card__item-right {
  62. display: flex;
  63. justify-content: flex-end;
  64. width: 60rpx;
  65. height: 100%;
  66. image {
  67. width: 14rpx;
  68. height: 24rpx;
  69. }
  70. }
  71. }
  72. </style>