star function

This commit is contained in:
chenyang
2022-07-23 08:46:47 +08:00
parent 690dcd2418
commit 08038cefd7
7 changed files with 43 additions and 27 deletions
+2 -7
View File
@@ -144,8 +144,7 @@
/**收藏或者取消收藏*/
star: function () {
const coop_mind_id = this.coop_mind_id
console.log(coop_mind_id)
console.log(this.from_share)
console.log(`this.from_share:${this.from_share}`)
// ajax start
$.ajax({
@@ -155,11 +154,7 @@
data: {'coop_mind_id': coop_mind_id},
dataType: "json",
success: function (resp) {
if (resp.code === 0) {
console.log(resp)
} else {
common_alert(resp.msg)
}
common_alert(resp.msg)
},
async: false
});