Commit da60e5d0 authored by wangxuelai's avatar wangxuelai

'点赞删除nowstudentid参数'

parent b65c2a2d
...@@ -146,7 +146,7 @@ function delClock(data) { ...@@ -146,7 +146,7 @@ function delClock(data) {
errorresolve: 1, errorresolve: 1,
}) })
} }
function fingureUp ({clock_record_id, type, now_consumer_id}) { function fingureUp ({clock_record_id, type, now_student_id}) {
let url; let url;
url = apis.customer.circleIndex.fingureUp url = apis.customer.circleIndex.fingureUp
// if (type == 1) { // if (type == 1) {
...@@ -157,7 +157,6 @@ function fingureUp ({clock_record_id, type, now_consumer_id}) { ...@@ -157,7 +157,6 @@ function fingureUp ({clock_record_id, type, now_consumer_id}) {
url, url,
data: { data: {
record_id: clock_record_id, record_id: clock_record_id,
now_consumer_id:now_consumer_id
}, },
method: 'POSt', method: 'POSt',
errorresolve: 1, errorresolve: 1,
......
...@@ -411,7 +411,7 @@ Component({ ...@@ -411,7 +411,7 @@ Component({
const visitor = LocalStorage.getItem('visitor'); const visitor = LocalStorage.getItem('visitor');
fingureUp({ fingureUp({
clock_record_id: this.data.clock.id, clock_record_id: this.data.clock.id,
now_consumer_id: visitor && visitor.id, now_student_id: visitor && visitor.studentId,
type // 1 点赞 2 取消点赞 type // 1 点赞 2 取消点赞
}).then((res) => { }).then((res) => {
const {code, data} = res; const {code, data} = res;
......
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