store_item_info.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="page">
  3. <view class="page-content-list">
  4. <view class="page-content-item" v-if="0">
  5. <view class="content-one">
  6. <image class="content-one-image" src="https://im.smiaoshen.com/static/circle/5f50a3e3135c8547e810f168/20200903/b38d8b55a43240d2822088e8cd40fb00_thumb.jpg"></image>
  7. <text></text>
  8. </view>
  9. <view class="content-two">
  10. <text>汪汪汪</text>
  11. <text>2020-09-28</text>
  12. </view>
  13. </view>
  14. <view class="footer-hr"></view>
  15. <view class="page-content-item" v-if="0">
  16. <view class="content-one">
  17. <view class="voice">
  18. <view class="iconfont-im icon-yuyin-you yuyin"></view>
  19. <view class="length">10:00</view>
  20. </view>
  21. </view>
  22. <view class="content-two">
  23. <text>汪汪汪</text>
  24. <text>2020-09-28</text>
  25. </view>
  26. </view>
  27. <view class="page-content-item" v-if="0">
  28. <view class="content-one">
  29. <view class="vedio">
  30. <image class="content-one-image" src="https://im.smiaoshen.com/static/circle/5f50a3e3135c8547e810f168/20200903/b38d8b55a43240d2822088e8cd40fb00_thumb.jpg"></image>
  31. <image class="bubble-bofang-left"
  32. src="/static/theme/default/my/bofang.png"></image>
  33. </view>
  34. </view>
  35. <view class="content-two">
  36. <text>汪汪汪</text>
  37. <text>2020-09-28</text>
  38. </view>
  39. </view>
  40. <view class="page-content-item" v-if="item.type == 1">
  41. <view class="content-one">
  42. <view class="text-info">
  43. <text>你好</text>
  44. </view>
  45. </view>
  46. <view class="content-two">
  47. <text>汪汪汪</text>
  48. <text>2020-09-28</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. item:{
  59. id:0,
  60. type:1, //1文字, 2图片 ,3语音, 4视频
  61. content:{
  62. text:"你好呀"
  63. },
  64. }
  65. }
  66. },
  67. onShow(){
  68. },
  69. onLoad(options){
  70. if('id' in options){
  71. this.item.id = options.id;
  72. }
  73. },
  74. methods: {
  75. }
  76. }
  77. </script>
  78. <style>
  79. .page{
  80. padding: 10px;
  81. }
  82. .page-content-list{
  83. display: flex;
  84. flex-direction: column;
  85. justify-content: space-between;
  86. }
  87. .page-content-item{
  88. display: flex;
  89. flex-direction: column;
  90. justify-content: space-between;
  91. padding: 8px;
  92. }
  93. .content-one{
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. padding: 10px 0;
  98. }
  99. .content-two{
  100. display: flex;
  101. justify-content:space-between;
  102. align-items: center;
  103. }
  104. .page-header-info{
  105. display: flex;
  106. }
  107. .page-header-info image{
  108. width: 50px;
  109. height: 50px;
  110. }
  111. .voice{
  112. display: flex;
  113. justify-content: flex-start;
  114. align-items: center;
  115. background-color: #4cb050;
  116. width: 80px;
  117. padding: 2px 10px;
  118. border-radius: 10px;
  119. }
  120. .length{
  121. margin-left: 4rpx
  122. }
  123. .vedio{
  124. position: relative;
  125. }
  126. .content-one-image{
  127. width: 80px;
  128. height: 100px;
  129. }
  130. .bubble-bofang-left {
  131. position: absolute;
  132. left: 25px;
  133. top: 35px;
  134. width: 30px;
  135. height: 30px;
  136. }
  137. .text-info{
  138. padding: 10px 0;
  139. }
  140. .footer-hr{
  141. height: 1upx;
  142. width: 90%;
  143. background-color: #e1e1e1;
  144. margin: 0 auto;
  145. }
  146. </style>