作者 wumengyu

注释掉console

@@ -32,7 +32,7 @@ Page({ @@ -32,7 +32,7 @@ Page({
32 img_height = e.detail.height, 32 img_height = e.detail.height,
33 //宽高比 33 //宽高比
34 ratio = img_width / img_height; 34 ratio = img_width / img_height;
35 - console.log(img_width, img_height); 35 + // console.log(img_width, img_height);
36 //计算的高度值 36 //计算的高度值
37 var viewHeight = 750 / ratio; 37 var viewHeight = 750 / ratio;
38 var img_height = viewHeight; 38 var img_height = viewHeight;
@@ -59,14 +59,14 @@ Page({ @@ -59,14 +59,14 @@ Page({
59 }, 59 },
60 // 问一问 60 // 问一问
61 ask(e) { 61 ask(e) {
62 - console.log('前问一问-display', this.data.display); 62 + // console.log('前问一问-display', this.data.display);
63 this.setData({ 63 this.setData({
64 display: !this.data.display, 64 display: !this.data.display,
65 is_ask:true,is_reply:false, 65 is_ask:true,is_reply:false,
66 content:'' , 66 content:'' ,
67 placeholder:'输入您的留言', 67 placeholder:'输入您的留言',
68 }); 68 });
69 - console.log('后问一问-display', this.data.display); 69 + // console.log('后问一问-display', this.data.display);
70 // wx.navigateTo({ 70 // wx.navigateTo({
71 // url: '/pages/comment/comment?activity_id=' + this.data.detail_id 71 // url: '/pages/comment/comment?activity_id=' + this.data.detail_id
72 // + '&common_id=' + 0 72 // + '&common_id=' + 0
@@ -80,7 +80,7 @@ Page({ @@ -80,7 +80,7 @@ Page({
80 }, 80 },
81 //发送评论/回复 81 //发送评论/回复
82 clickComment(e) { 82 clickComment(e) {
83 - console.log('评论', e); 83 + // console.log('评论', e);
84 this.setData({ display: false }); 84 this.setData({ display: false });
85 if(this.data.content === '' ) { 85 if(this.data.content === '' ) {
86 wx.showToast({title:'请输入内容',icon:'none'}) 86 wx.showToast({title:'请输入内容',icon:'none'})
@@ -94,7 +94,7 @@ Page({ @@ -94,7 +94,7 @@ Page({
94 formId:e.detail.formId, 94 formId:e.detail.formId,
95 }; 95 };
96 app.post(url,params,{}).then((res)=>{ 96 app.post(url,params,{}).then((res)=>{
97 - console.log('提交评论',res); 97 + // console.log('提交评论',res);
98 if(+res.code === 1) { 98 if(+res.code === 1) {
99 wx.showToast({title:this.data.is_ask?'留言成功':'回复成功',icon:'none',}); 99 wx.showToast({title:this.data.is_ask?'留言成功':'回复成功',icon:'none',});
100 this.getDetail(); 100 this.getDetail();
@@ -113,7 +113,7 @@ Page({ @@ -113,7 +113,7 @@ Page({
113 }, 113 },
114 //回复 114 //回复
115 reply(e) { 115 reply(e) {
116 - console.log('回复', e); 116 + // console.log('回复', e);
117 const id = e.currentTarget.dataset.id; 117 const id = e.currentTarget.dataset.id;
118 this.setData({ 118 this.setData({
119 display: !this.data.display, 119 display: !this.data.display,
@@ -128,7 +128,7 @@ Page({ @@ -128,7 +128,7 @@ Page({
128 }, 128 },
129 //收藏/取消收藏 129 //收藏/取消收藏
130 collect() { 130 collect() {
131 - console.log('收藏'); 131 + // console.log('收藏');
132 let self = this; 132 let self = this;
133 let url = '/portal/Active/collection'; 133 let url = '/portal/Active/collection';
134 let url_del = '/portal/Active/delCollection'; 134 let url_del = '/portal/Active/delCollection';
@@ -141,7 +141,7 @@ Page({ @@ -141,7 +141,7 @@ Page({
141 }; 141 };
142 if (self.data.is_collect) { 142 if (self.data.is_collect) {
143 app.post(url_del, params, header).then((res) => { 143 app.post(url_del, params, header).then((res) => {
144 - console.log('取消收藏', res); 144 + // console.log('取消收藏', res);
145 if (+res.code === 1) { 145 if (+res.code === 1) {
146 wx.showToast({title: res.message, icon: 'none'}); 146 wx.showToast({title: res.message, icon: 'none'});
147 self.setData({ 147 self.setData({
@@ -151,7 +151,7 @@ Page({ @@ -151,7 +151,7 @@ Page({
151 }) 151 })
152 } else { 152 } else {
153 app.post(url, params, header).then((res) => { 153 app.post(url, params, header).then((res) => {
154 - console.log('收藏', res); 154 + // console.log('收藏', res);
155 if (+res.code === 1) { 155 if (+res.code === 1) {
156 wx.showToast({title: res.message, icon: 'none'}); 156 wx.showToast({title: res.message, icon: 'none'});
157 self.setData({ 157 self.setData({
@@ -176,7 +176,7 @@ Page({ @@ -176,7 +176,7 @@ Page({
176 commonId: id, 176 commonId: id,
177 }; 177 };
178 app.post(url, params, {}).then((res) => { 178 app.post(url, params, {}).then((res) => {
179 - console.log('点赞', res); 179 + // console.log('点赞', res);
180 if (+res.code === 1) { // 180 if (+res.code === 1) { //
181 wx.showToast({title: res.message, icon: 'none'}); 181 wx.showToast({title: res.message, icon: 'none'});
182 self.setData({ 182 self.setData({
@@ -226,7 +226,7 @@ Page({ @@ -226,7 +226,7 @@ Page({
226 //获取详情 226 //获取详情
227 getDetail() { 227 getDetail() {
228 const self = this; 228 const self = this;
229 - console.log('city', self.data.city); 229 + // console.log('city', self.data.city);
230 let url = '/portal/Active/activeDetail'; 230 let url = '/portal/Active/activeDetail';
231 let params = { 231 let params = {
232 activeId: self.data.detail_id, 232 activeId: self.data.detail_id,
@@ -253,10 +253,10 @@ Page({ @@ -253,10 +253,10 @@ Page({
253 // (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除 253 // (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除
254 const status = res.data.active.status; 254 const status = res.data.active.status;
255 if (status === 2 || status === 6 || status === 7 || status === 8) { 255 if (status === 2 || status === 6 || status === 7 || status === 8) {
256 - console.log('调用倒计时'); 256 + // console.log('调用倒计时');
257 self.countDown(); 257 self.countDown();
258 } else { 258 } else {
259 - console.log('不调用倒计时'); 259 + // console.log('不调用倒计时');
260 let countDownArr = []; 260 let countDownArr = [];
261 let obj = null; 261 let obj = null;
262 obj = { 262 obj = {
@@ -332,7 +332,7 @@ Page({ @@ -332,7 +332,7 @@ Page({
332 "token": wx.getStorageSync('token') 332 "token": wx.getStorageSync('token')
333 }; 333 };
334 app.post(url, params, {}).then((res) => { 334 app.post(url, params, {}).then((res) => {
335 - console.log('倒计时结束', res); 335 + // console.log('倒计时结束', res);
336 if (+res.code === 1) { 336 if (+res.code === 1) {
337 // wx.showToast({title:'拼活动结束',icon:'success'}) 337 // wx.showToast({title:'拼活动结束',icon:'success'})
338 } 338 }
@@ -342,7 +342,7 @@ Page({ @@ -342,7 +342,7 @@ Page({
342 getNavigate() { 342 getNavigate() {
343 const self = this; 343 const self = this;
344 const arr = self.data.detail.latng.split(','); 344 const arr = self.data.detail.latng.split(',');
345 - console.log('arr', arr, arr[0], arr[1]); 345 + // console.log('arr', arr, arr[0], arr[1]);
346 wx.openLocation({//​使用微信内置地图查看位置。 346 wx.openLocation({//​使用微信内置地图查看位置。
347 latitude: +arr[1],//要去的纬度-地址 347 latitude: +arr[1],//要去的纬度-地址
348 longitude: +arr[0],//要去的经度-地址 348 longitude: +arr[0],//要去的经度-地址
@@ -355,7 +355,7 @@ Page({ @@ -355,7 +355,7 @@ Page({
355 //确认拼活动 355 //确认拼活动
356 confirmJoin(e) { 356 confirmJoin(e) {
357 const self = this; 357 const self = this;
358 - console.log('已参与人数',self.data.join_people.length); 358 + // console.log('已参与人数',self.data.join_people.length);
359 // if(+self.data.is_send === 2){ //可参与 359 // if(+self.data.is_send === 2){ //可参与
360 // if(self.data.join_people.length + self.data.num > self.data.detail.max) { 360 // if(self.data.join_people.length + self.data.num > self.data.detail.max) {
361 // wx.showToast({title:'参加人数已超过剩余名额',icon:'none'}) 361 // wx.showToast({title:'参加人数已超过剩余名额',icon:'none'})
@@ -374,7 +374,7 @@ Page({ @@ -374,7 +374,7 @@ Page({
374 "token": wx.getStorageSync('token') 374 "token": wx.getStorageSync('token')
375 }; 375 };
376 app.post(url, params, {}).then((res) => { 376 app.post(url, params, {}).then((res) => {
377 - console.log('确认拼活动', res); 377 + // console.log('确认拼活动', res);
378 if (+res.code === 1) { 378 if (+res.code === 1) {
379 // wx.showToast({title: '拼活动成功', icon: 'success'}); 379 // wx.showToast({title: '拼活动成功', icon: 'success'});
380 self.setData({is_showRelease_modal:true,order_id:+res.data.orderId,is_join:true}); 380 self.setData({is_showRelease_modal:true,order_id:+res.data.orderId,is_join:true});
@@ -396,7 +396,7 @@ Page({ @@ -396,7 +396,7 @@ Page({
396 type:2,//1拼活动,2拼餐 396 type:2,//1拼活动,2拼餐
397 }; 397 };
398 app.post(url, params, {}).then((res) => { 398 app.post(url, params, {}).then((res) => {
399 - console.log('获取活动二维码', res); 399 + // console.log('获取活动二维码', res);
400 if (+res.code === 1) { 400 if (+res.code === 1) {
401 self.setData({qr_code:res.data},() => { 401 self.setData({qr_code:res.data},() => {
402 // console.log('二维码',self.data.qr_code); 402 // console.log('二维码',self.data.qr_code);
@@ -505,7 +505,7 @@ Page({ @@ -505,7 +505,7 @@ Page({
505 ctx.clip() 505 ctx.clip()
506 }, 506 },
507 drawCard() { 507 drawCard() {
508 - console.log('开始画'); 508 + // console.log('开始画');
509 const self = this; 509 const self = this;
510 //先创建一个画布 510 //先创建一个画布
511 const ctx = wx.createCanvasContext("canvas"); 511 const ctx = wx.createCanvasContext("canvas");
@@ -519,18 +519,18 @@ Page({ @@ -519,18 +519,18 @@ Page({
519 //填充背景色 519 //填充背景色
520 ctx.fillStyle = '#fff'; 520 ctx.fillStyle = '#fff';
521 ctx.fillRect(0, 0, 280, 400); 521 ctx.fillRect(0, 0, 280, 400);
522 - console.log(self.data.local_img);  
523 - console.log(self.data.qr_code); 522 + // console.log(self.data.local_img);
  523 + // console.log(self.data.qr_code);
524 //将图片转化为画布 524 //将图片转化为画布
525 ctx.drawImage(self.data.local_img, 0, 0, 280, 280);//详情图 525 ctx.drawImage(self.data.local_img, 0, 0, 280, 280);//详情图
526 - console.log(111); 526 + // console.log(111);
527 // ctx.drawImage(self.data.local_qr_code, 220, 209, 60, 60);//二维码 527 // ctx.drawImage(self.data.local_qr_code, 220, 209, 60, 60);//二维码
528 ctx.drawImage('../../../images/qr_code.jpg', 180, 320, 60, 60);//小程序码 528 ctx.drawImage('../../../images/qr_code.jpg', 180, 320, 60, 60);//小程序码
529 //标题 529 //标题
530 ctx.setFontSize(12); 530 ctx.setFontSize(12);
531 ctx.setFillStyle('#000'); 531 ctx.setFillStyle('#000');
532 ctx.textAlign = "left"; 532 ctx.textAlign = "left";
533 - console.log(111); 533 + // console.log(111);
534 ctx.fillText(self.data.detail.title, 16, 306.5); 534 ctx.fillText(self.data.detail.title, 16, 306.5);
535 ctx.fillText(self.data.detail.title, 15.5, 307); 535 ctx.fillText(self.data.detail.title, 15.5, 307);
536 ctx.restore(); 536 ctx.restore();
@@ -591,7 +591,7 @@ Page({ @@ -591,7 +591,7 @@ Page({
591 // wx.hideLoading(); 591 // wx.hideLoading();
592 console.log("draw callback success"); 592 console.log("draw callback success");
593 self.setData({can_save: true,show_canvas: true}); 593 self.setData({can_save: true,show_canvas: true});
594 - console.log(self.data.can_save); 594 + // console.log(self.data.can_save);
595 }) 595 })
596 }, 596 },
597 //获取保存到相册的权限 597 //获取保存到相册的权限
@@ -658,7 +658,7 @@ Page({ @@ -658,7 +658,7 @@ Page({
658 658
659 }, 659 },
660 savePic() { 660 savePic() {
661 - console.log('是否能保存',this.data.can_save); 661 + // console.log('是否能保存',this.data.can_save);
662 if(this.data.can_save) { 662 if(this.data.can_save) {
663 wx.canvasToTempFilePath({ 663 wx.canvasToTempFilePath({
664 x: 0, 664 x: 0,
@@ -671,7 +671,7 @@ Page({ @@ -671,7 +671,7 @@ Page({
671 fileType: 'jpg', 671 fileType: 'jpg',
672 quality:1, 672 quality:1,
673 success: function (res) { 673 success: function (res) {
674 - console.log("get tempfilepath(success) is:", res.tempFilePath); 674 + // console.log("get tempfilepath(success) is:", res.tempFilePath);
675 //将图片保存在系统相册中(应先获取权限,) 675 //将图片保存在系统相册中(应先获取权限,)
676 wx.saveImageToPhotosAlbum({ 676 wx.saveImageToPhotosAlbum({
677 filePath: res.tempFilePath, 677 filePath: res.tempFilePath,
@@ -748,7 +748,7 @@ Page({ @@ -748,7 +748,7 @@ Page({
748 * 用户点击右上角分享 748 * 用户点击右上角分享
749 */ 749 */
750 onShareAppMessage: function (res) { 750 onShareAppMessage: function (res) {
751 - console.log('转发res',res); 751 + // console.log('转发res',res);
752 let self = this; 752 let self = this;
753 if(res.from === 'button') { 753 if(res.from === 'button') {
754 return { 754 return {
@@ -61,7 +61,7 @@ Page({ @@ -61,7 +61,7 @@ Page({
61 goPostDetail(e) { 61 goPostDetail(e) {
62 const id = +e.currentTarget.dataset.id; 62 const id = +e.currentTarget.dataset.id;
63 const type = +e.currentTarget.dataset.type; 63 const type = +e.currentTarget.dataset.type;
64 - console.log('type', type); 64 + // console.log('type', type);
65 if(type === 1) { //1是活动,2是拼餐 65 if(type === 1) { //1是活动,2是拼餐
66 wx.navigateTo({ 66 wx.navigateTo({
67 url: '/pages/activity/detail/detail?id=' + id, 67 url: '/pages/activity/detail/detail?id=' + id,
@@ -135,7 +135,7 @@ Page({ @@ -135,7 +135,7 @@ Page({
135 }, 135 },
136 //选择开始时间 136 //选择开始时间
137 changeStartTime: function (e) { 137 changeStartTime: function (e) {
138 - console.log('picker发送选择改变,携带值为', e.detail.value) 138 + // console.log('picker发送选择改变,携带值为', e.detail.value)
139 this.setData({ 139 this.setData({
140 start_time_date: e.detail.value, 140 start_time_date: e.detail.value,
141 is_showSelect: true, 141 is_showSelect: true,
@@ -144,7 +144,7 @@ Page({ @@ -144,7 +144,7 @@ Page({
144 }, 144 },
145 //选择结束时间 145 //选择结束时间
146 changeEndTime: function (e) { 146 changeEndTime: function (e) {
147 - console.log('picker发送选择改变,携带值为', e.detail.value) 147 + // console.log('picker发送选择改变,携带值为', e.detail.value)
148 this.setData({ 148 this.setData({
149 end_time_date: e.detail.value, 149 end_time_date: e.detail.value,
150 is_showSelect: true, 150 is_showSelect: true,
@@ -161,7 +161,7 @@ Page({ @@ -161,7 +161,7 @@ Page({
161 chooseType(e) { 161 chooseType(e) {
162 const current = e.currentTarget.dataset.index; 162 const current = e.currentTarget.dataset.index;
163 const id = e.currentTarget.dataset.id; 163 const id = e.currentTarget.dataset.id;
164 - console.log('select_id', id); 164 + // console.log('select_id', id);
165 this.setData({current_type: current, is_all: false, is_showSelect: false, is_showSort: false,select_id:id}); 165 this.setData({current_type: current, is_all: false, is_showSelect: false, is_showSort: false,select_id:id});
166 wx.showLoading({ 166 wx.showLoading({
167 title: '加载中', 167 title: '加载中',
@@ -180,12 +180,12 @@ Page({ @@ -180,12 +180,12 @@ Page({
180 * 生命周期函数--监听页面加载 180 * 生命周期函数--监听页面加载
181 */ 181 */
182 onLoad: function (options) { 182 onLoad: function (options) {
183 - console.log('options', options); 183 + // console.log('options', options);
184 this.setData({select_id:+options.id?+options.id:''}); 184 this.setData({select_id:+options.id?+options.id:''});
185 wx.setNavigationBarTitle({title:options.name}) 185 wx.setNavigationBarTitle({title:options.name})
186 if(options.city !== 'null') { 186 if(options.city !== 'null') {
187 this.setData({city_params:JSON.parse(options.city)}); 187 this.setData({city_params:JSON.parse(options.city)});
188 - console.log('load里的调用'); 188 + // console.log('load里的调用');
189 // this.getTypeList(); 189 // this.getTypeList();
190 } 190 }
191 }, 191 },
@@ -199,7 +199,7 @@ Page({ @@ -199,7 +199,7 @@ Page({
199 //获取首页分类列表 199 //获取首页分类列表
200 getTypeList() { 200 getTypeList() {
201 const self = this; 201 const self = this;
202 - console.log('city',self.data.city); 202 + // console.log('city',self.data.city);
203 let url = '/portal/Index/cate'; 203 let url = '/portal/Index/cate';
204 let params = { 204 let params = {
205 lat: wx.getStorageSync('lat') !== ''?self.data.lat:self.data.latitude, 205 lat: wx.getStorageSync('lat') !== ''?self.data.lat:self.data.latitude,
@@ -215,7 +215,7 @@ Page({ @@ -215,7 +215,7 @@ Page({
215 "token": wx.getStorageSync('token') 215 "token": wx.getStorageSync('token')
216 }; 216 };
217 app.post(url, params, {}).then((res) => { 217 app.post(url, params, {}).then((res) => {
218 - console.log('获取分类列表', res); 218 + // console.log('获取分类列表', res);
219 if (+res.code === 1) { 219 if (+res.code === 1) {
220 self.setData({ 220 self.setData({
221 list: res.data.active, 221 list: res.data.active,
@@ -239,7 +239,7 @@ Page({ @@ -239,7 +239,7 @@ Page({
239 "token": wx.getStorageSync('token') 239 "token": wx.getStorageSync('token')
240 }; 240 };
241 app.post(url, params, {}).then((res) => { 241 app.post(url, params, {}).then((res) => {
242 - console.log('获取城市', res); 242 + // console.log('获取城市', res);
243 if (+res.code === 1) { 243 if (+res.code === 1) {
244 self.setData({ 244 self.setData({
245 addr: res.data.city.city, 245 addr: res.data.city.city,
@@ -258,7 +258,7 @@ Page({ @@ -258,7 +258,7 @@ Page({
258 type: 'wgs84', 258 type: 'wgs84',
259 altitude: 'true', 259 altitude: 'true',
260 success(res) { 260 success(res) {
261 - console.log('获取地理位', res); 261 + // console.log('获取地理位', res);
262 self.setData({latitude: res.latitude, longitude: res.longitude}); 262 self.setData({latitude: res.latitude, longitude: res.longitude});
263 self.getCity(); 263 self.getCity();
264 } 264 }
@@ -274,7 +274,7 @@ Page({ @@ -274,7 +274,7 @@ Page({
274 if(wx.getStorageSync('lat') !== '' && 274 if(wx.getStorageSync('lat') !== '' &&
275 wx.getStorageSync('lng') !== '' && 275 wx.getStorageSync('lng') !== '' &&
276 wx.getStorageSync('addr') !== '') { 276 wx.getStorageSync('addr') !== '') {
277 - console.log('已选择城市',wx.getStorageSync('lat'),wx.getStorageSync('lng'),wx.getStorageSync('addr')); 277 + // console.log('已选择城市',wx.getStorageSync('lat'),wx.getStorageSync('lng'),wx.getStorageSync('addr'));
278 self.setData({ 278 self.setData({
279 is_city_change:true, 279 is_city_change:true,
280 lat:wx.getStorageSync('lat'), 280 lat:wx.getStorageSync('lat'),
@@ -31,14 +31,14 @@ Page({ @@ -31,14 +31,14 @@ Page({
31 img_height = e.detail.height, 31 img_height = e.detail.height,
32 //宽高比 32 //宽高比
33 ratio = img_width / img_height; 33 ratio = img_width / img_height;
34 - console.log(img_width, img_height); 34 + // console.log(img_width, img_height);
35 //计算的高度值 35 //计算的高度值
36 var viewHeight = 750 / ratio; 36 var viewHeight = 750 / ratio;
37 var img_height = viewHeight; 37 var img_height = viewHeight;
38 var img_heights = this.data.img_heights; 38 var img_heights = this.data.img_heights;
39 //把每一张图片的对应的高度记录到数组里 39 //把每一张图片的对应的高度记录到数组里
40 img_heights[e.target.dataset.id] = img_height; 40 img_heights[e.target.dataset.id] = img_height;
41 - console.log('img_heights',img_heights); 41 + // console.log('img_heights',img_heights);
42 this.setData({ 42 this.setData({
43 img_heights: img_heights 43 img_heights: img_heights
44 }) 44 })
@@ -59,14 +59,14 @@ Page({ @@ -59,14 +59,14 @@ Page({
59 }, 59 },
60 // 问一问 60 // 问一问
61 ask(e) { 61 ask(e) {
62 - console.log('前问一问-display', this.data.display); 62 + // console.log('前问一问-display', this.data.display);
63 this.setData({ 63 this.setData({
64 display: !this.data.display, 64 display: !this.data.display,
65 is_ask:true,is_reply:false, 65 is_ask:true,is_reply:false,
66 content:'' , 66 content:'' ,
67 placeholder:'输入您的留言', 67 placeholder:'输入您的留言',
68 }); 68 });
69 - console.log('后问一问-display', this.data.display); 69 + // console.log('后问一问-display', this.data.display);
70 // wx.navigateTo({ 70 // wx.navigateTo({
71 // url: '/pages/comment/comment?activity_id=' + this.data.detail_id 71 // url: '/pages/comment/comment?activity_id=' + this.data.detail_id
72 // + '&common_id=' + 0 72 // + '&common_id=' + 0
@@ -80,7 +80,7 @@ Page({ @@ -80,7 +80,7 @@ Page({
80 }, 80 },
81 //发送评论/回复 81 //发送评论/回复
82 clickComment(e) { 82 clickComment(e) {
83 - console.log('评论', e); 83 + // console.log('评论', e);
84 this.setData({ display: false }); 84 this.setData({ display: false });
85 if(this.data.content === '' ) { 85 if(this.data.content === '' ) {
86 wx.showToast({title:'请输入内容',icon:'none'}) 86 wx.showToast({title:'请输入内容',icon:'none'})
@@ -94,7 +94,7 @@ Page({ @@ -94,7 +94,7 @@ Page({
94 formId:e.detail.formId, 94 formId:e.detail.formId,
95 }; 95 };
96 app.post(url,params,{}).then((res)=>{ 96 app.post(url,params,{}).then((res)=>{
97 - console.log('提交评论',res); 97 + // console.log('提交评论',res);
98 if(+res.code === 1) { 98 if(+res.code === 1) {
99 wx.showToast({title:this.data.is_ask?'留言成功':'回复成功',icon:'none',}); 99 wx.showToast({title:this.data.is_ask?'留言成功':'回复成功',icon:'none',});
100 this.getDetail(); 100 this.getDetail();
@@ -127,7 +127,7 @@ Page({ @@ -127,7 +127,7 @@ Page({
127 }, 127 },
128 //收藏/取消收藏 128 //收藏/取消收藏
129 collect() { 129 collect() {
130 - console.log('收藏'); 130 + // console.log('收藏');
131 let self = this; 131 let self = this;
132 let url = '/portal/Active/collection'; 132 let url = '/portal/Active/collection';
133 let url_del = '/portal/Active/delCollection'; 133 let url_del = '/portal/Active/delCollection';
@@ -140,7 +140,7 @@ Page({ @@ -140,7 +140,7 @@ Page({
140 }; 140 };
141 if(self.data.is_collect) { 141 if(self.data.is_collect) {
142 app.post(url_del, params, header).then((res) => { 142 app.post(url_del, params, header).then((res) => {
143 - console.log('取消收藏',res); 143 + // console.log('取消收藏',res);
144 if(+res.code === 1) { 144 if(+res.code === 1) {
145 wx.showToast({title:res.message,icon:'none'}); 145 wx.showToast({title:res.message,icon:'none'});
146 self.setData({ 146 self.setData({
@@ -150,7 +150,7 @@ Page({ @@ -150,7 +150,7 @@ Page({
150 }) 150 })
151 }else { 151 }else {
152 app.post(url, params, header).then((res) => { 152 app.post(url, params, header).then((res) => {
153 - console.log('收藏',res); 153 + // console.log('收藏',res);
154 if(+res.code === 1) { 154 if(+res.code === 1) {
155 wx.showToast({title:res.message,icon:'none'}); 155 wx.showToast({title:res.message,icon:'none'});
156 self.setData({ 156 self.setData({
@@ -175,7 +175,7 @@ Page({ @@ -175,7 +175,7 @@ Page({
175 commonId: id, 175 commonId: id,
176 }; 176 };
177 app.post(url, params, {}).then((res) => { 177 app.post(url, params, {}).then((res) => {
178 - console.log('点赞', res); 178 + // console.log('点赞', res);
179 if (+res.code === 1) { // 179 if (+res.code === 1) { //
180 wx.showToast({title:res.message,icon:'none'}); 180 wx.showToast({title:res.message,icon:'none'});
181 self.setData({ 181 self.setData({
@@ -225,7 +225,7 @@ Page({ @@ -225,7 +225,7 @@ Page({
225 //获取详情 225 //获取详情
226 getDetail() { 226 getDetail() {
227 const self = this; 227 const self = this;
228 - console.log('city',self.data.city); 228 + // console.log('city',self.data.city);
229 let url = '/portal/Active/mealDetail'; 229 let url = '/portal/Active/mealDetail';
230 let params = { 230 let params = {
231 token:wx.getStorageSync('token'), 231 token:wx.getStorageSync('token'),
@@ -235,7 +235,7 @@ Page({ @@ -235,7 +235,7 @@ Page({
235 "token": wx.getStorageSync('token') 235 "token": wx.getStorageSync('token')
236 }; 236 };
237 app.post(url, params, {}).then((res) => { 237 app.post(url, params, {}).then((res) => {
238 - console.log('获取详情', res); 238 + // console.log('获取详情', res);
239 if (+res.code === 1) { 239 if (+res.code === 1) {
240 self.setData({ 240 self.setData({
241 detail: res.data.active, 241 detail: res.data.active,
@@ -259,10 +259,10 @@ Page({ @@ -259,10 +259,10 @@ Page({
259 // (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除 259 // (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除
260 const status = res.data.active.status; 260 const status = res.data.active.status;
261 if(status === 2 || status === 6 || status === 7 || status === 8) { 261 if(status === 2 || status === 6 || status === 7 || status === 8) {
262 - console.log('调用倒计时'); 262 + // console.log('调用倒计时');
263 self.countDown(); 263 self.countDown();
264 }else { 264 }else {
265 - console.log('不调用倒计时'); 265 + // console.log('不调用倒计时');
266 let countDownArr = []; 266 let countDownArr = [];
267 let obj = null; 267 let obj = null;
268 obj = { 268 obj = {
@@ -297,7 +297,7 @@ Page({ @@ -297,7 +297,7 @@ Page({
297 "token": wx.getStorageSync('token') 297 "token": wx.getStorageSync('token')
298 }; 298 };
299 app.post(url, params, {}).then((res) => { 299 app.post(url, params, {}).then((res) => {
300 - console.log('确认拼餐', res); 300 + // console.log('确认拼餐', res);
301 if (+res.code === 1) { 301 if (+res.code === 1) {
302 // wx.showToast({title:'拼餐成功',icon:'success'}); 302 // wx.showToast({title:'拼餐成功',icon:'success'});
303 self.setData({is_showRelease_modal:true,order_id:+res.data.orderId,is_join:true}); 303 self.setData({is_showRelease_modal:true,order_id:+res.data.orderId,is_join:true});
@@ -366,7 +366,7 @@ Page({ @@ -366,7 +366,7 @@ Page({
366 "token": wx.getStorageSync('token') 366 "token": wx.getStorageSync('token')
367 }; 367 };
368 app.post(url, params, {}).then((res) => { 368 app.post(url, params, {}).then((res) => {
369 - console.log('倒计时结束', res); 369 + // console.log('倒计时结束', res);
370 if (+res.code === 1) { 370 if (+res.code === 1) {
371 // wx.showToast({title:'拼活动结束',icon:'success'}) 371 // wx.showToast({title:'拼活动结束',icon:'success'})
372 } 372 }
@@ -376,7 +376,7 @@ Page({ @@ -376,7 +376,7 @@ Page({
376 getNavigate() { 376 getNavigate() {
377 const self = this; 377 const self = this;
378 const arr = self.data.detail.latng.split(','); 378 const arr = self.data.detail.latng.split(',');
379 - console.log('arr',arr,arr[0],arr[1]); 379 + // console.log('arr',arr,arr[0],arr[1]);
380 380
381 wx.openLocation({//​使用微信内置地图查看位置。 381 wx.openLocation({//​使用微信内置地图查看位置。
382 latitude: +arr[0],//要去的纬度-地址 382 latitude: +arr[0],//要去的纬度-地址
@@ -391,7 +391,7 @@ Page({ @@ -391,7 +391,7 @@ Page({
391 * 生命周期函数--监听页面加载 391 * 生命周期函数--监听页面加载
392 */ 392 */
393 onLoad: function (options) { 393 onLoad: function (options) {
394 - console.log('详情options', options); 394 + // console.log('详情options', options);
395 this.setData({detail_id:+options.id?+options.id:''}); 395 this.setData({detail_id:+options.id?+options.id:''});
396 }, 396 },
397 //获取活动二维码 397 //获取活动二维码
@@ -404,7 +404,7 @@ Page({ @@ -404,7 +404,7 @@ Page({
404 type:2,//1拼活动,2拼餐 404 type:2,//1拼活动,2拼餐
405 }; 405 };
406 app.post(url, params, {}).then((res) => { 406 app.post(url, params, {}).then((res) => {
407 - console.log('获取活动二维码', res); 407 + // console.log('获取活动二维码', res);
408 if (+res.code === 1) { 408 if (+res.code === 1) {
409 self.setData({qr_code:res.data},() => { 409 self.setData({qr_code:res.data},() => {
410 // console.log('二维码',self.data.qr_code); 410 // console.log('二维码',self.data.qr_code);
@@ -513,7 +513,7 @@ Page({ @@ -513,7 +513,7 @@ Page({
513 ctx.clip() 513 ctx.clip()
514 }, 514 },
515 drawCard() { 515 drawCard() {
516 - console.log('开始画'); 516 + // console.log('开始画');
517 const self = this; 517 const self = this;
518 //先创建一个画布 518 //先创建一个画布
519 const ctx = wx.createCanvasContext("canvas"); 519 const ctx = wx.createCanvasContext("canvas");
@@ -527,18 +527,18 @@ Page({ @@ -527,18 +527,18 @@ Page({
527 //填充背景色 527 //填充背景色
528 ctx.fillStyle = '#fff'; 528 ctx.fillStyle = '#fff';
529 ctx.fillRect(0, 0, 280, 400); 529 ctx.fillRect(0, 0, 280, 400);
530 - console.log(self.data.local_img);  
531 - console.log(self.data.qr_code); 530 + // console.log(self.data.local_img);
  531 + // console.log(self.data.qr_code);
532 //将图片转化为画布 532 //将图片转化为画布
533 ctx.drawImage(self.data.local_img, 0, 0, 280, 280);//详情图 533 ctx.drawImage(self.data.local_img, 0, 0, 280, 280);//详情图
534 - console.log(111); 534 + // console.log(111);
535 // ctx.drawImage(self.data.local_qr_code, 220, 209, 60, 60);//二维码 535 // ctx.drawImage(self.data.local_qr_code, 220, 209, 60, 60);//二维码
536 ctx.drawImage('../../../images/qr_code.jpg', 180, 320, 60, 60);//小程序码 536 ctx.drawImage('../../../images/qr_code.jpg', 180, 320, 60, 60);//小程序码
537 //标题 537 //标题
538 ctx.setFontSize(12); 538 ctx.setFontSize(12);
539 ctx.setFillStyle('#000'); 539 ctx.setFillStyle('#000');
540 ctx.textAlign = "left"; 540 ctx.textAlign = "left";
541 - console.log(111); 541 + // console.log(111);
542 ctx.fillText(self.data.detail.title, 16, 306.5); 542 ctx.fillText(self.data.detail.title, 16, 306.5);
543 ctx.fillText(self.data.detail.title, 15.5, 307); 543 ctx.fillText(self.data.detail.title, 15.5, 307);
544 ctx.restore(); 544 ctx.restore();
@@ -599,7 +599,7 @@ Page({ @@ -599,7 +599,7 @@ Page({
599 // wx.hideLoading(); 599 // wx.hideLoading();
600 console.log("draw callback success"); 600 console.log("draw callback success");
601 self.setData({can_save: true,show_canvas: true}); 601 self.setData({can_save: true,show_canvas: true});
602 - console.log(self.data.can_save); 602 + // console.log(self.data.can_save);
603 }) 603 })
604 }, 604 },
605 //获取保存到相册的权限 605 //获取保存到相册的权限
@@ -666,7 +666,7 @@ Page({ @@ -666,7 +666,7 @@ Page({
666 666
667 }, 667 },
668 savePic() { 668 savePic() {
669 - console.log('是否能保存',this.data.can_save); 669 + // console.log('是否能保存',this.data.can_save);
670 if(this.data.can_save) { 670 if(this.data.can_save) {
671 wx.canvasToTempFilePath({ 671 wx.canvasToTempFilePath({
672 x: 0, 672 x: 0,
@@ -679,7 +679,7 @@ Page({ @@ -679,7 +679,7 @@ Page({
679 fileType: 'jpg', 679 fileType: 'jpg',
680 quality:1, 680 quality:1,
681 success: function (res) { 681 success: function (res) {
682 - console.log("get tempfilepath(success) is:", res.tempFilePath); 682 + // console.log("get tempfilepath(success) is:", res.tempFilePath);
683 //将图片保存在系统相册中(应先获取权限,) 683 //将图片保存在系统相册中(应先获取权限,)
684 wx.saveImageToPhotosAlbum({ 684 wx.saveImageToPhotosAlbum({
685 filePath: res.tempFilePath, 685 filePath: res.tempFilePath,
@@ -703,7 +703,7 @@ Page({ @@ -703,7 +703,7 @@ Page({
703 703
704 }, 704 },
705 onShareAppMessage: function(res) { 705 onShareAppMessage: function(res) {
706 - console.log('转发res',res); 706 + // console.log('转发res',res);
707 let self = this; 707 let self = this;
708 self.setData({show_canvas:false,}); 708 self.setData({show_canvas:false,});
709 if(res.from === 'button') { 709 if(res.from === 'button') {
@@ -91,7 +91,7 @@ Page({ @@ -91,7 +91,7 @@ Page({
91 let url = '/portal/Send/select'; 91 let url = '/portal/Send/select';
92 const list = []; 92 const list = [];
93 app.post(url, {}, {}).then((res) => { 93 app.post(url, {}, {}).then((res) => {
94 - console.log('获取分类', res); 94 + // console.log('获取分类', res);
95 res.data.meals.forEach((item) => { 95 res.data.meals.forEach((item) => {
96 list.push(item.name) 96 list.push(item.name)
97 }); 97 });
@@ -37,7 +37,7 @@ Page({ @@ -37,7 +37,7 @@ Page({
37 success: function(res) { 37 success: function(res) {
38 // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 38 // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
39 let tempFilePaths = res.tempFilePaths; 39 let tempFilePaths = res.tempFilePaths;
40 - console.log(tempFilePaths) 40 + // console.log(tempFilePaths)
41 //启动上传等待中... 41 //启动上传等待中...
42 wx.showToast({ 42 wx.showToast({
43 title: '正在上传...', 43 title: '正在上传...',
@@ -47,7 +47,7 @@ Page({ @@ -47,7 +47,7 @@ Page({
47 }) 47 })
48 let token = wx.getStorageSync('token'); 48 let token = wx.getStorageSync('token');
49 let uploadImgCount = 0; 49 let uploadImgCount = 0;
50 - console.log(tempFilePaths.length) 50 + // console.log(tempFilePaths.length)
51 for (let i = 0, h = tempFilePaths.length; i < h; i++) { 51 for (let i = 0, h = tempFilePaths.length; i < h; i++) {
52 wx.uploadFile({ 52 wx.uploadFile({
53 url: 'http://wmatchrd.com/portal/Index/upload', 53 url: 'http://wmatchrd.com/portal/Index/upload',
@@ -119,7 +119,7 @@ Page({ @@ -119,7 +119,7 @@ Page({
119 "token": wx.getStorageSync('token') 119 "token": wx.getStorageSync('token')
120 }; 120 };
121 app.post(url, params, {}).then((res) => { 121 app.post(url, params, {}).then((res) => {
122 - console.log('上传', res); 122 + // console.log('上传', res);
123 if (+res.code === 1) { 123 if (+res.code === 1) {
124 // self.setData({ 124 // self.setData({
125 // is_write: res.data.is_write,//1:已填写2:未填写 125 // is_write: res.data.is_write,//1:已填写2:未填写
@@ -140,7 +140,7 @@ Page({ @@ -140,7 +140,7 @@ Page({
140 "token": wx.getStorageSync('token') 140 "token": wx.getStorageSync('token')
141 }; 141 };
142 app.post(url, params, {}).then((res) => { 142 app.post(url, params, {}).then((res) => {
143 - console.log('是否填写个人信息', res); 143 + // console.log('是否填写个人信息', res);
144 if (+res.code === 1) { 144 if (+res.code === 1) {
145 self.setData({ 145 self.setData({
146 is_write:res.data.is_write,//1:已填写2:未填写 146 is_write:res.data.is_write,//1:已填写2:未填写
@@ -179,19 +179,19 @@ Page({ @@ -179,19 +179,19 @@ Page({
179 }, 179 },
180 //获取授权 180 //获取授权
181 login(e) { 181 login(e) {
182 - console.log('e', e); 182 + // console.log('e', e);
183 const self = this; 183 const self = this;
184 let url = '/portal/Login/getToken'; 184 let url = '/portal/Login/getToken';
185 wx.login({ 185 wx.login({
186 success: function (res) { 186 success: function (res) {
187 - console.log('获取code', res); 187 + // console.log('获取code', res);
188 app.post(url, { 188 app.post(url, {
189 code: res.code, 189 code: res.code,
190 user_nickname: e.detail.userInfo.nickName, 190 user_nickname: e.detail.userInfo.nickName,
191 avatar: e.detail.userInfo.avatarUrl, 191 avatar: e.detail.userInfo.avatarUrl,
192 sex: e.detail.userInfo.gender, 192 sex: e.detail.userInfo.gender,
193 }, {}).then((ret) => { 193 }, {}).then((ret) => {
194 - console.log('获取token', ret); 194 + // console.log('获取token', ret);
195 wx.setStorageSync('token', ret.data.token); 195 wx.setStorageSync('token', ret.data.token);
196 wx.setStorageSync('isLogin',true); 196 wx.setStorageSync('isLogin',true);
197 wx.showToast({title:'登录成功',icon:'success'}); 197 wx.showToast({title:'登录成功',icon:'success'});
@@ -243,7 +243,6 @@ Page({ @@ -243,7 +243,6 @@ Page({
243 }, 243 },
244 disableScroll() {}, 244 disableScroll() {},
245 handleBackground() { 245 handleBackground() {
246 - console.log('dianji');  
247 this.setData({is_showAnswer: false, is_showUserInfo: false,is_showRelease:false,is_showResult:false}) 246 this.setData({is_showAnswer: false, is_showUserInfo: false,is_showRelease:false,is_showResult:false})
248 }, 247 },
249 //首页-导航 248 //首页-导航
@@ -284,7 +283,7 @@ Page({ @@ -284,7 +283,7 @@ Page({
284 }, 283 },
285 //发布按钮 284 //发布按钮
286 release(e) { 285 release(e) {
287 - console.log('发布'); 286 + // console.log('发布');
288 const self = this; 287 const self = this;
289 if(!app.globalData.isLogin) { 288 if(!app.globalData.isLogin) {
290 wx.showToast({title: '还没登录,先去登录吧~', icon: 'none', 289 wx.showToast({title: '还没登录,先去登录吧~', icon: 'none',
@@ -370,12 +369,12 @@ Page({ @@ -370,12 +369,12 @@ Page({
370 "XX-token": wx.getStorageSync('token') 369 "XX-token": wx.getStorageSync('token')
371 }; 370 };
372 app.post(url, params, {}).then((res) => { 371 app.post(url, params, {}).then((res) => {
373 - console.log('获取首页', res); 372 + // console.log('获取首页', res);
374 this.setData({ 373 this.setData({
375 user:res.data.member 374 user:res.data.member
376 }); 375 });
377 wx.setStorageSync('is_vip',+this.data.user.type);//1:不是2:是vip 376 wx.setStorageSync('is_vip',+this.data.user.type);//1:不是2:是vip
378 - console.log('score',wx.getStorageSync('score')); 377 + // console.log('score',wx.getStorageSync('score'));
379 if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) { 378 if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) {
380 self.setData({show_gold_modal:true}) 379 self.setData({show_gold_modal:true})
381 }else if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')<80) { 380 }else if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')<80) {
@@ -35,7 +35,7 @@ Page({ @@ -35,7 +35,7 @@ Page({
35 pic:images_params, 35 pic:images_params,
36 }; 36 };
37 app.post(url, params, {}).then((res) => { 37 app.post(url, params, {}).then((res) => {
38 - console.log('投诉', res); 38 + // console.log('投诉', res);
39 if (+res.code === 1) { 39 if (+res.code === 1) {
40 wx.showToast({title:'投诉成功',icon:'none', 40 wx.showToast({title:'投诉成功',icon:'none',
41 success:function () { 41 success:function () {
@@ -86,7 +86,7 @@ Page({ @@ -86,7 +86,7 @@ Page({
86 success: function(res) { 86 success: function(res) {
87 uploadImgCount++; 87 uploadImgCount++;
88 let data = JSON.parse(res.data); 88 let data = JSON.parse(res.data);
89 - console.log('data',data); 89 + // console.log('data',data);
90 if (+data.code == 1) { 90 if (+data.code == 1) {
91 //服务器返回格式: { "Catalog": "testFolder", "FileName": "1.jpg", "Url": "https://test.com/1.jpg" } 91 //服务器返回格式: { "Catalog": "testFolder", "FileName": "1.jpg", "Url": "https://test.com/1.jpg" }
92 let images = that.data.images; 92 let images = that.data.images;
@@ -97,7 +97,7 @@ Page({ @@ -97,7 +97,7 @@ Page({
97 images: images, 97 images: images,
98 images_params:images_params, 98 images_params:images_params,
99 }); 99 });
100 - console.log('images---images_params',images,images_params); 100 + // console.log('images---images_params',images,images_params);
101 //如果是最后一张,则隐藏等待中 101 //如果是最后一张,则隐藏等待中
102 // if (uploadImgCount == tempFilePaths.length) { 102 // if (uploadImgCount == tempFilePaths.length) {
103 // wx.hideToast(); 103 // wx.hideToast();
@@ -154,7 +154,7 @@ Page({ @@ -154,7 +154,7 @@ Page({
154 * 生命周期函数--监听页面加载 154 * 生命周期函数--监听页面加载
155 */ 155 */
156 onLoad: function (options) { 156 onLoad: function (options) {
157 - console.log('options', options,JSON.parse(options.order_detail)); 157 + // console.log('options', options,JSON.parse(options.order_detail));
158 this.setData({order_id:+options.id?+options.id:'', 158 this.setData({order_id:+options.id?+options.id:'',
159 order_detail:JSON.parse(options.order_detail), 159 order_detail:JSON.parse(options.order_detail),
160 }) 160 })
@@ -9,7 +9,7 @@ Page({ @@ -9,7 +9,7 @@ Page({
9 data: {}, 9 data: {},
10 //去投诉 10 //去投诉
11 goComplain() { 11 goComplain() {
12 - console.log('tousu'); 12 + // console.log('tousu');
13 const order_detail = JSON.stringify(this.data.detail); 13 const order_detail = JSON.stringify(this.data.detail);
14 wx.navigateTo({url: '/pages/order/complain/complain?id=' + this.data.order_id 14 wx.navigateTo({url: '/pages/order/complain/complain?id=' + this.data.order_id
15 + '&order_detail=' + order_detail 15 + '&order_detail=' + order_detail
@@ -19,7 +19,7 @@ Page({ @@ -19,7 +19,7 @@ Page({
19 goDetail() { 19 goDetail() {
20 const id = +this.data.detail.activeId; 20 const id = +this.data.detail.activeId;
21 const type = +this.data.detail.type; 21 const type = +this.data.detail.type;
22 - console.log('type-id', type,id); 22 + // console.log('type-id', type,id);
23 if(type === 1) { //1是活动,2是拼餐 23 if(type === 1) { //1是活动,2是拼餐
24 wx.navigateTo({ 24 wx.navigateTo({
25 url: '/pages/activity/detail/detail?id=' + id, 25 url: '/pages/activity/detail/detail?id=' + id,
@@ -39,7 +39,7 @@ Page({ @@ -39,7 +39,7 @@ Page({
39 orderId: self.data.order_id, 39 orderId: self.data.order_id,
40 }; 40 };
41 app.post(url, params, {}).then((res) => { 41 app.post(url, params, {}).then((res) => {
42 - console.log('订单详情', res); 42 + // console.log('订单详情', res);
43 if (+res.code === 1) { 43 if (+res.code === 1) {
44 self.setData({ 44 self.setData({
45 detail: res.data.list, 45 detail: res.data.list,
@@ -89,7 +89,7 @@ Page({ @@ -89,7 +89,7 @@ Page({
89 orderId: self.data.order_id, 89 orderId: self.data.order_id,
90 }; 90 };
91 app.post(url, params, {}).then((res) => { 91 app.post(url, params, {}).then((res) => {
92 - console.log('完成订单', res); 92 + // console.log('完成订单', res);
93 if (+res.code === 1) { 93 if (+res.code === 1) {
94 wx.showToast({title:'订单已完成',icon:'none'}); 94 wx.showToast({title:'订单已完成',icon:'none'});
95 self.getOrderDetail(); 95 self.getOrderDetail();
@@ -106,7 +106,7 @@ Page({ @@ -106,7 +106,7 @@ Page({
106 * 生命周期函数--监听页面加载 106 * 生命周期函数--监听页面加载
107 */ 107 */
108 onLoad: function (options) { 108 onLoad: function (options) {
109 - console.log('options', options); 109 + // console.log('options', options);
110 this.setData({order_id:+options.id?+options.id:''}) 110 this.setData({order_id:+options.id?+options.id:''})
111 }, 111 },
112 112
@@ -346,7 +346,7 @@ Page({ @@ -346,7 +346,7 @@ Page({
346 // cate: res.data.cate, 346 // cate: res.data.cate,
347 }); 347 });
348 } 348 }
349 - console.log('score',wx.getStorageSync('score')); 349 + // console.log('score',wx.getStorageSync('score'));
350 if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) { 350 if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) {
351 self.setData({show_gold_modal:true}) 351 self.setData({show_gold_modal:true})
352 }else if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')<80) { 352 }else if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')<80) {