123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809 |
- <template>
- <!-- 个人资料 -->
- <view>
- <form @submit="formSubmit">
- <view class='personal-data' :style="colorStyle">
- <!-- <view class="wrapper">
- <view class="title">管理我的账号</view>
- <view class="wrapList">
- <view class="item acea-row row-between-wrapper" :class="item.uid === userInfo.uid ? 'on' : ''" v-for="(item,index) in switchUserInfo"
- :key="index" @click='switchAccounts(index)'>
- <view class="picTxt acea-row row-between-wrapper">
- <view class="pictrue" @click.stop='uploadpic' v-if='item.uid === userInfo.uid'>
- <image :src='item.avatar'></image>
- <image src='../../../static/images/alter.png' class="alter"></image>
- </view>
- <view class="pictrue" v-else>
- <image :src='item.avatar'></image>
- </view>
- <view class="text">
- <view class="name line1">{{ item.nickname }}</view>
- <view class="phone" v-if="item.phone && item.user_type !='h5'">绑定手机号:{{ item.phone }}</view>
- <view class="phone" v-else-if="item.phone && item.user_type =='h5'">账号:{{ item.phone }}</view>
- <view class="phone" v-else>暂未绑定手机号</view>
- </view>
- </view>
- <view class="currentBnt acea-row row-center-wrapper font-color" v-if='item.uid === userInfo.uid'>
- 当前账号
- </view>
- <view class="bnt font-color acea-row row-center-wrapper" v-else>
- 使用账号
- </view>
- </view>
- </view>
- </view> -->
- <view class='list'>
- <view class='item acea-row row-between-wrapper'>
- <view>头像</view>
- <view class="avatar-box" v-if="!mp_is_new" @click.stop='uploadpic'>
- <image :src="userInfo.avatar"></image>
- </view>
- <button v-else class="avatar-box" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
- <image :src="userInfo.avatar"></image>
- </button>
- </view>
- <view class='item acea-row row-between-wrapper'>
- <view>昵称</view>
- <view class='input'><input type='nickname' name='nickname' :value='userInfo.nickname'
- maxlength="16"></input>
- </view>
- </view>
- <view class='item acea-row row-between-wrapper'>
- <view>手机号码</view>
- <navigator url="/pages/users/user_phone/index" hover-class="none" class="input"
- v-if="!userInfo.phone">
- 点击绑定手机号<text class="iconfont icon-xiangyou"></text>
- </navigator>
- <view class='input acea-row row-between-wrapper' v-else>
- <input type='text' disabled='true' name='phone' :value='userInfo.phone' class='id'></input>
- <text class='iconfont icon-suozi'></text>
- </view>
- </view>
- <view class='item acea-row row-between-wrapper'>
- <view>ID号</view>
- <view class='input acea-row row-between-wrapper'>
- <input type='text' :value='userInfo.uid' disabled='true' class='id'></input>
- <text class='iconfont icon-suozi'></text>
- </view>
- </view>
- <view class='item acea-row row-between-wrapper'
- v-for="(item,index) in userInfo.register_extend_info" :key="index">
- <view class="acea-row row-middle">{{item.info}}<text v-if="item.required==1"
- class="asterisk iconfont icon-xinghao"></text></view>
- <!-- text -->
- <view class='input' v-if="item.format == 'text'">
- <input type='text' v-model="item.value" :placeholder="item.tip"
- placeholder-class="placeholder"></input>
- </view>
- <!-- number -->
- <view class='input' v-if="item.format == 'num'">
- <input type='number' v-model="item.value" :placeholder="item.tip"
- placeholder-class="placeholder"></input>
- </view>
- <!-- email -->
- <view class='input' v-if="item.format == 'mail'">
- <input type='text' v-model="item.value" :placeholder="item.tip"
- placeholder-class="placeholder"></input>
- </view>
- <!-- data -->
- <view class="input acea-row row-middle row-right" v-if="item.format=='date'">
- <picker mode="date" :value="item.value" @change="bindDateChange($event,index)">
- <view class="acea-row row-right dater">
- <view class="grab" v-if="!item.value || item.value == ''">{{item.tip}}</view>
- <view v-else>{{item.value}}</view>
- </view>
- </picker>
- <text class='iconfont icon-xiangyou'></text>
- </view>
- <!-- id -->
- <view class='input' v-if="item.format == 'id'">
- <input type='idcard' v-model="item.value" :placeholder="item.tip"
- placeholder-class="placeholder"></input>
- </view>
- <!-- phone -->
- <view class='input' v-if="item.format == 'phone'">
- <input type='tel' v-model="item.value" :placeholder="item.tip"
- placeholder-class="placeholder"></input>
- </view>
- <!-- radio -->
- <view class="input" v-if="item.format=='radio'">
- <radio-group @change="radioChange($event,index)">
- <label class="label" v-for="(j ,jindex) in item.singlearr" :key="jindex">
- <!-- <radio :value="j" :checked="item.value == j" /> -->
- <!-- #ifndef MP -->
- <radio :value="jindex.toString()" :checked='item.value == jindex' />
- <!-- #endif -->
- <!-- #ifdef MP -->
- <radio :value="jindex" :checked='item.value == jindex' />
- <!-- #endif -->
- {{j}}
- </label>
- </radio-group>
- </view>
- <!-- address -->
- <view class="input acea-row row-middle row-right" @click="addressList"
- v-if="item.format=='address'">
- <!-- <picker mode="multiSelector" @change="bindRegionChange($event,index)"
- @columnchange="bindMultiPickerColumnChange" :value="valueRegion"
- :range="multiArray">
- <view class='acea-row'>
- <view class="picker" :class="region[0] == '省'?'grab':''">{{region[0]}},{{region[1]}},{{region[2]}}</view>
- </view>
- </picker>
- <text class='iconfont icon-xiangyou'></text> -->
- <input type='text' v-model="item.value" :placeholder="item.tip"
- placeholder-class="placeholder"></input>
- </view>
- </view>
- </view>
- <button class='modifyBnt bg-color' formType="submit">保存修改</button>
- <!-- #ifdef H5 -->
- <view class="logOut cartcolor acea-row row-center-wrapper" @click="outLogin"
- v-if="!this.$wechat.isWeixin()">退出登录</view>
- <!-- #endif -->
- <!-- #ifdef APP-PLUS -->
- <view class="logOut cartcolor acea-row row-center-wrapper" @click="outLogin">退出登录</view>
- <!-- #endif -->
- </view>
- </form>
- <canvas canvas-id="canvas" v-if="canvasStatus"
- :style="{width: canvasWidth + 'px', height: canvasHeight + 'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas>
- <!-- #ifdef MP -->
- <!-- <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize> -->
- <!-- #endif -->
- </view>
- </template>
- <script>
- import {
- getUserInfo,
- userEdit,
- getLogout
- } from '@/api/user.js';
- import {
- switchH5Login,
- getCity
- } from '@/api/api.js';
- import {
- toLogin
- } from '@/libs/login.js';
- import {
- mapGetters
- } from "vuex";
- import dayjs from "@/plugin/dayjs/dayjs.min.js";
- import colors from '@/mixins/color.js';
- export default {
- components: {},
- mixins: [colors],
- data() {
- return {
- userInfo: {},
- loginType: 'h5', //app.globalData.loginType
- userIndex: 0,
- switchUserInfo: [],
- isAuto: false, //没有授权的不会自动授权
- isShowAuth: false, //是否隐藏授权
- canvasWidth: "",
- canvasHeight: "",
- canvasStatus: false,
- district: [],
- multiArray: [],
- multiIndex: [0, 0, 0],
- valueRegion: [0, 0, 0],
- region: ['省', '市', '区'],
- mp_is_new: this.$Cache.get('MP_VERSION_ISNEW') || false
- };
- },
- computed: mapGetters(['isLogin']),
- watch: {
- isLogin: {
- handler: function(newV, oldV) {
- if (newV) {
- this.getUserInfo();
- }
- },
- deep: true
- }
- },
- onLoad() {
- if (this.isLogin) {
- this.getUserInfo();
- } else {
- this.getIsLogin();
- }
- },
- onShow() {
- uni.removeStorageSync('form_type_cart');
- },
- methods: {
- getIsLogin() {
- toLogin()
- },
- // 省市区地址处理逻辑;
- addressList() {
- this.getCityList();
- },
- // 获取地址数据
- getCityList() {
- let that = this;
- getCity().then(res => {
- this.district = res.data
- that.initialize();
- })
- },
- // 处理地址数据
- initialize: function() {
- let that = this,
- province = [],
- city = [],
- area = [];
- if (that.district.length) {
- let cityChildren = that.district[0].c || [];
- let areaChildren = cityChildren.length ? (cityChildren[0].c || []) : [];
- that.district.forEach(function(item) {
- province.push(item.n);
- });
- cityChildren.forEach(function(item) {
- city.push(item.n);
- });
- areaChildren.forEach(function(item) {
- area.push(item.n);
- });
- this.multiArray = [province, city, area]
- }
- },
- bindRegionChange(e, index) {
- let multiIndex = this.multiIndex,
- province = this.district[multiIndex[0]] || {
- c: []
- },
- city = province.c[multiIndex[1]] || {
- v: 0
- },
- multiArray = this.multiArray,
- value = e.detail.value;
- this.region = [multiArray[0][value[0]], multiArray[1][value[1]], multiArray[2][value[2]]]
- this.userInfo.register_extend_info[index].value = city.v;
- this.userInfo.register_extend_info[index].province = this.region[0];
- this.userInfo.register_extend_info[index].city = this.region[1];
- this.userInfo.register_extend_info[index].district = this.region[2];
- this.valueRegion = [0, 0, 0]
- this.initialize();
- },
- bindMultiPickerColumnChange(e) {
- let that = this,
- column = e.detail.column,
- value = e.detail.value,
- currentCity = this.district[value] || {
- c: []
- },
- multiArray = that.multiArray,
- multiIndex = that.multiIndex;
- multiIndex[column] = value;
- switch (column) {
- case 0:
- let areaList = currentCity.c[0] || {
- c: []
- };
- multiArray[1] = currentCity.c.map((item) => {
- return item.n;
- });
- multiArray[2] = areaList.c.map((item) => {
- return item.n;
- });
- break;
- case 1:
- let cityList = that.district[multiIndex[0]].c[multiIndex[1]].c || [];
- multiArray[2] = cityList.map((item) => {
- return item.n;
- });
- break;
- case 2:
- break;
- }
- // #ifdef MP || APP-PLUS
- this.$set(this.multiArray, 0, multiArray[0]);
- this.$set(this.multiArray, 1, multiArray[1]);
- this.$set(this.multiArray, 2, multiArray[2]);
- // #endif
- // #ifdef H5
- this.multiArray = multiArray;
- // #endif
- this.multiIndex = multiIndex
- },
- radioChange(e, index) {
- this.userInfo.register_extend_info[index].value = e.detail.value
- },
- bindDateChange: function(e, index) {
- this.userInfo.register_extend_info[index].value = e.target.value
- },
- /**
- * 授权回调
- */
- onLoadFun: function() {
- this.getUserInfo();
- this.isShowAuth = false;
- },
- // 授权关闭
- authColse: function(e) {
- this.isShowAuth = e
- },
- /**
- * 小程序设置
- */
- Setting: function() {
- uni.openSetting({
- success: function(res) {}
- });
- },
- switchAccounts: function(index) {
- let userInfo = this.switchUserInfo[index],
- that = this;
- that.userIndex = index;
- if (that.switchUserInfo.length <= 1) return true;
- if (userInfo === undefined) return that.$util.Tips({
- title: '切换的账号不存在'
- });
- if (userInfo.user_type === 'h5') {
- uni.showLoading({
- title: '正在切换中'
- });
- switchH5Login().then(res => {
- uni.hideLoading();
- that.$store.commit("LOGIN", {
- 'token': res.data.token,
- 'time': this.$Cache.strTotime(res.data.expires_time) - this.$Cache.time()
- });
- that.getUserInfo();
- }).catch(err => {
- uni.hideLoading();
- return that.$util.Tips({
- title: err
- });
- })
- } else {
- that.$store.commit("LOGOUT");
- uni.showLoading({
- title: '正在切换中'
- });
- this.getIsLogin();
- }
- },
- /**
- * 退出登录
- *
- */
- outLogin: function() {
- let that = this;
- if (that.loginType == 'h5') {
- uni.showModal({
- title: '提示',
- content: '确认退出登录?',
- success: function(res) {
- if (res.confirm) {
- getLogout()
- .then(res => {
- that.$store.commit("LOGOUT");
- uni.reLaunch({
- url: '/pages/index/index'
- })
- })
- .catch(err => {});
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- },
- /**
- * 获取用户详情
- */
- getUserInfo: function() {
- let that = this;
- getUserInfo().then(res => {
- res.data.register_extend_info.forEach(item => {
- if (item.format == 'radio') {
- item.value = '0'
- } else {
- item.value = ''
- if (item.format == 'address') {
- item.province = "";
- item.city = "";
- item.district = "";
- }
- }
- })
- res.data.register_extend_info.forEach(item => {
- res.data.extend_info.forEach(j => {
- if (item.info === j.info) {
- item.value = j.value
- if (item.format == 'address') {
- let region = [j.province, j.city, j.district];
- that.$set(that, 'region', region);
- }
- }
- })
- })
- that.$set(that, 'userInfo', res.data);
- let switchUserInfo = res.data.switchUserInfo || [];
- for (let i = 0; i < switchUserInfo.length; i++) {
- if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;
- // 切割h5用户;user_type状态:h5、routine(小程序)、wechat(公众号);注:只有h5未注册手机号时,h5才可和小程序或是公众号数据想通;
- //#ifdef H5
- if (
- !that.$wechat.isWeixin() &&
- switchUserInfo[i].user_type != "h5" &&
- switchUserInfo[i].phone === ""
- )
- switchUserInfo.splice(i, 1);
- //#endif
- }
- that.$set(that, "switchUserInfo", switchUserInfo);
- });
- },
- /**
- * 上传文件
- *
- */
- uploadpic: function() {
- let that = this;
- // #ifdef APP
- // uni.showModal({
- // title: "权限申请",
- // content: "是否允许访问相机及存储空间用于上传头像?",
- // success(res) {
- // if (res.confirm) {
- that.commitImg();
- // }
- // }
- // })
- // #endif
- // #ifndef APP
- that.commitImg();
- // #endif
- },
- commitImg() {
- let that = this;
- that.canvasStatus = true
- that.$util.uploadImageChange('upload/image', (res) => {
- let userInfo = that.switchUserInfo[that.userIndex];
- // if (userInfo !== undefined) {
- that.userInfo.avatar = res.data.url;
- // }
- that.switchUserInfo[that.userIndex] = userInfo;
- that.$set(that, 'switchUserInfo', that.switchUserInfo);
- that.canvasStatus = false
- }, (res) => {
- that.canvasStatus = false
- }, (res) => {
- that.canvasWidth = res.w
- that.canvasHeight = res.h
- });
- },
- // 微信头像获取
- onChooseAvatar(e) {
- const {
- avatarUrl
- } = e.detail
- console.log(avatarUrl)
- this.$util.uploadImgs('upload/image', avatarUrl, (res) => {
- this.userInfo.avatar = res.data.url
- }, (err) => {
- console.log(err)
- })
- },
- /**
- * 提交修改
- */
- formSubmit: function(e) {
- let that = this,
- value = e.detail.value,
- userInfo = that.switchUserInfo[that.userIndex];
- if (!value.nickname) return that.$util.Tips({
- title: '用户姓名不能为空'
- });
- value.avatar = this.userInfo.avatar;
- for (var i = 0; i < that.userInfo.register_extend_info.length; i++) {
- let data = that.userInfo.register_extend_info[i]
- if (data.required || data.value) {
- if (data.format === 'date' || data.format === 'address') {
- if (!data.value) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- if (data.format === 'text') {
- if (!data.value.trim()) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- if (data.format === 'num') {
- if (data.value <= 0) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- if (data.format === 'mail') {
- if (data.required) {
- if (!data.value) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(data.value)) {
- return that.$util.Tips({
- title: '请填写正确的邮箱'
- });
- }
- }
- if (data.format === 'phone') {
- if (data.required) {
- if (!data.value) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(data.value)) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- if (data.format === 'id') {
- if (data.required) {
- if (!data.value) {
- return that.$util.Tips({
- title: `${data.tip}`
- });
- }
- }
- 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)) {
- return that.$util.Tips({
- title: '请填写正确的身份证号码'
- });
- }
- }
- }
- }
- value.extend_info = that.userInfo.register_extend_info;
- userEdit(value).then(res => {
- return that.$util.Tips({
- title: res.msg,
- icon: 'success'
- });
- }).catch(msg => {
- return that.$util.Tips({
- title: msg || '保存失败,您并没有修改'
- });
- });
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .personal-data {
- padding-bottom: 50rpx;
- }
- .dater {
- width: 400rpx;
- }
- .grab {
- color: #ccc !important;
- }
- .asterisk {
- color: red;
- font-size: 20rpx;
- margin-left: 6rpx;
- }
- .placeholder {
- color: #ccc;
- }
- .cartcolor {
- color: var(--view-theme);
- border: 1px solid var(--view-theme);
- }
- .personal-data .wrapper {
- margin: 10rpx 0;
- background-color: #fff;
- padding: 36rpx 30rpx 13rpx 30rpx;
- }
- .personal-data .wrapper .title {
- margin-bottom: 30rpx;
- font-size: 32rpx;
- color: #282828;
- }
- .personal-data .wrapper .wrapList .item {
- width: 690rpx;
- height: 160rpx;
- background-color: #f8f8f8;
- border-radius: 20rpx;
- margin-bottom: 22rpx;
- padding: 0 30rpx;
- position: relative;
- border: 2rpx solid #f8f8f8;
- box-sizing: border-box;
- }
- .personal-data .wrapper .wrapList .item.on {
- border-color: #e93323;
- border-radius: 20rpx;
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAACgCAYAAADw+I85AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8v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fUdyvIJzhYhcHJDtQ9AMA0TGmsIJVYzZfH0B7M9fiRX/R/AQYA1i4UF+HkevkAAAAASUVORK5CYII=");
- background-size: 100% 100%;
- background-color: #fff9f9;
- background-repeat: no-repeat;
- }
- .personal-data .wrapper .wrapList .item .picTxt {
- width: 445rpx;
- }
- .personal-data .wrapper .wrapList .item .picTxt .pictrue {
- width: 96rpx;
- height: 96rpx;
- position: relative;
- }
- .personal-data .wrapper .wrapList .item .picTxt .pictrue image {
- width: 100%;
- height: 100%;
- border-radius: 50%;
- }
- .personal-data .wrapper .wrapList .item .picTxt .pictrue .alter {
- width: 30rpx;
- height: 30rpx;
- border-radius: 50%;
- position: absolute;
- bottom: 0;
- right: 0;
- }
- .personal-data .wrapper .wrapList .item .picTxt .text {
- width: 325rpx;
- }
- .personal-data .wrapper .wrapList .item .picTxt .text .name {
- width: 100%;
- font-size: 30rpx;
- color: #282828;
- }
- .personal-data .wrapper .wrapList .item .picTxt .text .phone {
- font-size: 24rpx;
- color: #999;
- margin-top: 10rpx;
- }
- .personal-data .wrapper .wrapList .item .bnt {
- font-size: 24rpx;
- background-color: #fff;
- border-radius: 27rpx;
- width: 140rpx;
- height: 54rpx;
- border: 2rpx solid #e93323;
- }
- .personal-data .wrapper .wrapList .item .currentBnt {
- position: absolute;
- right: 0;
- top: 0;
- font-size: 26rpx;
- background-color: rgba(233, 51, 35, 0.1);
- width: 140rpx;
- height: 48rpx;
- border-radius: 0 20rpx 0 20rpx;
- }
- .personal-data .list {
- margin-top: 15rpx;
- background-color: #fff;
- }
- .personal-data .list .item {
- padding: 30rpx 30rpx 30rpx 0;
- border-bottom: 1rpx solid #f2f2f2;
- margin-left: 30rpx;
- font-size: 32rpx;
- color: #282828;
- .label {
- margin-right: 30rpx;
- }
- }
- .personal-data .list .item .phone {
- width: 160rpx;
- height: 56rpx;
- font-size: 24rpx;
- color: #fff;
- line-height: 56rpx;
- border-radius: 32rpx
- }
- .personal-data .list .item .pictrue {
- width: 88rpx;
- height: 88rpx;
- }
- .personal-data .list .item .pictrue image {
- width: 100%;
- height: 100%;
- border-radius: 50%;
- }
- .personal-data .list .item .input {
- width: 460rpx;
- text-align: right;
- color: #868686;
- input {
- text-align: right;
- }
- .picker {
- width: 400rpx;
- }
- }
- .personal-data .list .item .input .id {
- width: 414rpx;
- }
- .personal-data .list .item .input .iconfont {
- font-size: 35rpx;
- color: #868686;
- }
- .personal-data .modifyBnt {
- font-size: 32rpx;
- color: #fff;
- width: 690rpx;
- height: 90rpx;
- border-radius: 50rpx;
- text-align: center;
- line-height: 90rpx;
- margin: 76rpx auto 0 auto;
- }
- .personal-data .logOut {
- font-size: 32rpx;
- text-align: center;
- width: 690rpx;
- height: 90rpx;
- border-radius: 45rpx;
- margin: 30rpx auto 0 auto;
- }
- .avatar-box {
- width: 96rpx;
- height: 96rpx;
- image {
- width: 100%;
- height: 100%;
- border-radius: 50%;
- border: 1px solid #eee;
- }
- }
- </style>
|