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