去除打印

This commit is contained in:
2025-09-28 16:29:08 +08:00
parent 87bb23a9a4
commit 612dd4eac1
10 changed files with 0 additions and 16 deletions

View File

@@ -12,7 +12,6 @@ Component({
}, },
// observers: { // observers: {
// time: function(newValue) { // time: function(newValue) {
// console.log("time newValue", newValue)
// if (!newValue) { // if (!newValue) {
// return; // return;
// } // }

View File

@@ -87,7 +87,6 @@ Page({
}, },
fail: function (e) { fail: function (e) {
// alertError("打开失败") // alertError("打开失败")
// console.log('打开失败错误为', e)
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '打开失败,请复制链接后通过浏览器打开', content: '打开失败,请复制链接后通过浏览器打开',

View File

@@ -23,7 +23,6 @@ Component({
}, },
observers: { observers: {
"timeProps": function(newValue) { "timeProps": function(newValue) {
// console.log("newValue", newValue)
this.setData({ this.setData({
time: newValue, time: newValue,
// startTime: newValue // startTime: newValue
@@ -87,7 +86,6 @@ Component({
alertSuccess("录入成功") alertSuccess("录入成功")
this.setData({ number: null, time: null, startTime: null }) this.setData({ number: null, time: null, startTime: null })
} else { } else {
console.log("timeProps", timeProps)
const { code, message } = await updateReading(park, meter, new Date(timeProps).getTime() * 1000, { const { code, message } = await updateReading(park, meter, new Date(timeProps).getTime() * 1000, {
overall: `${number}`, overall: `${number}`,
flat: `${number}`, flat: `${number}`,

View File

@@ -19,7 +19,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log("options", options)
const { meter, park, routeId, disabled } = options; const { meter, park, routeId, disabled } = options;
const that = this; const that = this;
this.setData({ this.setData({

View File

@@ -23,7 +23,6 @@ Component({
methods: { methods: {
jumpToHistory() { jumpToHistory() {
const { meterInfo, routeId, disabled } = this.data; const { meterInfo, routeId, disabled } = this.data;
console.log("meterInfo", meterInfo)
wx.navigateTo({ wx.navigateTo({
url: `/pages/readingHistory/index?meter=${meterInfo?.id}&park=${meterInfo?.parkId}&routeId=${routeId}&disabled=${disabled}`, url: `/pages/readingHistory/index?meter=${meterInfo?.id}&park=${meterInfo?.parkId}&routeId=${routeId}&disabled=${disabled}`,
}) })

View File

@@ -108,14 +108,12 @@ Component({
}, },
// onScroll(e) { // onScroll(e) {
// // 实时更新当前滚动位置,可用于更复杂的边界判断 // // 实时更新当前滚动位置,可用于更复杂的边界判断
// console.log("e", e)
// this.setData({ // this.setData({
// scrollLeft: e.detail.scrollLeft // scrollLeft: e.detail.scrollLeft
// }); // });
// }, // },
handleScrollLeft() { handleScrollLeft() {
console.log("left--------------")
// 向左滚动:减少 scrollLeft但不能小于0 // 向左滚动:减少 scrollLeft但不能小于0
const newScrollLeft = Math.max(0, this.data.scrollLeft - 200); const newScrollLeft = Math.max(0, this.data.scrollLeft - 200);
this.setData({ this.setData({
@@ -124,7 +122,6 @@ Component({
}, },
handleScrollRight() { handleScrollRight() {
console.log("right-----------------")
// 向右滚动:增加 scrollLeft但不能超过 maxScrollLeft // 向右滚动:增加 scrollLeft但不能超过 maxScrollLeft
const newScrollLeft = Math.min(this.data.maxScrollLeft, this.data.scrollLeft + 200); const newScrollLeft = Math.min(this.data.maxScrollLeft, this.data.scrollLeft + 200);
this.setData({ this.setData({

View File

@@ -30,8 +30,6 @@ Component({
mediaType: ['image'], mediaType: ['image'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: async function(res) { success: async function(res) {
// console.log(res.tempFiles[0].tempFilePath)
// console.log(res.tempFiles[0].size)
wx.cropImage({ wx.cropImage({
src: res.tempFiles[0].tempFilePath, // 图片路径 src: res.tempFiles[0].tempFilePath, // 图片路径
cropScale: '16:9', // 裁剪比例 cropScale: '16:9', // 裁剪比例

View File

@@ -25,9 +25,6 @@ Component({
} }
this.checkFinish(newValue) this.checkFinish(newValue)
}, },
"meterInfo": function(newValue) {
console.log("workStatus------------", newValue)
}
}, },
/** /**
* 组件的初始数据 * 组件的初始数据

View File

@@ -34,7 +34,6 @@ export const uploadOcrFile = (filePath) => {
authorization: 'Bearer ' + wx.getStorageSync("token") authorization: 'Bearer ' + wx.getStorageSync("token")
}, },
success: (res) => { success: (res) => {
console.log("res", res)
resolve(res?.data ? JSON.parse(res?.data) : res?.data); resolve(res?.data ? JSON.parse(res?.data) : res?.data);
}, },
fail: (err) => { fail: (err) => {

View File

@@ -146,7 +146,6 @@ const CUD = async function (method, uri, data = null) {
options.data = data; options.data = data;
} }
const response = await request(options); const response = await request(options);
console.log("response---------",response)
return parseResponse(response); return parseResponse(response);
}; };