|
|
@@ -1,10 +1,7 @@
|
|
|
<template>
|
|
|
<view class="my-info-page">
|
|
|
<!-- 导航区域 -->
|
|
|
- <view class="icon-title-bjcolor-navBar-box">
|
|
|
- <view @click="handleBack" class="nav-bar-icon"></view>
|
|
|
- <text class="nav-bar-title">个人信息</text>
|
|
|
- </view>
|
|
|
+ <customNavbarVue title="个人信息" :show-back-btn="true" @back="handleBack"></customNavbarVue>
|
|
|
<!-- 头像 -->
|
|
|
<view class="user-img-box">
|
|
|
<view class="user-title">头像</view>
|
|
|
@@ -17,19 +14,19 @@
|
|
|
<view class="form-label-input">
|
|
|
<view class="phone-form-label"><text class="form-label-require">*</text>姓名</view>
|
|
|
<input v-model="data.realName" placeholder="请输入姓名" />
|
|
|
- <icon></icon>
|
|
|
+ <icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
|
|
|
</view>
|
|
|
<!-- 手机号 -->
|
|
|
<view class="form-label-input">
|
|
|
<view class="phone-form-label"><text class="form-label-require">*</text>手机号</view>
|
|
|
<input v-model="data.userName" placeholder="请输入手机号" />
|
|
|
- <icon></icon>
|
|
|
+ <icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
|
|
|
</view>
|
|
|
<!-- 证件号 -->
|
|
|
<view class="form-label-input">
|
|
|
<view class="phone-form-label"><text class="form-label-require">*</text>证件号</view>
|
|
|
<input v-model="data.idcard" placeholder="请输入证件号" />
|
|
|
- <icon></icon>
|
|
|
+ <icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
|
|
|
</view>
|
|
|
<!-- 电话 -->
|
|
|
<view></view>
|
|
|
@@ -47,14 +44,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+ import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
|
|
|
import * as myApi from "@/api/my.js";
|
|
|
import {getAliyunPolicy} from "@/api/jiazheng.js"
|
|
|
import {ref,reactive} from "vue"
|
|
|
import {onLoad} from "@dcloudio/uni-app"
|
|
|
- import defaultImage from "@/static/images/my/user-default-img.png"
|
|
|
-
|
|
|
+ import cacheManager from '@/utils/cacheManager.js';
|
|
|
const defaultImage1 = ref({
|
|
|
- url:defaultImage, extname: 'png', name: 'moren.png'
|
|
|
+ url:'', extname: 'png', name: 'moren.png'
|
|
|
})
|
|
|
|
|
|
const imageStyles = ref({
|
|
|
@@ -71,11 +68,14 @@
|
|
|
idcard: '',
|
|
|
userName: '',
|
|
|
userId: null,
|
|
|
- images: null
|
|
|
+ images: null,
|
|
|
+ jtIcon: '',
|
|
|
})
|
|
|
|
|
|
onLoad((options) => {
|
|
|
data.from = options.from || 'shouye';
|
|
|
+ data.jtIcon= cacheManager.get('projectImg').nav_bar_jt_bottom;
|
|
|
+ defaultImage1.url= cacheManager.get('projectImg').user_default_img;
|
|
|
initPage();
|
|
|
})
|
|
|
|