Commit 789d61a9 authored by lvtz's avatar lvtz

amfix

parent cd3c30cf
......@@ -261,7 +261,7 @@ Page({
wx.setNavigationBarTitle({
title: selfCustomerId == this.data.consumerId ? '我的成长记录' : 'Ta的成长记录'
})
if(this.data.id){
if(this.data.id && this.data.id!=0){
this.getCircleDetail();
}
this.userShow('init');
......@@ -271,12 +271,12 @@ Page({
this.getclockRankingList(); //获取个人排名百分比
},
getclockRankingList() {
let otherParams = this.data.id ? {class_id: this.data.id } : {school_id: this.data.sid}
let otherParams = (this.data.id && this.data.id!=0) ? {class_id: this.data.id } : {school_id: this.data.sid};
rankrecord(Object.assign(otherParams,{
page: 1,
perPage: 1,
type: 1,
consumer_id: this.data.consumerId
consumer_id: this.data.consumerId,
})).then((res) => {
const {
code,
......@@ -341,7 +341,7 @@ Page({
},
//用户勋章
getClasshonors() {
let otherParams = this.data.id ? {class_id: this.data.id } : {school_id: this.data.sid}
let otherParams = (this.data.id && this.data.id!=0) ? {class_id: this.data.id } : {school_id: this.data.sid}
getClasshonors(Object.assign(otherParams,{
consumer_id: this.data.consumerId
})).then((res) => {
......@@ -354,7 +354,7 @@ Page({
},
// 弹幕(暂定不跟校区班级走)
getRandrank(){
let otherParams = this.data.id ? {class_id: this.data.id } : {school_id: this.data.sid}
let otherParams = (this.data.id && this.data.id!=0) ? {class_id: this.data.id } : {school_id: this.data.sid}
getRandrank(otherParams).then((res) => {
if (res.code == 200) {
this.setData({
......@@ -975,16 +975,16 @@ Page({
this.setData({
listLoading: true
})
clockList({
let otherParams = (this.data.id && this.data.id!=0)? {class_id: this.data.id}: '';
clockList(Object.assign(otherParams,{
page: this.data.clockPage,
perPage: this.data.clockPerPage,
consumer_id: this.data.consumerId,
school_id: this.data.sid,
class_id: this.data.id2? this.data.id2: '',
now_consumer_id: visitor && visitor.id,
type: this.data.curType
type: this.data.curType,
school_id: this.data.sid
// clock_subject_id: tid
}).then((res) => {
})).then((res) => {
const { code, data } = res;
this.setData({
listLoading: false
......
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