Commit 660470a3 authored by wangqinghua's avatar wangqinghua

slide的index问题

parent cacbcdab
<?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">
<name>党建云平台(测试)</name>
<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>智汇19号</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<content src="index.html" />
......
@import "../theme/icon.scss";
p {
margin: 0;
}
......
......@@ -28,6 +28,7 @@ page-learning-do {
height: calc(100% - 8rem);
border-bottom-left-radius: .8rem;
border-bottom-right-radius: .8rem;
overflow-y: scroll;
}
.item-title {
padding: 1rem;
......
......@@ -91,6 +91,10 @@ export class LearningDoPage {
}, 1000)
}
slideChanged(){
this.index = this.slides.realIndex;
}
//上一题
prev() {
if (this.index == 0) {
......@@ -115,11 +119,6 @@ export class LearningDoPage {
}
}
//左划右划
slideChanged() {
this.index = this.slides.getActiveIndex();
}
//多选
mutiSelect(i, option) {
if (this.list[i].answer.includes(option)) {
......
......@@ -28,6 +28,7 @@ page-review-learn {
height: calc(100% - 8rem);
border-bottom-left-radius: .8rem;
border-bottom-right-radius: .8rem;
overflow-y: scroll;
}
.item-title {
padding: 1rem;
......
......@@ -58,9 +58,8 @@ export class ReviewLearnPage {
)
}
//左划右划
slideChanged(){
this.index = this.slides.getActiveIndex();
this.index = this.slides.realIndex;
}
//上一题
......
......@@ -10,21 +10,21 @@ export class AppGlobal {
slides: "_dress_slides",
categories: "_dress_categories",
products: "_dress_products"
}
};
//接口基地址
// static domain = "http://101.89.112.92:80"; //正式环境
// 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://180.168.156.212:2931/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 pictureNotice = "http://101.89.112.92:80"; //正式地址
static pictureNotice = "http://180.168.156.212:2931"; //测试
static pictureNotice = "http://101.89.112.92:80"; //正式地址
// static pictureNotice = "http://180.168.156.212:2931"; //测试
//接口地址
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