editInformation.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <template>
  2. <view class="information-box" :style="{'background-image': 'url('+headPortrait+')'}">
  3. <en-nav :title="title" bgckground-box="rgba(0, 0, 0, 0.6)" :right-show="true" :right-type="2" @navHeight="setNavHeight">
  4. <template v-slot:right>
  5. <text class="nav-right sys-weight-600 sys-color-white">预览</text>
  6. </template>
  7. </en-nav>
  8. <scroll-view class="information-data" :scroll-y="true" :style="{'height':'calc(100% - '+navHeight+'px)'}">
  9. <view class="information-top">
  10. <view class="top-head">
  11. <view class="head-box">
  12. <image class="head-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  13. </view>
  14. </view>
  15. <view class="information-proportion">
  16. <view class="proportion-text sys-color-white sys-weight-400">资料已完善20%</view>
  17. </view>
  18. <view class="information-text sys-color-white sys-weight-400">
  19. 资料完整度越高,匹配率越高,社交能力越强哦
  20. </view>
  21. </view>
  22. <view class="edit-data ">
  23. <view class="photograph-data">
  24. <view class="photograph-title">
  25. <view class="title-data">
  26. <text class="title-text sys-height-44 sys-color-black sys-weight-600">个人照片</text>
  27. <text class="num-text sys-height-44 sys-color-gray-9">(1/9)</text>
  28. </view>
  29. <view class="proportion-data sys-height-44 sys-color-gray-9">
  30. +20%
  31. </view>
  32. </view>
  33. <view class="photograph-list">
  34. <view class="photograph-item" v-for="i in 1">
  35. <image class="photograph-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  36. </view>
  37. <view class="photograph-add">
  38. <text class="iconfont"> &#xe627;</text>
  39. </view>
  40. </view>
  41. <view class="photograph-describe sys-weight-600">完成头像认证,收获更多曝光与喜欢</view>
  42. </view>
  43. <view class="edit-item">
  44. <view class="item-title">
  45. <view class="item-title-text sys-weight-600 sys-color-black sys-height-44">关于我</view>
  46. <view class="item-title-proportion sys-weight-600 sys-color-black sys-height-44">+10%</view>
  47. </view>
  48. <view class="item-data">
  49. <view class="row-text sys-height-44 sys-color-gray-9">来写个性宣言,完成你的社交第一步</view>
  50. <view class="row-icon">
  51. <text class="iconfont sys-height-44 sys-color-gray-9"> &#xe62b;</text>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="edit-item">
  56. <view class="item-title">
  57. <view class="item-title-text sys-weight-600 sys-color-black sys-height-44">交友目的</view>
  58. <view class="item-title-proportion sys-weight-600 sys-color-black sys-height-44">+10%</view>
  59. </view>
  60. <view class="item-data">
  61. <view class="row-text sys-height-44 sys-color-gray-9">认识朋友</view>
  62. <view class="row-icon">
  63. <text class="iconfont sys-height-44 sys-color-gray-9"> &#xe62b;</text>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="edit-item">
  68. <view class="item-title">
  69. <view class="item-title-text sys-weight-600 sys-color-black sys-height-44">添加微信</view>
  70. <view class="item-title-proportion sys-weight-600 sys-color-black sys-height-44">+10%</view>
  71. </view>
  72. <view class="item-data">
  73. <view class="row-text sys-height-44 sys-color-gray-9">上传微信,赚取奖励</view>
  74. <view class="row-icon">
  75. <text class="iconfont sys-height-44 sys-color-gray-9"> &#xe62b;</text>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="edit-item">
  80. <view class="item-title">
  81. <view class="item-title-text sys-weight-600 sys-color-black sys-height-44">兴趣</view>
  82. <view class="item-title-proportion sys-weight-600 sys-color-black sys-height-44">+10%</view>
  83. </view>
  84. <view class="item-interest">
  85. <view class="interest-item" v-for="i in 2">
  86. <image class="interest-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  87. <view class="interest-text sys-height-44">游泳</view>
  88. </view>
  89. <view class="interest-add">
  90. <view class="interest-add-icon"> <text class="iconfont"> &#xe627;</text></view>
  91. <view class="interest-text sys-height-44">添加</view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="edit-item">
  96. <view class="item-title">
  97. <view class="item-title-text sys-weight-600 sys-color-black sys-height-44">基础信息</view>
  98. <view class="item-title-proportion sys-weight-600 sys-color-black sys-height-44">+30%</view>
  99. </view>
  100. <view class="item-from">
  101. <view class="from-item">
  102. <view class="from-item-title sys-height-44 sys-weight-400">昵称</view>
  103. <view class="from-item-data">
  104. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  105. <view class="item-data-icon">
  106. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="from-item">
  111. <view class="from-item-title sys-height-44 sys-weight-400">出生日期</view>
  112. <view class="from-item-data">
  113. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  114. <view class="item-data-icon">
  115. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="from-item">
  120. <view class="from-item-title sys-height-44 sys-weight-400">年龄</view>
  121. <view class="from-item-data">
  122. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  123. <view class="item-data-icon">
  124. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="from-item">
  129. <view class="from-item-title sys-height-44 sys-weight-400">星座</view>
  130. <view class="from-item-data">
  131. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  132. <view class="item-data-icon">
  133. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="from-item">
  138. <view class="from-item-title sys-height-44 sys-weight-400">学校</view>
  139. <view class="from-item-data">
  140. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  141. <view class="item-data-icon">
  142. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="from-item">
  147. <view class="from-item-title sys-height-44 sys-weight-400">家乡</view>
  148. <view class="from-item-data">
  149. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  150. <view class="item-data-icon">
  151. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="from-item">
  156. <view class="from-item-title sys-height-44 sys-weight-400">职业</view>
  157. <view class="from-item-data">
  158. <view class="item-data-text sys-height-44 sys-color-gray-9 sys-weight-400">江湖救急</view>
  159. <view class="item-data-icon">
  160. <text class="iconfont sys-color-gray-9 sys-weight-400"> &#xe62b;</text>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <view class="edit-but sys-background-black sys-weight-600 sys-color-white">保存</view>
  167. </view>
  168. </scroll-view>
  169. </view>
  170. </template>
  171. <script>
  172. import EnNav from "@/components/en-utils/en-nav/en-nav";
  173. export default {
  174. components: {EnNav},
  175. data() {
  176. return {
  177. title:'编辑资料',
  178. headPortrait:'/static/img/temporary/3.png',
  179. navHeight:0
  180. }
  181. },
  182. methods: {
  183. setNavHeight(navHeight){
  184. this.navHeight=navHeight
  185. }
  186. }
  187. }
  188. </script>
  189. <style scoped lang="scss">
  190. .information-box{
  191. background-repeat: no-repeat;//不平铺
  192. background-position: top center;//居中
  193. background-size: contain;//随容器大小
  194. width: 100vw;
  195. height: 100vh;
  196. .nav-right{
  197. font-size: 32rpx;
  198. }
  199. .information-data{
  200. background-color: rgba(0,0,0,0.6);
  201. .information-top{
  202. padding-bottom: 34rpx;
  203. //height: 444rpx;
  204. .top-head{
  205. margin-top: 70rpx;
  206. display: flex;
  207. justify-content: center;
  208. .head-box{
  209. width: 200rpx;
  210. height: 200rpx;
  211. border-radius: 50%;
  212. }
  213. .head-img{
  214. margin:22rpx ;
  215. width: 156rpx;
  216. height: 156rpx;
  217. border-radius: 50%;
  218. }
  219. }
  220. .information-proportion{
  221. margin-top: 16rpx;
  222. display: flex;
  223. justify-content: center;
  224. .proportion-text{
  225. background: rgba(0,0,0,0.29);
  226. border-radius: 20rpx;
  227. height: 56rpx;
  228. line-height: 56rpx;
  229. font-size: 28rpx;
  230. text-align: center;
  231. padding: 0 16rpx;
  232. }
  233. }
  234. .information-text{
  235. margin-top: 24rpx;
  236. text-align: center;
  237. font-size: 24rpx;
  238. }
  239. }
  240. .edit-data{
  241. border-radius: 30rpx 30rpx 0 0;
  242. background-color: #fff;
  243. padding: 32rpx 32rpx calc(32rpx + env(safe-area-inset-bottom)) 32rpx;
  244. .photograph-title{
  245. display: flex;
  246. justify-content: space-between;
  247. .title-data{
  248. .title-text{
  249. font-size: 32rpx;
  250. margin-right: 16rpx;
  251. }
  252. .num-text{
  253. font-size: 28rpx;
  254. }
  255. }
  256. .proportion-data{
  257. font-size: 28rpx;
  258. }
  259. }
  260. .photograph-list{
  261. margin-top: 26rpx;
  262. overflow-x: auto;
  263. display: flex;
  264. justify-content: flex-start;
  265. overflow-y: scroll;
  266. .photograph-item{
  267. margin-right: 16rpx;
  268. .photograph-img{
  269. width: 240rpx;
  270. height: 316rpx;
  271. border-radius: 16rpx;
  272. }
  273. }
  274. .photograph-add{
  275. width: 240rpx;
  276. height: 316rpx;
  277. border-radius: 16rpx;
  278. background-color: #F9F9F9;
  279. text-align: center;
  280. line-height: 316rpx;
  281. .iconfont{
  282. font-size: 70rpx;
  283. color: #999;
  284. }
  285. }
  286. }
  287. .photograph-describe{
  288. margin-top: 32rpx;
  289. font-size: 28rpx;
  290. text-align: center;
  291. color: #2F80ED;
  292. }
  293. .edit-item{
  294. margin-top: 40rpx;
  295. .item-title{
  296. display: flex;
  297. justify-content: space-between;
  298. height: 44rpx;
  299. .item-title-text{
  300. font-size: 32rpx;
  301. }
  302. .item-title-proportion{
  303. font-size: 28rpx;
  304. }
  305. }
  306. .item-data{
  307. background-color: #F9F9F9;
  308. border-radius: 12rpx;
  309. display: flex;
  310. justify-content: space-between;
  311. padding: 24rpx;
  312. height: 44rpx;
  313. .row-text{
  314. font-size: 28rpx;
  315. }
  316. .row-icon{
  317. .iconfont{
  318. font-size: 28rpx;
  319. }
  320. }
  321. }
  322. .item-interest{
  323. padding: 24rpx;
  324. height: 172rpx;
  325. background: #F9F9F9;
  326. border-radius: 12rpx;
  327. overflow-x: auto;
  328. display: flex;
  329. justify-content: flex-start;
  330. .interest-item{
  331. margin-right: 16rpx;
  332. .interest-img{
  333. width: 120rpx;
  334. height: 120rpx;
  335. border-radius: 50%;
  336. }
  337. .interest-text{
  338. text-align: center;
  339. font-size: 26rpx;
  340. color: #BDBDBD;
  341. }
  342. }
  343. .interest-add{
  344. .interest-add-icon{
  345. background-color: #E0E0E0;
  346. width: 120rpx;
  347. height: 120rpx;
  348. border-radius: 50%;
  349. text-align: center;
  350. line-height: 120rpx;
  351. .iconfont{
  352. font-size:60rpx ;
  353. color: #999;
  354. }
  355. }
  356. .interest-text{
  357. text-align: center;
  358. font-size: 26rpx;
  359. color: #BDBDBD;
  360. margin-top: 8rpx;
  361. }
  362. }
  363. }
  364. .item-from{
  365. border-radius: 16rpx;
  366. background: #F9F9F9;
  367. .from-item{
  368. height: 44rpx;
  369. padding: 22rpx 24rpx;
  370. display: flex;
  371. justify-content: space-between;
  372. border-bottom: 1rpx solid #F2F2F2;
  373. .from-item-title{
  374. font-size: 28rpx;
  375. }
  376. .from-item-data{
  377. display: flex;
  378. justify-content: space-between;
  379. .item-data-text{
  380. font-size: 28rpx;
  381. }
  382. .item-data-icon{
  383. .iconfont{
  384. font-size: 28rpx;
  385. line-height: 50rpx;
  386. }
  387. }
  388. }
  389. }
  390. .from-item:last-child{
  391. border-bottom: none;
  392. }
  393. }
  394. }
  395. .edit-but{
  396. border-radius: 16rpx;
  397. height: 88rpx;
  398. line-height: 88rpx;
  399. text-align: center;
  400. font-size: 32rpx;
  401. }
  402. }
  403. }
  404. }
  405. </style>