publishCircle.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="publish-circle-box flex-common-css">
  3. <Nav :titleColor="'#000'" :title="''" :rightShow="true" :rightType="2">
  4. <template slot="right">
  5. <view @click="publishBut" class="nav-right sys-background-black sys-radius-8">
  6. <view class="publish sys-color-white sys-weight-500 sys-size-28">
  7. 发布
  8. </view>
  9. <uni-icons class="publish-icons" type="paperplane-filled" size="20" color="#fff"></uni-icons>
  10. </view>
  11. </template>
  12. </Nav>
  13. <scroll-view :scroll-y="true" class="list-scroll" @scroll="scroll" @scrolltolower="scrolltolower">
  14. <textarea @input="bindTextAreaBlur" auto-height placeholder="这一刻的想法..." />
  15. <view class="publish-img-box">
  16. <view class="publish-img" v-for="item in 5">
  17. <image class="img sys-radius-16" src="../../static/img/login/2.jpg" mode=""></image>
  18. <view class="delete sys-radius-round sys-background-transparent" @click="deleteImg">
  19. <uni-icons type="closeempty" size="20" color="#fff"></uni-icons>
  20. </view>
  21. </view>
  22. <view @click="addImg" class="add-img sys-radius-16 sys-background-F1">
  23. <image class="circle-add-img" src="/static/img/circle/cancel-icon-2@2x.png"></image>
  24. </view>
  25. </view>
  26. <view class="tag-box">
  27. <view class="tag sys-radius-200" v-for="(item,index) in 3">
  28. <uni-icons type="location-filled" size="12" color="#2F80ED"></uni-icons>
  29. <view class="tag-name sys-color-2F80ED sys-size-24">
  30. 重庆渝北区
  31. </view>
  32. <uni-icons @click="deleteTag" type="closeempty" size="14" color="#2F80ED"></uni-icons>
  33. </view>
  34. </view>
  35. </scroll-view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. components: {},
  41. data() {
  42. return {
  43. publishContent: '',
  44. };
  45. },
  46. mounted() {},
  47. methods: {
  48. scroll() {},
  49. scrolltolower() {},
  50. bindTextAreaBlur(e) {
  51. this.publishContent = e.detail.value
  52. console.log(e.detail.value)
  53. },
  54. publishBut(){
  55. //发布
  56. },
  57. deleteImg(){
  58. // 删除图片
  59. },
  60. addImg(){
  61. //添加图片
  62. },
  63. deleteTag(){
  64. //删除标签
  65. },
  66. },
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .publish-circle-box {
  71. .nav-right {
  72. padding: 8rpx 18rpx 8rpx 16rpx;
  73. display: flex;
  74. align-items: center;
  75. .publish-icons {
  76. margin: 0 0 0 4rpx;
  77. }
  78. }
  79. .list-scroll {
  80. width: 100%;
  81. flex: 1;
  82. overflow: auto;
  83. padding: 24rpx 30rpx;
  84. box-sizing: border-box;
  85. display: flex;
  86. flex-direction: column;
  87. .publish-img-box {
  88. padding: 160rpx 0 20rpx 0;
  89. display: flex;
  90. align-items: center;
  91. flex-wrap: wrap;
  92. .publish-img {
  93. width: 220rpx;
  94. height: 220rpx;
  95. margin: 0 12rpx 12rpx 0;
  96. position: relative;
  97. .img {
  98. width: 100%;
  99. height: 100%;
  100. display: block;
  101. }
  102. .delete {
  103. position: absolute;
  104. right: 10rpx;
  105. top: 10rpx;
  106. width: 44rpx;
  107. height: 44rpx;
  108. border: 1rpx solid rgba(255, 255, 255, 0.7);
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. }
  113. }
  114. .add-img {
  115. width: 220rpx;
  116. height: 220rpx;
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. .circle-add-img {
  121. width: 56rpx;
  122. height: 50rpx;
  123. }
  124. }
  125. }
  126. .tag-box {
  127. width: 100%;
  128. height: auto;
  129. display: flex;
  130. align-items: center;
  131. flex-wrap: wrap;
  132. .tag {
  133. display: flex;
  134. align-items: center;
  135. padding: 12rpx 16rpx 10rpx;
  136. background: rgba(47, 128, 237, 0.1);
  137. margin: 0 12rpx 12rpx 0;
  138. .tag-name{
  139. margin: 0 28rpx 0 12rpx;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. </style>