微信小程序---支付密码的输入框
发布时间:2020-12-14 19:20:00 所属栏目:资源 来源:网络整理
导读:效果如下: 干货: view class = "pay" "title" 支付方式 /view catchtap "wx_pay" "wx_pay" i "icon {{payment_mode==1?'active':''}}" type "String" /i text 微信支付 /text /view "offline_pay" "offline_pay" "icon {{payment_mode==0?'active':''}}" /
效果如下: 干货:
Page({ data { isFocus false//控制input 聚焦 actual_fee20//待支付 }, onLoadfunction(){
wx_pay{//转换为微信支付 payment_mode1 offline_pay//转换为转账支付 0 wallet_pay{ 2 wallets_password edetailvalue if(datawallets_passwordlength ==6//密码长度6位时,自动验证钱包支付结果 } set_Focus//聚焦input isFocus) isFocustrue
({ }) close_wallets_password //关闭钱包输入密码遮罩 wallets_password_flag /*-----------------------------------------------*/ pay_this{ id id; payment_mode // 微信支付 '微信支付') // 转账支付 后续跳转至传转账单照片 ) '钱包支付') true
// 钱包支付 /* 2.支付失败:提示;清空密码;自动聚焦isFocus:true,拉起键盘再次输入 } index.wxss height%;
background #e8e8e8;
display flex; #fff; title 90rpx lineheight; color#353535; boxsizing borderbox; alignitems center justifycontentstart;
34rpx; radius50%; }
left20rpx#353535;
nonesave 80rpx#fff; 88rpx textalign30rpx10rpxwalletspassword position absolute left top%; rgba(0.6); 600rpx-300rpx#fff; } weightforget #00a2ff; 100rpx#ddd; none password_dotnthchild#ddd;
content opacity#f56; github地址:-">https://github.com/fiveTree/-- |