index.vue 25 KB

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