index.vue 27 KB

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