Commit b1258113 by 陈超

T

parent df217cd4
......@@ -116,9 +116,9 @@
type: 'POST',
url: "{:U('classroom/Public/collect')}",
data: {
type: this.isCollect ? 0 : 1,
type: that.isCollect ? 0 : 1,
sctype: 2,
source_id: this.info.id,
source_id: that.info.id,
is_video: 1
},
dataType: "json",
......@@ -127,6 +127,7 @@
if (data.status == '0') {
ui.error(data.info)
} else {
that.info.iscollect = Math.abs(that.info.iscollect - 1)
ui.success(data.info)
}
},
......
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