index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. <template>
  2. <!-- 个人资料 -->
  3. <view>
  4. <!-- #ifdef MP -->
  5. <NavBar showBack bagColor="#f5f5f5" titleText="个人资料"></NavBar>
  6. <!-- #endif -->
  7. <form @submit="formSubmit">
  8. <view class='personal-data' :style="colorStyle">
  9. <view class='list rd-24rpx mx-20'>
  10. <view class='item acea-row row-between-wrapper'>
  11. <view>头像</view>
  12. <view class="avatar-box" v-if="!mp_is_new" @click.stop='uploadpic'>
  13. <image :src="userInfo.avatar"></image>
  14. </view>
  15. <button v-else class="avatar-box" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
  16. <image :src="userInfo.avatar"></image>
  17. </button>
  18. </view>
  19. <view class='item acea-row row-between-wrapper'>
  20. <view>昵称</view>
  21. <view class='input'><input type='nickname' name='nickname' :value='userInfo.nickname' maxlength="16"></input>
  22. </view>
  23. </view>
  24. <view class='item acea-row row-between-wrapper'>
  25. <view>手机号码</view>
  26. <navigator url="/pages/users/user_phone/index" hover-class="none" class="input"
  27. v-if="!userInfo.phone">
  28. 点击绑定手机号<text class="iconfont icon-ic_rightarrow"></text>
  29. </navigator>
  30. <view @click="isCancellation = true" class="input"
  31. v-else>
  32. {{userInfo.phone}}<text class="iconfont icon-ic_rightarrow"></text>
  33. </view>
  34. <view class='input acea-row row-between-wrapper' v-else>
  35. <input type='text' disabled='true' name='phone' :value='userInfo.phone' class='id'></input>
  36. <text class='iconfont icon-ic_rightarrow'></text>
  37. </view>
  38. </view>
  39. <view class='item acea-row row-between-wrapper'>
  40. <view>ID号</view>
  41. <view class='input acea-row row-between-wrapper'>
  42. <input type='text' :value='userInfo.uid' disabled='true' class='id'></input>
  43. <text class='iconfont icon-ic_lock ml-12'></text>
  44. </view>
  45. </view>
  46. <!-- #ifdef H5 -->
  47. <view class="item acea-row row-between-wrapper" v-if="userInfo.phone && !this.$wechat.isWeixin()">
  48. <view>密码</view>
  49. <navigator url="/pages/users/user_pwd_edit/index" hover-class="none" class="input grab">
  50. 点击修改密码
  51. <text class="iconfont icon-ic_rightarrow"></text>
  52. </navigator>
  53. </view>
  54. <!-- #endif -->
  55. <!-- #ifdef APP-PLUS -->
  56. <view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
  57. <view>密码</view>
  58. <navigator url="/pages/users/user_pwd_edit/index" hover-class="none" class="grab">
  59. 点击修改密码
  60. <text class="iconfont icon-ic_rightarrow"></text>
  61. </navigator>
  62. </view>
  63. <!-- #endif -->
  64. <view class="item acea-row row-between-wrapper">
  65. <view>账号注销</view>
  66. <navigator url="/pages/users/user_cancellation/index" hover-class="none" class="input grab">
  67. 注销后无法恢复
  68. <text class="iconfont icon-ic_rightarrow"></text>
  69. </navigator>
  70. </view>
  71. <view class='item acea-row row-between-wrapper' v-for="(item,index) in userInfo.register_extend_info" :key="index">
  72. <view class="acea-row row-middle">{{item.info}}<text v-if="item.required==1" class="asterisk iconfont icon-xinghao"></text></view>
  73. <!-- text -->
  74. <view class='input' v-if="item.format == 'text'">
  75. <input type='text' v-model="item.value" :placeholder="item.tip" placeholder-class="placeholder"></input>
  76. </view>
  77. <!-- number -->
  78. <view class='input' v-if="item.format == 'num'">
  79. <input type='number' v-model="item.value" :placeholder="item.tip" placeholder-class="placeholder"></input>
  80. </view>
  81. <!-- email -->
  82. <view class='input' v-if="item.format == 'mail'">
  83. <input type='text' v-model="item.value" :placeholder="item.tip" placeholder-class="placeholder"></input>
  84. </view>
  85. <!-- data -->
  86. <view class="input acea-row row-middle row-right" v-if="item.format=='date'">
  87. <picker mode="date" :value="item.value" @change="bindDateChange($event,index)">
  88. <view class="acea-row row-right dater">
  89. <view class="grab" v-if="!item.value || item.value == ''">{{item.tip}}</view>
  90. <view v-else>{{item.value}}</view>
  91. </view>
  92. </picker>
  93. <text class='iconfont icon-xiangyou'></text>
  94. </view>
  95. <!-- id -->
  96. <view class='input' v-if="item.format == 'id'">
  97. <input type='idcard' v-model="item.value" :placeholder="item.tip" placeholder-class="placeholder"></input>
  98. </view>
  99. <!-- phone -->
  100. <view class='input' v-if="item.format == 'phone'">
  101. <input type='tel' v-model="item.value" :placeholder="item.tip" placeholder-class="placeholder"></input>
  102. </view>
  103. <!-- radio -->
  104. <view class="input" v-if="item.format=='radio'">
  105. <radio-group @change="radioChange($event,index)">
  106. <label class="label" v-for="(j ,jindex) in item.singlearr" :key="jindex">
  107. <!-- <radio :value="j" :checked="item.value == j" /> -->
  108. <!-- #ifndef MP -->
  109. <radio :value="jindex.toString()" :checked='item.value == jindex'/>
  110. <!-- #endif -->
  111. <!-- #ifdef MP -->
  112. <radio :value="jindex" :checked='item.value == jindex'/>
  113. <!-- #endif -->
  114. {{j}}
  115. </label>
  116. </radio-group>
  117. </view>
  118. <!-- address -->
  119. <view class="input acea-row row-middle row-right" @click="addressList" v-if="item.format=='address'">
  120. <!-- <picker mode="multiSelector" @change="bindRegionChange($event,index)"
  121. @columnchange="bindMultiPickerColumnChange" :value="valueRegion"
  122. :range="multiArray">
  123. <view class='acea-row'>
  124. <view class="picker" :class="region[0] == '省'?'grab':''">{{region[0]}},{{region[1]}},{{region[2]}}</view>
  125. </view>
  126. </picker>
  127. <text class='iconfont icon-xiangyou'></text> -->
  128. <input type='text' v-model="item.value" :placeholder="item.tip" placeholder-class="placeholder"></input>
  129. </view>
  130. </view>
  131. </view>
  132. <button class='modifyBnt' formType="submit">保存修改</button>
  133. </view>
  134. </form>
  135. <canvas canvas-id="canvas" v-if="canvasStatus"
  136. :style="{width: canvasWidth + 'px', height: canvasHeight + 'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas>
  137. <!-- #ifdef MP -->
  138. <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize>
  139. <!-- #endif -->
  140. <tui-modal :show="isCancellation" maskClosable custom @cancel="isCancellation = false">
  141. <view class="tui-modal-custom">
  142. <view class="fs-32 fw-500 lh-44rpx text-center">更换已绑定的手机号?</view>
  143. <view class="fs-30 text--w111-666 lh-42rpx text-center mt-22">当前绑定的手机号码为 {{userInfo.phone}}</view>
  144. <view class="flex-y-center">
  145. <view class="w-full h-72 rd-36rpx flex-center border b-solid b--w111-ccc text-primary-con fs-26 text--w111-fff mt-32 mr-16" @tap="bindPhone">更换</view>
  146. <view class="w-full h-72 rd-36rpx flex-center bg-red fs-26 text--w111-fff mt-32 ml-16" @tap="isCancellation = false">取消</view>
  147. </view>
  148. </view>
  149. </tui-modal>
  150. </view>
  151. </template>
  152. <script>
  153. import {
  154. getUserInfo,
  155. userEdit,
  156. getLogout
  157. } from '@/api/user.js';
  158. import tuiModal from '@/components/tui-modal/index.vue';
  159. import {
  160. switchH5Login,
  161. getCity
  162. } from '@/api/api.js';
  163. import {
  164. toLogin
  165. } from '@/libs/login.js';
  166. import {
  167. mapGetters
  168. } from "vuex";
  169. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  170. import colors from '@/mixins/color.js';
  171. import NavBar from '@/components/NavBar.vue';
  172. export default {
  173. components: {tuiModal,NavBar},
  174. mixins: [colors],
  175. data() {
  176. return {
  177. isCancellation: false,
  178. userInfo: {},
  179. loginType: 'h5', //app.globalData.loginType
  180. userIndex: 0,
  181. switchUserInfo: [],
  182. isAuto: false, //没有授权的不会自动授权
  183. isShowAuth: false, //是否隐藏授权
  184. canvasWidth: "",
  185. canvasHeight: "",
  186. canvasStatus: false,
  187. district: [],
  188. multiArray: [],
  189. multiIndex: [0, 0, 0],
  190. valueRegion: [0, 0, 0],
  191. region: ['省', '市', '区'],
  192. mp_is_new: this.$Cache.get('MP_VERSION_ISNEW') || false
  193. };
  194. },
  195. computed: mapGetters(['isLogin']),
  196. watch: {
  197. isLogin: {
  198. handler: function(newV, oldV) {
  199. if (newV) {
  200. // #ifndef MP
  201. this.getUserInfo();
  202. // #endif
  203. }
  204. },
  205. deep: true
  206. }
  207. },
  208. onLoad() {
  209. if (this.isLogin) {
  210. this.getUserInfo();
  211. } else {
  212. this.getIsLogin();
  213. }
  214. },
  215. onShow() {
  216. uni.removeStorageSync('form_type_cart');
  217. },
  218. methods: {
  219. getIsLogin(){
  220. toLogin()
  221. },
  222. // 省市区地址处理逻辑;
  223. addressList(){
  224. this.getCityList();
  225. },
  226. // 获取地址数据
  227. getCityList() {
  228. let that = this;
  229. getCity().then(res => {
  230. this.district = res.data
  231. that.initialize();
  232. })
  233. },
  234. // 处理地址数据
  235. initialize: function() {
  236. let that = this,
  237. province = [],
  238. city = [],
  239. area = [];
  240. if (that.district.length) {
  241. let cityChildren = that.district[0].c || [];
  242. let areaChildren = cityChildren.length ? (cityChildren[0].c || []) : [];
  243. that.district.forEach(function(item) {
  244. province.push(item.n);
  245. });
  246. cityChildren.forEach(function(item) {
  247. city.push(item.n);
  248. });
  249. areaChildren.forEach(function(item) {
  250. area.push(item.n);
  251. });
  252. this.multiArray = [province, city, area]
  253. }
  254. },
  255. bindRegionChange(e,index) {
  256. let multiIndex = this.multiIndex,
  257. province = this.district[multiIndex[0]] || {
  258. c: []
  259. },
  260. city = province.c[multiIndex[1]] || {
  261. v: 0
  262. },
  263. multiArray = this.multiArray,
  264. value = e.detail.value;
  265. this.region = [multiArray[0][value[0]], multiArray[1][value[1]], multiArray[2][value[2]]]
  266. this.userInfo.register_extend_info[index].value = city.v;
  267. this.userInfo.register_extend_info[index].province = this.region[0];
  268. this.userInfo.register_extend_info[index].city = this.region[1];
  269. this.userInfo.register_extend_info[index].district = this.region[2];
  270. this.valueRegion = [0, 0, 0]
  271. this.initialize();
  272. },
  273. bindMultiPickerColumnChange(e) {
  274. let that = this,
  275. column = e.detail.column,
  276. value = e.detail.value,
  277. currentCity = this.district[value] || {
  278. c: []
  279. },
  280. multiArray = that.multiArray,
  281. multiIndex = that.multiIndex;
  282. multiIndex[column] = value;
  283. switch (column) {
  284. case 0:
  285. let areaList = currentCity.c[0] || {
  286. c: []
  287. };
  288. multiArray[1] = currentCity.c.map((item) => {
  289. return item.n;
  290. });
  291. multiArray[2] = areaList.c.map((item) => {
  292. return item.n;
  293. });
  294. break;
  295. case 1:
  296. let cityList = that.district[multiIndex[0]].c[multiIndex[1]].c || [];
  297. multiArray[2] = cityList.map((item) => {
  298. return item.n;
  299. });
  300. break;
  301. case 2:
  302. break;
  303. }
  304. // #ifdef MP || APP-PLUS
  305. this.$set(this.multiArray, 0, multiArray[0]);
  306. this.$set(this.multiArray, 1, multiArray[1]);
  307. this.$set(this.multiArray, 2, multiArray[2]);
  308. // #endif
  309. // #ifdef H5
  310. this.multiArray = multiArray;
  311. // #endif
  312. this.multiIndex = multiIndex
  313. },
  314. radioChange(e, index){
  315. this.userInfo.register_extend_info[index].value = e.detail.value
  316. },
  317. bindDateChange: function(e, index) {
  318. this.userInfo.register_extend_info[index].value = e.target.value
  319. },
  320. /**
  321. * 授权回调
  322. */
  323. onLoadFun: function() {
  324. this.getUserInfo();
  325. this.isShowAuth = false;
  326. },
  327. // 授权关闭
  328. authColse: function(e) {
  329. this.isShowAuth = e
  330. },
  331. /**
  332. * 小程序设置
  333. */
  334. Setting: function() {
  335. uni.openSetting({
  336. success: function(res) {}
  337. });
  338. },
  339. switchAccounts: function(index) {
  340. let userInfo = this.switchUserInfo[index],
  341. that = this;
  342. that.userIndex = index;
  343. if (that.switchUserInfo.length <= 1) return true;
  344. if (userInfo === undefined) return that.$util.Tips({
  345. title: '切换的账号不存在'
  346. });
  347. if (userInfo.user_type === 'h5') {
  348. uni.showLoading({
  349. title: '正在切换中'
  350. });
  351. switchH5Login().then(res => {
  352. uni.hideLoading();
  353. that.$store.commit("LOGIN", {
  354. 'token': res.data.token,
  355. 'time': this.$Cache.strTotime(res.data.expires_time) - this.$Cache.time()
  356. });
  357. that.getUserInfo();
  358. }).catch(err => {
  359. uni.hideLoading();
  360. return that.$util.Tips({
  361. title: err
  362. });
  363. })
  364. } else {
  365. that.$store.commit("LOGOUT");
  366. uni.showLoading({
  367. title: '正在切换中'
  368. });
  369. this.getIsLogin();
  370. }
  371. },
  372. /**
  373. * 获取用户详情
  374. */
  375. getUserInfo: function() {
  376. let that = this;
  377. getUserInfo().then(res => {
  378. res.data.register_extend_info.forEach(item=>{
  379. if(item.format == 'radio'){
  380. item.value = '0'
  381. }else{
  382. item.value = ''
  383. if(item.format == 'address'){
  384. item.province = "";
  385. item.city = "";
  386. item.district = "";
  387. }
  388. }
  389. })
  390. res.data.register_extend_info.forEach(item=>{
  391. res.data.extend_info.forEach(j=>{
  392. if(item.info === j.info){
  393. item.value = j.value
  394. if(item.format == 'address'){
  395. let region = [j.province, j.city, j.district];
  396. that.$set(that, 'region', region);
  397. }
  398. }
  399. })
  400. })
  401. that.$set(that, 'userInfo', res.data);
  402. let switchUserInfo = res.data.switchUserInfo || [];
  403. for (let i = 0; i < switchUserInfo.length; i++) {
  404. if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;
  405. // 切割h5用户;user_type状态:h5、routine(小程序)、wechat(公众号);注:只有h5未注册手机号时,h5才可和小程序或是公众号数据想通;
  406. //#ifdef H5
  407. if (
  408. !that.$wechat.isWeixin() &&
  409. switchUserInfo[i].user_type != "h5" &&
  410. switchUserInfo[i].phone === ""
  411. )
  412. switchUserInfo.splice(i, 1);
  413. //#endif
  414. }
  415. that.$set(that, "switchUserInfo", switchUserInfo);
  416. });
  417. },
  418. /**
  419. * 上传文件
  420. *
  421. */
  422. uploadpic: function() {
  423. let that = this;
  424. this.canvasStatus = true
  425. that.$util.uploadImageChange('upload/image', (res) => {
  426. let userInfo = that.switchUserInfo[that.userIndex];
  427. // if (userInfo !== undefined) {
  428. that.userInfo.avatar = res.data.url;
  429. // }
  430. that.switchUserInfo[that.userIndex] = userInfo;
  431. that.$set(that, 'switchUserInfo', that.switchUserInfo);
  432. this.canvasStatus = false
  433. }, (res) => {
  434. this.canvasStatus = false
  435. }, (res) => {
  436. this.canvasWidth = res.w
  437. this.canvasHeight = res.h
  438. });
  439. },
  440. // 微信头像获取
  441. onChooseAvatar(e) {
  442. const {
  443. avatarUrl
  444. } = e.detail
  445. console.log(avatarUrl)
  446. this.$util.uploadImgs('upload/image', avatarUrl, (res) => {
  447. this.userInfo.avatar = res.data.url
  448. }, (err) => {
  449. console.log(err)
  450. })
  451. },
  452. bindPhone(){
  453. uni.navigateTo({
  454. url:'/pages/users/user_phone/index'
  455. })
  456. },
  457. /**
  458. * 提交修改
  459. */
  460. formSubmit: function(e) {
  461. let that = this,
  462. value = e.detail.value,
  463. userInfo = that.switchUserInfo[that.userIndex];
  464. if (!value.nickname) return that.$util.Tips({
  465. title: '用户姓名不能为空'
  466. });
  467. value.avatar = this.userInfo.avatar;
  468. for (var i = 0; i < that.userInfo.register_extend_info.length; i++) {
  469. let data = that.userInfo.register_extend_info[i]
  470. if (data.required || data.value) {
  471. if (data.format === 'date' || data.format === 'address') {
  472. if (!data.value) {
  473. return that.$util.Tips({
  474. title: `${data.tip}`
  475. });
  476. }
  477. }
  478. if(data.format === 'text'){
  479. if (!data.value.trim()) {
  480. return that.$util.Tips({
  481. title: `${data.tip}`
  482. });
  483. }
  484. }
  485. if (data.format === 'num') {
  486. if (data.value <= 0) {
  487. return that.$util.Tips({
  488. title: `${data.tip}`
  489. });
  490. }
  491. }
  492. if (data.format === 'mail') {
  493. if (data.required) {
  494. if (!data.value) {
  495. return that.$util.Tips({
  496. title: `${data.tip}`
  497. });
  498. }
  499. }
  500. if (data.value) {
  501. if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(data.value)) {
  502. return that.$util.Tips({
  503. title: '请填写正确的邮箱'
  504. });
  505. }
  506. }
  507. }
  508. if (data.format === 'phone') {
  509. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(data.value)) {
  510. return that.$util.Tips({
  511. title: `${data.tip}`
  512. });
  513. }
  514. }
  515. if (data.format === 'id') {
  516. if (data.required) {
  517. if (!data.value) {
  518. return that.$util.Tips({
  519. title: `${data.tip}`
  520. });
  521. }
  522. }
  523. if (data.value) {
  524. if (!/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/i.test(data.value)) {
  525. return that.$util.Tips({
  526. title: '请填写正确的身份证号码'
  527. });
  528. }
  529. }
  530. }
  531. }
  532. }
  533. value.extend_info = that.userInfo.register_extend_info;
  534. userEdit(value).then(res => {
  535. return that.$util.Tips({
  536. title: res.msg,
  537. icon: 'success'
  538. });
  539. }).catch(msg => {
  540. return that.$util.Tips({
  541. title: msg || '保存失败,您并没有修改'
  542. });
  543. });
  544. }
  545. }
  546. }
  547. </script>
  548. <style scoped lang="scss">
  549. .personal-data{
  550. padding-bottom: 50rpx;
  551. }
  552. .dater{
  553. width: 400rpx;
  554. }
  555. .grab{
  556. color: #999 !important;
  557. }
  558. .asterisk{
  559. color: red;
  560. font-size: 20rpx;
  561. margin-left: 6rpx;
  562. }
  563. .placeholder{
  564. color: #ccc;
  565. }
  566. .cartcolor {
  567. color: var(--view-theme);
  568. border: 1px solid var(--view-theme);
  569. }
  570. .personal-data .wrapper {
  571. margin: 10rpx 0;
  572. background-color: #fff;
  573. padding: 36rpx 30rpx 13rpx 30rpx;
  574. }
  575. .personal-data .wrapper .title {
  576. margin-bottom: 30rpx;
  577. font-size: 30rpx;
  578. color: #282828;
  579. }
  580. .personal-data .list {
  581. margin-top: 15rpx;
  582. background-color: #fff;
  583. }
  584. .personal-data .list .item {
  585. padding: 32rpx 20rpx 32rpx 24rpx;
  586. font-size: 30rpx;
  587. color: #333;
  588. .label{
  589. display: flex;
  590. align-items: center;
  591. margin-left: 50rpx;
  592. line-height: 30rpx;
  593. }
  594. radio-group{
  595. display: flex;
  596. }
  597. /deep/ uni-radio-input{
  598. margin-right: 12rpx;
  599. .uni-radio-input.uni-radio-input-checked:before {
  600. font-size: 26rpx;
  601. }
  602. }
  603. }
  604. .personal-data .list .item .phone {
  605. width: 160rpx;
  606. height: 56rpx;
  607. font-size: 30rpx;
  608. color: #fff;
  609. line-height: 56rpx;
  610. border-radius: 32rpx
  611. }
  612. .personal-data .list .item .pictrue {
  613. width: 88rpx;
  614. height: 88rpx;
  615. }
  616. .personal-data .list .item .pictrue image {
  617. width: 100%;
  618. height: 100%;
  619. border-radius: 50%;
  620. }
  621. .personal-data .list .item .input {
  622. max-width: 460rpx;
  623. text-align: right;
  624. color: #999;
  625. input{
  626. text-align: right;
  627. }
  628. /deep/.uni-input-input{
  629. font-size: 30rpx;
  630. }
  631. .picker{
  632. width: 400rpx;
  633. }
  634. }
  635. .personal-data .list .item .input .id {
  636. width: 414rpx;
  637. }
  638. .personal-data .list .item .input .iconfont {
  639. font-size: 30rpx;
  640. color: #999;
  641. }
  642. .personal-data .modifyBnt {
  643. font-size: 30rpx;
  644. color: #333;
  645. width: 710rpx;
  646. height: 98rpx;
  647. border-radius: 24rpx;
  648. text-align: center;
  649. line-height: 90rpx;
  650. margin: 20rpx auto 0 auto;
  651. background-color: #fff;
  652. }
  653. .personal-data .logOut {
  654. font-size: 30rpx;
  655. text-align: center;
  656. width: 690rpx;
  657. height: 90rpx;
  658. border-radius: 45rpx;
  659. margin: 30rpx auto 0 auto;
  660. }
  661. .avatar-box {
  662. width: 96rpx;
  663. height: 96rpx;
  664. image {
  665. width: 100%;
  666. height: 100%;
  667. border-radius: 50%;
  668. border: 1px solid #eee;
  669. }
  670. }
  671. </style>