Commit ae0d745a by doszhang

dos

parent e5059d2a
...@@ -55,4 +55,19 @@ input::-webkit-input-placeholder { ...@@ -55,4 +55,19 @@ input::-webkit-input-placeholder {
font-size: 1.3rem; font-size: 1.3rem;
line-height: 0.85rem; line-height: 0.85rem;
color: #c30303; color: #c30303;
}
.flag-no {
font-size: 1.3rem;
color: #222222;
line-height: 1.85rem;
text-align: center;
padding-left: 0.4rem;
}
.flag-text {
font-size: 1.2rem;
color: #222222;
line-height: 1.8rem;
padding-left: 0.5rem;
} }
\ No newline at end of file
...@@ -52,6 +52,36 @@ preloadimages(preloadImageList, function () { ...@@ -52,6 +52,36 @@ preloadimages(preloadImageList, function () {
// $('input[name=tel]').attr('type','tel'); // $('input[name=tel]').attr('type','tel');
// $('input[name=tel]').attr('maxlength',11); // $('input[name=tel]').attr('maxlength',11);
let flag = [
'升职加薪',
'早日暴富',
'拿到一个新项目',
'考过CFA',
'迎战CPA',
'读10本金融类书籍',
'提升工作核心技能',
'多赚钱,去看一看世界和远方',
'拿下自己的Dream car',
'买一套小房子',
'存款超过6位数',
'回家继承家业',
'结婚,靠份子钱增收',
'拥有苹果全家桶',
'坚持基金定投',
'坚持记账',
'get一项理财技能',
'为孩子做教育基金定投',
'好好存钱,认真把养老问题提上日程',
'投资收益超主业,躺着赚钱',
'靠理财收益,实现水果自由',
'好好理财,买全李佳琪推荐口红',
'理财收益多一点,猫粮争取升一级',
'用理财收益,来场说走就走的旅行'
];
var flagTemplate = $('.flag-frame').find('.flag-block').clone();
$('.flag-frame').html();
$(document).ready(function () { $(document).ready(function () {
$("input").on("blur", function () { $("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位 window.scroll(0, 0); //失焦后强制让页面归位
...@@ -64,6 +94,14 @@ function showFlagPage() { ...@@ -64,6 +94,14 @@ function showFlagPage() {
$('.page1').hide(); $('.page1').hide();
$('.flag-page').show(); $('.flag-page').show();
$('.flag-page .choose-num').text(0); $('.flag-page .choose-num').text(0);
createItem(flag[0], 1);
}
function createItem(flag, no) {
let item = flagTemplate.clone();
item.find('.flag-block .flag-no').text(no);
item.find('.flag-block .flag-text').text(flag);
$('.flag-frame').append(item);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment