index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  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. Routine.getCode()
  256. .then(code => {
  257. let data = {
  258. code,
  259. iv: e.detail.iv,
  260. encryptedData: e.detail.encryptedData,
  261. }
  262. mpBindingPhone(data).then(res => {
  263. this.getUserInfo()
  264. this.$util.Tips({
  265. title: res.msg,
  266. icon: 'success'
  267. });
  268. }).catch(err => {
  269. return this.$util.Tips({
  270. title: err
  271. });
  272. })
  273. })
  274. .catch(error => {
  275. uni.hideLoading();
  276. });
  277. },
  278. setLang() {
  279. this.array.map((item, i) => {
  280. if (this.$i18n.locale == item.value) {
  281. this.setIndex = i
  282. }
  283. })
  284. },
  285. bindPickerChange(e, item) {
  286. this.setIndex = e.detail.value
  287. Cache.set('locale', this.array[this.setIndex].value)
  288. getLangJson().then(res => {
  289. uni.setStorageSync('localeJson', res.data);
  290. this.$i18n.setLocaleMessage(this.array[this.setIndex].value, res.data[this.array[
  291. this.setIndex].value]);
  292. this.$nextTick(e => {
  293. this.$i18n.locale = this.array[this.setIndex].value;
  294. })
  295. Cache.set('localeSet', true, 600)
  296. })
  297. },
  298. updateApp() {
  299. this.$refs.appUpdate.update(); //调用子组件 检查更新
  300. },
  301. formatSize() {
  302. let that = this;
  303. plus.cache.calculate(function(size) {
  304. let sizeCache = parseInt(size);
  305. if (sizeCache == 0) {
  306. that.fileSizeString = "0B";
  307. } else if (sizeCache < 1024) {
  308. that.fileSizeString = sizeCache + "B";
  309. } else if (sizeCache < 1048576) {
  310. that.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
  311. } else if (sizeCache < 1073741824) {
  312. that.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
  313. } else {
  314. that.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
  315. }
  316. });
  317. },
  318. initData() {
  319. uni.showModal({
  320. title: this.$t(`清除缓存`),
  321. content: this.$t(`确定清楚本地缓存数据吗`),
  322. success: (res) => {
  323. if (res.confirm) {
  324. this.clearCache()
  325. this.formatSize()
  326. } else if (res.cancel) {
  327. return that.$util.Tips({
  328. title: that.$t(`取消`)
  329. });
  330. }
  331. }
  332. });
  333. },
  334. clearCache() {
  335. let that = this;
  336. let os = plus.os.name;
  337. if (os == 'Android') {
  338. let main = plus.android.runtimeMainActivity();
  339. let sdRoot = main.getCacheDir();
  340. let files = plus.android.invoke(sdRoot, "listFiles");
  341. let len = files.length;
  342. for (let i = 0; i < len; i++) {
  343. let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
  344. plus.io.resolveLocalFileSystemURL(filePath, function(entry) {
  345. if (entry.isDirectory) {
  346. entry.removeRecursively(function(entry) { //递归删除其下的所有文件及子目录
  347. uni.showToast({
  348. title: that.$t(`缓存清理完成`),
  349. duration: 2000
  350. });
  351. that.formatSize(); // 重新计算缓存
  352. }, function(e) {
  353. console.log(e.message)
  354. });
  355. } else {
  356. entry.remove();
  357. }
  358. }, function(e) {});
  359. }
  360. } else { // ios暂时未找到清理缓存的方法,以下是官方提供的方法,但是无效,会报错
  361. plus.cache.clear(function() {
  362. uni.showToast({
  363. title: that.$t(`缓存清理完成`),
  364. duration: 2000
  365. });
  366. that.formatSize();
  367. });
  368. }
  369. },
  370. /**
  371. * 授权回调
  372. */
  373. onLoadFun: function() {
  374. this.getUserInfo();
  375. },
  376. // 授权关闭
  377. authColse: function(e) {
  378. this.isShowAuth = e
  379. },
  380. /**
  381. * 小程序设置
  382. */
  383. Setting: function() {
  384. uni.openSetting({
  385. success: function(res) {}
  386. });
  387. },
  388. switchAccounts: function(index) {
  389. let userInfo = this.switchUserInfo[index],
  390. that = this;
  391. that.userIndex = index;
  392. if (that.switchUserInfo.length <= 1) return true;
  393. if (userInfo === undefined) return that.$util.Tips({
  394. title: that.$t(`切换的账号不存在`)
  395. });
  396. if (userInfo.user_type === 'h5') {
  397. uni.showLoading({
  398. title: that.$t(`正在切换中`)
  399. });
  400. switchH5Login().then(res => {
  401. uni.hideLoading();
  402. that.$store.commit("LOGIN", {
  403. 'token': res.data.token,
  404. 'time': this.$Cache.strTotime(res.data.expires_time) - this.$Cache.time()
  405. });
  406. that.getUserInfo();
  407. }).catch(err => {
  408. uni.hideLoading();
  409. return that.$util.Tips({
  410. title: err
  411. });
  412. })
  413. } else {
  414. that.$store.commit("LOGOUT");
  415. uni.showLoading({
  416. title: that.$t(`正在切换中`)
  417. });
  418. toLogin();
  419. }
  420. },
  421. /**
  422. * 退出登录
  423. *
  424. */
  425. outLogin: function() {
  426. let that = this;
  427. if (that.loginType == 'h5') {
  428. uni.showModal({
  429. title: that.$t(`提示`),
  430. content: that.$t(`确认退出登录`),
  431. success: function(res) {
  432. if (res.confirm) {
  433. getLogout()
  434. .then(res => {
  435. // uni.clearStorage()
  436. that.$store.commit("LOGOUT");
  437. uni.reLaunch({
  438. url: '/pages/index/index'
  439. })
  440. })
  441. .catch(err => {});
  442. } else if (res.cancel) {}
  443. }
  444. });
  445. }
  446. },
  447. /**
  448. * 获取用户详情
  449. */
  450. getUserInfo: function() {
  451. let that = this;
  452. getUserInfo().then(res => {
  453. that.$set(that, 'userInfo', res.data);
  454. let switchUserInfo = res.data.switchUserInfo || [];
  455. for (let i = 0; i < switchUserInfo.length; i++) {
  456. if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;
  457. // 切割h5用户;user_type状态:h5、routine(小程序)、wechat(公众号);注:只有h5未注册手机号时,h5才可和小程序或是公众号数据想通;
  458. //#ifdef H5
  459. if (
  460. !that.$wechat.isWeixin() &&
  461. switchUserInfo[i].user_type != "h5" &&
  462. switchUserInfo[i].phone === ""
  463. )
  464. switchUserInfo.splice(i, 1);
  465. //#endif
  466. }
  467. that.$set(that, "switchUserInfo", switchUserInfo);
  468. });
  469. },
  470. /**
  471. * 上传文件
  472. *
  473. */
  474. uploadpic: function() {
  475. let that = this;
  476. this.canvasStatus = true
  477. that.$util.uploadImageChange('upload/image', (res) => {
  478. let userInfo = that.switchUserInfo[that.userIndex];
  479. if (userInfo !== undefined) {
  480. that.userInfo.avatar = res.data.url;
  481. }
  482. that.switchUserInfo[that.userIndex] = userInfo;
  483. that.$set(that, 'switchUserInfo', that.switchUserInfo);
  484. this.canvasStatus = false
  485. }, (res) => {
  486. this.canvasStatus = false
  487. }, (res) => {
  488. this.canvasWidth = res.w
  489. this.canvasHeight = res.h
  490. });
  491. },
  492. // 微信头像获取
  493. onChooseAvatar(e) {
  494. const {
  495. avatarUrl
  496. } = e.detail
  497. this.$util.uploadImgs('upload/image', avatarUrl, (res) => {
  498. this.userInfo.avatar = res.data.url
  499. }, (err) => {
  500. console.log(err)
  501. })
  502. },
  503. /**
  504. * 提交修改
  505. */
  506. formSubmit: function(e) {
  507. let that = this,
  508. value = e.detail.value,
  509. userInfo = that.switchUserInfo[that.userIndex];
  510. if (!value.nickname) return that.$util.Tips({
  511. title: that.$t(`请输入姓名`)
  512. });
  513. value.avatar = this.userInfo.avatar;
  514. userEdit(value).then(res => {
  515. return that.$util.Tips({
  516. title: res.msg,
  517. icon: 'success'
  518. }, {
  519. tab: 3,
  520. url: 1
  521. });
  522. }).catch(msg => {
  523. return that.$util.Tips({
  524. title: msg || that.$t(`保存失败`)
  525. }, {
  526. tab: 3,
  527. url: 1
  528. });
  529. });
  530. }
  531. }
  532. }
  533. </script>
  534. <style scoped lang="scss">
  535. .cartcolor {
  536. color: var(--view-theme);
  537. border: 1px solid var(--view-theme);
  538. }
  539. .personal-data .wrapper {
  540. margin: 10rpx 0;
  541. background-color: #fff;
  542. padding: 36rpx 30rpx 13rpx 30rpx;
  543. }
  544. .personal-data .wrapper .title {
  545. margin-bottom: 30rpx;
  546. font-size: 32rpx;
  547. color: #282828;
  548. }
  549. .personal-data .wrapper .wrapList .item {
  550. width: 690rpx;
  551. height: 160rpx;
  552. background-color: #f8f8f8;
  553. border-radius: 20rpx;
  554. margin-bottom: 22rpx;
  555. padding: 0 30rpx;
  556. position: relative;
  557. border: 2rpx solid #f8f8f8;
  558. box-sizing: border-box;
  559. }
  560. .personal-data .wrapper .wrapList .item.on {
  561. border-color: #e93323;
  562. border-radius: 20rpx;
  563. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAACgCAYAAADw+I85AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6M0QzNkY3NzlCNzJCMTFFOTgyNEU4QzhGQTRFRUY2REQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6M0QzNkY3N0FCNzJCMTFFOTgyNEU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dntDrsNh996K5aIjVN8Y4QsAMDr8tzq/Y6O+hHaA6jeEoqx3PfHjga7D8eZjZ2H42wZdhKcohYA4G1uw+5dBvKc61UJ0XxZh81esFW5zML+HQ9W4fmK7yHMwoR2KBCyAACf8zvs3oc1ltveG473R4rYqvydkyZkAQDeJ4fnQwnFj86ednO3x9pq6zN/m5AFAJiwVYnZbqzgrdGYAzavwu7aCeFQrs6l8YQsAMDH5BC9K5fcVHkmNR9YVQ3CNt8nz8s+DuL3mPJjz8/lDRCyAACf9/AFkfoWZzFSIGQBAF7x89c/Y/pzZ+fWdvaRBQCYhvm5PWEhCwAwftfn2HVCFgBg3GIJ2bMjZAEAxu06nNEBXkIWAGAaujOKnSUhCwAwXme7GitkAQDG66xXY2tJyAIAjNMsnPFqbG0tZAEAxun6zJ+/kAUAGKF8Bq9z77hHIQsAMD5XXoLwIGQBAMYlz8XOzvw1WAcrsgAAo2M1NoRV/iBkAQDGZeYlCPdCFgBgXHK7XYjYZrRAyAIAjMi5r8am+nI3rHoAAITsGNyWmBWyAAAjkncrOOexgjxSsBreIGQBAMbh8oyfew7Y2+0bhSwAgJA9ZQ+7Ivbcyx4AQMietvt9EStkAQDGIc/HntO/pKcSsCtlDwAwbufUbHkV9i4MdifwogAAjNfUdyvIJzhYhcHJDtQ9AMA0TGmsIJVYzZfH0B7M9fiRX/R/AQYA1i4UF+HkevkAAAAASUVORK5CYII=");
  564. background-size: 100% 100%;
  565. background-color: #fff9f9;
  566. background-repeat: no-repeat;
  567. }
  568. .personal-data .wrapper .wrapList .item .picTxt {
  569. width: 445rpx;
  570. }
  571. .personal-data .wrapper .wrapList .item .picTxt .pictrue {
  572. width: 96rpx;
  573. height: 96rpx;
  574. position: relative;
  575. }
  576. .personal-data .wrapper .wrapList .item .picTxt .pictrue image {
  577. width: 100%;
  578. height: 100%;
  579. border-radius: 50%;
  580. }
  581. .personal-data .wrapper .wrapList .item .picTxt .pictrue .alter {
  582. width: 30rpx;
  583. height: 30rpx;
  584. border-radius: 50%;
  585. position: absolute;
  586. bottom: 0;
  587. right: 0;
  588. }
  589. .personal-data .wrapper .wrapList .item .picTxt .text {
  590. width: 325rpx;
  591. }
  592. .personal-data .wrapper .wrapList .item .picTxt .text .name {
  593. width: 100%;
  594. font-size: 30rpx;
  595. color: #282828;
  596. }
  597. .personal-data .wrapper .wrapList .item .picTxt .text .phone {
  598. font-size: 24rpx;
  599. color: #999;
  600. margin-top: 10rpx;
  601. }
  602. .personal-data .wrapper .wrapList .item .bnt {
  603. font-size: 24rpx;
  604. background-color: #fff;
  605. border-radius: 27rpx;
  606. width: 140rpx;
  607. height: 54rpx;
  608. border: 2rpx solid #e93323;
  609. }
  610. .personal-data .wrapper .wrapList .item .currentBnt {
  611. position: absolute;
  612. right: 0;
  613. top: 0;
  614. font-size: 26rpx;
  615. background-color: rgba(233, 51, 35, 0.1);
  616. width: 140rpx;
  617. height: 48rpx;
  618. border-radius: 0 20rpx 0 20rpx;
  619. }
  620. .personal-data .list {
  621. margin-top: 15rpx;
  622. background-color: #fff;
  623. }
  624. .personal-data .list .item {
  625. padding: 30rpx 30rpx 30rpx 0;
  626. border-bottom: 1rpx solid #f2f2f2;
  627. margin-left: 30rpx;
  628. font-size: 28rpx;
  629. color: #282828;
  630. }
  631. .personal-data .list .item .phone {
  632. width: 160rpx;
  633. height: 56rpx;
  634. font-size: 24rpx;
  635. color: #fff;
  636. line-height: 56rpx;
  637. border-radius: 32rpx
  638. }
  639. .personal-data .list .item .pictrue {
  640. width: 88rpx;
  641. height: 88rpx;
  642. }
  643. .personal-data .list .item .pictrue image {
  644. width: 100%;
  645. height: 100%;
  646. border-radius: 50%;
  647. }
  648. .personal-data .list .item .input {
  649. max-width: 400rpx;
  650. text-align: right;
  651. color: #868686;
  652. font-size: 28rpx;
  653. .icon-suozi {
  654. margin-left: 10rpx;
  655. }
  656. }
  657. .personal-data .list .item .input .id {
  658. // width: 180rpx;
  659. }
  660. .personal-data .list .item .input .iconfont {
  661. font-size: 24rpx;
  662. }
  663. .personal-data .modifyBnt {
  664. font-size: 32rpx;
  665. color: #fff;
  666. width: 690rpx;
  667. height: 90rpx;
  668. border-radius: 50rpx;
  669. text-align: center;
  670. line-height: 90rpx;
  671. margin: 76rpx auto 0 auto;
  672. }
  673. .personal-data .logOut {
  674. font-size: 32rpx;
  675. text-align: center;
  676. width: 690rpx;
  677. height: 90rpx;
  678. border-radius: 45rpx;
  679. margin: 30rpx auto 0 auto;
  680. }
  681. .avatar-box {
  682. width: 96rpx;
  683. height: 96rpx;
  684. image {
  685. width: 100%;
  686. height: 100%;
  687. border-radius: 50%;
  688. }
  689. }
  690. </style>