作者 wumengyu

注释掉console

... ... @@ -71,7 +71,7 @@ Page({
const self = this;
wx.chooseLocation({
success(res) {
console.log(res);
// console.log(res);
self.setData({address_position: res.address !== ''?res.address:res.name,latng:res.latitude + ',' + res.longitude})
},
})
... ... @@ -114,7 +114,7 @@ Page({
let url = '/portal/Send/select';
const list = [];
app.post(url, {}, {}).then((res) => {
console.log('获取分类', res);
// console.log('获取分类', res);
res.data.active.forEach((item) => {
list.push(item.name)
});
... ... @@ -123,7 +123,7 @@ Page({
},
//确定发布
confirmRelease(e) {
console.log('e', e,e.detail.formId,'最高人数',this.data.max_num);
// console.log('e', e,e.detail.formId,'最高人数',this.data.max_num);
if(this.data.title === '') {
wx.showToast({title:'请填写标题',icon:'none'})
}else if(this.data.content === '') {
... ... @@ -154,7 +154,7 @@ Page({
}
});
const images_params = this.data.images_params.join(',');
console.log('发布-images_params', images_params);
// console.log('发布-images_params', images_params);
let url = '/portal/Send/sendActivity';
let header = {
"XX-token": wx.getStorageSync('token')
... ...
... ... @@ -18,7 +18,7 @@ Page({
// const choose = +e.currentTarget.dataset.choose;
que_list[current_que].choose = true;
this.setData({current_que: current_que, que_list: que_list});
console.log('父级点击事件que_list', que_list, current_que);
// console.log('父级点击事件que_list', que_list, current_que);
// return false
// this.radioChange(e)
},
... ... @@ -27,7 +27,7 @@ Page({
const current = +e.currentTarget.dataset.sindex;
const pindex = +e.currentTarget.dataset.pindex;
const score = +e.currentTarget.dataset.score;
console.log('label事件分数', score);
// console.log('label事件分数', score);
this.setData({current_ans: current,});
// [`questionList[${this.data.current_que}].content[${current}].checked`]:!this.data.choose
... ... @@ -63,7 +63,7 @@ Page({
// })
// }
this.setData({current_answer: +e.detail.value, [`questionList[${pindex}].content`]: answer});
console.log('questionList', this.data.questionList);
// console.log('questionList', this.data.questionList);
},
//题目列表
answerList() {
... ... @@ -76,7 +76,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('题目', res);
// console.log('题目', res);
if (+res.code === 1) {
res.data.list.forEach(((item) => {
item.choose = false;
... ... @@ -87,7 +87,7 @@ Page({
self.setData({
questionList: res.data.list,
});
console.log(self.data.questionList);
// console.log(self.data.questionList);
}
})
},
... ... @@ -110,7 +110,7 @@ Page({
}
})
});
console.log('total_score', total_score);
// console.log('total_score', total_score);
this.setData({score: total_score});
wx.setStorageSync('score', total_score);
let url = '/portal/Send/answer';
... ... @@ -120,7 +120,7 @@ Page({
formId:e.detail.formId
};
app.post(url, params, {}).then((res) => {
console.log('提交答案', res);
// console.log('提交答案', res);
if (+res.code === 1) {
wx.showToast({title:'提交成功',icon:'success',
success:function () {
... ...
... ... @@ -14,7 +14,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, {}, {}).then((res) => {
console.log('获取列表', res);
// console.log('获取列表', res);
if (+res.code === 1) {
self.setData({
list: res.data.active,
... ... @@ -27,7 +27,7 @@ Page({
goPostDetail(e) {
const id = +e.currentTarget.dataset.id;
const type = +e.currentTarget.dataset.type;
console.log('type', type);
// console.log('type', type);
if(type === 1) { //1是活动,2是拼餐
wx.navigateTo({
url: '/pages/activity/detail/detail?id=' + id,
... ...
... ... @@ -15,7 +15,7 @@ Page({
token: wx.getStorageSync('token'),
};
app.post(url, {}, {}).then((res) => {
console.log('关于火柴', res);
// console.log('关于火柴', res);
if (+res.code === 1) {
wxParse.wxParse('content', 'html', res.data.content, this, 5);
this.setData({
... ...
... ... @@ -50,7 +50,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('options', options);
// console.log('options', options);
this.setData({id:+options.id?+options.id:'',user_pic:app.globalData.userInfo.avatarUrl,user_name:app.globalData.userInfo.nickName})
},
... ...
... ... @@ -23,7 +23,7 @@ Page({
content:this.data.content,
};
app.post(url, params, {}).then((res) => {
console.log('提交', res);
// console.log('提交', res);
if (+res.code === 1) {
wx.showToast({title:res.message,icon:'none',
success:function () {
... ...