This commit is contained in:
2024-10-15 11:35:35 +08:00
parent 0ba0738ef9
commit 95365adddc
65 changed files with 13063 additions and 9746 deletions

View File

@@ -31,12 +31,7 @@
<template slot="rightSlot" slot-scope="slotProps">
<view class="right_content">
<view v-if="slotProps.row.type == 'sex'">
<text
v-if="
userData[slotProps.row.indexValue]
"
>
<text v-if="userData[slotProps.row.indexValue]">
{{
userData[slotProps.row.indexValue] == 2 ? "" : ""
}}</text
@@ -67,7 +62,10 @@
>点击绑定</view
>
</view>
<view v-if="slotProps.row.type == 'password'" @click="handleClickRightContent(slotProps.row, 'bind')">
<view
v-if="slotProps.row.type == 'password'"
@click="handleClickRightContent(slotProps.row, 'bind')"
>
{{
userData[slotProps.row.indexValue] ? "更改密码" : "设置密码"
}}
@@ -92,21 +90,18 @@
>未设置</view
>
</view>
<u-icon
v-if="
userData[slotProps.row.indexValue]&&userData[slotProps.row.indexValue]!=''
"
class="editIcon"
name="edit-pen-fill"
color="#3ab3ae"
size="22"
@click.native.stop="handleClickRightContent(slotProps.row)"
></u-icon>
<u-icon
v-if="
userData[slotProps.row.indexValue] &&
userData[slotProps.row.indexValue] != ''
"
class="editIcon"
name="edit-pen-fill"
color="#3ab3ae"
size="22"
@click.native.stop="handleClickRightContent(slotProps.row)"
></u-icon>
</view>
<text class="fdButtonBox aui-text-success">{{
slotProps.row.content
@@ -356,35 +351,32 @@
<template v-if="currentEditType == 'sex'">
<u-radio-group v-model="editForm.sex">
<view style="width: 100%">
<view
v-for="(item, index) in sexList"
class="dp_sex"
>
<view v-for="(item, index) in sexList" class="dp_sex">
{{ item.title }}
<u-radio
:key="index"
activeColor="#3AB3AE"
:name="item.id"
style="float: right; margin-top: 5rpx"
></u-radio>
</view>
</view>
</u-radio-group>
</template>
<template v-if="currentEditType == 'avatar'">
<u-upload
:fileList="fileAvatar"
@afterRead="afterRead"
@delete="deletePic"
multiple
:maxCount="1"
width="150"
height="150"
:previewFullImage="true"
>
</u-upload>
<view class="" @click="checkPermision">
<u-upload
:fileList="fileAvatar"
@afterRead="afterRead"
@delete="deletePic"
multiple
:maxCount="1"
width="150"
height="150"
:previewFullImage="true"
>
</u-upload
></view>
</template>
<u-button
@@ -396,13 +388,17 @@
<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>
<!-- <music-play :playData="playData"></music-play> -->
</view>
</template>
<script>
import musicPlay from "@/components/music.vue";
import permission from "@/js_sdk/wa-permission/permission.js"
// import musicPlay from "@/components/music.vue";
import $http from "@/config/requestConfig.js";
var clear;
import { mapState } from "vuex";
@@ -421,6 +417,8 @@ var enoughRegex = new RegExp("(?=.{8,}).*", "g");
export default {
data() {
return {
showCropper: false, submitInfo: {},
showSubmitInfoBlank:false,
playData: {},
userData: {},
isPassWordPhone: true,
@@ -548,10 +546,18 @@ export default {
this.getCountyCode();
},
components: {
musicPlay,
// addCerInfo
},
//方法
methods: {
async checkPermision(){
var result = await permission.premissionCheck("CAMERA_EXTERNAL_STORAGE")
if (result != 1) {
return false
}
},
handleChangeIsPassWordPhone() {
this.editForm = {};
this.isPassWordPhone = !this.isPassWordPhone;
@@ -707,8 +713,8 @@ export default {
that.userData.sex=2
}
console.log('that.userData at line 698:', that.userData)
});
}
},