详情小程序
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.

284 lines
7.7 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view class="lf-w-100 lf-h-100">
  3. <block v-if="$isRight(member)">
  4. <view class="content lf-bg-white lf-m-b-30">
  5. <swiper class="swiper">
  6. <swiper-item>
  7. <lf-image :src="member.user.avatar"></lf-image>
  8. </swiper-item>
  9. </swiper>
  10. <view class="list lf-p-l-32 lf-p-r-32">
  11. <!-- <lf-image class="avatar" src="@/static/logo.png"></lf-image> -->
  12. <view class="info">
  13. <view class="lf-flex-1">
  14. <text>{{ member.number_nickname }}</text>
  15. <text class="lf-iconfont icon-nv lf-m-l-10 lf-color-primary" v-if="member.gender == '女'"></text>
  16. <text class="lf-iconfont icon-nan lf-m-l-10 color-nan" v-else></text>
  17. </view>
  18. <view class="lf-flex-1 lf-m-t-16">{{ member.age }}·{{ member.zodiac }}·{{ member.height }}cm·{{ member.education_id }}·{{ member.marital_status }}</view>
  19. <view class="lf-flex-1 lf-m-t-16">自有公司·金融/证券/保险·50万以上</view>
  20. </view>
  21. <!-- <view class="star">
  22. <u-icon name="star-fill lf-font-40" style="color: #D1D1D1;"></u-icon>
  23. </view> -->
  24. </view>
  25. <!-- <view class="sketch">大家好我是私人订制红娘-笑笑如果你不想在平台上面曝光需要我为你全程服务精准高效速配脱单的加我微信18399999999</view> -->
  26. </view>
  27. <view class="info-content">
  28. <view class="lf-color-222 lf-font-32 authen-title lf-p-l-20">信息资料</view>
  29. <view class="lf-row-between lf-m-t-30" v-for="(item, index) in list" :key="index">
  30. <view class="lf-color-333 lf-font-28">{{item.title}}</view>
  31. <view class="lf-color-333 lf-font-28">{{item.content}}</view>
  32. </view>
  33. </view>
  34. <view class="lf-p-l-32 lf-p-r-32 info-tag">
  35. <view class="lf-color-222 lf-font-32 lf-m-b-30 authen-title lf-p-l-20">家庭与房车</view>
  36. <view class="lf-color-333 lf-font-28">
  37. 了解Ta的购车住房情况和家庭成员资料
  38. </view>
  39. <view class="lf-font-24 lf-m-t-20" style="color: #E21196;" @click="$url('/pages/my/authentication')">
  40. 实名认证后可查看>>
  41. </view>
  42. </view>
  43. <view class="lf-p-l-32 lf-p-r-32 info-tag" style="margin-bottom: 130rpx;">
  44. <view class="lf-color-222 lf-font-32 lf-m-b-30 authen-title lf-p-l-20">择偶要求</view>
  45. <view class="lf-color-333 lf-font-28">
  46. 了解Ta的婚史身高年龄等各项择偶要求
  47. </view>
  48. <view class="lf-font-24 lf-m-t-20" style="color: #E21196;" @click="$url('/pages/my/authentication')">
  49. 实名认证后可查看>>
  50. </view>
  51. </view>
  52. <view class="tabbar-bottom">
  53. <view class="lf-row-between">
  54. <view class="lf-flex-column" style="align-items: center;" @click="$url('/pages/my/service')">
  55. <view>
  56. <u-icon name="kefu-ermai lf-font-32 lf-color-555"></u-icon>
  57. </view>
  58. <view class="lf-color-555 lf-font-24">
  59. 客服
  60. </view>
  61. </view>
  62. <view class="lf-flex-column" style="align-items: center;margin-left: 50rpx;" @click="share">
  63. <view>
  64. <u-icon name="share lf-font-32 lf-color-555"></u-icon>
  65. </view>
  66. <view class="lf-color-555 lf-font-24">
  67. 分享
  68. </view>
  69. </view>
  70. <!-- 暂时隐藏部分 -->
  71. <!-- <view class="lf-flex-column" style="align-items: center;margin-left: 50rpx;">
  72. <view>
  73. <u-icon name="more-dot-fill lf-font-32 lf-color-555"></u-icon>
  74. </view>
  75. <view class="lf-color-555 lf-font-24">
  76. 更多
  77. </view>
  78. </view> -->
  79. </view>
  80. <view>
  81. <button class="tabbar-btn" @click="$url('/pages/my/exclusiveMatch')">联系Ta</button>
  82. </view>
  83. </view>
  84. </block>
  85. <!-- #ifdef H5 -->
  86. <view style="height: 10rpx;"></view>
  87. <!-- #endif -->
  88. <!-- 回到顶部 -->
  89. <u-back-top :scrollTop="pageScrollTop"></u-back-top>
  90. </view>
  91. </template>
  92. <script>
  93. export default {
  94. data() {
  95. return {
  96. list: [],
  97. number_id: 0,
  98. member: {}
  99. }
  100. },
  101. onLoad(options){
  102. this.number_id = options.id || 0;
  103. this.getMemberDetail();
  104. // todo 对接实名认证后才能看的信息
  105. },
  106. methods: {
  107. getMemberDetail(){
  108. this.$http(this.API.API_MEMBERS_DETAIL, {
  109. number: this.number_id
  110. }).then(res => {
  111. let list = [];
  112. let member = res.data.member;
  113. this.member = member;
  114. for(let i in member){
  115. if(i == 'number_nickname' && member[i]){
  116. list.push({title: '编号', content: member[i]});
  117. }
  118. if(i == 'gender' && member[i]){
  119. list.push({title: '性别', content: member[i]});
  120. }
  121. if(i == 'marital_status' && member[i]){
  122. list.push({title: '婚史', content: member[i]});
  123. }
  124. if(i == 'age' && member[i]){
  125. list.push({title: '年龄', content: member[i] +'岁'});
  126. }
  127. if(i == 'height' && member[i]){
  128. list.push({title: '身高', content: member[i]});
  129. }
  130. if(i == 'weight' && member[i]){
  131. list.push({title: '体重', content: member[i]});
  132. }
  133. if(i == 'zodiac' && member[i]){
  134. list.push({title: '属相', content: member[i]});
  135. }
  136. if(i == 'constellation' && member[i]){
  137. list.push({title: '星座', content: member[i]});
  138. }
  139. if(i == 'education' && this.$isRight(member[i])){
  140. list.push({title: '学历', content: member[i].name});
  141. }
  142. if(i == 'enterprise' && this.$isRight(member[i])){
  143. list.push({title: '单位性质', content: member[i].name});
  144. }
  145. if(i == 'salary' && this.$isRight(member[i])){
  146. list.push({title: '年薪', content: member[i].name});
  147. }
  148. if(i == 'area' && this.$isRight(member[i])){
  149. list.push({title: '居住地区', content: member[i].name});
  150. }
  151. // TODO 缺少户籍和所属行业
  152. }
  153. this.list = list;
  154. })
  155. },
  156. share(){
  157. this.$msg('复制链接成功!')
  158. uni.setClipboardData({
  159. data: 'a',
  160. complete: () => {
  161. console.log("aaa")
  162. }
  163. });
  164. }
  165. }
  166. }
  167. </script>
  168. <style>
  169. page {
  170. background-color: #F5F5F5;
  171. }
  172. </style>
  173. <style lang="scss" scoped>
  174. .tabbar-bottom {
  175. width: 100%;
  176. background-color: white;
  177. height: 110rpx;
  178. position: fixed;
  179. bottom: 0;
  180. display: flex;
  181. justify-content: space-between;
  182. padding: 15rpx 32rpx;
  183. }
  184. .tabbar-btn {
  185. width: 362rpx;
  186. height: 88rpx;
  187. background: #E21196;
  188. color: white;
  189. border-radius: 45rpx;
  190. }
  191. .info-content {
  192. width: 686rpx;
  193. height: 100%;
  194. background: #FFFFFF;
  195. border-radius: 10rpx;
  196. margin: 0 auto;
  197. padding: 30rpx;
  198. }
  199. .authen-title {
  200. position: relative;
  201. font-size: 32rpx;
  202. color: #131315;
  203. font-weight: 500;
  204. }
  205. .info-tag {
  206. width: 686rpx;
  207. height: 100%;
  208. background: #FFFFFF;
  209. border-radius: 10rpx;
  210. margin: 30rpx auto;
  211. padding: 30rpx;
  212. }
  213. .authen-title::after {
  214. content: '';
  215. position: absolute;
  216. left: 0;
  217. top: 8rpx;
  218. width: 8rpx;
  219. height: 30rpx;
  220. background: #E21196;
  221. border-radius: 4rpx;
  222. }
  223. .content{
  224. width: 100%;
  225. height: auto;
  226. box-sizing: border-box;
  227. padding-bottom: 30rpx;
  228. .swiper{
  229. width: 750rpx;
  230. height: 750rpx;
  231. }
  232. .list{
  233. padding-top: 30rpx;
  234. display: flex;
  235. width: 100%;
  236. height: max-content;
  237. display: flex;
  238. align-items: center;
  239. justify-content: space-between;
  240. .avatar{
  241. width: 150rpx;
  242. height: 150rpx;
  243. border-radius: 10rpx;
  244. margin-right: 15rpx;
  245. background-color: #EEEEEE;
  246. }
  247. .info{
  248. min-height: 150rpx;
  249. width: 598rpx;
  250. display: flex;
  251. align-content: space-between;
  252. flex-wrap: wrap;
  253. flex-direction: column;
  254. }
  255. }
  256. .sketch{
  257. width: 686rpx;
  258. height: 160rpx;
  259. background: #F5F5F5;
  260. border-radius: 10rpx 30rpx 10rpx 30rpx;
  261. margin: 60rpx auto 0;
  262. box-sizing: border-box;
  263. padding: 30rpx;
  264. font-size: 24rpx;
  265. color: #333333;
  266. }
  267. }
  268. .star {
  269. width: 80rpx;
  270. height: 80rpx;
  271. background: #FFFFFF;
  272. box-shadow: 0px 2rpx 10rpx 5rpx rgba(226, 17, 150, 0.05);
  273. border-radius: 50%;
  274. display: flex;
  275. align-items: center;
  276. justify-content: center;
  277. }
  278. </style>