个人中心
This commit is contained in:
@@ -112,7 +112,8 @@ export default {
|
|||||||
icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-fxxcx.png",
|
icon: "https://cdn.cunwuyun.cn/wechat/biaopin/mine/mine-icon-fxxcx.png",
|
||||||
label: "分享小程序",
|
label: "分享小程序",
|
||||||
path: "./myHarvestQR",
|
path: "./myHarvestQR",
|
||||||
type: 'share'
|
type: 'share',
|
||||||
|
share: true
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// [
|
// [
|
||||||
@@ -172,12 +173,7 @@ export default {
|
|||||||
this.scan()
|
this.scan()
|
||||||
}
|
}
|
||||||
if (type == 'share') {
|
if (type == 'share') {
|
||||||
uni.showShareMenu({
|
|
||||||
// withShareTicket: true,
|
|
||||||
menus: ['shareAppMessage', 'shareTimeline'],//开启转发好友和转发朋友圈按钮
|
|
||||||
title: '欢迎使用数字乡村治理服务一体化平台~',
|
|
||||||
path: `/pages/AppModules/AppModules`
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
if (type == 'null') {
|
if (type == 'null') {
|
||||||
this.$u.toast('内容建设中...')
|
this.$u.toast('内容建设中...')
|
||||||
|
|||||||
@@ -4,11 +4,14 @@
|
|||||||
<div class="item-content mar-b8">
|
<div class="item-content mar-b8">
|
||||||
<div class="item solid">
|
<div class="item solid">
|
||||||
<p class="mar-t22">头像</p>
|
<p class="mar-t22">头像</p>
|
||||||
<button class="user-img-div" v-if="editAvatarUrl" open-type="chooseAvatar" @chooseavatar="handleWeixinSync">
|
<!-- <button class="user-img-div" v-if="editAvatarUrl" open-type="chooseAvatar" @chooseavatar="handleWeixinSync">
|
||||||
<img v-if="user.avatarUrl && !avatar" :src="user.avatarUrl" class="user-img">
|
<img v-if="user.avatarUrl && !avatar" :src="user.avatarUrl" class="user-img">
|
||||||
<img v-if="avatar" :src="avatar" alt="" class="user-img">
|
<img v-if="avatar" :src="avatar" alt="" class="user-img">
|
||||||
<img v-if="!user.avatarUrl && !avatar" src="https://cdn.cunwuyun.cn/dvcp/myFamily/tx.png" alt="" class="user-img">
|
<img v-if="!user.avatarUrl && !avatar" src="https://cdn.cunwuyun.cn/dvcp/myFamily/tx.png" alt="" class="user-img">
|
||||||
</button>
|
</button> -->
|
||||||
|
<div class="user-img-div" v-if="editAvatarUrl">
|
||||||
|
<AiUploader v-model="avatarUrlList" multiple placeholder="上传头像" :limit="1"></AiUploader>
|
||||||
|
</div>
|
||||||
<div class="user-img-div" v-else>
|
<div class="user-img-div" v-else>
|
||||||
<img v-if="user.avatarUrl && !avatar" :src="user.avatarUrl" class="user-img">
|
<img v-if="user.avatarUrl && !avatar" :src="user.avatarUrl" class="user-img">
|
||||||
<img v-else src="https://cdn.cunwuyun.cn/dvcp/myFamily/tx.png" alt="" class="user-img">
|
<img v-else src="https://cdn.cunwuyun.cn/dvcp/myFamily/tx.png" alt="" class="user-img">
|
||||||
@@ -98,6 +101,7 @@ export default {
|
|||||||
btnText: false,
|
btnText: false,
|
||||||
isFromTabbar: '',
|
isFromTabbar: '',
|
||||||
path: '',
|
path: '',
|
||||||
|
avatarUrlList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -117,6 +121,7 @@ export default {
|
|||||||
this.editGird = true
|
this.editGird = true
|
||||||
this.userGirdId = this.user.girdId
|
this.userGirdId = this.user.girdId
|
||||||
this.userGirdName = this.user.girdName
|
this.userGirdName = this.user.girdName
|
||||||
|
this.avatarUrlList = [{'url': this.user.avatarUrl}]
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
if(this.flag) return
|
if(this.flag) return
|
||||||
@@ -152,7 +157,8 @@ export default {
|
|||||||
// }
|
// }
|
||||||
this.flag = true
|
this.flag = true
|
||||||
this.$instance.post(`/app/appwechatuserqujing/idNumberAttestation`, {
|
this.$instance.post(`/app/appwechatuserqujing/idNumberAttestation`, {
|
||||||
avatarUrl: this.avatar,
|
// avatarUrl: this.avatar,
|
||||||
|
avatarUrl: this.avatarUrlList[0].url,
|
||||||
nickName: this.userName,
|
nickName: this.userName,
|
||||||
phone: this.userPhone,
|
phone: this.userPhone,
|
||||||
name: this.userRealName,
|
name: this.userRealName,
|
||||||
@@ -378,5 +384,15 @@ export default {
|
|||||||
.btn-edit {
|
.btn-edit {
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep.ai-uploader {
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
.imgList {
|
||||||
|
width: 228px;
|
||||||
|
height: 200px;
|
||||||
|
display: inline-block!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user