parent
31fcf973df
commit
44118d73fd
|
|
@ -16,4 +16,5 @@
|
|||
.eyes {
|
||||
right: 32rpx;
|
||||
top: calc(50% - 12rpx);
|
||||
z-index: 2;
|
||||
}
|
||||
|
|
@ -8,15 +8,15 @@
|
|||
<view class="margin-top-xxxl">
|
||||
<view class="pr">
|
||||
<input type="text" placeholder="请输入当前密码" minlength="6" maxlength="18" name="my_pwd" :password="!eyes1" class="form-item margin-bottom-main" />
|
||||
<view class="eyes pa" @tap="eyes1 = !eyes1"><iconfont :name="eyes1 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
<view class="eyes pa" data-index="1" @tap="eyes_event"><iconfont :name="eyes1 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
</view>
|
||||
<view class="pr">
|
||||
<input type="text" placeholder="请输入新密码" minlength="6" maxlength="18" name="new_pwd" :password="!eyes2" class="form-item margin-bottom-main" />
|
||||
<view class="eyes pa" @tap="eyes2 = !eyes2"><iconfont :name="eyes2 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
<view class="eyes pa" data-index="2" @tap="eyes_event"><iconfont :name="eyes2 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
</view>
|
||||
<view class="pr">
|
||||
<input type="text" placeholder="请确认新密码" minlength="6" maxlength="18" name="confirm_new_pwd" :password="!eyes3" class="form-item margin-bottom-main" />
|
||||
<view class="eyes pa" @tap="eyes3 = !eyes3"><iconfont :name="eyes3 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
<view class="eyes pa" data-index="3" @tap="eyes_event"><iconfont :name="eyes3 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-top-xxxxl tc">
|
||||
|
|
@ -87,6 +87,21 @@
|
|||
});
|
||||
}
|
||||
},
|
||||
eyes_event(e) {
|
||||
if (e.currentTarget.dataset.index == '1') {
|
||||
this.setData({
|
||||
eyes1: !this.eyes1,
|
||||
});
|
||||
} else if (e.currentTarget.dataset.index == '2') {
|
||||
this.setData({
|
||||
eyes2: !this.eyes2,
|
||||
});
|
||||
} else {
|
||||
this.setData({
|
||||
eyes3: !this.eyes3,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
formBindPwd(e) {
|
||||
// 数据验证
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<view class="flex-row">
|
||||
<image :src="coin_list[coin_index]['img']" mode="widthFix" class="coin-content-list-img round" />
|
||||
<view class="padding-left-main">
|
||||
<view class="coin-dropdown text-size-md pr margin-bottom-xs flex-row" @tap="popup_coin_status = !popup_coin_status">
|
||||
<view class="coin-dropdown text-size-md pr margin-bottom-xs flex-row" @tap="popup_coin_status_open_event">
|
||||
<text class="cr-666">{{ coin_list[coin_index]['name'] }}</text>
|
||||
<view class="padding-left-sm">
|
||||
<iconfont name="icon-arrow-bottom" size="24rpx" color="#666"></iconfont>
|
||||
|
|
@ -392,6 +392,11 @@
|
|||
popup_coin_status: false,
|
||||
});
|
||||
},
|
||||
popup_coin_status_open_event() {
|
||||
this.setData({
|
||||
popup_coin_status: !this.popup_coin_status,
|
||||
});
|
||||
},
|
||||
popup_coin_status_close_event() {
|
||||
this.setData({
|
||||
popup_coin_status: false,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<view class="margin-bottom-xxxl flex-row jc-sb margin-top-xl">
|
||||
<view class="cr-white">
|
||||
<view class="coin-dropdown">
|
||||
<view class="flex-row align-c pr" @tap="popup_coin_status = !popup_coin_status">
|
||||
<view class="flex-row align-c pr" @tap="popup_coin_status_open_event">
|
||||
<image :src="coin_list[coin_index]['img']" mode="widthFix" class="coin-content-list-img round" />
|
||||
<text class="margin-left-xs">{{ coin_list[coin_index]['name'] }}</text>
|
||||
<view class="coin-dropdown-icon pa padding-left-xxl">
|
||||
|
|
@ -270,6 +270,11 @@
|
|||
popup_coin_status: false,
|
||||
});
|
||||
},
|
||||
popup_coin_status_open_event() {
|
||||
this.setData({
|
||||
popup_coin_status: !this.popup_coin_status,
|
||||
});
|
||||
},
|
||||
popup_coin_status_close_event() {
|
||||
this.setData({
|
||||
popup_coin_status: false,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<view class="margin-bottom-xxxl flex-row jc-sb margin-top-xl">
|
||||
<view class="cr-white">
|
||||
<view class="flex-row align-e margin-bottom-main">
|
||||
<view class="flex-row align-c pr coin-dropdown" @tap="popup_coin_status = !popup_coin_status">
|
||||
<view class="flex-row align-c pr coin-dropdown" @tap="popup_coin_status_open_event">
|
||||
<image :src="coin_list[coin_index]['img']" mode="widthFix" class="coin-content-list-img round" />
|
||||
<text class="margin-left-xs">{{ coin_list[coin_index]['name'] }}</text>
|
||||
<view class="coin-dropdown-icon pa padding-left-xxl">
|
||||
|
|
@ -273,6 +273,11 @@
|
|||
popup_coin_status: false,
|
||||
});
|
||||
},
|
||||
popup_coin_status_open_event() {
|
||||
this.setData({
|
||||
popup_coin_status: !this.popup_coin_status,
|
||||
});
|
||||
},
|
||||
popup_coin_status_close_event() {
|
||||
this.setData({
|
||||
popup_coin_status: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue