提交 17245d96 编写于 作者: 杨广俊's avatar 杨广俊

/替换

上级 3fb5d3f3
...@@ -172,51 +172,13 @@ export default { ...@@ -172,51 +172,13 @@ export default {
}) })
}, },
//收藏 取消收藏
collectFun(status, id, name) {
// alert(this.userToken)
status = status == 1 ? 2 : 1;
this.pageBurialPoin({
menuLevel: 1,
menuCode: 'm_home',
functionCode: 'f_new_course',
actionCode: 'c_collect',
labelId: id,
labelValue: name,
})
let _this = this,
parm = {
token: _this.userToken,
type: status,
courseId: id,
setEntry: 'headers'
}
_this.POST('contents/favors', parm).then(function (res) {
if (res.code === '000000') {
_this.handelData(id, status);
} else {
rocNative.showNativeToast({
message: '注册登陆后才能收藏哦'
})
}
})
},
handelData(id, status) {
let d = this.parmData;
for (let i = 0; i < d.length; i++) {
if (id == d[i].id) {
d[i].whetherFavors = status;
}
}
},
orderAction(orderIndex) { orderAction(orderIndex) {
this.pageBurialPoin({ this.pageBurialPoin({
...m_search_result_course_order, ...m_search_result_course_order,
labelValue: orderIndex, labelValue: orderIndex,
createdTime: new Date().getTime(), createdTime: new Date().getTime(),
}) })
let ll = this.searchForOrder('1', this.cSearchText, orderIndex, this.groupNum, this.parmData).then( param => { this.searchForOrder('1', this.cSearchText, orderIndex, this.groupNum, this.parmData).then( param => {
this.list = param this.list = param
}) })
} }
......
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
createdTime: new Date().getTime(), createdTime: new Date().getTime(),
}) })
this.showLoading = true this.showLoading = true
let str2 = (this.searchText || '').replace(/[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L\<\>\?]/g, '');// 去掉特殊字符 let str2 = (this.searchText || '').replace(/[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L\<\>\?\/]/g, '');// 去掉特殊字符
this.setCSearchText(str2) this.setCSearchText(str2)
let _this = this, let _this = this,
para = { para = {
...@@ -231,6 +231,12 @@ export default { ...@@ -231,6 +231,12 @@ export default {
_this.contentAppModels = this.spliceCertenNumData(res.data.contentAppModels, 4) _this.contentAppModels = this.spliceCertenNumData(res.data.contentAppModels, 4)
_this.contentAppModelsAll = res.data.contentAppModels _this.contentAppModelsAll = res.data.contentAppModels
_this.contentAppModelCount = res.data.contentAppModelCount + '' _this.contentAppModelCount = res.data.contentAppModelCount + ''
if(res.data.contentAppModelCount > 100){
_this.searchForOrder('1', str2, 1, res.data.contentAppModelCount).then( param => {
_this.contentAppModelsAll = param
console.log('2222', param)
})
}
if(res.data.contentAppModelCount === 0){ if(res.data.contentAppModelCount === 0){
this.showTab1 = false this.showTab1 = false
} }
...@@ -417,7 +423,8 @@ export default { ...@@ -417,7 +423,8 @@ export default {
width: 100%; width: 100%;
flex-direction: row; flex-direction: row;
text-align: center; text-align: center;
padding: px2rem(10px) 0; // padding: px2rem(10px) 0;
padding: px2rem(10px) 0 px2rem(4px);
background: #fff; background: #fff;
border-bottom: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7;
&-img { &-img {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册