正在显示
6 个修改的文件
包含
16 行增加
和
16 行删除
@@ -71,7 +71,7 @@ Page({ | @@ -71,7 +71,7 @@ Page({ | ||
71 | const self = this; | 71 | const self = this; |
72 | wx.chooseLocation({ | 72 | wx.chooseLocation({ |
73 | success(res) { | 73 | success(res) { |
74 | - console.log(res); | 74 | + // console.log(res); |
75 | self.setData({address_position: res.address !== ''?res.address:res.name,latng:res.latitude + ',' + res.longitude}) | 75 | self.setData({address_position: res.address !== ''?res.address:res.name,latng:res.latitude + ',' + res.longitude}) |
76 | }, | 76 | }, |
77 | }) | 77 | }) |
@@ -114,7 +114,7 @@ Page({ | @@ -114,7 +114,7 @@ Page({ | ||
114 | let url = '/portal/Send/select'; | 114 | let url = '/portal/Send/select'; |
115 | const list = []; | 115 | const list = []; |
116 | app.post(url, {}, {}).then((res) => { | 116 | app.post(url, {}, {}).then((res) => { |
117 | - console.log('获取分类', res); | 117 | + // console.log('获取分类', res); |
118 | res.data.active.forEach((item) => { | 118 | res.data.active.forEach((item) => { |
119 | list.push(item.name) | 119 | list.push(item.name) |
120 | }); | 120 | }); |
@@ -123,7 +123,7 @@ Page({ | @@ -123,7 +123,7 @@ Page({ | ||
123 | }, | 123 | }, |
124 | //确定发布 | 124 | //确定发布 |
125 | confirmRelease(e) { | 125 | confirmRelease(e) { |
126 | - console.log('e', e,e.detail.formId,'最高人数',this.data.max_num); | 126 | + // console.log('e', e,e.detail.formId,'最高人数',this.data.max_num); |
127 | if(this.data.title === '') { | 127 | if(this.data.title === '') { |
128 | wx.showToast({title:'请填写标题',icon:'none'}) | 128 | wx.showToast({title:'请填写标题',icon:'none'}) |
129 | }else if(this.data.content === '') { | 129 | }else if(this.data.content === '') { |
@@ -154,7 +154,7 @@ Page({ | @@ -154,7 +154,7 @@ Page({ | ||
154 | } | 154 | } |
155 | }); | 155 | }); |
156 | const images_params = this.data.images_params.join(','); | 156 | const images_params = this.data.images_params.join(','); |
157 | - console.log('发布-images_params', images_params); | 157 | + // console.log('发布-images_params', images_params); |
158 | let url = '/portal/Send/sendActivity'; | 158 | let url = '/portal/Send/sendActivity'; |
159 | let header = { | 159 | let header = { |
160 | "XX-token": wx.getStorageSync('token') | 160 | "XX-token": wx.getStorageSync('token') |
@@ -18,7 +18,7 @@ Page({ | @@ -18,7 +18,7 @@ Page({ | ||
18 | // const choose = +e.currentTarget.dataset.choose; | 18 | // const choose = +e.currentTarget.dataset.choose; |
19 | que_list[current_que].choose = true; | 19 | que_list[current_que].choose = true; |
20 | this.setData({current_que: current_que, que_list: que_list}); | 20 | this.setData({current_que: current_que, que_list: que_list}); |
21 | - console.log('父级点击事件que_list', que_list, current_que); | 21 | + // console.log('父级点击事件que_list', que_list, current_que); |
22 | // return false | 22 | // return false |
23 | // this.radioChange(e) | 23 | // this.radioChange(e) |
24 | }, | 24 | }, |
@@ -27,7 +27,7 @@ Page({ | @@ -27,7 +27,7 @@ Page({ | ||
27 | const current = +e.currentTarget.dataset.sindex; | 27 | const current = +e.currentTarget.dataset.sindex; |
28 | const pindex = +e.currentTarget.dataset.pindex; | 28 | const pindex = +e.currentTarget.dataset.pindex; |
29 | const score = +e.currentTarget.dataset.score; | 29 | const score = +e.currentTarget.dataset.score; |
30 | - console.log('label事件分数', score); | 30 | + // console.log('label事件分数', score); |
31 | this.setData({current_ans: current,}); | 31 | this.setData({current_ans: current,}); |
32 | 32 | ||
33 | // [`questionList[${this.data.current_que}].content[${current}].checked`]:!this.data.choose | 33 | // [`questionList[${this.data.current_que}].content[${current}].checked`]:!this.data.choose |
@@ -63,7 +63,7 @@ Page({ | @@ -63,7 +63,7 @@ Page({ | ||
63 | // }) | 63 | // }) |
64 | // } | 64 | // } |
65 | this.setData({current_answer: +e.detail.value, [`questionList[${pindex}].content`]: answer}); | 65 | this.setData({current_answer: +e.detail.value, [`questionList[${pindex}].content`]: answer}); |
66 | - console.log('questionList', this.data.questionList); | 66 | + // console.log('questionList', this.data.questionList); |
67 | }, | 67 | }, |
68 | //题目列表 | 68 | //题目列表 |
69 | answerList() { | 69 | answerList() { |
@@ -76,7 +76,7 @@ Page({ | @@ -76,7 +76,7 @@ Page({ | ||
76 | "token": wx.getStorageSync('token') | 76 | "token": wx.getStorageSync('token') |
77 | }; | 77 | }; |
78 | app.post(url, params, {}).then((res) => { | 78 | app.post(url, params, {}).then((res) => { |
79 | - console.log('题目', res); | 79 | + // console.log('题目', res); |
80 | if (+res.code === 1) { | 80 | if (+res.code === 1) { |
81 | res.data.list.forEach(((item) => { | 81 | res.data.list.forEach(((item) => { |
82 | item.choose = false; | 82 | item.choose = false; |
@@ -87,7 +87,7 @@ Page({ | @@ -87,7 +87,7 @@ Page({ | ||
87 | self.setData({ | 87 | self.setData({ |
88 | questionList: res.data.list, | 88 | questionList: res.data.list, |
89 | }); | 89 | }); |
90 | - console.log(self.data.questionList); | 90 | + // console.log(self.data.questionList); |
91 | } | 91 | } |
92 | }) | 92 | }) |
93 | }, | 93 | }, |
@@ -110,7 +110,7 @@ Page({ | @@ -110,7 +110,7 @@ Page({ | ||
110 | } | 110 | } |
111 | }) | 111 | }) |
112 | }); | 112 | }); |
113 | - console.log('total_score', total_score); | 113 | + // console.log('total_score', total_score); |
114 | this.setData({score: total_score}); | 114 | this.setData({score: total_score}); |
115 | wx.setStorageSync('score', total_score); | 115 | wx.setStorageSync('score', total_score); |
116 | let url = '/portal/Send/answer'; | 116 | let url = '/portal/Send/answer'; |
@@ -120,7 +120,7 @@ Page({ | @@ -120,7 +120,7 @@ Page({ | ||
120 | formId:e.detail.formId | 120 | formId:e.detail.formId |
121 | }; | 121 | }; |
122 | app.post(url, params, {}).then((res) => { | 122 | app.post(url, params, {}).then((res) => { |
123 | - console.log('提交答案', res); | 123 | + // console.log('提交答案', res); |
124 | if (+res.code === 1) { | 124 | if (+res.code === 1) { |
125 | wx.showToast({title:'提交成功',icon:'success', | 125 | wx.showToast({title:'提交成功',icon:'success', |
126 | success:function () { | 126 | success:function () { |
@@ -14,7 +14,7 @@ Page({ | @@ -14,7 +14,7 @@ Page({ | ||
14 | "token": wx.getStorageSync('token') | 14 | "token": wx.getStorageSync('token') |
15 | }; | 15 | }; |
16 | app.post(url, {}, {}).then((res) => { | 16 | app.post(url, {}, {}).then((res) => { |
17 | - console.log('获取列表', res); | 17 | + // console.log('获取列表', res); |
18 | if (+res.code === 1) { | 18 | if (+res.code === 1) { |
19 | self.setData({ | 19 | self.setData({ |
20 | list: res.data.active, | 20 | list: res.data.active, |
@@ -27,7 +27,7 @@ Page({ | @@ -27,7 +27,7 @@ Page({ | ||
27 | goPostDetail(e) { | 27 | goPostDetail(e) { |
28 | const id = +e.currentTarget.dataset.id; | 28 | const id = +e.currentTarget.dataset.id; |
29 | const type = +e.currentTarget.dataset.type; | 29 | const type = +e.currentTarget.dataset.type; |
30 | - console.log('type', type); | 30 | + // console.log('type', type); |
31 | if(type === 1) { //1是活动,2是拼餐 | 31 | if(type === 1) { //1是活动,2是拼餐 |
32 | wx.navigateTo({ | 32 | wx.navigateTo({ |
33 | url: '/pages/activity/detail/detail?id=' + id, | 33 | url: '/pages/activity/detail/detail?id=' + id, |
@@ -15,7 +15,7 @@ Page({ | @@ -15,7 +15,7 @@ Page({ | ||
15 | token: wx.getStorageSync('token'), | 15 | token: wx.getStorageSync('token'), |
16 | }; | 16 | }; |
17 | app.post(url, {}, {}).then((res) => { | 17 | app.post(url, {}, {}).then((res) => { |
18 | - console.log('关于火柴', res); | 18 | + // console.log('关于火柴', res); |
19 | if (+res.code === 1) { | 19 | if (+res.code === 1) { |
20 | wxParse.wxParse('content', 'html', res.data.content, this, 5); | 20 | wxParse.wxParse('content', 'html', res.data.content, this, 5); |
21 | this.setData({ | 21 | this.setData({ |
@@ -50,7 +50,7 @@ Page({ | @@ -50,7 +50,7 @@ Page({ | ||
50 | * 生命周期函数--监听页面加载 | 50 | * 生命周期函数--监听页面加载 |
51 | */ | 51 | */ |
52 | onLoad: function (options) { | 52 | onLoad: function (options) { |
53 | - console.log('options', options); | 53 | + // console.log('options', options); |
54 | this.setData({id:+options.id?+options.id:'',user_pic:app.globalData.userInfo.avatarUrl,user_name:app.globalData.userInfo.nickName}) | 54 | this.setData({id:+options.id?+options.id:'',user_pic:app.globalData.userInfo.avatarUrl,user_name:app.globalData.userInfo.nickName}) |
55 | }, | 55 | }, |
56 | 56 |
@@ -23,7 +23,7 @@ Page({ | @@ -23,7 +23,7 @@ Page({ | ||
23 | content:this.data.content, | 23 | content:this.data.content, |
24 | }; | 24 | }; |
25 | app.post(url, params, {}).then((res) => { | 25 | app.post(url, params, {}).then((res) => { |
26 | - console.log('提交', res); | 26 | + // console.log('提交', res); |
27 | if (+res.code === 1) { | 27 | if (+res.code === 1) { |
28 | wx.showToast({title:res.message,icon:'none', | 28 | wx.showToast({title:res.message,icon:'none', |
29 | success:function () { | 29 | success:function () { |
-
请 注册 或 登录 后发表评论