Commit 4c09d713 by zhangxw

门店收款多凭证联调

1 parent 76c8df72
......@@ -140,7 +140,7 @@ Component({
},
input(e) {
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({
outTradeNo: val
})
......
import { env } from '~/config'
export default {
data: {
menu: [
......@@ -57,7 +58,22 @@ export default {
})
} else {
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 {
wx.$router.go(item.url)
}
......
......@@ -144,7 +144,7 @@ Page({
orderCode,
payType: selectPayType
}
if (payVoucherList && outTradeNo) {
if (payVoucherList?.length && outTradeNo) {
obj.payVoucherList = payVoucherList.map(v => {return v?.url})
obj.outTradeNo = outTradeNo
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!