editInformation.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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" @click="goToUrl(1)">
  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" @click="goToUrl(2)">
  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" @click="goToUrl(2)">
  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" @click="goToUrl(2)">
  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" @click="goToUrl(3)">
  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. goToUrl(type){
  187. if(type===1){
  188. uni.navigateTo({
  189. 'url':'./edit/nickname'
  190. })
  191. }else if(type===2){
  192. uni.navigateTo({
  193. 'url':'./edit/age'
  194. })
  195. }else if(type===3){
  196. uni.navigateTo({
  197. 'url':'./edit/school'
  198. })
  199. }
  200. }
  201. }
  202. }
  203. </script>
  204. <style scoped lang="scss">
  205. .information-box{
  206. background-repeat: no-repeat;//不平铺
  207. background-position: top center;//居中
  208. background-size: contain;//随容器大小
  209. width: 100vw;
  210. height: 100vh;
  211. .nav-right{
  212. font-size: 32rpx;
  213. }
  214. .information-data{
  215. background-color: rgba(0,0,0,0.6);
  216. .information-top{
  217. padding-bottom: 34rpx;
  218. //height: 444rpx;
  219. .top-head{
  220. margin-top: 70rpx;
  221. display: flex;
  222. justify-content: center;
  223. .head-box{
  224. width: 200rpx;
  225. height: 200rpx;
  226. border-radius: 50%;
  227. }
  228. .head-img{
  229. margin:22rpx ;
  230. width: 156rpx;
  231. height: 156rpx;
  232. border-radius: 50%;
  233. }
  234. }
  235. .information-proportion{
  236. margin-top: 16rpx;
  237. display: flex;
  238. justify-content: center;
  239. .proportion-text{
  240. background: rgba(0,0,0,0.29);
  241. border-radius: 20rpx;
  242. height: 56rpx;
  243. line-height: 56rpx;
  244. font-size: 28rpx;
  245. text-align: center;
  246. padding: 0 16rpx;
  247. }
  248. }
  249. .information-text{
  250. margin-top: 24rpx;
  251. text-align: center;
  252. font-size: 24rpx;
  253. }
  254. }
  255. .edit-data{
  256. border-radius: 30rpx 30rpx 0 0;
  257. background-color: #fff;
  258. padding: 32rpx 32rpx calc(32rpx + env(safe-area-inset-bottom)) 32rpx;
  259. .photograph-title{
  260. display: flex;
  261. justify-content: space-between;
  262. .title-data{
  263. .title-text{
  264. font-size: 32rpx;
  265. margin-right: 16rpx;
  266. }
  267. .num-text{
  268. font-size: 28rpx;
  269. }
  270. }
  271. .proportion-data{
  272. font-size: 28rpx;
  273. }
  274. }
  275. .photograph-list{
  276. margin-top: 26rpx;
  277. overflow-x: auto;
  278. display: flex;
  279. justify-content: flex-start;
  280. overflow-y: scroll;
  281. .photograph-item{
  282. margin-right: 16rpx;
  283. .photograph-img{
  284. width: 240rpx;
  285. height: 316rpx;
  286. border-radius: 16rpx;
  287. }
  288. }
  289. .photograph-add{
  290. width: 240rpx;
  291. height: 316rpx;
  292. border-radius: 16rpx;
  293. background-color: #F9F9F9;
  294. text-align: center;
  295. line-height: 316rpx;
  296. .iconfont{
  297. font-size: 70rpx;
  298. color: #999;
  299. }
  300. }
  301. }
  302. .photograph-describe{
  303. margin-top: 32rpx;
  304. font-size: 28rpx;
  305. text-align: center;
  306. color: #2F80ED;
  307. }
  308. .edit-item{
  309. margin-top: 40rpx;
  310. .item-title{
  311. padding-bottom: 24rpx;
  312. display: flex;
  313. justify-content: space-between;
  314. height: 44rpx;
  315. .item-title-text{
  316. font-size: 32rpx;
  317. }
  318. .item-title-proportion{
  319. font-size: 28rpx;
  320. }
  321. }
  322. .item-data{
  323. background-color: #F9F9F9;
  324. border-radius: 12rpx;
  325. display: flex;
  326. justify-content: space-between;
  327. padding: 24rpx;
  328. height: 44rpx;
  329. .row-text{
  330. font-size: 28rpx;
  331. }
  332. .row-icon{
  333. .iconfont{
  334. font-size: 28rpx;
  335. }
  336. }
  337. }
  338. .item-interest{
  339. padding: 24rpx;
  340. height: 172rpx;
  341. background: #F9F9F9;
  342. border-radius: 12rpx;
  343. overflow-x: auto;
  344. display: flex;
  345. justify-content: flex-start;
  346. .interest-item{
  347. margin-right: 16rpx;
  348. .interest-img{
  349. width: 120rpx;
  350. height: 120rpx;
  351. border-radius: 50%;
  352. }
  353. .interest-text{
  354. text-align: center;
  355. font-size: 26rpx;
  356. color: #BDBDBD;
  357. }
  358. }
  359. .interest-add{
  360. .interest-add-icon{
  361. background-color: #E0E0E0;
  362. width: 120rpx;
  363. height: 120rpx;
  364. border-radius: 50%;
  365. text-align: center;
  366. line-height: 120rpx;
  367. .iconfont{
  368. font-size:60rpx ;
  369. color: #999;
  370. }
  371. }
  372. .interest-text{
  373. text-align: center;
  374. font-size: 26rpx;
  375. color: #BDBDBD;
  376. margin-top: 8rpx;
  377. }
  378. }
  379. }
  380. .item-from{
  381. border-radius: 16rpx;
  382. background: #F9F9F9;
  383. .from-item{
  384. height: 44rpx;
  385. padding: 22rpx 24rpx;
  386. display: flex;
  387. justify-content: space-between;
  388. border-bottom: 1rpx solid #F2F2F2;
  389. .from-item-title{
  390. font-size: 28rpx;
  391. }
  392. .from-item-data{
  393. display: flex;
  394. justify-content: space-between;
  395. .item-data-text{
  396. font-size: 28rpx;
  397. }
  398. .item-data-icon{
  399. .iconfont{
  400. font-size: 28rpx;
  401. line-height: 50rpx;
  402. }
  403. }
  404. }
  405. }
  406. .from-item:last-child{
  407. border-bottom: none;
  408. }
  409. }
  410. }
  411. .edit-but{
  412. border-radius: 16rpx;
  413. height: 88rpx;
  414. line-height: 88rpx;
  415. text-align: center;
  416. font-size: 32rpx;
  417. }
  418. }
  419. }
  420. }
  421. </style>