全球彩票平台_全球彩票注册平台|官网下载地址

热门关键词: 全球彩票平台,全球彩票注册平台,全球彩官网下载地址

【全球彩官网下载地址】jQuery简单实现网页选项

vue支付密码,vue支付

从网络查找了过多都很麻烦,花了点事件本人做了个,轻便便捷,老少皆宜 全球彩官网下载地址 1

 

<template> <section class="pay-mask" @click="close_mask" v-show="payshow"> <div class="container"> <div class="pay_title">请输入支付密码 </div> <div class="flex f-d-r pay_content"> <div class="ipt_pay"> <input type="password" maxlength="1" disabled> </div> <div class="ipt_pay"> <input type="password" maxlength="1" disabled> </div> <div class="ipt_pay"> <input type="password" maxlength="1" disabled> </div> <div class="ipt_pay"> <input type="password" maxlength="1" disabled> </div> <div class="ipt_pay"> <input type="password" maxlength="1" disabled> </div> <div class="ipt_pay"> <input type="password" maxlength="1" disabled> </div> </div> </div> <footer> <ul class="pay_btn"> <li @click="btnpassword($event)">1</li> <li @click="btnpassword($event)">2</li> <li @click="btnpassword($event)">3</li> <li @click="btnpassword($event)">4</li> <li @click="btnpassword($event)">5</li> <li @click="btnpassword($event)">6</li> <li @click="btnpassword($event)">7</li> <li @click="btnpassword($event)">8</li> <li @click="btnpassword($event)">9</li> <li class="b9"></li> <li @click="btnpassword($event)">0</li> <li class="b9" @click="btndelete">删除</li> </ul> </footer> </section> </template> <script> export default { props: { payshow: { type: Boolean, default: false } }, data() { return { index: -1 } }, created() {}, mounted() { $(".ipt_pay input:first").focus(); }, methods: { btnpassword(e) { var obj = e.currentTarget; var payinput = $(".ipt_pay input"); if (this.index < 5) { this.index ; $(payinput[this.index]).val($(obj).text()); } if (this.index == 5) { var pay_pwd = ''; var payinput = $(".ipt_pay input"); for (var i = 0; i < payinput.length; i ) { pay_pwd = $(payinput[i]).val(); } console.log(pay_pwd); } }, btndelete() { var payinput = $(".ipt_pay input"); if (this.index >= 0) { $(payinput[this.index]).val(''); this.index--; } }, close_mask() { this.payshow = false; } } } </script> <style scoped> img { width: 100%; height: 100%; } section { position: fixed; top: 0; width: 100%; height: 100%; z-index: 998; background: rgba(0, 0, 0, .6) } .container { position: absolute; top: 4rem; background: #fff; border-radius: 5px; margin: 0 .533333rem; padding-bottom: .266667rem; } .pay_title { position: relative; font-size: .48rem; text-align: center; color: #333; height: 1.333333rem; line-height: 1.333333rem; border-bottom: 1px solid #ddd; } .close { position: absolute; right: .2rem; top: .2rem; width: .72rem; height: .72rem; } .pay_content { border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; border-right: 1px solid #ddd; margin: .533333rem .533333rem .333333rem .533333rem; } .ipt_pay { width: 100%; height: 1.333333rem; border-left: 1px solid #ddd; } .ipt_pay input { border: 0; height: 100%; width: 100%; text-align: center; font-size: .88rem; background: #fff; } footer { position: absolute; bottom: 0; width: 100%; font-weight: 600; } .pay_btn {} .pay_btn li { width: 33.3333%; float: left; height: 1.333333rem; line-height: 1.333333rem; text-align: center; background: #fff; font-size: .48rem; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; } .pay_btn li:active { background: #C2C2C2; } .b9:active { background: #fff !important; } .b9 { background: #C2C2C2 !important; } </style>

从网络搜寻了重重都很辛苦,花了点事件自身做了个,简单便捷,老少皆宜 templatesection class="pay-mask" @click="close_mask"...

从网络搜寻了相当的多都很费力,花了点事件自身做了个,简单方便,老少皆宜

从互连网寻找了广大都很麻烦,花了点事件自身做了个,轻松便捷,老少皆宜

全球彩官网下载地址 2

jQuery简单兑现网页选项Carter效,jquery选项Carter效

CSS:

复制代码 代码如下:

        .clear{clear:both; height:0px; overflow:hidden;}
        .tab{width:400px; font-size:12px;}
        .tab_menu ul{padding:0px;margin:0px;}
        .tab_menu li{list-style:none; display:block; float:left;
            background:#C2CEFE; height:22px; line-height:22px;
            padding: 0px 8px; margin-right:6px; border:#86B4CA 1px solid;
        }
        .box{width:400px; height:200px; overflow:hidden; border:#A8C9D9 1px solid; padding:10px 8px; }
        .tab_menu ul li.selected{background:#dadada; cursor:pointer; }
        .hide{display:none;}

jQuery:

复制代码 代码如下:

        $(function() {
            var $menu_li = $("div.tab_menu ul li");  //选拔网页选项卡
            $menu_li.click(function(){
                $(this).addClass("selected") //当前<li>高亮
                        .siblings().removeClass("selected"); //去掉别的同辈<li>的高亮
                var index = $menu_li.index( $(this) ); //找到<li>子节点的目录
                $("div.tab_box > div").eq(index).show() //索引为N的DIV展现出来
                        .siblings().hide();            //其它的选项卡遮盖
            })
        }) 

html:

复制代码 代码如下:

 <div class="tab">
    <div class="tab_menu">
        <ul>
            <li class="selected">个人音讯</li>
            <li class="selected">笔者的肖像</li>
            <li class="selected">笔者的博客</li>
            <div class="clear"></div>
        </ul>
    </div>
    <div class="tab_box">
        <div class="box">我的QQ:123456</div>
        <div class="box hide">hi </div>
        <div class="box hide"> hello <br> </div>
    </div>
</div>

CSS: 复制代码 代码如下: .clear{clear:both; height:0px; overflow:hidden;} .tab{width:400px; font-size:12px;...

全球彩官网下载地址 3

全球彩官网下载地址 4

113.png

 

 

<style scoped>
.showChose{
width:100%;
display: none;
position:absolute;
z-index:1200;
border:1px solid rgba(221,221,221,0.8);
background-color: #fff;
/background:rgba(77,82,113,0.8);/
}
.city:hover .showChose{
display: block;
}
.title h4{
display:inline-block;
font-size: 16px;
line-height:0.88rem;
font-weight:normal;
color:#fff;
}
.area{
display:inline-block;
/font-size:0.24rem;/
font-size: 16px;
padding: 12px;
line-height:0.88rem;
margin-left:0.42rem;
color:#333;
/color:#fff;/
}
.addList{
width:100%;
padding-left:0.32rem;
/font-size:0.34rem;/
font-size: 14px;
line-height:0.88rem;
color:#333;
}
/* 修改的格式 /
.address ul{
width:100%;
height:100%;
padding:10px;
/
margin:10px;/
/
max-height: 4.4rem;/
overflow:auto;
}
.address ul li{
/
margin-left:5%;/
padding: 5px;
/
丰硕好可横向显示/
display: inline;
/
惊人距离/
line-height: 40px;
/
float:left;
list-style: none*/
}
.address .title .active{
color:#0071B8;
border-bottom:0.02rem solid #0071B8;
}
.address ul .active{
color:#0071B8;
}
</style>
<template>
<div class="">

<template>

<template>

<div class="city">
<Button style="background:#b7aeda;color:#fff;font-size:16px" class="buttondiv" @click="showChose = true">{{Province?Province:info[province-1].name}} {{City ? City:''}} {{District ? District:''}}<Icon type="chevron-down" style="margin-left:3px"></Icon></Button>
<section class="showChose" style="width:360px;">
<section class="address">
<section class="title" style="background:#b7aeda;padding:20px;text-align: center;">
<h4>选取省或城市或(县,区)</h4>
</section>
<section class="title" style="background:#f2f2f2">
<div class="area" @click="provinceSelected()">{{Province?Province:info[province-1].name}}</div>
<div class="area" @click="citySelected()" :class="City?'':'active'">{{City?City:'请选择'}}</div>
<div class="area" @click="districtSelected()" :class="District?'':'active'" v-show="City">{{District?District:'请选择'}}</div>
</section>
<ul>
<li class="addList" v-for="(v,k) in info" @click="getProvinceId(v.id, v.name, k)" v-show="showProvince" :class="v.selected ? 'active' : ''">{{v.name}}</li>
<li class="addList" v-for="(v,k) in showCityList" @click="getCityId(v.id, v.name, k)" v-show="showCity" :class="v.selected ? 'active' : ''">{{v.name}}</li>
<li class="addList" v-for="(v,k) in showDistrictList" @click="getDistrictId(v.id, v.name, k)" v-show="showDistrict" :class="v.selected ? 'active' : ''">{{v.name}}</li>
</ul>
</section>
</section>
</div>
</div>
</template>

<section class="pay-mask" @click="close_mask" v-show="payshow">

<section class="pay-mask" @click="close_mask" v-show="payshow">

<script>
import Cityjs from '../data/city.js'
//城市数目也得以直接写在data的info:[]中,但数额太大不提议,直接用js文件引进,
//文件太大如有供给的请加QQ群629907983下载
export default {
name: 'myAddress',
data () {
return {
showChose: false,
showProvince: true,
showCity: false,
showDistrict: false,
showCityList: false,
showDistrictList: false,
province: 1,//默认1为北京
city: 3,
district: 57,
GetProvinceId: 2,
District: false,
Province: false,
City: false,
selected: false,
infocity:[],
info: [],
}
},
created() {
this.info = Cityjs;
},
methods: {
choseAdd: function() {
this.showChose = true;
},
closeAdd: function() {
this.showChose = false;
},
_filter(add,name,code) {
let result = [];
for(let i=0;i<add.length;i ) {
if(code == add[i].id){
result = add[i][name];
}
}
return result;
},
getProvinceId: function(code,input,index) {
this.province = code;
this.Province = input;
this.showProvince=false;
this.showCity=true;
this.showDistrict = false;
this.showCityList = this._filter(this.info,'city',this.province);
// 点击选择当前
this.info.map( a => a.selected = false );
this.info[index].selected = true;
},
provinceSelected: function() {
// 清除市级和区级列表
this.showCityList = false;
this.showDistrictList = false;
// 清除市级和区级选项
this.City = false;
this.District = false;
// 选项页面包车型地铁切换
this.showProvince = true;
this.showCity = false;
this.showDistrict = false;
},
getCityId: function(code, input, index) {
this.city = code;
this.City = input;
this.showProvince=false;
this.showCity=false;
this.showDistrict = true;
this.showDistrictList = this._filter(this.showCityList,'district',this.city);
// 采用当前增添active
this.showCityList.map( a => a.selected = false );
this.showCityList[index].selected = true;
},
citySelected: function() {
this.showProvince=false;
this.showCity=true;
this.showDistrict = false;
},
getDistrictId: function(code, input, index) {
this.district = code;
this.District = input;
// 选用当前增多active
this.showDistrictList.map( a => a.selected = false );
this.showDistrictList[index].selected = true;
// 采取市区选项之后关闭弹层
this.showChose = false;
},
districtSelected: function() {
this.showProvince=false;
this.showCity=false;
this.showDistrict = true;
}
}
}
</script>

<div class="container">

<div class="container">

//城市数量也得以直接写在data的info:[]中,但数量太大不建议,直接用js文件引入,
//文件太大如有需要的请加QQ群629907983下载

<div class="pay_title">请输入支付密码

<div class="pay_title">请输入支付密码

</div>

</div>

<div class="flex f-d-r pay_content">

<div class="flex f-d-r pay_content">

<div class="ipt_pay">

<div class="ipt_pay">

<input type="password" maxlength="1" disabled>

<input type="password" maxlength="1" disabled>

</div>

</div>

<div class="ipt_pay">

<div class="ipt_pay">

<input type="password" maxlength="1" disabled>

<input type="password" maxlength="1" disabled>

</div>

</div>

<div class="ipt_pay">

<div class="ipt_pay">

<input type="password" maxlength="1" disabled>

<input type="password" maxlength="1" disabled>

</div>

</div>

<div class="ipt_pay">

<div class="ipt_pay">

<input type="password" maxlength="1" disabled>

<input type="password" maxlength="1" disabled>

</div>

</div>

<div class="ipt_pay">

<div class="ipt_pay">

<input type="password" maxlength="1" disabled>

<input type="password" maxlength="1" disabled>

</div>

</div>

<div class="ipt_pay">

<div class="ipt_pay">

<input type="password" maxlength="1" disabled>

<input type="password" maxlength="1" disabled>

</div>

</div>

</div>

</div>

</div>

</div>

<footer>

<footer>

<ul class="pay_btn">

<ul class="pay_btn">

<li @click="btnpassword($event)">1</li>

<li @click="btnpassword($event)">1</li>

<li @click="btnpassword($event)">2</li>

<li @click="btnpassword($event)">2</li>

<li @click="btnpassword($event)">3</li>

<li @click="btnpassword($event)">3</li>

<li @click="btnpassword($event)">4</li>

<li @click="btnpassword($event)">4</li>

<li @click="btnpassword($event)">5</li>

<li @click="btnpassword($event)">5</li>

本文由全球彩票平台发布于全球彩官网下载地址Web前端,转载请注明出处:【全球彩官网下载地址】jQuery简单实现网页选项

TAG标签: 全球彩票平台
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。