| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406 |
- <template>
- <view class="container">
- <view class="content">
- <view class="summary-section ">
- <view class="summary-header">
- <view class="summary-indicator"></view>
- <text class="summary-title">基础信息</text>
- </view>
- <view class="list">
- <view class="info-item" @click="toChangePassword">
- <view class="label">头像</view>
- <view class="right">
- <image class="img" src="/static/image/my_heads_icon.png" mode=""></image>
- <image class="icon" src="/static/image/icon_my_more.png" mode=""></image>
- </view>
- </view>
- <view class="info-item" @click="toChangePassword">
- <view class="label">姓名</view>
- <view class="right">
- <text class="txt">王小明</text>
- </view>
- </view>
- <view class="info-item" @click="toChangePassword">
- <view class="label">性别</view>
- <view class="right">
- <text class="txt">男</text>
- <image class="icon" src="/static/image/icon_my_more.png" mode=""></image>
- </view>
- </view>
- </view>
- <view class="summary-header">
- <view class="summary-indicator"></view>
- <text class="summary-title">岗位信息</text>
- </view>
- <view class="list">
- <view class="info-item" @click="toChangePassword">
- <view class="label">部门</view>
- <view class="right">
- <text class="txt ash">请选择部门</text>
- <image class="icon" src="/static/image/icon_my_more.png" mode=""></image>
- </view>
- </view>
- <view class="info-item" @click="toChangePassword">
- <view class="label">岗位</view>
- <view class="right">
- <text class="txt ">办公室主任</text>
- <image class="icon" src="/static/image/icon_my_more.png" mode=""></image>
- </view>
- </view>
- <view class="info-item" @click="toChangePassword">
- <view class="label">产品</view>
- <view class="right">
- <text class="txt ">301、201</text>
- <image class="icon" src="/static/image/icon_my_more.png" mode=""></image>
- </view>
- </view>
- <view class="info-item" @click="toChangePassword">
- <view class="label">直属上级</view>
- <view class="right">
- <text class="txt ash">请选择</text>
- <image class="icon" src="/static/image/icon_my_more.png" mode=""></image>
- </view>
- </view>
- <view class="form-section">
- <view class="form-label">
- <text>证明材料</text>
- <text class="tip">工作证、OA信息截图、个人名片等</text>
- </view>
- <view class="upload-cover" @click="chooseCoverImage">
- <image v-if="formData.coverImage" :src="formData.coverImage" mode="aspectFill"></image>
- <image v-if="formData.coverImage" class="del" @click="del" src="/static/image/icon_img_delete.png"
- mode="aspectFill"></image>
- <view v-else class="upload-placeholder">
- <image class="icon" src="/static/image/icon_camera.png" mode="aspectFill"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- formData: {
- coverImage: '/static/image/icon_camera.png',
- },
- }
- },
- computed: {
- },
- watch: {
- },
- onLoad() {
- },
- onReachBottom() {},
- methods: {
- chooseCoverImage() {
- uni.chooseImage({
- count: 1,
- sizeType: ['compressed'],
- sourceType: ['album', 'camera'],
- success: async (res) => {
- try {
- uni.showLoading({
- title: '上传中...'
- })
- const uploadRes = await uploadFile({
- file: res.tempFilePaths[0],
- type: 'cover'
- })
- uni.hideLoading()
- if (uploadRes.code === 200 && uploadRes.data) {
- this.formData.coverImage = uploadRes.data.url
- }
- } catch (e) {
- uni.hideLoading()
- uni.showToast({
- icon: 'none',
- title: '上传失败'
- })
- }
- }
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- background-color: #ffffff;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- position: relative;
- .content {
- width: 100%;
- height: 100%;
- position: relative;
- z-index: 2;
- .title {
- font-weight: 600;
- font-size: 36rpx;
- color: #333333;
- height: 88rpx;
- text-align: center;
- line-height: 88rpx;
- }
- .summary-section {
- padding: 32rpx 24rpx;
- display: flex;
- flex-direction: column;
- .summary-header {
- display: flex;
- align-items: center;
- margin-bottom: 24rpx;
- .summary-indicator {
- width: 6rpx;
- height: 32rpx;
- background: #388BFF;
- border-radius: 40rpx;
- margin-right: 16rpx;
- }
- .summary-title {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- }
- }
- }
- .list {
- margin-bottom: 40rpx;
- .info-item {
- height: 104upx;
- padding: 0 30upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-bottom: 1px solid #F5F6FA;
- &:last-child {
- border-bottom: none;
- }
- .label {
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #0F1826;
- }
- .right {
- display: flex;
- align-items: center;
- justify-content: center;
- .txt {
- font-size: 28rpx;
- color: #333333;
- margin-right: 8rpx;
- }
- .ash {
- color: #C8C9CC;
- }
- .img {
- width: 62rpx;
- height: 62rpx;
- border-radius: 50%;
- margin-right: 6rpx;
- }
- .icon {
- width: 36rpx;
- height: 36rpx;
- }
- }
- }
- .form-section {
- background: #fff;
- border-radius: 16rpx;
- padding: 24rpx;
- margin-bottom: 24rpx;
- .form-label {
- display: flex;
- align-items: center;
- font-size: 28rpx;
- color: #333;
- .tip {
- font-size: 24rpx;
- color: #999999;
- margin-left: 24rpx;
- }
- }
- .form-tips {
- font-size: 24rpx;
- color: #999;
- margin-bottom: 16rpx;
- }
- .form-input-wrapper {
- position: relative;
- .form-input {
- width: 100%;
- min-height: 120rpx;
- padding: 16rpx;
- background: #f5f5f5;
- border-radius: 8rpx;
- font-size: 28rpx;
- color: #333;
- }
- .char-count {
- position: absolute;
- right: 16rpx;
- bottom: 16rpx;
- font-size: 24rpx;
- color: #999;
- }
- }
- .form-select {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 80rpx;
- padding: 0 24rpx;
- background: #f5f5f5;
- border-radius: 8rpx;
- font-size: 28rpx;
- color: #333;
- .placeholder {
- color: #999;
- }
- .arrow-right {
- font-size: 24rpx;
- color: #999;
- }
- }
- .upload-cover {
- width: 160rpx;
- height: 160rpx;
- border-radius: 16rpx;
- background: #F7F8FA;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 24rpx;
- position: relative;
- .del {
- position: absolute;
- right: 0;
- top: 0;
- width: 28rpx;
- height: 28rpx;
- }
- image {
- width: 100%;
- height: 100%;
- border-radius: 8rpx;
- }
- .upload-placeholder {
- .icon {
- width: 48rpx;
- height: 48rpx;
- }
- }
- }
- .attachment-list {
- .attachment-item {
- display: flex;
- align-items: center;
- padding: 16rpx;
- background: #f5f5f5;
- border-radius: 8rpx;
- margin-bottom: 16rpx;
- .attachment-icon {
- font-size: 32rpx;
- margin-right: 16rpx;
- }
- .attachment-info {
- flex: 1;
- display: flex;
- flex-direction: column;
- .attachment-name {
- font-size: 28rpx;
- color: #333;
- margin-bottom: 4rpx;
- }
- .attachment-size {
- font-size: 24rpx;
- color: #999;
- }
- }
- .attachment-delete {
- font-size: 40rpx;
- color: #999;
- width: 40rpx;
- height: 40rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- .add-attachment {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24rpx;
- background: #E3F2FD;
- border-radius: 8rpx;
- font-size: 28rpx;
- color: #388BFF;
- .add-icon {
- font-size: 32rpx;
- margin-right: 8rpx;
- }
- }
- }
- }
- }
- }
- }
- </style>
|