lrf 1 năm trước cách đây
mục cha
commit
934b4de572

+ 0 - 1
miniprogram_npm/vant-weapp/radio/index.js

@@ -34,7 +34,6 @@ VantComponent({
             instance.$emit('change', value);
         },
         onChange(event) {
-            console.log(event);
             this.emitChange(this.data.name);
         },
         onClickLabel() {

+ 2 - 2
pages/calorie/index.js

@@ -15,11 +15,11 @@ Page({
   },
   // 提交
   formSubmit: function (e) {
-    console.log('form发生了submit事件,携带数据为:', e.detail.value)
+    // console.log('form发生了submit事件,携带数据为:', e.detail.value)
   },
   // 重置
   formReset: function (e) {
-    console.log('form发生了reset事件,携带数据为:', e.detail.value)
+    // console.log('form发生了reset事件,携带数据为:', e.detail.value)
     this.setData({ form: {} })
   },
   // 返回页面

+ 0 - 1
pages/food/index.js

@@ -83,7 +83,6 @@ Page({
       data.two = val.arrange.lunch.length > 0 ? 30 * val.arrange.lunch.length : 30;
       data.thr = val.arrange.dinner.length > 0 ? 30 * val.arrange.dinner.length : 30;
       data.total = data.one + data.two + data.thr;
-      console.log(data);
       this.setData({ style: data })
 
     }

+ 0 - 1
pages/home/index.js

@@ -90,7 +90,6 @@ Page({
           method: 'POST',
           data,
           success: (res) => {
-            console.log(res)
             const setpInfo = res.data?.data;
             if (stepInfo) this.setData({ step: stepInfo.step });
           },

+ 0 - 1
pages/news/index.js

@@ -32,7 +32,6 @@ Page({
     }
   },
   detail: function (data) {
-    console.log(data)
     wx.navigateTo({
       url: `/pages/news/detail?id=${data.detail.id}`,
     });

+ 1 - 9
pages/reserve/index.js

@@ -43,7 +43,6 @@ Page({
   },
   // 选择日期
   bindDateChange: async function (e) {
-    console.log('picker发送选择改变,携带值为', e.detail.value);
     this.setData({ today: e.detail.value });
     await this.searchDate();
     await this.searchOrder();
@@ -73,17 +72,14 @@ Page({
   // 选择餐数量
   // 早餐,午餐,晚餐
   oneChange: function (e) {
-    console.log(e);
     const { data, type } = e.target.dataset;
     const { detail } = e;
     this.menuNumOpera(type, detail, data._id);
   },
   // 增加
   onePlus: function (e) {
-    console.log('增加');
     let data = e.target.dataset.data;
     let type = this.data.infoTab;
-    console.log(typeof type);
     let initMealData = { list: [], reserve: 0 };
     let meal;
     let mw;
@@ -135,10 +131,8 @@ Page({
    */
   menuNumOpera(type, num, id) {
     let list = this.data[`${type}List`];
-    console.log(list);
     const li = list.findIndex((f) => f._id === id);
     const ld = list.find((f) => f._id === id);
-    console.log(li, id);
     if (ld) {
       ld.num = num;
       list.splice(li, 1, ld);
@@ -150,7 +144,6 @@ Page({
 
   // 减少
   oneMinus: function (e) {
-    console.log('减少');
     let data = e.target.dataset.data;
     let type = this.data.infoTab;
     let initMealData = { list: [], reserve: 0 };
@@ -287,11 +280,10 @@ Page({
    * @param {Array} list 某餐的内容
    */
   dealOrderToMenu(type, list) {
-    console.log(type, list);
     if (list.length <= 0) return;
     const menu = this.data[`${type}List`];
     if (!menu) {
-      console.log('没找到菜单');
+      console.error('没找到菜单');
       return;
     }
     for (const o of list) {

+ 0 - 3
utils/login.js

@@ -1,14 +1,12 @@
 module.exports = {
   toLogin() {
     return new Promise((resolve, reject) => {
-      console.log('line 4 in function:');
       // 登录
       wx.login({
         success: res => {
           const app = getApp()
           const { code: js_code } = res
           // 发送 res.code 到后台换取 openId, sessionKey, unionId
-          console.log(`${app.globalData.publicUrl}/st/api/weixin/appAuth?js_code=` + js_code);
           wx.request({
             url: `${app.globalData.publicUrl}/st/api/weixin/appAuth?js_code=` + js_code,
             method: "get",
@@ -20,7 +18,6 @@ module.exports = {
               }
             },
             error: err => {
-              console.log(err);
               wx.showToast({
                 title: err.msg,
                 icon: 'error',