增加条件编译

This commit is contained in:
gong
2025-12-19 14:56:19 +08:00
parent 1f9ec41195
commit 89156e9621

View File

@@ -10,12 +10,18 @@
<view class="myContent">
<view class="my_info flex-between">
<view class="my_info_left">
<!-- #ifdef MP-WEIXIN -->
<button class="atatar-btn" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
<image class="my_info_left_head" :src="userInfo.headImg" mode="aspectFill"></image>
</button>
<!-- <view class="name">{{ userInfo.nickName }}</view> -->
<input type="nickname" class="name" v-model="userInfo.nickName" placeholder="输入昵称"
@blur="onNicknameInput" />
<!-- #endif -->
<!-- #ifndef MP-WEIXIN -->
<image class="my_info_left_head" :src="userInfo.headImg" mode="aspectFill"></image>
<view class="name">{{ userInfo.nickName }}</view>
<!-- #endif -->
</view>
<view class="right-icons">
<image class="my_info_right_qr" src="/static/icon/code.png" mode="aspectFill"></image>