fix: 个人信息手机号更新后未显示修正
This commit is contained in:
parent
21b170bdc5
commit
077278d220
|
|
@ -63,38 +63,40 @@
|
|||
</block>
|
||||
</view>
|
||||
<l-dialog show="{{confirmDeleteModalVisible}}" type="confirm" title="{{t('tip')}}" content="{{t('alertRemove')}}" bind:linconfirm="onRemoveConfirm" bind:lincancel="onRemoveModalClose" />
|
||||
<l-popup
|
||||
show="{{addMobileShow}}"
|
||||
bind:lintap="onAddCloseMp"
|
||||
content-align="bottom"
|
||||
>
|
||||
<view class="create-mobile" style="{{isRoot ? 'box-sizing:border-box; display:flex; flex-direction:column; gap:18rpx; padding:32rpx;' : ''}}">
|
||||
<block wx:if="{{isRoot}}">
|
||||
<view class="create-title">{{t('common::action.add')}}{{t('mobile:name')}}</view>
|
||||
<view class="inputItem">
|
||||
<l-input
|
||||
hide-label="{{true}}"
|
||||
placeholder="{{t('placeholder.mobile')}}"
|
||||
value="{{inputMobileMp}}"
|
||||
bind:lininput="updateInputMobileMp"
|
||||
bind:linclear="updateInputMobileMp"
|
||||
maxlength="11"
|
||||
clear="{{true}}"
|
||||
showRow="{{false}}"
|
||||
l-class="my-input"
|
||||
focus="{{true}}"
|
||||
/>
|
||||
</view>
|
||||
<l-button style="margin-top:20rpx" size="long" bind:lintap="addMobileMp" disabled="{{inputMobileMp === ''}}">
|
||||
{{t('common::action.confirm')}}
|
||||
</l-button>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<mobileLogin
|
||||
callback="{{callbackMp}}"
|
||||
oakPath="$mobile/me-mobile/login"
|
||||
oakAutoUnmount="{{true}}"
|
||||
/>
|
||||
</block>
|
||||
</view>
|
||||
</l-popup>
|
||||
<block wx:if="{{addMobileShow}}">
|
||||
<l-popup
|
||||
show="{{addMobileShow}}"
|
||||
bind:lintap="onAddCloseMp"
|
||||
content-align="bottom"
|
||||
>
|
||||
<view class="create-mobile" style="{{isRoot ? 'box-sizing:border-box; display:flex; flex-direction:column; gap:18rpx; padding:32rpx;' : ''}}">
|
||||
<block wx:if="{{isRoot}}">
|
||||
<view class="create-title">{{t('common::action.add')}}{{t('mobile:name')}}</view>
|
||||
<view class="inputItem">
|
||||
<l-input
|
||||
hide-label="{{true}}"
|
||||
placeholder="{{t('placeholder.mobile')}}"
|
||||
value="{{inputMobileMp}}"
|
||||
bind:lininput="updateInputMobileMp"
|
||||
bind:linclear="updateInputMobileMp"
|
||||
maxlength="11"
|
||||
clear="{{true}}"
|
||||
showRow="{{false}}"
|
||||
l-class="my-input"
|
||||
focus="{{true}}"
|
||||
/>
|
||||
</view>
|
||||
<l-button style="margin-top:20rpx" size="long" bind:lintap="addMobileMp" disabled="{{inputMobileMp === ''}}">
|
||||
{{t('common::action.confirm')}}
|
||||
</l-button>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<mobileLogin
|
||||
callback="{{callbackMp}}"
|
||||
oakPath="$mobile/me-mobile/login"
|
||||
oakAutoUnmount="{{true}}"
|
||||
/>
|
||||
</block>
|
||||
</view>
|
||||
</l-popup>
|
||||
</block>
|
||||
|
|
@ -93,7 +93,18 @@ export default OakComponent({
|
|||
});
|
||||
const avatar = extraFiles?.[0];
|
||||
const avatarUrl = features.extraFile.getUrl(avatar);
|
||||
const mobiles = user && this.select('mobile', {
|
||||
data: {
|
||||
id: 1,
|
||||
mobile: 1,
|
||||
userId: 1,
|
||||
},
|
||||
filter: {
|
||||
userId: user.id,
|
||||
},
|
||||
});
|
||||
const { mobile } = (user?.mobile$user && user?.mobile$user[0]) ||
|
||||
mobiles?.[0] ||
|
||||
(user?.user$ref &&
|
||||
user?.user$ref[0] &&
|
||||
user?.user$ref[0].mobile$user &&
|
||||
|
|
|
|||
|
|
@ -63,38 +63,40 @@
|
|||
</block>
|
||||
</view>
|
||||
<l-dialog show="{{confirmDeleteModalVisible}}" type="confirm" title="{{t('tip')}}" content="{{t('alertRemove')}}" bind:linconfirm="onRemoveConfirm" bind:lincancel="onRemoveModalClose" />
|
||||
<l-popup
|
||||
show="{{addMobileShow}}"
|
||||
bind:lintap="onAddCloseMp"
|
||||
content-align="bottom"
|
||||
>
|
||||
<view class="create-mobile" style="{{isRoot ? 'box-sizing:border-box; display:flex; flex-direction:column; gap:18rpx; padding:32rpx;' : ''}}">
|
||||
<block wx:if="{{isRoot}}">
|
||||
<view class="create-title">{{t('common::action.add')}}{{t('mobile:name')}}</view>
|
||||
<view class="inputItem">
|
||||
<l-input
|
||||
hide-label="{{true}}"
|
||||
placeholder="{{t('placeholder.mobile')}}"
|
||||
value="{{inputMobileMp}}"
|
||||
bind:lininput="updateInputMobileMp"
|
||||
bind:linclear="updateInputMobileMp"
|
||||
maxlength="11"
|
||||
clear="{{true}}"
|
||||
showRow="{{false}}"
|
||||
l-class="my-input"
|
||||
focus="{{true}}"
|
||||
/>
|
||||
</view>
|
||||
<l-button style="margin-top:20rpx" size="long" bind:lintap="addMobileMp" disabled="{{inputMobileMp === ''}}">
|
||||
{{t('common::action.confirm')}}
|
||||
</l-button>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<mobileLogin
|
||||
callback="{{callbackMp}}"
|
||||
oakPath="$mobile/me-mobile/login"
|
||||
oakAutoUnmount="{{true}}"
|
||||
/>
|
||||
</block>
|
||||
</view>
|
||||
</l-popup>
|
||||
<block wx:if="{{addMobileShow}}">
|
||||
<l-popup
|
||||
show="{{addMobileShow}}"
|
||||
bind:lintap="onAddCloseMp"
|
||||
content-align="bottom"
|
||||
>
|
||||
<view class="create-mobile" style="{{isRoot ? 'box-sizing:border-box; display:flex; flex-direction:column; gap:18rpx; padding:32rpx;' : ''}}">
|
||||
<block wx:if="{{isRoot}}">
|
||||
<view class="create-title">{{t('common::action.add')}}{{t('mobile:name')}}</view>
|
||||
<view class="inputItem">
|
||||
<l-input
|
||||
hide-label="{{true}}"
|
||||
placeholder="{{t('placeholder.mobile')}}"
|
||||
value="{{inputMobileMp}}"
|
||||
bind:lininput="updateInputMobileMp"
|
||||
bind:linclear="updateInputMobileMp"
|
||||
maxlength="11"
|
||||
clear="{{true}}"
|
||||
showRow="{{false}}"
|
||||
l-class="my-input"
|
||||
focus="{{true}}"
|
||||
/>
|
||||
</view>
|
||||
<l-button style="margin-top:20rpx" size="long" bind:lintap="addMobileMp" disabled="{{inputMobileMp === ''}}">
|
||||
{{t('common::action.confirm')}}
|
||||
</l-button>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<mobileLogin
|
||||
callback="{{callbackMp}}"
|
||||
oakPath="$mobile/me-mobile/login"
|
||||
oakAutoUnmount="{{true}}"
|
||||
/>
|
||||
</block>
|
||||
</view>
|
||||
</l-popup>
|
||||
</block>
|
||||
|
|
@ -95,8 +95,20 @@ export default OakComponent({
|
|||
});
|
||||
const avatar = extraFiles?.[0];
|
||||
const avatarUrl = features.extraFile.getUrl(avatar);
|
||||
const mobiles = user && this.select('mobile', {
|
||||
data: {
|
||||
id: 1,
|
||||
mobile: 1,
|
||||
userId: 1,
|
||||
},
|
||||
filter: {
|
||||
userId: user.id,
|
||||
},
|
||||
});
|
||||
|
||||
const { mobile } =
|
||||
(user?.mobile$user && user?.mobile$user[0]) ||
|
||||
mobiles?.[0] ||
|
||||
(user?.user$ref &&
|
||||
user?.user$ref[0] &&
|
||||
user?.user$ref[0].mobile$user &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue