|
|
@ -7,18 +7,26 @@ |
|
|
|
<view class="frame"> |
|
|
|
<view class="headImage"> |
|
|
|
<view style="" class="key">头像</view> |
|
|
|
<button style="" class="value" @chooseavatar="onChooseAvatar" open-type="chooseAvatar"> |
|
|
|
<button v-if="isVedio" style="" class="value" @chooseavatar="onChooseAvatar" open-type="chooseAvatar"> |
|
|
|
<image :src="form.headImage" v-if="form.headImage" style="width: 150%;height: 100%" mode=""> |
|
|
|
</image> |
|
|
|
<image src="/static/image/tabbar/6.png" v-else style="width: 100%;height: 100%" mode=""> |
|
|
|
</image> |
|
|
|
</button> |
|
|
|
<view class="value" v-else> |
|
|
|
<image :src="form.headImage" v-if="form.headImage" style="width: 150%;height: 100%" mode=""> |
|
|
|
</image> |
|
|
|
<image src="/static/image/tabbar/6.png" v-else style="width: 100%;height: 100%" mode=""> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="item"> |
|
|
|
<view class="label">昵称</view> |
|
|
|
<view class="value"> |
|
|
|
<input type="nickname" placeholder="请输入昵称" style="text-align: right;" id="nickName" |
|
|
|
<input type="nickname" v-if="isVedio" placeholder="请输入昵称" style="text-align: right;" id="nickName" |
|
|
|
v-model="form.nickName" /> |
|
|
|
<view class="" v-else> |
|
|
|
{{ form.nickName }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="item" @click="sexChange"> |
|
|
@ -47,11 +55,13 @@ |
|
|
|
<script> |
|
|
|
import '../../common.css'; // 引入公共 CSS 文件 |
|
|
|
import { |
|
|
|
mapState |
|
|
|
mapState, |
|
|
|
mapGetters |
|
|
|
} from 'vuex' |
|
|
|
export default { |
|
|
|
computed: { |
|
|
|
...mapState(['userInfo']), |
|
|
|
...mapGetters(['isVedio']), |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -72,7 +82,6 @@ |
|
|
|
value: 0 |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|