支付宝兼容

This commit is contained in:
2026-03-09 09:07:58 +08:00
parent 069677957e
commit b3836b8bf2
31 changed files with 2382 additions and 307 deletions
+6 -1
View File
@@ -8,6 +8,9 @@
<!-- #ifdef MP-WEIXIN -->
<button class="avatar-choose-btn" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"></button>
<!-- #endif -->
<!-- #ifdef MP-ALIPAY -->
<!-- <button class="avatar-choose-btn" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"></button> -->
<!-- #endif -->
</view>
<view class="avatar-tip">{{ $t('userProfile.clickToChange') }}</view>
</view>
@@ -129,6 +132,8 @@ const redirectToLogin = () => {
// 小程序原生选择头像回调
const onChooseAvatar = async (e) => {
console.log(e.detail.avatarUrl,'获取头像详情');
try {
const token = uni.getStorageSync('token');
if (!token) {
@@ -282,7 +287,7 @@ function maskPhone(phone) {
}
/* 仅小程序端存在,此按钮覆盖在头像上捕获点击以触发选择头像 */
/* #ifdef MP-WEIXIN */
/* #ifdef MP-WEIXIN || MP-ALIPAY */
.avatar-choose-btn {
position: absolute;
left: 0;