This commit is contained in:
@fawn-nine
2024-09-13 17:21:38 +08:00
parent 2f62b2f011
commit d3097edd2c
11 changed files with 3107 additions and 297 deletions

View File

@@ -32,11 +32,7 @@
<view class="right_content">
<view v-if="slotProps.row.type == 'sex'">
<text
v-if="
userData[slotProps.row.indexValue]
"
>
v-if="userData[slotProps.row.indexValue]">
{{
userData[slotProps.row.indexValue] == 2 ? "" : ""
}}</text
@@ -57,6 +53,26 @@
>未设置</view
>
</view>
<view v-if="slotProps.row.type == 'name'">
<text v-if="userData[slotProps.row.indexValue]">
{{ userData[slotProps.row.indexValue] }}</text
>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>未设置</view
>
</view>
<view v-if="slotProps.row.type == 'photo'">
<view
v-if="userData[slotProps.row.indexValue] && userData[slotProps.row.indexValue] != null"
@click="handleClickRightContent(slotProps.row, 'bind')"
>修改</view>
<view
v-else
@click="handleClickRightContent(slotProps.row, 'bind')"
>上传</view>
</view>
<view v-if="slotProps.row.type == 'tel'">
<text v-if="userData[slotProps.row.indexValue]">
{{ userData[slotProps.row.indexValue] }}</text
@@ -91,22 +107,17 @@
@click="handleClickRightContent(slotProps.row, 'bind')"
>未设置</view
>
</view>
</view>
<u-icon
v-if="
userData[slotProps.row.indexValue]&&userData[slotProps.row.indexValue]!=''
"
userData[slotProps.row.indexValue]&&userData[slotProps.row.indexValue]!='' "
class="editIcon"
name="edit-pen-fill"
color="#258feb"
size="22"
@click.native.stop="handleClickRightContent(slotProps.row)"
></u-icon>
</view>
<text class="fdButtonBox aui-text-success">{{
slotProps.row.content
@@ -125,67 +136,6 @@
</view>
</view>
<!-- <view class="tabulate">
<view class="per_list">
<text class="biaoti">手机号</text>
<text class="neirong">{{ userMsage.tel }}</text>
<text
class="marPer"
v-if="!userMsage.tel"
@click="openTel()"
style="background-color: #ed901d"
>点击绑定</text
>
</view>
<view class="per_list">
<text class="biaoti">邮箱</text>
<text class="neirong">{{ userMsage.email }}</text>
<text
class="marPer"
v-if="!userMsage.email"
@click="openEmail"
style="background-color: #ed901d"
>点击绑定</text
>
</view>
<view class="per_list per_list_arrow" @click="avatarShow = true">
<text class="biaoti" style="margin-top: 40rpx">头像</text>
<text class="neirong" style="margin-top: 0">
<image :src="userMsage.avatar" class="per_mes_img"></image>
</text>
</view>
<view class="per_list per_list_arrow" @click="nicknameShow = true">
<text class="biaoti">昵称</text>
<text class="neirong">{{ userMsage.nickname }}</text>
</view>
<view class="per_list per_list_arrow" @click="passwordShow = true">
<text class="biaoti">密码</text>
<text v-if="userMsage.YNpass != ''" class="neirong">点击修改</text>
<text
class="marPer"
v-if="userMsage.YNpass != ''"
style="background-color: #92c78c; margin-right: 40rpx"
>已设定</text
>
<text v-if="userMsage.YNpass == ''" class="neirong">去设置</text>
<text
class="marPer"
v-if="userMsage.YNpass == ''"
style="background-color: #9d9d9d; margin-right: 40rpx"
>未设定</text
>
</view>
<view class="per_list per_list_arrow" @click="ageShow = true">
<text class="biaoti">年龄</text>
<text class="neirong">{{ userMsage.age }}</text>
</view>
<view class="per_list per_list_arrow" @click="sexShow = true">
<text class="biaoti">性别</text>
<text class="neirong" v-if="editForm.sex == 1">男</text>
<text class="neirong" v-if="editForm.sex == 0">女</text>
</view>
</view> -->
<u-popup :show="editModalShow" :round="10" @close="">
<view class="tanchu">
<view class="dp_title">{{ editModalTitle }}</view>
@@ -398,14 +348,15 @@
<view @click="closeModal()" class="dp_canBtn"> 取消</view>
</view>
</u-popup>
<addCerInfo v-if="showSubmitInfoBlank" :submitInfo="submitInfo" @close="closeManager()" ></addCerInfo>
<!-- <music-play :playData="playData"></music-play> -->
</view>
</template>
<script>
import addCerInfo from "@/components/addCerInfo.vue";
import permission from "@/js_sdk/wa-permission/permission.js"
import musicPlay from "@/components/music.vue";
// import musicPlay from "@/components/music.vue";
import $http from "@/config/requestConfig.js";
var clear;
import { mapState } from "vuex";
@@ -424,6 +375,9 @@ var enoughRegex = new RegExp("(?=.{8,}).*", "g");
export default {
data() {
return {
showCropper: false,
submitInfo: {},
showSubmitInfoBlank:false,
playData: {},
userData: {},
isPassWordPhone: true,
@@ -461,7 +415,16 @@ export default {
indexValue: "sex",
type: "sex",
},
{
title: "真实姓名",
indexValue: "name",
type: "name",
},
{
title: "证件照",
indexValue: "photo",
type: "photo",
},
// {
// "title": "清楚缓存",
@@ -551,7 +514,8 @@ export default {
this.getCountyCode();
},
components: {
musicPlay,
// musicPlay,
addCerInfo
},
//方法
methods: {
@@ -561,13 +525,33 @@ export default {
this.editForm.quCode = this.quCodeList[0].value;
this.OpenClear();
},
closeManager(data) {
console.log('成功的返回值',data);
this.submitInfo = {}
this.showSubmitInfoBlank = false
this.getData()
},
closeModal() {
this.currentEditType = null;
this.editForm = {};
this.editModalShow = false;
},
},
handleClickRightContent(row, type) {
this.OpenClear();
if(row.indexValue == 'photo' || row.indexValue == 'name'){
if(row.indexValue == 'photo'){
this.submitInfo.photo = this.userData.photo
this.submitInfo.opName = 'photo'
}else if(row.indexValue == 'name') {
this.submitInfo.name = this.userData.name
this.submitInfo.opName = 'name'
}
this.submitInfo.userId = this.userInfo.id
this.showSubmitInfoBlank = true
return
}
// this.currentEditType=null;
var title = "";
this.currentEditType = row.type;
@@ -709,7 +693,7 @@ export default {
if(that.userData.sex==0){
that.userData.sex=2
}
console.log('that.userData at line 698:', that.userData)
console.log('that.userData at line 698个人中心:', that.userData)
});