index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. <template>
  2. <view>
  3. <form @submit="formSubmit">
  4. <view class='personal-data' :style="colorStyle">
  5. <!-- <view class="wrapper">
  6. <view class="title">管理我的账号</view>
  7. <view class="wrapList">
  8. <view class="item acea-row row-between-wrapper" :class="item.uid === userInfo.uid ? 'on' : ''" v-for="(item,index) in switchUserInfo"
  9. :key="index" @click='switchAccounts(index)'>
  10. <view class="picTxt acea-row row-between-wrapper">
  11. <view class="pictrue" @click.stop='uploadpic' v-if='item.uid === userInfo.uid'>
  12. <image :src='item.avatar'></image>
  13. <image src='../../../static/images/alter.png' class="alter"></image>
  14. </view>
  15. <view class="pictrue" v-else>
  16. <image :src='item.avatar'></image>
  17. </view>
  18. <view class="text">
  19. <view class="name line1">{{ item.nickname }}</view>
  20. <view class="phone" v-if="item.phone && item.user_type !='h5'">绑定手机号:{{ item.phone }}</view>
  21. <view class="phone" v-else-if="item.phone && item.user_type =='h5'">账号:{{ item.phone }}</view>
  22. <view class="phone" v-else>暂未绑定手机号</view>
  23. </view>
  24. </view>
  25. <view class="currentBnt acea-row row-center-wrapper font-color" v-if='item.uid === userInfo.uid'>
  26. 当前账号
  27. </view>
  28. <view class="bnt font-color acea-row row-center-wrapper" v-else>
  29. 使用账号
  30. </view>
  31. </view>
  32. </view>
  33. </view> -->
  34. <view class='list'>
  35. <view class='item acea-row row-between-wrapper'>
  36. <view>{{$t(`头像`)}}</view>
  37. <view class="avatar-box" @click.stop='uploadpic'>
  38. <image :src="userInfo.avatar"></image>
  39. </view>
  40. </view>
  41. <view class='item acea-row row-between-wrapper'>
  42. <view>{{$t(`真实姓名`)}}</view>
  43. <view class='input'><input type='text' name='realName' :value='userInfo.realName'></input>
  44. </view>
  45. </view>
  46. <view class='item acea-row row-between-wrapper'>
  47. <view>{{$t(`手机号码`)}}</view>
  48. <navigator url="/pages/users/user_phone/index" hover-class="none" class="input"
  49. v-if="!userInfo.username">
  50. {{$t(`点击绑定手机号`)}}<text class="iconfont icon-xiangyou"></text>
  51. </navigator>
  52. <view class='input acea-row row-between-wrapper' v-else>
  53. <input type='text' disabled='true' name='phone' :value='userInfo.username' class='id'></input>
  54. <text class='iconfont icon-suozi'></text>
  55. </view>
  56. </view>
  57. <view class='item acea-row row-between-wrapper'>
  58. <view>{{$t(`ID号`)}}</view>
  59. <view class='input acea-row row-between-wrapper'>
  60. <input type='text' :value='userInfo.id' disabled='true' class='id'></input>
  61. <text class='iconfont icon-suozi'></text>
  62. </view>
  63. </view>
  64. <!-- #ifdef MP -->
  65. <!-- <view class='item acea-row row-between-wrapper'>
  66. <view>{{$t(`权限设置`)}}</view>
  67. <view class="input" @click="Setting">
  68. {{$t(`点击管理`)}}<text class="iconfont icon-xiangyou"></text>
  69. </view>
  70. </view> -->
  71. <!-- #endif -->
  72. <!-- #ifdef H5 -->
  73. <view class="item acea-row row-between-wrapper" v-if="userInfo.phone && !this.$wechat.isWeixin()">
  74. <view>{{$t(`密码`)}}</view>
  75. <navigator url="/pages/users/user_pwd_edit/index" hover-class="none" class="input">
  76. {{$t(`点击修改密码`)}}<text class="iconfont icon-xiangyou"></text>
  77. </navigator>
  78. </view>
  79. <!-- #endif -->
  80. <view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
  81. <view>{{$t(`更换手机号码`)}}</view>
  82. <navigator url="/pages/users/user_phone/index?type=1" hover-class="none" class="input">
  83. {{$t(`点击更换手机号码`)}}<text class="iconfont icon-xiangyou"></text>
  84. </navigator>
  85. </view>
  86. <!-- #ifdef APP-PLUS -->
  87. <view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
  88. <view>{{$t(`密码`)}}</view>
  89. <navigator url="/pages/users/user_pwd_edit/index" hover-class="none" class="input">
  90. {{$t(`点击修改密码`)}}<text class="iconfont icon-xiangyou"></text>
  91. </navigator>
  92. </view>
  93. <view class="item acea-row row-between-wrapper" @click="initData">
  94. <view>{{$t(`缓存大小`)}}</view>
  95. <view class="input">
  96. {{fileSizeString}}<text class="iconfont icon-xiangyou"></text>
  97. </view>
  98. </view>
  99. <view class="item acea-row row-between-wrapper" @click="updateApp">
  100. <view>{{$t(`当前版本`)}}</view>
  101. <view class="input">
  102. {{version}}<text class="iconfont icon-xiangyou"></text>
  103. </view>
  104. </view>
  105. <!-- #endif -->
  106. <view class="item acea-row row-between-wrapper">
  107. <view>{{$t(`语言切换`)}}</view>
  108. <view class="uni-list-cell-db">
  109. <picker @change="bindPickerChange" range-key="name" :value="setIndex" :range="array">
  110. <view class="uni-input input">{{array[setIndex].name}}<text
  111. class="iconfont icon-xiangyou"></text></view>
  112. </picker>
  113. </view>
  114. </view>
  115. <view class="item acea-row row-between-wrapper">
  116. <view>{{$t(`地址管理`)}}</view>
  117. <navigator url="/pages/users/user_address_list/index" hover-class="none" class="input">
  118. {{$t(`点击前往`)}}<text class="iconfont icon-xiangyou"></text>
  119. </navigator>
  120. </view>
  121. <view class="item acea-row row-between-wrapper" v-if="userInfo.invioce_func">
  122. <view>{{$t(`发票管理`)}}</view>
  123. <navigator url="/pages/users/user_invoice_list/index" hover-class="none" class="input">
  124. {{$t(`点击前往`)}}<text class="iconfont icon-xiangyou"></text>
  125. </navigator>
  126. </view>
  127. <view class="item acea-row row-between-wrapper">
  128. <view>{{$t(`账号注销`)}}</view>
  129. <navigator url="/pages/users/user_cancellation/index" hover-class="none" class="input">
  130. {{$t(`注销后无法恢复`)}}<text class="iconfont icon-xiangyou"></text>
  131. </navigator>
  132. </view>
  133. </view>
  134. <button class='modifyBnt bg-color' formType="submit">{{$t(`保存修改`)}}</button>
  135. <!-- #ifdef H5 || APP-PLUS || MP -->
  136. <view class="logOut cartcolor acea-row row-center-wrapper" @click="outLogin">{{$t(`退出登录`)}}</view>
  137. <!-- #endif -->
  138. <!-- #ifdef APP-PLUS -->
  139. <app-update ref="appUpdate" :force="true" :tabbar="false" :getVer='true' @isNew="isNew"></app-update>
  140. <!-- #endif -->
  141. </view>
  142. </form>
  143. <!-- #ifdef MP -->
  144. <!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
  145. <!-- #endif -->
  146. <canvas canvas-id="canvas" v-if="canvasStatus"
  147. :style="{width: canvasWidth + 'px', height: canvasHeight + 'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas>
  148. </view>
  149. </template>
  150. <script>
  151. import {
  152. getUserInfo,
  153. userEdit,
  154. getLogout
  155. } from '@/api/user.js';
  156. import {
  157. switchH5Login
  158. } from '@/api/api.js';
  159. import {
  160. toLogin
  161. } from '@/libs/login.js';
  162. import {
  163. mapGetters
  164. } from "vuex";
  165. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  166. // #ifdef MP
  167. import authorize from '@/components/Authorize';
  168. // #endif
  169. import colors from '@/mixins/color.js';
  170. import appUpdate from "@/components/update/app-update.vue";
  171. export default {
  172. components: {
  173. // #ifdef APP-PLUS
  174. appUpdate
  175. // #endif
  176. // #ifdef MP
  177. authorize
  178. // #endif
  179. },
  180. mixins: [colors],
  181. data() {
  182. return {
  183. userInfo: {},
  184. loginType: 'h5', //app.globalData.loginType
  185. userIndex: 0,
  186. switchUserInfo: [],
  187. isAuto: false, //没有授权的不会自动授权
  188. isShowAuth: false, //是否隐藏授权
  189. canvasWidth: "",
  190. canvasHeight: "",
  191. canvasStatus: false,
  192. fileSizeString: '',
  193. version: '',
  194. array: [{
  195. name: '中文',
  196. value: 'zh_cn'
  197. },
  198. {
  199. name: 'English',
  200. value: 'en_us'
  201. },
  202. {
  203. name: '日本語',
  204. value: 'ja_jp'
  205. },
  206. {
  207. name: 'Français',
  208. value: 'fr_fr'
  209. },
  210. {
  211. name: 'ไทย',
  212. value: 'th_th'
  213. },
  214. {
  215. name: 'Italiano',
  216. value: 'it_it'
  217. },
  218. {
  219. name: 'Монгол',
  220. value: 'mn_mn'
  221. },
  222. {
  223. name: '한국인',
  224. value: 'ko_kr'
  225. },
  226. {
  227. name: 'Tiếng Việt',
  228. value: 'vi_vn'
  229. },
  230. {
  231. name: '中文(繁体)',
  232. value: 'zh_ft'
  233. },
  234. ],
  235. setIndex: 0,
  236. };
  237. },
  238. computed: mapGetters(['isLogin']),
  239. watch: {
  240. isLogin: {
  241. handler: function(newV, oldV) {
  242. if (newV) {
  243. this.getUserInfo();
  244. }
  245. },
  246. deep: true
  247. }
  248. },
  249. onLoad() {
  250. if (this.isLogin) {
  251. this.getUserInfo();
  252. // #ifdef APP-PLUS
  253. this.formatSize()
  254. // 获取版本号
  255. plus.runtime.getProperty(plus.runtime.appid, (inf) => {
  256. console.log(inf.version)
  257. this.version = inf.version;
  258. });
  259. // #endif
  260. this.setLang();
  261. } else {
  262. toLogin();
  263. }
  264. },
  265. methods: {
  266. isNew() {
  267. this.$util.Tips({
  268. title: this.$t(`当前为最新版本`)
  269. });
  270. },
  271. setLang() {
  272. this.array.map((item, i) => {
  273. if (this.$i18n.locale == item.value) {
  274. this.setIndex = i
  275. }
  276. })
  277. },
  278. bindPickerChange(e, item) {
  279. this.setIndex = e.detail.value
  280. this.$i18n.locale = this.array[this.setIndex].value;
  281. uni.setStorageSync('locale', this.array[this.setIndex].value);
  282. },
  283. updateApp() {
  284. this.$refs.appUpdate.update(); //调用子组件 检查更新
  285. },
  286. formatSize() {
  287. let that = this;
  288. plus.cache.calculate(function(size) {
  289. let sizeCache = parseInt(size);
  290. if (sizeCache == 0) {
  291. that.fileSizeString = "0B";
  292. } else if (sizeCache < 1024) {
  293. that.fileSizeString = sizeCache + "B";
  294. } else if (sizeCache < 1048576) {
  295. that.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
  296. } else if (sizeCache < 1073741824) {
  297. that.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
  298. } else {
  299. that.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
  300. }
  301. });
  302. },
  303. initData() {
  304. uni.showModal({
  305. title: this.$t(`清除缓存`),
  306. content: this.$t(`确定清楚本地缓存数据吗`),
  307. success: (res) => {
  308. if (res.confirm) {
  309. this.clearCache()
  310. this.formatSize()
  311. } else if (res.cancel) {
  312. return that.$util.Tips({
  313. title: that.$t(`取消`)
  314. });
  315. }
  316. }
  317. });
  318. },
  319. clearCache() {
  320. let that = this;
  321. let os = plus.os.name;
  322. if (os == 'Android') {
  323. let main = plus.android.runtimeMainActivity();
  324. let sdRoot = main.getCacheDir();
  325. let files = plus.android.invoke(sdRoot, "listFiles");
  326. let len = files.length;
  327. for (let i = 0; i < len; i++) {
  328. let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
  329. plus.io.resolveLocalFileSystemURL(filePath, function(entry) {
  330. if (entry.isDirectory) {
  331. entry.removeRecursively(function(entry) { //递归删除其下的所有文件及子目录
  332. uni.showToast({
  333. title: that.$t(`缓存清理完成`),
  334. duration: 2000
  335. });
  336. that.formatSize(); // 重新计算缓存
  337. }, function(e) {
  338. console.log(e.message)
  339. });
  340. } else {
  341. entry.remove();
  342. }
  343. }, function(e) {});
  344. }
  345. } else { // ios暂时未找到清理缓存的方法,以下是官方提供的方法,但是无效,会报错
  346. plus.cache.clear(function() {
  347. uni.showToast({
  348. title: that.$t(`缓存清理完成`),
  349. duration: 2000
  350. });
  351. that.formatSize();
  352. });
  353. }
  354. },
  355. /**
  356. * 授权回调
  357. */
  358. onLoadFun: function() {
  359. this.getUserInfo();
  360. },
  361. // 授权关闭
  362. authColse: function(e) {
  363. this.isShowAuth = e
  364. },
  365. /**
  366. * 小程序设置
  367. */
  368. Setting: function() {
  369. uni.openSetting({
  370. success: function(res) {}
  371. });
  372. },
  373. switchAccounts: function(index) {
  374. let userInfo = this.switchUserInfo[index],
  375. that = this;
  376. that.userIndex = index;
  377. if (that.switchUserInfo.length <= 1) return true;
  378. if (userInfo === undefined) return that.$util.Tips({
  379. title: that.$t(`切换的账号不存在`)
  380. });
  381. if (userInfo.user_type === 'h5') {
  382. uni.showLoading({
  383. title: that.$t(`正在切换中`)
  384. });
  385. switchH5Login().then(res => {
  386. uni.hideLoading();
  387. that.$store.commit("LOGIN", {
  388. 'token': res.data.token,
  389. 'time': this.$Cache.strTotime(res.data.expires_time) - this.$Cache.time()
  390. });
  391. that.getUserInfo();
  392. }).catch(err => {
  393. uni.hideLoading();
  394. return that.$util.Tips({
  395. title: err
  396. });
  397. })
  398. } else {
  399. that.$store.commit("LOGOUT");
  400. uni.showLoading({
  401. title: that.$t(`正在切换中`)
  402. });
  403. toLogin();
  404. }
  405. },
  406. /**
  407. * 退出登录
  408. *
  409. */
  410. outLogin: function() {
  411. let that = this;
  412. if (that.loginType == 'h5') {
  413. uni.showModal({
  414. title: that.$t(`提示`),
  415. content: that.$t(`确认退出登录`),
  416. success: function(res) {
  417. if (res.confirm) {
  418. getLogout()
  419. .then(res => {
  420. // uni.clearStorage()
  421. that.$store.commit("LOGOUT");
  422. uni.reLaunch({
  423. url: '/pages/index/index'
  424. })
  425. })
  426. .catch(err => {});
  427. } else if (res.cancel) {}
  428. }
  429. });
  430. }
  431. },
  432. /**
  433. * 获取用户详情
  434. */
  435. getUserInfo: function() {
  436. let that = this;
  437. getUserInfo().then(res => {
  438. that.$set(that, 'userInfo', res.data);
  439. let switchUserInfo = res.data.switchUserInfo || [];
  440. for (let i = 0; i < switchUserInfo.length; i++) {
  441. if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;
  442. // 切割h5用户;user_type状态:h5、routine(小程序)、wechat(公众号);注:只有h5未注册手机号时,h5才可和小程序或是公众号数据想通;
  443. //#ifdef H5
  444. if (
  445. !that.$wechat.isWeixin() &&
  446. switchUserInfo[i].user_type != "h5" &&
  447. switchUserInfo[i].phone === ""
  448. )
  449. switchUserInfo.splice(i, 1);
  450. //#endif
  451. }
  452. that.$set(that, "switchUserInfo", switchUserInfo);
  453. });
  454. },
  455. /**
  456. * 上传文件
  457. *
  458. */
  459. uploadpic: function() {
  460. let that = this;
  461. this.canvasStatus = true
  462. that.$util.uploadImageChange('upload/image', (res) => {
  463. let userInfo = that.switchUserInfo[that.userIndex];
  464. if (userInfo !== undefined) {
  465. that.userInfo.avatar = res.data.url;
  466. }
  467. that.switchUserInfo[that.userIndex] = userInfo;
  468. that.$set(that, 'switchUserInfo', that.switchUserInfo);
  469. this.canvasStatus = false
  470. }, (res) => {
  471. this.canvasStatus = false
  472. }, (res) => {
  473. this.canvasWidth = res.w
  474. this.canvasHeight = res.h
  475. });
  476. },
  477. /**
  478. * 提交修改
  479. */
  480. formSubmit: function(e) {
  481. let that = this,
  482. value = e.detail.value,
  483. userInfo = that.switchUserInfo[that.userIndex];
  484. if (!value.nickname) return that.$util.Tips({
  485. title: that.$t(`请输入姓名`)
  486. });
  487. value.avatar = this.userInfo.avatar;
  488. userEdit(value).then(res => {
  489. return that.$util.Tips({
  490. title: res.msg,
  491. icon: 'success'
  492. }, {
  493. tab: 3,
  494. url: 1
  495. });
  496. }).catch(msg => {
  497. return that.$util.Tips({
  498. title: msg || that.$t(`保存失败`)
  499. }, {
  500. tab: 3,
  501. url: 1
  502. });
  503. });
  504. }
  505. }
  506. }
  507. </script>
  508. <style scoped lang="scss">
  509. .cartcolor {
  510. color: var(--view-theme);
  511. border: 1px solid var(--view-theme);
  512. }
  513. .personal-data .wrapper {
  514. margin: 10rpx 0;
  515. background-color: #fff;
  516. padding: 36rpx 30rpx 13rpx 30rpx;
  517. }
  518. .personal-data .wrapper .title {
  519. margin-bottom: 30rpx;
  520. font-size: 32rpx;
  521. color: #282828;
  522. }
  523. .personal-data .wrapper .wrapList .item {
  524. width: 690rpx;
  525. height: 160rpx;
  526. background-color: #f8f8f8;
  527. border-radius: 20rpx;
  528. margin-bottom: 22rpx;
  529. padding: 0 30rpx;
  530. position: relative;
  531. border: 2rpx solid #f8f8f8;
  532. box-sizing: border-box;
  533. }
  534. .personal-data .wrapper .wrapList .item.on {
  535. border-color: #e93323;
  536. border-radius: 20rpx;
  537. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAACgCAYAAADw+I85AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbi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QDGIc/HntO/pKcSsCtlDwAwbufUbHkV9i4MdifwogAAjNfUdyvIJzhYhcHJDtQ9AMA0TGmsIJVYzZfH0B7M9fiRX/R/AQYA1i4UF+HkevkAAAAASUVORK5CYII=");
  538. background-size: 100% 100%;
  539. background-color: #fff9f9;
  540. background-repeat: no-repeat;
  541. }
  542. .personal-data .wrapper .wrapList .item .picTxt {
  543. width: 445rpx;
  544. }
  545. .personal-data .wrapper .wrapList .item .picTxt .pictrue {
  546. width: 96rpx;
  547. height: 96rpx;
  548. position: relative;
  549. }
  550. .personal-data .wrapper .wrapList .item .picTxt .pictrue image {
  551. width: 100%;
  552. height: 100%;
  553. border-radius: 50%;
  554. }
  555. .personal-data .wrapper .wrapList .item .picTxt .pictrue .alter {
  556. width: 30rpx;
  557. height: 30rpx;
  558. border-radius: 50%;
  559. position: absolute;
  560. bottom: 0;
  561. right: 0;
  562. }
  563. .personal-data .wrapper .wrapList .item .picTxt .text {
  564. width: 325rpx;
  565. }
  566. .personal-data .wrapper .wrapList .item .picTxt .text .name {
  567. width: 100%;
  568. font-size: 30rpx;
  569. color: #282828;
  570. }
  571. .personal-data .wrapper .wrapList .item .picTxt .text .phone {
  572. font-size: 24rpx;
  573. color: #999;
  574. margin-top: 10rpx;
  575. }
  576. .personal-data .wrapper .wrapList .item .bnt {
  577. font-size: 24rpx;
  578. background-color: #fff;
  579. border-radius: 27rpx;
  580. width: 140rpx;
  581. height: 54rpx;
  582. border: 2rpx solid #e93323;
  583. }
  584. .personal-data .wrapper .wrapList .item .currentBnt {
  585. position: absolute;
  586. right: 0;
  587. top: 0;
  588. font-size: 26rpx;
  589. background-color: rgba(233, 51, 35, 0.1);
  590. width: 140rpx;
  591. height: 48rpx;
  592. border-radius: 0 20rpx 0 20rpx;
  593. }
  594. .personal-data .list {
  595. margin-top: 15rpx;
  596. background-color: #fff;
  597. }
  598. .personal-data .list .item {
  599. padding: 30rpx 30rpx 30rpx 0;
  600. border-bottom: 1rpx solid #f2f2f2;
  601. margin-left: 30rpx;
  602. font-size: 32rpx;
  603. color: #282828;
  604. }
  605. .personal-data .list .item .phone {
  606. width: 160rpx;
  607. height: 56rpx;
  608. font-size: 24rpx;
  609. color: #fff;
  610. line-height: 56rpx;
  611. border-radius: 32rpx
  612. }
  613. .personal-data .list .item .pictrue {
  614. width: 88rpx;
  615. height: 88rpx;
  616. }
  617. .personal-data .list .item .pictrue image {
  618. width: 100%;
  619. height: 100%;
  620. border-radius: 50%;
  621. }
  622. .personal-data .list .item .input {
  623. width: 415rpx;
  624. text-align: right;
  625. color: #868686;
  626. }
  627. .personal-data .list .item .input .id {
  628. width: 365rpx;
  629. }
  630. .personal-data .list .item .input .iconfont {
  631. font-size: 35rpx;
  632. }
  633. .personal-data .modifyBnt {
  634. font-size: 32rpx;
  635. color: #fff;
  636. width: 690rpx;
  637. height: 90rpx;
  638. border-radius: 50rpx;
  639. text-align: center;
  640. line-height: 90rpx;
  641. margin: 76rpx auto 0 auto;
  642. }
  643. .personal-data .logOut {
  644. font-size: 32rpx;
  645. text-align: center;
  646. width: 690rpx;
  647. height: 90rpx;
  648. border-radius: 45rpx;
  649. margin: 30rpx auto 0 auto;
  650. }
  651. .avatar-box {
  652. width: 96rpx;
  653. height: 96rpx;
  654. image {
  655. width: 100%;
  656. height: 100%;
  657. border-radius: 50%;
  658. }
  659. }
  660. </style>