index.vue 25 KB

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