index.vue 26 KB

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