| | |
| | | import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js"; |
| | | import invoices from "@/pages/order/invoice/setInvoice"; |
| | | import { mapState } from "vuex"; |
| | | import { getSessionId, userAction } from "@/api/userAction.js"; |
| | | export default { |
| | | onLoad: function (val) { |
| | | this.routerVal = val; |
| | | this.actionParam.pageParams = JSON.stringify(val) |
| | | }, |
| | | components: { |
| | | invoices, |
| | |
| | | storeAddress: "", |
| | | |
| | | originOrderData:"", // 原始订单数据 |
| | | pageSessionNo:"", |
| | | sendOnShow:false, |
| | | actionParam:{ |
| | | sessionId:'', |
| | | actionType:"PAGE", |
| | | joinType:"SELF", |
| | | pageCode:"FILL_ORDER", |
| | | pageParams:"{}", |
| | | pageStatus:"JOIN", |
| | | pageType:"DETAIL" |
| | | } |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | return true; //阻止默认返回行为 |
| | | } |
| | | }, |
| | | |
| | | onUnload() { |
| | | let param = this.actionParam; |
| | | if (this.sendOnShow)return |
| | | param.pageStatus = "LEAVE" |
| | | userAction(param) |
| | | }, |
| | | onHide() { |
| | | this.startHidenTime = Date.now() |
| | | let param = this.actionParam; |
| | | this.sendOnShow = true; |
| | | param.pageStatus = "LEAVE" |
| | | userAction(param) |
| | | }, |
| | | async onShow() { |
| | | getSessionId().then(res=>{ |
| | | this.pageSessionNo = res.data.data |
| | | if(this.pageSessionNo){ |
| | | let param = this.actionParam; |
| | | param.sessionId = this.pageSessionNo |
| | | userAction(param) |
| | | } |
| | | }) |
| | | // 判断是否存在写过备注信息的商品 |
| | | if (this.remark && this.remark.length > 0) { |
| | | this.remarkFlag = true; |