Commit 660470a3 authored by wangqinghua's avatar wangqinghua

slide的index问题

parent cacbcdab
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter.test" version="4.0.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="io.ionic.smart19.starter" version="4.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>党建云平台(测试)</name> <name>智汇19号</name>
<description>An awesome Ionic/Cordova app.</description> <description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author> <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<content src="index.html" /> <content src="index.html" />
......
@import "../theme/icon.scss"; @import "../theme/icon.scss";
p { p {
margin: 0; margin: 0;
} }
......
...@@ -28,6 +28,7 @@ page-learning-do { ...@@ -28,6 +28,7 @@ page-learning-do {
height: calc(100% - 8rem); height: calc(100% - 8rem);
border-bottom-left-radius: .8rem; border-bottom-left-radius: .8rem;
border-bottom-right-radius: .8rem; border-bottom-right-radius: .8rem;
overflow-y: scroll;
} }
.item-title { .item-title {
padding: 1rem; padding: 1rem;
......
...@@ -91,6 +91,10 @@ export class LearningDoPage { ...@@ -91,6 +91,10 @@ export class LearningDoPage {
}, 1000) }, 1000)
} }
slideChanged(){
this.index = this.slides.realIndex;
}
//上一题 //上一题
prev() { prev() {
if (this.index == 0) { if (this.index == 0) {
...@@ -115,11 +119,6 @@ export class LearningDoPage { ...@@ -115,11 +119,6 @@ export class LearningDoPage {
} }
} }
//左划右划
slideChanged() {
this.index = this.slides.getActiveIndex();
}
//多选 //多选
mutiSelect(i, option) { mutiSelect(i, option) {
if (this.list[i].answer.includes(option)) { if (this.list[i].answer.includes(option)) {
......
...@@ -28,6 +28,7 @@ page-review-learn { ...@@ -28,6 +28,7 @@ page-review-learn {
height: calc(100% - 8rem); height: calc(100% - 8rem);
border-bottom-left-radius: .8rem; border-bottom-left-radius: .8rem;
border-bottom-right-radius: .8rem; border-bottom-right-radius: .8rem;
overflow-y: scroll;
} }
.item-title { .item-title {
padding: 1rem; padding: 1rem;
......
...@@ -58,9 +58,8 @@ export class ReviewLearnPage { ...@@ -58,9 +58,8 @@ export class ReviewLearnPage {
) )
} }
//左划右划
slideChanged(){ slideChanged(){
this.index = this.slides.getActiveIndex(); this.index = this.slides.realIndex;
} }
//上一题 //上一题
......
...@@ -10,21 +10,21 @@ export class AppGlobal { ...@@ -10,21 +10,21 @@ export class AppGlobal {
slides: "_dress_slides", slides: "_dress_slides",
categories: "_dress_categories", categories: "_dress_categories",
products: "_dress_products" products: "_dress_products"
} };
//接口基地址 //接口基地址
// static domain = "http://101.89.112.92:80"; //正式环境 // static domain = "http://101.89.112.92:80"; //正式环境
// static domain = "http://180.168.156.212:2931"; //测试环境 // static domain = "http://180.168.156.212:2931"; //测试环境
static domain = ""; //本地环境 static domain = ""; //本地环境
//图片地址 //图片地址
// static picture = "http://101.89.112.92:80/wisdomgroup/manager/getIcon/"; //正式地址 static picture = "http://101.89.112.92:80/wisdomgroup/manager/getIcon/"; //正式地址
static picture = "http://180.168.156.212:2931/wisdomgroup/manager/getIcon/"; //测试 // static picture = "http://180.168.156.212:2931/wisdomgroup/manager/getIcon/"; //测试
//通知公告图片参数 //通知公告图片参数
// static pictureNotice = "http://101.89.112.92:80"; //正式地址 static pictureNotice = "http://101.89.112.92:80"; //正式地址
static pictureNotice = "http://180.168.156.212:2931"; //测试 // static pictureNotice = "http://180.168.156.212:2931"; //测试
//接口地址 //接口地址
static API: any = { static API: any = {
......
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 to comment