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

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