


版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、本科实验课程名称:Android 基础实验项目: 使用 Cordova+ionic+vue+JSP实现 Hybride 模式下简单的登陆操作 实验地点:青软实训专业班级:1334 班学号: 2013005653学生:指导教师:2016 年11 月 7 日实验五 使用 Cordova+ionic+vue+JSP 实现 Hybride 模式下简单的登陆操作一、实验步骤1、并安装 Node.js2、打开npm 输入以下命令:npm install -g cordova回车3、等待网络并安装Cordova4、安装成功后继续输入以下命令:npm install -g cordova ionic回车5、等
2、待网络并安装ionic6、安装成功继续输入以下命令:ionic start LoginDemo cd LoginDemoionic platform add android/创建项目/进入项目目录/添加 android7、打开 android studio 并将 LoginDemo 导入目录结构如下图:8、vue.js 并将其导入到工程中9、修改代码二、部分代码index.html(框架搭建后默认 app 启动页面,因实验功能只需完成登陆操作,故此页不动,仅将其改为登陆成功页面)login.html(登陆页面,启动页面)登录页面bodybackground: #ebebeb;font-fami
3、ly: Helvetica Neue,Hiragino Sans GB, YaHei,9ED14F53,Arial,sans-serif;color: #222;font-size: 12px;*padding: 0px;margin: 0px;.top_divbackground: #008ead;width: 100%;height: 400px;.iptborder: 1px solid #d3d3d3;padding: 10px 10px;width: 290px;border-radius: 4px;padding-left: 35px;-webkit-box-shadow: ins
4、et 0 1px 1px rgba(0,0,0,.075);box-shadow: inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition: border-colorease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition: border-color ease-in-out .15s,box-shadowease-in-out .15s;transition: border-color ease-in-out .15s,box-shadowease-in-out .15s
5、.ipt:focusborder-color: #66afe9;outline: 0;-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8pxrgba(102,175,233,.6);box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8pxrgba(102,175,233,.6).u_logobackground: url(img/username.png) no-repeat;padding: 10px 10px; ition: absolute;top: 43px;left: 4
6、0px;.p_logobackground: url(img/password.png) no-repeat;padding: 10px 10px; ition: absolute;top: 12px;left: 40px;atext-decoration: none;.toubackground: url(img/tou.png) no-repeat;width: 97px;height: 92px;position: absolute;top: -87px;left: 140px;.left_handbackground: url(img/left_hand.png) no-repeat;
7、width: 32px;height: 37px;position: absolute;top: -38px;left: 150px;.right_handbackground: url(img/right_hand.png) no-repeat;width: 32px;height: 37px;position: absolute;top: -38px;right: -64px;.initial_left_handbackground: url(img/hand.png) no-repeat;width: 30px;height: 20px;position: absolute;top: -
8、12px;left: 100px;.initial_right_handbackground: url(img/hand.png) no-repeat;width: 30px;height: 20px;position: absolute;top: -12px;right: -112px;.left_handingbackground: url(img/lefnding.png) no-repeat; width: 30px;height: 20px; ition: absolute;top: -24px;left: 139px;.right_handingingbackground: url
9、(img/right_handing.png) no-repeat;width: 30px;height: 20px; ition: absolute;top: -21px;left: 210px;$(function()/得到焦点$(#password).focus(function()$(#left_hand).animate(left: 150,top: -38,step: function()if(parse($(#left_hand).css(left)140)$(#left_hand).attr(class,left_hand);, 2000);$(#right_hand).animate(right: -64,top: -38px,step: function()if(parse($(#right_hand).css(right) -70)$(#right_hand).attr(class,right_hand);, 2000););/失去焦点$(#password).blur(function()$(#left_hand).attr(class,initial_left_hand);Jquery-1.9.1.min.js多,故不再此贴出)(实现登陆框动态效果,代码量$(#left_
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 文化用品行业市场趋势预测考核试卷
- 疫情防控与社区治理考核试卷
- 期货市场套保实务考核试卷
- 航空公司航班运行中的机组人员协作考核试卷
- 粮食储备的社区参与考核试卷
- 箱包制作技能培训与认证考核试卷
- 影视作品音乐版权翻唱授权与分成比例调整补充合同
- 智能社区物业公司绿化员派遣与智能绿化服务协议
- 高端医院神经外科科室委托运营管理服务协议
- 金融科技优先股股东权益合作协议
- 当代中国外交(外交学院)知到智慧树章节测试课后答案2024年秋外交学院
- 小学科学湘科版六年级下册全册同步练习含答案
- 《行政组织学结课论文综述3000字》
- 小学劳动 包饺子课件
- 核电工程质量保证知识培训教材课件
- 区级综合医院关于落实区领导干部医疗保健工作实施方案
- 颜色标准LAB值对照表
- 后厨主管月度绩效考核表(KPI)
- 功能饮料项目投资计划书(模板范文)
- 小学六年级数学应用题易错题练习
- IACSURS26 中文
评论
0/150
提交评论