diff --git a/src/common/constant.js b/src/common/constant.js index 91d1904..61d5776 100644 --- a/src/common/constant.js +++ b/src/common/constant.js @@ -34,6 +34,9 @@ export const CDN_UPLOAD_IMG = `${UPLOAD_CDN_URL || ''}` //appid export const WX_APPID = 'wx68d92d7cbf0b6963' +//支付码单跳转链接 +export const PAY_H5_CODE_URL = CURRENT_ENV.includes('production') ? 'https://www.zzfzyc.com/cashier' : 'https://test.zzfzyc.com/cashier' + //场景值 export const SCENE = { SearchScene: 0, //商城面料搜索 diff --git a/src/pages/order/components/scanPay/index.tsx b/src/pages/order/components/scanPay/index.tsx index 0e84828..b7d841e 100644 --- a/src/pages/order/components/scanPay/index.tsx +++ b/src/pages/order/components/scanPay/index.tsx @@ -9,6 +9,7 @@ import { formatDateTime, formatHashTag, formatImgUrl, formatPriceDiv, formatWeig import useCheckAuthorize from '@/use/useCheckAuthorize' import { GetPayCode } from '@/api/onlinePay' import LoadingCard from '@/components/loadingCard' +import { PAY_H5_CODE_URL } from '@/common/constant' type Param = { show?: true | false @@ -71,7 +72,7 @@ export default memo(({ show = true, onClose, company, orderInfo }: Param) => { order_total_length: (orderInfo.total_number / 100).toString(), //订单布匹长度 order_total_price: formatPriceDiv(orderInfo.bill_total_sale_price).toString(), //订单价格 order_total_num: orderInfo.total_number + '', - qrcode: '', //跳转链接 + qrcode: `${PAY_H5_CODE_URL}?sale_order_no=${orderInfo.order_no}`, //跳转链接 order_total_weight: formatWeightDiv(orderInfo.total_weight || orderInfo.total_estimate_weight).toString(), //订单布匹重量 list: lists, show_qrcode: true, //是否显示码单