index.vue 23 KB

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