feat(新增收银台跳转链接):

This commit is contained in:
czm 2022-10-20 16:22:52 +08:00
parent fe2c60c202
commit d4785f07a6
2 changed files with 5 additions and 1 deletions

View File

@ -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, //商城面料搜索

View File

@ -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, //是否显示码单