详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
5.1 KiB

5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <view class="cu-chat">
  4. <view class="cu-info round lf-m-t-30">此小程序是一个半开放的本地陌生人交友相亲平台请注意文明相亲交友不违公序良俗!</view>
  5. <view class="cu-info round">请谨慎沟通若收到借款投资索要礼物等行为请马上<text style="color: red;">投诉举报</text>谨防诈骗平台求证后会做永久封号处理</view>
  6. <view class="cu-item lf-m-t-40">
  7. <view class="cu-avatar radius">
  8. <image class="lf-w-100 lf-h-100" src="../../static/logo.png" mode="aspectFill" ></image>
  9. </view>
  10. <view class="main">
  11. <view class="content shadow">
  12. <view class="lf-font-32 lf-color-222 lf-p-b-20 lf-w-100 lf-row-center" style="border-bottom: 1rpx solid #F5F5F5;">需要帮你联系吗?</view>
  13. <view class="lf-m-t-30 lf-p-b-30" style="border-bottom: 1rpx solid #F5F5F5;">
  14. <view class="lf-font-28">温馨提示</view>
  15. <view class="lf-font-28">申请对方联系方式将消耗一条红线</view>
  16. </view>
  17. <view class="lf-row-round lf-w-100 lf-p-t-20">
  18. <view class="lf-font-28" style="color: #E21196;" @click="apllyBind()">是的</view>
  19. <view class="lf-font-28" @click="$toBack()">不了</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="date "> 13:23</view>
  24. </view>
  25. <view class="cu-item self">
  26. <view class="main">
  27. <view class="action">
  28. <text class="cuIcon-locationfill text-orange text-xxl"></text>
  29. </view>
  30. <view class="content shadow">
  31. 嘉宾xxxx很符合我的期待,我想与Ta尝试配对
  32. </view>
  33. </view>
  34. <view class="cu-avatar radius">
  35. <image class="lf-w-100 lf-h-100" src="../../static/logo.png" mode="aspectFill" ></image>
  36. </view>
  37. <view class="date">13:23</view>
  38. </view>
  39. <view class="cu-item">
  40. <view class="cu-avatar radius">
  41. <image class="lf-w-100 lf-h-100" src="../../static/logo.png" mode="aspectFill" ></image>
  42. </view>
  43. <view class="main">
  44. <view class="content shadow">
  45. 嘻嘻,小红娘明白啦!已经将您的爱慕传达给了嘉宾xxx,咋们先等待一下Ta的回复吧
  46. </view>
  47. <view class="action text-grey">
  48. <text class="cuIcon-warnfill text-red text-xxl"></text>
  49. </view>
  50. </view>
  51. <view class="date">13:23</view>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. }
  61. },
  62. methods: {
  63. apllyBind() {
  64. uni.showModal({
  65. title: '提示',
  66. content: '确认联系对方吗?',
  67. cancelText: '下次一定',
  68. confirmColor: '#E21196',
  69. success: function (res) {
  70. if (res.confirm) {
  71. console.log('用户点击确定');
  72. }
  73. }
  74. });
  75. }
  76. }
  77. }
  78. </script>
  79. <style>
  80. page{
  81. padding-bottom: 100upx;
  82. background-color: #F5F5F5;
  83. }
  84. </style>
  85. <style lang="scss" scoped="scoped">
  86. .cu-chat {
  87. display: flex;
  88. flex-direction: column;
  89. }
  90. .cu-chat .cu-item {
  91. display: flex;
  92. padding: 30upx 30upx 70upx;
  93. position: relative;
  94. }
  95. .cu-chat .cu-item>.cu-avatar {
  96. width: 80upx;
  97. height: 80upx;
  98. border-radius: 50%;
  99. }
  100. .cu-chat .cu-item>.main {
  101. max-width: calc(100% - 200rpx);
  102. margin: 0 40upx;
  103. display: flex;
  104. align-items: center;
  105. }
  106. .cu-chat .cu-item>image {
  107. height: 320upx;
  108. }
  109. .cu-chat .cu-item>.main .content {
  110. padding: 20upx;
  111. border-radius: 6upx;
  112. display: inline-flex;
  113. width: 600rpx;
  114. align-items: center;
  115. font-size: 30upx;
  116. position: relative;
  117. min-height: 80upx;
  118. line-height: 40upx;
  119. text-align: left;
  120. display: flex;
  121. flex-direction: column;
  122. }
  123. .cu-chat .cu-item>.main .content:not([class*="bg-"]) {
  124. background-color: #ffffff;
  125. color: #333333;
  126. }
  127. .cu-chat .cu-item .date {
  128. position: absolute;
  129. font-size: 24upx;
  130. color: #8799a3;
  131. width: calc(100% - 320upx);
  132. bottom: 20upx;
  133. left: 160upx;
  134. }
  135. .cu-chat .cu-item .action {
  136. padding: 0 30upx;
  137. display: flex;
  138. align-items: center;
  139. }
  140. .cu-chat .cu-item>.main .content::after {
  141. content: "";
  142. top: 27upx;
  143. transform: rotate(45deg);
  144. position: absolute;
  145. z-index: 100;
  146. display: inline-block;
  147. overflow: hidden;
  148. width: 24upx;
  149. height: 24upx;
  150. left: -12upx;
  151. right: initial;
  152. background-color: inherit;
  153. }
  154. .cu-chat .cu-item.self>.main .content::after {
  155. left: auto;
  156. right: -12upx;
  157. }
  158. .cu-chat .cu-item>.main .content::before {
  159. content: "";
  160. top: 30upx;
  161. transform: rotate(45deg);
  162. position: absolute;
  163. z-index: -1;
  164. display: inline-block;
  165. overflow: hidden;
  166. width: 24upx;
  167. height: 24upx;
  168. left: -12upx;
  169. right: initial;
  170. background-color: inherit;
  171. filter: blur(5upx);
  172. opacity: 0.3;
  173. }
  174. .cu-chat .cu-item>.main .content:not([class*="bg-"])::before {
  175. background-color: #333333;
  176. opacity: 0.1;
  177. }
  178. .cu-chat .cu-item.self>.main .content::before {
  179. left: auto;
  180. right: -12upx;
  181. }
  182. .cu-chat .cu-item.self {
  183. justify-content: flex-end;
  184. text-align: right;
  185. }
  186. .cu-chat .cu-info {
  187. display: inline-block;
  188. margin: 20upx auto;
  189. font-size: 24upx;
  190. padding: 8upx 12upx;
  191. background-color: rgba(0, 0, 0, 0.2);
  192. border-radius: 6upx;
  193. color: #ffffff;
  194. max-width: 690rpx;
  195. line-height: 1.4;
  196. }
  197. </style>