|
|
@@ -6,6 +6,7 @@
|
|
|
borderRadius: '12px',
|
|
|
textAlign: 'center'
|
|
|
}"
|
|
|
+ class="nut-short-popup"
|
|
|
v-model:visible="show"
|
|
|
:closeable="true"
|
|
|
@click-close-icon="closeIcon"
|
|
|
@@ -16,12 +17,12 @@
|
|
|
<view class="nut-shortpsdWx-subtitle">{{ desc }}</view>
|
|
|
<view class="nut-input-w">
|
|
|
<input
|
|
|
- ref="realpwd"
|
|
|
class="nut-input-real"
|
|
|
type="number"
|
|
|
:maxlength="length"
|
|
|
v-model="realInput"
|
|
|
@input="changeValue"
|
|
|
+ @blur="blur"
|
|
|
/>
|
|
|
<view class="nut-shortpsd-fake" @click="focus">
|
|
|
<view
|
|
|
@@ -116,6 +117,8 @@ export default create({
|
|
|
function focus() {
|
|
|
let a = document.getElementsByClassName('nut-input-real')[0] as any;
|
|
|
a.focus();
|
|
|
+ realpwd.value = document.getElementsByClassName('popup-center')[0] as any;
|
|
|
+ realpwd.value.style.top = '45%';
|
|
|
}
|
|
|
watch(
|
|
|
() => props.visible,
|
|
|
@@ -150,6 +153,12 @@ export default create({
|
|
|
function onTips() {
|
|
|
emit('tips');
|
|
|
}
|
|
|
+ function blur() {
|
|
|
+ let popupCenter = document.getElementsByClassName(
|
|
|
+ 'popup-center'
|
|
|
+ )[0] as any;
|
|
|
+ popupCenter.style.top = '50%';
|
|
|
+ }
|
|
|
onMounted(() => {
|
|
|
eventCenter.once((getCurrentInstance() as any).router.onReady, () => {});
|
|
|
});
|
|
|
@@ -164,7 +173,8 @@ export default create({
|
|
|
onTips,
|
|
|
focus,
|
|
|
show,
|
|
|
- closeIcon
|
|
|
+ closeIcon,
|
|
|
+ blur
|
|
|
};
|
|
|
}
|
|
|
});
|