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

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