diff --git a/pages/process/order-info/index.js b/pages/process/order-info/index.js index 395ac08..439d227 100644 --- a/pages/process/order-info/index.js +++ b/pages/process/order-info/index.js @@ -79,6 +79,13 @@ Scene({ this.setData({ ['form.checking']: !this.data.form.checking }) }, paymentOrder: function(){ + let pages = getCurrentPages() //当前页面栈 + for (let index = 0; index < pages.length; index++) { + if (pages[index].route.indexOf('pages/process/payment/index') >= 0) { + wx.navigateBack() + return + } + } const that = this wx.navigateTo({ url: `/pages/process/payment/index?channel=1`, diff --git a/pages/process/payment/index.js b/pages/process/payment/index.js index 537ea3f..1622fc6 100644 --- a/pages/process/payment/index.js +++ b/pages/process/payment/index.js @@ -1,7 +1,7 @@ // pages/process/payment/index.js import Scene from '../../index/scene' import Dialog from '../../../components/dialog/dialog' -import { getPeymentList, paymentOrder, getFactoryOrderInfo, getSideOrderInfo, getCustomerInfo } from "../../../api/saas" +import { getPeymentList, paymentOrder, getSideOrderInfo, getCustomerInfo } from "../../../api/saas" const event = require('../../../utils/event') const util = require('../../../utils/util') const math = require('../../../utils/math') //导入模块 @@ -29,10 +29,7 @@ Scene({ payRemark: '' }, settleType: '1', - requesting: false, - popup: false, - show: false, - detail: null + requesting: false }, /** * 生命周期函数--监听页面加载 @@ -64,10 +61,6 @@ Scene({ var productName = '' for (let index = 0; index < result.data.productCategoryInfos.length; index++) { const element = result.data.productCategoryInfos[index] - // element.fileList = [] - // for (let k = 0; k < element.weightNoteImages.length; k++) { - // element.fileList.push({url: element.weightNoteImages[k]}) - // } if(util.isEmpty(productName)){ productName = element.productCategoryName } else { @@ -155,16 +148,9 @@ Scene({ var item = this.data.orderList[e.currentTarget.dataset.index] if(!util.isEmpty(item.scrapPaperReceiptId)){ wx.navigateTo({ url: `/pages/process/outside-info/index?id=${item.scrapPaperReceiptId}` }) - return + } else { + wx.navigateTo({ url: `/pages/process/order-info/index?id=${item.id}` }) } - wx.showLoading({ title: '正在获取', mask: true }) - getFactoryOrderInfo(item.id).then(result => { - this.setData({ popup: true, detail: result.data }) - wx.hideLoading() - }).catch(err => { - wx.hideLoading() - util.showToast(err) - }) }, bindInput: function (e) { this.data.params[e.target.id] = e.detail.value @@ -189,7 +175,6 @@ Scene({ }).catch(err => { wx.hideLoading() this.data.requesting = false - console.log(err) if(err.indexOf('用户未实名') >= 0){ Dialog.confirm({ title: '温馨提示', message: '您还没有实名认证,无法使用千鸟代付,现在去实名认证?' }).then(() => { wx.navigateTo({ url: '/pages/setting/authory/index' }) @@ -224,9 +209,6 @@ Scene({ }).catch(err => { }) }, - onPopupClose: function(){ - this.setData({ popup: false, show: false}) - }, viewImage: function (e) { var imgList = [] if(e.currentTarget.dataset.type == 0){ diff --git a/pages/process/payment/index.json b/pages/process/payment/index.json index ed7a765..d98303a 100644 --- a/pages/process/payment/index.json +++ b/pages/process/payment/index.json @@ -6,7 +6,6 @@ "van-radio": "/components/radio/index", "van-radio-group": "/components/radio-group/index", "van-image": "/components/image/index", - "van-popup": "/components/popup/index", "van-dialog": "/components/dialog/index", "submit-layout": "/components/submit-layout/index", "notification": "/pages/message/notification/index" diff --git a/pages/process/payment/index.wxml b/pages/process/payment/index.wxml index 605fad6..205cb66 100644 --- a/pages/process/payment/index.wxml +++ b/pages/process/payment/index.wxml @@ -76,131 +76,6 @@ - - - 订单详情 - ({{detail.id}}) - - - - - 客户姓名 - {{detail.factoryCustomerName}} - - - - - 车牌号码 - {{detail.plateNumber || '- -'}} - - - - - 废纸品类 - {{detail.productName}} - - - - - 毛重(公斤) - {{detail.totalWeight}} - - - - - 皮重(公斤) - {{detail.emptyWeight || '- -'}} - - - - - 净重(公斤) - {{detail.netWeight || '- -'}} - - - - - 扣重(公斤) - -{{detail.deductWeight}} - - - - - 扣点(%) - {{detail.deductPercent}} - - - - - 定价员 - {{detail.inspectorName || '- -'}} - - - - - 定价时间 - {{detail.inspectionTime || ''}} - - - - - 过毛重照片 - - - - - - - - - - - - 过皮重照片 - - - - - - - - - - - - 备注 - {{detail.inspectionRemark}} - - - - - 单价(元/公斤) - {{formate.formateAmount(detail.settleUnitPrice)}} - - - - - 结算金额(元) - {{formate.formateAmount(detail.settlePrice) || '- -'}} - - - - - 下单时间 - {{detail.createTime || ''}} - - - - - 订单编号 - {{detail.id}} - - - - -