mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 04:16:48 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/mobile into stat
This commit is contained in:
7
App.vue
7
App.vue
@@ -93,7 +93,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
uni-toast .uni-toast{
|
||||||
|
img{
|
||||||
|
width: 38px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
/**统一样式*/
|
/**统一样式*/
|
||||||
.fixed-field{
|
.fixed-field{
|
||||||
width: 180px;
|
width: 180px;
|
||||||
|
|||||||
@@ -34,7 +34,8 @@
|
|||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:"修改成功" ,
|
title:"修改成功" ,
|
||||||
duration: 1000
|
duration: 1000,
|
||||||
|
image:'../../static/images/icon/ok-icon.png'
|
||||||
});
|
});
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@@ -338,15 +338,9 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
toCourseDetail(citem) {
|
toCourseDetail(citem) {
|
||||||
if (citem.contentType == 10) {
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/resource/microDetail?id=' + citem.objId
|
url: '/pages/study/courseStudy?id=' + citem.objId
|
||||||
});
|
});
|
||||||
} else if (citem.contentType == 20 || citem.contentType == 21) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/resource/courseDetail?id=' + citem.objId
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
toArticleDetail(item) {
|
toArticleDetail(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@@ -190,9 +190,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 实例被激活时使用,用于重复激活一个实例的时候
|
// 实例被激活时使用,用于重复激活一个实例的时候
|
||||||
activated () {
|
// activated () {
|
||||||
this.findData(true);
|
// this.findData(true);
|
||||||
},
|
// },
|
||||||
|
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
@@ -244,7 +244,9 @@
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'删除成功'
|
title:'删除成功',
|
||||||
|
// duration:500000
|
||||||
|
image:'../../static/images/icon/ok-icon.png'
|
||||||
})
|
})
|
||||||
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
||||||
$this.findAnData(true);
|
$this.findAnData(true);
|
||||||
@@ -292,7 +294,8 @@
|
|||||||
apiQa.del(item.id).then(res=>{
|
apiQa.del(item.id).then(res=>{
|
||||||
if(res.status=200){
|
if(res.status=200){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'删除成功'
|
title:'删除成功',
|
||||||
|
image:'../../static/images/icon/ok-icon.png'
|
||||||
})
|
})
|
||||||
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
// $this.$refs.articleToast.show({message:'删除成功',type:'success'});
|
||||||
let event = {
|
let event = {
|
||||||
|
|||||||
@@ -285,15 +285,16 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
toCourseDetail(citem) {
|
toCourseDetail(citem) {
|
||||||
if (citem.contentType == 10) {
|
// if (citem.contentType == 10) {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/resource/microDetail?id=' + citem.objId
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/resource/microDetail?id=' + citem.objId
|
url: '/pages/study/courseStudy?id=' + citem.id
|
||||||
});
|
});
|
||||||
} else if (citem.contentType == 20 || citem.contentType == 21) {
|
// }
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/resource/courseDetail?id=' + citem.objId
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
toArticleDetail(item) {
|
toArticleDetail(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@@ -128,7 +128,8 @@
|
|||||||
this.$store.dispatch('InitData');
|
this.$store.dispatch('InitData');
|
||||||
// uni.navigateBack(-1);
|
// uni.navigateBack(-1);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:'更新成功'
|
title:'更新成功',
|
||||||
|
image:'../../static/images/icon/ok-icon.png'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
<course-image :course="c" width="308upx" height="192upx"></course-image>
|
<course-image :course="c" width="308upx" height="192upx"></course-image>
|
||||||
</view>
|
</view>
|
||||||
<view class="coures-conent">
|
<view class="coures-conent">
|
||||||
<view class="conent-title" v-html="c.name">
|
<view class="conent-title" v-html="$keywordActiveShow(c.name,keyword)">
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="con-au"> -->
|
<!-- <view class="con-au"> -->
|
||||||
<!-- <view v-else style="font-size: 24upx; color: #666666;padding-top: 10upx;"> -->
|
<!-- <view v-else style="font-size: 24upx; color: #666666;padding-top: 10upx;"> -->
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
</view>
|
</view>
|
||||||
{{converToScore(c.score)}}
|
{{converToScore(c.score)}}
|
||||||
</text>
|
</text>
|
||||||
<text>{{ c.score }}<text class="statuy-num">{{c.studies}}+</text>人学习</text>
|
<text><text class="statuy-num">{{c.studies}}+</text>人学习</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -713,15 +713,9 @@
|
|||||||
},
|
},
|
||||||
toCoursePage(coure){
|
toCoursePage(coure){
|
||||||
if(coure.source ==1){
|
if(coure.source ==1){
|
||||||
uni.navigateTo({
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
});
|
url: '/pages/study/studydetail?id='+coure.id+'&type='+coure.type
|
||||||
});
|
});
|
||||||
if(coure.type==10){
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/resource/microDetail?id='+coure.id
|
|
||||||
})
|
|
||||||
}else if(coure.type==20){
|
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/study/courseStudy?id='+coure.id
|
url: '/pages/study/courseStudy?id='+coure.id
|
||||||
|
|||||||
BIN
static/images/icon/ok-icon.png
Normal file
BIN
static/images/icon/ok-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 572 B |
Reference in New Issue
Block a user