index.vue 26 KB

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