making-friends.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="making-box">
  3. <en-nav title="交友目的" :title-color="'#333'" :right-show="true" :right-type="2" >
  4. <template v-slot:right>
  5. <text class="nav-right sys-weight-600 sys-color-white" @click="setNextStep">保存</text>
  6. </template>
  7. </en-nav>
  8. <view class="making-data">
  9. <view class="making-title">
  10. <view class="title-wire"></view>
  11. <view class="title-text sys-color-black-3 sys-weight-600">交友目的</view>
  12. </view>
  13. <view class="making-text sys-height-44 sys-color-gray-9">人数不足时,将自动扬大范围</view>
  14. <view class="making-list">
  15. <view class="making-item" :class="{'no-pitch-item':i%2===0}" v-for="i in 6">
  16. <image class="making-item-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  17. <view class="making-item-text sys-height-44 sys-weight-400">认识朋友</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import tools from "@/service/tools";
  25. import EnNav from "@/components/en-utils/en-nav/en-nav";
  26. export default {
  27. components: {EnNav},
  28. data() {
  29. return {
  30. }
  31. },
  32. methods: {
  33. setNextStep() {
  34. uni.navigateBack()
  35. },
  36. }
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. .making-box{
  41. padding: 40rpx 36rpx;
  42. .making-title{
  43. display: flex;
  44. justify-content: flex-start;
  45. align-items: center;
  46. height: 44rpx;
  47. .title-text{
  48. font-size: 32rpx;
  49. line-height: 44rpx;
  50. }
  51. .title-wire{
  52. width: 4rpx;
  53. height: 32rpx;
  54. background-color: #FFC107;
  55. margin-right: 12rpx;
  56. }
  57. }
  58. .making-text{
  59. margin-top: 4rpx;
  60. font-size: 24rpx;
  61. }
  62. .making-list{
  63. display: flex;
  64. flex-wrap: wrap;
  65. .making-item{
  66. margin-top: 32rpx;
  67. margin-right: calc((100% - 480rpx)/3);
  68. .making-item-img{
  69. width: 120rpx;
  70. height: 120rpx;
  71. border-radius: 40rpx;
  72. }
  73. .making-item-text{
  74. margin-top: 16rpx;
  75. text-align: center;
  76. font-size: 26rpx;
  77. color: #141414;
  78. }
  79. }
  80. .no-pitch-item{
  81. .making-item-img{
  82. filter: grayscale(100%);
  83. }
  84. .making-item-text{
  85. color: rgba(51, 51, 51, 0.30);
  86. }
  87. }
  88. .making-item:nth-of-type(4n+0){
  89. margin-right:0;
  90. }
  91. }
  92. }
  93. </style>