去除打印
This commit is contained in:
@@ -12,7 +12,6 @@ Component({
|
||||
},
|
||||
// observers: {
|
||||
// time: function(newValue) {
|
||||
// console.log("time newValue", newValue)
|
||||
// if (!newValue) {
|
||||
// return;
|
||||
// }
|
||||
|
@@ -87,7 +87,6 @@ Page({
|
||||
},
|
||||
fail: function (e) {
|
||||
// alertError("打开失败")
|
||||
// console.log('打开失败错误为', e)
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '打开失败,请复制链接后通过浏览器打开',
|
||||
|
@@ -23,7 +23,6 @@ Component({
|
||||
},
|
||||
observers: {
|
||||
"timeProps": function(newValue) {
|
||||
// console.log("newValue", newValue)
|
||||
this.setData({
|
||||
time: newValue,
|
||||
// startTime: newValue
|
||||
@@ -87,7 +86,6 @@ Component({
|
||||
alertSuccess("录入成功")
|
||||
this.setData({ number: null, time: null, startTime: null })
|
||||
} else {
|
||||
console.log("timeProps", timeProps)
|
||||
const { code, message } = await updateReading(park, meter, new Date(timeProps).getTime() * 1000, {
|
||||
overall: `${number}`,
|
||||
flat: `${number}`,
|
||||
|
@@ -19,7 +19,6 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
console.log("options", options)
|
||||
const { meter, park, routeId, disabled } = options;
|
||||
const that = this;
|
||||
this.setData({
|
||||
|
@@ -23,7 +23,6 @@ Component({
|
||||
methods: {
|
||||
jumpToHistory() {
|
||||
const { meterInfo, routeId, disabled } = this.data;
|
||||
console.log("meterInfo", meterInfo)
|
||||
wx.navigateTo({
|
||||
url: `/pages/readingHistory/index?meter=${meterInfo?.id}&park=${meterInfo?.parkId}&routeId=${routeId}&disabled=${disabled}`,
|
||||
})
|
||||
|
@@ -108,14 +108,12 @@ Component({
|
||||
},
|
||||
// onScroll(e) {
|
||||
// // 实时更新当前滚动位置,可用于更复杂的边界判断
|
||||
// console.log("e", e)
|
||||
// this.setData({
|
||||
// scrollLeft: e.detail.scrollLeft
|
||||
// });
|
||||
// },
|
||||
|
||||
handleScrollLeft() {
|
||||
console.log("left--------------")
|
||||
// 向左滚动:减少 scrollLeft,但不能小于0
|
||||
const newScrollLeft = Math.max(0, this.data.scrollLeft - 200);
|
||||
this.setData({
|
||||
@@ -124,7 +122,6 @@ Component({
|
||||
},
|
||||
|
||||
handleScrollRight() {
|
||||
console.log("right-----------------")
|
||||
// 向右滚动:增加 scrollLeft,但不能超过 maxScrollLeft
|
||||
const newScrollLeft = Math.min(this.data.maxScrollLeft, this.data.scrollLeft + 200);
|
||||
this.setData({
|
||||
|
@@ -30,8 +30,6 @@ Component({
|
||||
mediaType: ['image'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success: async function(res) {
|
||||
// console.log(res.tempFiles[0].tempFilePath)
|
||||
// console.log(res.tempFiles[0].size)
|
||||
wx.cropImage({
|
||||
src: res.tempFiles[0].tempFilePath, // 图片路径
|
||||
cropScale: '16:9', // 裁剪比例
|
||||
|
@@ -25,9 +25,6 @@ Component({
|
||||
}
|
||||
this.checkFinish(newValue)
|
||||
},
|
||||
"meterInfo": function(newValue) {
|
||||
console.log("workStatus------------", newValue)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 组件的初始数据
|
||||
|
@@ -34,7 +34,6 @@ export const uploadOcrFile = (filePath) => {
|
||||
authorization: 'Bearer ' + wx.getStorageSync("token")
|
||||
},
|
||||
success: (res) => {
|
||||
console.log("res", res)
|
||||
resolve(res?.data ? JSON.parse(res?.data) : res?.data);
|
||||
},
|
||||
fail: (err) => {
|
||||
|
@@ -146,7 +146,6 @@ const CUD = async function (method, uri, data = null) {
|
||||
options.data = data;
|
||||
}
|
||||
const response = await request(options);
|
||||
console.log("response---------",response)
|
||||
return parseResponse(response);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user