diff --git a/pages/process/order-price/index.js b/pages/process/order-price/index.js index fb47ec0..bb17456 100644 --- a/pages/process/order-price/index.js +++ b/pages/process/order-price/index.js @@ -102,7 +102,13 @@ Scene({ this.data.form.inspectionRemark = e.detail }, paddingOrder: function(){ - this.setData({ ['form.isWithoutTare']: !this.data.form.isWithoutTare }) + if(!this.data.form.isWithoutTare){ + Dialog.confirm({ title: '温馨提示', message: '为了防止定价流程异常,请耐心查看纸品,是否确定无皮过磅?' }).then(() => { + this.setData({ ['form.isWithoutTare']: !this.data.form.isWithoutTare }) + }) + } else { + this.setData({ ['form.isWithoutTare']: !this.data.form.isWithoutTare }) + } }, cancelOrder: function(e){ Dialog.confirm({ title: '温馨提示', message: '确定取消该订单?' }).then(() => { diff --git a/workers/process.js b/workers/process.js index 3ddd6d5..f7bbfb1 100644 --- a/workers/process.js +++ b/workers/process.js @@ -1,9 +1,9 @@ -// worker的优化计算 +// worker的优化计算,暂时没用到; const math = require('../utils/math') -worker.onMessage(function(res){ +worker.onMessage(function (res) { console.log('这是worker内部线程打印的') console.log(res) let sum = math.plus(res.x, res.y) - worker.postMessage({ sum : sum }) + worker.postMessage({ sum }) }) \ No newline at end of file