dataSet.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <template>
  2. <view>
  3. <ujp-navbar title="个人资料"></ujp-navbar>
  4. <!-- 个人信息 -->
  5. <view class="userCell">
  6. <view class="title">
  7. 个人信息
  8. </view>
  9. <!-- 头像 -->
  10. <view class="userCell-item" >
  11. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  12. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/account-circle-fill.svg" alt=""></text>
  13. <p>头像</p>
  14. </view>
  15. <view class="userCell-content">
  16. <view class="value">
  17. <u-avatar class="avatar" :src="src" size="80">
  18. <img src="" alt="">
  19. </u-avatar>
  20. <view class="box">
  21. <img class="camera" src="../../assets/img/camera-fill.svg" alt="">
  22. </view>
  23. </view>
  24. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  25. </view>
  26. </view>
  27. <!-- 昵称 -->
  28. <view class="userCell-item" >
  29. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  30. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/edit-box-fill.svg" alt=""></text>
  31. <p>昵称</p>
  32. </view>
  33. <view class="userCell-content" @click="show=true">
  34. <view class="value black">
  35. 萌萌哒
  36. </view>
  37. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  38. </view>
  39. </view>
  40. <!-- 生日 -->
  41. <view class="userCell-item" >
  42. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  43. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/cake-2-fill.svg" alt=""></text>
  44. <p>生日</p>
  45. </view>
  46. <view class="userCell-content">
  47. <view class="value">
  48. 请选择
  49. </view>
  50. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  51. </view>
  52. </view>
  53. </view>
  54. <u-line color="#F2F2F2 100%" length="87.2%" margin="8px auto 0" />
  55. <!-- 账户与安全 -->
  56. <view class="userCell">
  57. <view class="title">
  58. 账户与安全
  59. </view>
  60. <!-- 更换手机号 -->
  61. <view class="userCell-item" >
  62. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  63. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/smartphone-fill.svg" alt=""></text>
  64. <p>更换手机号</p>
  65. </view>
  66. <view class="userCell-content">
  67. <view class="value black">
  68. 139****9333
  69. </view>
  70. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  71. </view>
  72. </view>
  73. <!-- 实名认证 -->
  74. <view class="userCell-item" >
  75. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  76. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/shield-user-fill.svg" alt=""></text>
  77. <p>实名认证</p>
  78. </view>
  79. <view class="userCell-content">
  80. <view class="value">
  81. 未实名
  82. </view>
  83. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  84. </view>
  85. </view>
  86. </view>
  87. <u-line color="#F2F2F2 100%" length="87.2%" margin="8px auto 0" />
  88. <!-- 更多操作 -->
  89. <view class="userCell">
  90. <view class="title">
  91. 更多操作
  92. </view>
  93. <!-- 车辆信息 -->
  94. <view class="userCell-item" >
  95. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  96. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/car-fill (1).svg" alt=""></text>
  97. <p>车辆信息</p>
  98. </view>
  99. <view class="userCell-content">
  100. <view class="value">
  101. 未绑定
  102. </view>
  103. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  104. </view>
  105. </view>
  106. <!-- 长辈模式 -->
  107. <view class="userCell-item" >
  108. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  109. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/zoom-in-fill.svg" alt=""></text>
  110. <p>长辈模式</p>
  111. </view>
  112. <view class="userCell-content">
  113. <view class="value">
  114. <view class="text black">
  115. 字体更多 看得清
  116. </view>
  117. <u-switch v-model="checked" active-color="#00E266" ></u-switch>
  118. </view>
  119. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  120. </view>
  121. </view>
  122. <!-- 注销账号 -->
  123. <view class="userCell-item" >
  124. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  125. <text class="user" ><img style="visibility: middle;;" src="../../assets/img/spam-3-fill.svg" alt=""></text>
  126. <p>注销账号</p>
  127. </view>
  128. <view class="userCell-content">
  129. <view class="value black" style="font-size: 14px;">
  130. 注销后无法恢复,请谨慎操作
  131. </view>
  132. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="48"></u-icon>
  133. </view>
  134. </view>
  135. </view>
  136. <view class="exit">
  137. 退出账号
  138. </view>
  139. <!-- 遮罩层 -->
  140. <u-mask :show="show" @click="show = false" :zoom='false'>
  141. <view class="warp">
  142. <view class="rect" @tap.stop>
  143. <p>修改昵称</p>
  144. <textarea name="" id="" cols="30" rows="10">
  145. </textarea>
  146. <img class="canc" src="../../assets/img/md-cancel Copy@3x.png" alt="">
  147. <u-button type="success">保存</u-button>
  148. </view>
  149. </view>
  150. </u-mask>
  151. </view>
  152. </template>
  153. <script>
  154. export default {
  155. data() {
  156. return {
  157. checked:false,
  158. src: '',
  159. show: true
  160. }
  161. },
  162. methods: {
  163. }
  164. }
  165. </script>
  166. <style lang="scss" scoped>
  167. page{
  168. background-color: #fff;
  169. padding-bottom: 67px;
  170. }
  171. .userCell{
  172. .user{
  173. img{
  174. vertical-align: middle;
  175. }
  176. }
  177. .title{
  178. padding: 24px 20px 8px 20px;
  179. font-size: 18px;
  180. color: rgba(16, 16, 16, 100);
  181. }
  182. .userCell-item{
  183. display: flex;
  184. justify-content: space-between;
  185. align-items: center;
  186. padding: 16px;
  187. .userCell-title{
  188. font-size: 16px;
  189. display: flex;
  190. p{
  191. margin-left: 8px;
  192. font-size: 16px;
  193. line-height: 28px;
  194. color: #333333;
  195. }
  196. }
  197. .userCell-content{
  198. display: flex;
  199. color: rgba(153, 153, 153, 100);
  200. font-size: 16px;
  201. line-height: 20px;
  202. }
  203. .value{
  204. display: flex;
  205. .text{
  206. line-height: 28px;
  207. }
  208. .circle{
  209. width: 40px;
  210. height: 40px;
  211. }
  212. .u-avatar{
  213. position: absolute;
  214. }
  215. .camera{
  216. width: 20px;
  217. height: 20px;
  218. position: absolute;
  219. left: 50%;
  220. top: 50%;
  221. transform: translate(-50%,-50%);
  222. z-index: 9999;
  223. }
  224. .box{
  225. border-radius: 999px;
  226. height: 40px;
  227. width: 40px;
  228. position: relative;
  229. background: url(@/assets/img/circle.png);
  230. background-repeat: no-repeat;
  231. background-position: 30% 10%;
  232. background-size: cover;
  233. }
  234. }
  235. .u-switch{
  236. width: 48px;
  237. height: 24px;
  238. vertical-align: middle;
  239. margin-left: 8px;
  240. }
  241. /deep/.u-switch__node{
  242. width: 24px !important;
  243. height: 24px !important;
  244. }
  245. span{
  246. color:#999;
  247. }
  248. .add{
  249. color:#999;
  250. }
  251. .black{
  252. color: #666666;
  253. }
  254. }
  255. }
  256. .exit{
  257. color: rgba(238, 49, 56, 100);
  258. font-size: 16px;
  259. text-align: center;
  260. margin-top: 10px;
  261. }
  262. .warp {
  263. position: fixed;
  264. left: 0;
  265. bottom: 0;
  266. width: 100%;
  267. }
  268. .rect {
  269. width: 100%;
  270. height: 100%;
  271. background-color: #fff;
  272. padding: 24px 0;
  273. p{
  274. color: rgba(16, 16, 16, 100);
  275. font-size: 16px;
  276. line-height: 24px;
  277. padding:0 24px;
  278. }
  279. textarea{
  280. width: 87.2%;
  281. border-radius: 8px;
  282. background-color: rgba(229, 231, 234, 100);
  283. margin: 12px auto 0;
  284. height: 44px;
  285. line-height: 44px !important;
  286. padding: 0 8px;
  287. position: relative;
  288. }
  289. .canc{
  290. width: 20px;
  291. height: 20px;
  292. position: absolute;
  293. top: 70px;
  294. right: 7vw;
  295. }
  296. .u-btn{
  297. width: 89.2%;
  298. color: rgba(255, 255, 255, 100);
  299. font-size: 18px;
  300. border-radius: 8px;
  301. margin-top: 24px;
  302. z-index: 99999;
  303. }
  304. }
  305. </style>