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

334 lines
8.4 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
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="head-top">
  4. <view class="lf-row-between pic-top">
  5. <view class="lf-row-round">
  6. <view>
  7. <!-- <lf-image style="width: 160rpx;height: 160rpx;" src="../../static/logo.png"></lf-image> -->
  8. <lf-image :src="user.avatar" mode="widthFix" class="head-pic"></lf-image>
  9. </view>
  10. <view class="head-left">
  11. <view class="head-name" @click="$url('/pages/my/editInfo')">
  12. <text>{{ user.number_nickname }}</text>
  13. <u-icon name="arrow-right lf-m-l-20"></u-icon>
  14. </view>
  15. <view class="head-text">{{ user.overall_state_text }}</view>
  16. </view>
  17. </view>
  18. <!-- <view class="lf-bg-white span-btn1" @click="$url('/pages/my/bindPhone')">
  19. 绑定手机号
  20. </view> -->
  21. </view>
  22. <view class="adv" @click="$url('/pages/my/getRedLine')">
  23. <view class="lf-row-between">
  24. <view>
  25. <view class="logo-my">
  26. <!-- <text class="lf-iconfont icon-dingzhi" style="font-size: 60rpx;color: white;"></text> -->
  27. <image src="../../static/images/read_line.png" mode="aspectFill" style="width: 60rpx;height: 60rpx;"></image>
  28. </view>
  29. </view>
  30. <view class="adv-content">
  31. <view class="lf-color-222 lf-font-32 lf-m-b-15">
  32. 红线数
  33. </view>
  34. <view class="lf-color-777 lf-font-26">促成您和心仪对象线下见面</view>
  35. </view>
  36. </view>
  37. <view class="lf-color-primary lf-font-32">
  38. {{ user.red_rope }}
  39. </view>
  40. </view>
  41. <!-- <view class="lf-row-between" style="height: 98rpx;padding: 0 32rpx;">
  42. <view class="lf-row-round lf-flex-column" @click="showRedthread()">
  43. <view class="lf-font-32 lf-color-white">0</view>
  44. <view class="lf-font-24 lf-color-white lf-p-t-20">红线</view>
  45. </view>
  46. <view class="lf-row-round lf-flex-column" @click="showPeachblossom()">
  47. <view class="lf-font-32 lf-color-white">5</view>
  48. <view class="lf-font-24 lf-color-white lf-p-t-20">桃花</view>
  49. </view>
  50. <view class="lf-row-round lf-flex-column" @click="$url('/pages/my/seeMe')">
  51. <view class="lf-font-32 lf-color-white">0</view>
  52. <view class="lf-font-24 lf-color-white lf-p-t-20">谁看过我</view>
  53. </view>
  54. <view class="lf-row-round lf-flex-column" @click="$url('/pages/my/likeMe')">
  55. <view class="lf-font-32 lf-color-white">0</view>
  56. <view class="lf-font-24 lf-color-white lf-p-t-20">喜欢我的</view>
  57. </view>
  58. <view class="lf-row-round lf-flex-column">
  59. <view class="lf-font-32 lf-color-white">70%</view>
  60. <view class="lf-font-24 lf-color-white lf-p-t-20">资料完整</view>
  61. </view>
  62. </view> -->
  63. <!-- <view class="head-top-wrap lf-w-100 lf-h-100">
  64. <view class="lf-w-100 tips-wrap">
  65. <view class="tips">
  66. <view class="lf-row-round lf-w-100 lf-h-100 lf-p-b-12">
  67. <view class="lf-color-white lf-font-28">VIP会员拥有专属权益</view>
  68. <view class="lf-bg-white span-btn" @click="$url('/pages/my/memberVip')">
  69. 了解详情
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view> -->
  75. </view>
  76. <view class="classify">
  77. <view class="card" v-for="(item,index) in list" :key="index" @click="$url(item.path)">
  78. <view class="lf-row-center" style="align-content: center;">
  79. <!-- <u-icon class="classify-icon" :name="item.icon"></u-icon> -->
  80. <image class="classify-icon" :src="item.pic" mode="aspectFill"></image>
  81. </view>
  82. <view>
  83. {{item.name}}
  84. </view>
  85. </view>
  86. </view>
  87. <view style="height: 30rpx;"></view>
  88. </view>
  89. </template>
  90. <script scoped="scoped">
  91. export default {
  92. data() {
  93. return {
  94. list: [
  95. {name: '我的红娘',icon:'github-circle-fill',path: '/pages/my/exclusiveMatch',pic: '../../static/my/red.png'},
  96. {name: '实名认证',icon:'email',path: '/pages/my/authentication',pic: '../../static/my/authen.png'},
  97. // {name: '我喜欢的',icon:'qzone',path: '/pages/my/collect',pic: '../../static/my/collect.png'},
  98. // {name: '我的动态',icon:'moments',path:'/pages/my/qzone',pic: '../../static/my/qzone.png'},
  99. // {name: '福利中心',icon:'red-packet',path:'/pages/my/welfare',pic: '../../static/my/welhare.png'},
  100. {name: '公众号',icon:'google-circle-fill',path:'/pages/my/officialAccount',pic: '../../static/my/public.png'},
  101. {name: '联系客服',icon:'kefu-ermai',path: '/pages/my/service',pic: '../../static/my/service.png'},
  102. // {name: '设置',icon:'setting',path: '/pages/my/setting',pic: '../../static/my/setting.png'}
  103. ],
  104. user: {}
  105. }
  106. },
  107. onLoad(){
  108. this.getData();
  109. },
  110. methods: {
  111. showRedthread() {
  112. uni.showModal({
  113. title: '红线说明',
  114. content: '红线可以用来联系其他会员,对方不接受则24小时后退还红线',
  115. showCancel: false,
  116. cancelText: '我知道了',
  117. confirmColor: '#E21196',
  118. success: res => {
  119. if (res.confirm) {
  120. console.log('用户点击确定');
  121. this.$url('/pages/my/getRedLine');
  122. }
  123. }
  124. });
  125. },
  126. showPeachblossom() {
  127. uni.showModal({
  128. title: '桃花说明',
  129. content: '桃花可以用来发布动态、评论等,签到可以获得桃花',
  130. showCancel: false,
  131. cancelText: '我知道了',
  132. confirmColor: '#E21196',
  133. success: function (res) {
  134. if (res.confirm) {
  135. console.log('用户点击确定');
  136. }
  137. }
  138. });
  139. },
  140. getData(){
  141. this.$http(this.API.API_UCENTER).then(res => {
  142. this.user = res.data.user;
  143. })
  144. }
  145. }
  146. }
  147. </script>
  148. <style>
  149. page {
  150. background-color: #F5F5F5;
  151. }
  152. </style>
  153. <style lang="scss">
  154. .logo-my {
  155. width: 135rpx;
  156. height: 135rpx;
  157. background: linear-gradient(180deg, #FE3EA5 0%, #FE7251 100%);
  158. border-radius: 50%;
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. margin-right: 15rpx;
  163. }
  164. .head-top {
  165. width: 100%;
  166. //隐藏部分
  167. // height: 480rpx;
  168. height: 320rpx;
  169. position: relative;
  170. z-index: 9;
  171. /* background-color: red; */
  172. }
  173. .head-top-wrap {
  174. width: 100%;
  175. height: 180rpx;
  176. /* z-index: -1; */
  177. overflow: hidden;
  178. position: relative;
  179. }
  180. .head-top::after {
  181. content: '';
  182. width: 184%;
  183. // height: 440rpx;
  184. height: 350rpx;
  185. position: absolute;
  186. left: -312rpx;
  187. top: 0;
  188. z-index: -1;
  189. // border-radius: 0 586px 586px/0 0 200rpx 200rpx;
  190. border-radius: 0 0 50% 50%;
  191. background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
  192. }
  193. .tips-wrap {
  194. overflow: hidden;
  195. height: 660rpx;
  196. border-radius: 0 586px 586px/0 0 200rpx 200rpx;
  197. position: absolute;
  198. top: -494rpx;
  199. }
  200. .tips {
  201. width: 686rpx;
  202. height: 125rpx;
  203. background-color: #314177;
  204. border-radius: 20rpx;
  205. position: relative;
  206. bottom: -536rpx;
  207. left: 0;
  208. margin: 0 auto;
  209. }
  210. .span-btn {
  211. border-radius: 25rpx;
  212. width: 149rpx;
  213. height: 50rpx;
  214. display: flex;
  215. align-items: center;
  216. justify-content: center;
  217. font-size: 24rpx;
  218. color: #314177;
  219. }
  220. .head-pic {
  221. width: 160rpx;
  222. height: 160rpx;
  223. border: 5rpx solid #FFFFFF;
  224. border-radius: 50%;
  225. }
  226. .adv-pic {
  227. width: 135rpx;
  228. height: 135rpx;
  229. border-radius: 50%;
  230. margin-right: 15rpx;
  231. }
  232. .head-text {
  233. font-size: 28rpx;
  234. color: #FFFFFF;
  235. font-weight: 400;
  236. line-height: 40rpx;
  237. }
  238. .pic-top {
  239. padding: 48rpx 32rpx 40rpx 48rpx;
  240. }
  241. .span-btn1 {
  242. border-radius: 25rpx;
  243. width: 149rpx;
  244. height: 50rpx;
  245. display: flex;
  246. align-items: center;
  247. justify-content: center;
  248. font-size: 24rpx;
  249. color: #E21196;
  250. font-weight: 400;
  251. line-height: 33rpx;
  252. }
  253. .head-name {
  254. font-weight: 500;
  255. color: #FFFFFF;
  256. line-height: 45rpx;
  257. letter-spacing: 1rpx;
  258. font-size: 32rpx;
  259. }
  260. .head-left {
  261. padding: 20rpx;
  262. height: 160rpx;
  263. display: flex;
  264. flex-direction: column;
  265. justify-content: space-evenly;
  266. }
  267. .adv {
  268. width: 686rpx;
  269. height: 195rpx;
  270. background-color: white;
  271. border-radius: 20rpx;
  272. margin: -10rpx auto;
  273. display: flex;
  274. // padding: 0 0 0 30rpx;
  275. justify-content: space-around;
  276. align-items: center;
  277. }
  278. .adv-content {
  279. display: flex;
  280. flex-direction: column;
  281. justify-content: space-around;
  282. }
  283. .classify {
  284. width: 686rpx;
  285. display: flex;
  286. background-color: white;
  287. border-radius: 20rpx;
  288. margin: 0 auto;
  289. flex-wrap: wrap;
  290. padding: 38rpx 30rpx;
  291. margin-top: 170rpx;
  292. }
  293. .card {
  294. width: 116rpx;
  295. height: 116rpx;
  296. text-align: center;
  297. position: relative;
  298. overflow: hidden;
  299. margin-right: 54rpx;
  300. // margin-bottom: 68rpx;
  301. &:nth-child(4n) {
  302. margin-right: 0;
  303. }
  304. &:nth-child(n + 5) {
  305. margin-top: 68rpx;
  306. }
  307. }
  308. .classify-icon {
  309. height: 48rpx;
  310. width: 45rpx;
  311. font-size: 48rpx;
  312. margin-bottom: 22rpx;
  313. }
  314. </style>