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

283 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
  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. },
  105. methods: {
  106. getMemberDetail(){
  107. this.$http(this.API.API_MEMBERS_DETAIL, {
  108. number: this.number_id
  109. }).then(res => {
  110. let list = [];
  111. let member = res.data.member;
  112. this.member = member;
  113. for(let i in member){
  114. if(i == 'number_nickname' && member[i]){
  115. list.push({title: '编号', content: member[i]});
  116. }
  117. if(i == 'gender' && member[i]){
  118. list.push({title: '性别', content: member[i]});
  119. }
  120. if(i == 'marital_status' && member[i]){
  121. list.push({title: '婚史', content: member[i]});
  122. }
  123. if(i == 'age' && member[i]){
  124. list.push({title: '年龄', content: member[i] +'岁'});
  125. }
  126. if(i == 'height' && member[i]){
  127. list.push({title: '身高', content: member[i]});
  128. }
  129. if(i == 'weight' && member[i]){
  130. list.push({title: '体重', content: member[i]});
  131. }
  132. if(i == 'zodiac' && member[i]){
  133. list.push({title: '属相', content: member[i]});
  134. }
  135. if(i == 'constellation' && member[i]){
  136. list.push({title: '星座', content: member[i]});
  137. }
  138. if(i == 'education' && this.$isRight(member[i])){
  139. list.push({title: '学历', content: member[i].name});
  140. }
  141. if(i == 'enterprise' && this.$isRight(member[i])){
  142. list.push({title: '单位性质', content: member[i].name});
  143. }
  144. if(i == 'salary' && this.$isRight(member[i])){
  145. list.push({title: '年薪', content: member[i].name});
  146. }
  147. if(i == 'area' && this.$isRight(member[i])){
  148. list.push({title: '居住地区', content: member[i].name});
  149. }
  150. // TODO 缺少户籍和所属行业
  151. }
  152. this.list = list;
  153. })
  154. },
  155. share(){
  156. this.$msg('复制链接成功!')
  157. uni.setClipboardData({
  158. data: 'a',
  159. complete: () => {
  160. console.log("aaa")
  161. }
  162. });
  163. }
  164. }
  165. }
  166. </script>
  167. <style>
  168. page {
  169. background-color: #F5F5F5;
  170. }
  171. </style>
  172. <style lang="scss" scoped>
  173. .tabbar-bottom {
  174. width: 100%;
  175. background-color: white;
  176. height: 110rpx;
  177. position: fixed;
  178. bottom: 0;
  179. display: flex;
  180. justify-content: space-between;
  181. padding: 15rpx 32rpx;
  182. }
  183. .tabbar-btn {
  184. width: 362rpx;
  185. height: 88rpx;
  186. background: #E21196;
  187. color: white;
  188. border-radius: 45rpx;
  189. }
  190. .info-content {
  191. width: 686rpx;
  192. height: 100%;
  193. background: #FFFFFF;
  194. border-radius: 10rpx;
  195. margin: 0 auto;
  196. padding: 30rpx;
  197. }
  198. .authen-title {
  199. position: relative;
  200. font-size: 32rpx;
  201. color: #131315;
  202. font-weight: 500;
  203. }
  204. .info-tag {
  205. width: 686rpx;
  206. height: 100%;
  207. background: #FFFFFF;
  208. border-radius: 10rpx;
  209. margin: 30rpx auto;
  210. padding: 30rpx;
  211. }
  212. .authen-title::after {
  213. content: '';
  214. position: absolute;
  215. left: 0;
  216. top: 8rpx;
  217. width: 8rpx;
  218. height: 30rpx;
  219. background: #E21196;
  220. border-radius: 4rpx;
  221. }
  222. .content{
  223. width: 100%;
  224. height: auto;
  225. box-sizing: border-box;
  226. padding-bottom: 30rpx;
  227. .swiper{
  228. width: 750rpx;
  229. height: 750rpx;
  230. }
  231. .list{
  232. padding-top: 30rpx;
  233. display: flex;
  234. width: 100%;
  235. height: max-content;
  236. display: flex;
  237. align-items: center;
  238. justify-content: space-between;
  239. .avatar{
  240. width: 150rpx;
  241. height: 150rpx;
  242. border-radius: 10rpx;
  243. margin-right: 15rpx;
  244. background-color: #EEEEEE;
  245. }
  246. .info{
  247. min-height: 150rpx;
  248. width: 598rpx;
  249. display: flex;
  250. align-content: space-between;
  251. flex-wrap: wrap;
  252. flex-direction: column;
  253. }
  254. }
  255. .sketch{
  256. width: 686rpx;
  257. height: 160rpx;
  258. background: #F5F5F5;
  259. border-radius: 10rpx 30rpx 10rpx 30rpx;
  260. margin: 60rpx auto 0;
  261. box-sizing: border-box;
  262. padding: 30rpx;
  263. font-size: 24rpx;
  264. color: #333333;
  265. }
  266. }
  267. .star {
  268. width: 80rpx;
  269. height: 80rpx;
  270. background: #FFFFFF;
  271. box-shadow: 0px 2rpx 10rpx 5rpx rgba(226, 17, 150, 0.05);
  272. border-radius: 50%;
  273. display: flex;
  274. align-items: center;
  275. justify-content: center;
  276. }
  277. </style>