Commit 4c09d713 by zhangxw

门店收款多凭证联调

1 parent 76c8df72
...@@ -140,7 +140,7 @@ Component({ ...@@ -140,7 +140,7 @@ Component({
}, },
input(e) { input(e) {
let { value } = e.detail let { value } = e.detail
let val = value.replace(/[^\a-\z\A-\Z0-9\.\,\?\<\>\。\,\-\——\=\;\;\/\'\"\’\‘\?\“\”\@\!\!\+\$]/g, '') let val = value.replace(/[^\a-\z\A-\Z0-9\.\,\?\<\>\。\,\-\——\=\;\;\/\'\"\’\‘\?\“\”\@\!\!\+(\s?)\$]/g, '')
this.setData({ this.setData({
outTradeNo: val outTradeNo: val
}) })
......
import { env } from '~/config'
export default { export default {
data: { data: {
menu: [ menu: [
...@@ -57,7 +58,22 @@ export default { ...@@ -57,7 +58,22 @@ export default {
}) })
} else { } else {
if (item.isH5) { if (item.isH5) {
wx.$router.jumpH5(item.url) let jumpLocation = ''
switch (env) {
case 'develop':
jumpLocation = ''
break
case 'trial':
jumpLocation = ''
break
case 'release':
jumpLocation = ''
break
default:
jumpLocation = ''
break
}
wx.$router.jumpH5(jumpLocation)
} else { } else {
wx.$router.go(item.url) wx.$router.go(item.url)
} }
......
...@@ -144,7 +144,7 @@ Page({ ...@@ -144,7 +144,7 @@ Page({
orderCode, orderCode,
payType: selectPayType payType: selectPayType
} }
if (payVoucherList && outTradeNo) { if (payVoucherList?.length && outTradeNo) {
obj.payVoucherList = payVoucherList.map(v => {return v?.url}) obj.payVoucherList = payVoucherList.map(v => {return v?.url})
obj.outTradeNo = outTradeNo obj.outTradeNo = outTradeNo
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!