✨ feat(新增收银台跳转链接):
This commit is contained in:
parent
fe2c60c202
commit
d4785f07a6
@ -34,6 +34,9 @@ export const CDN_UPLOAD_IMG = `${UPLOAD_CDN_URL || ''}`
|
|||||||
//appid
|
//appid
|
||||||
export const WX_APPID = 'wx68d92d7cbf0b6963'
|
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 = {
|
export const SCENE = {
|
||||||
SearchScene: 0, //商城面料搜索
|
SearchScene: 0, //商城面料搜索
|
||||||
|
@ -9,6 +9,7 @@ import { formatDateTime, formatHashTag, formatImgUrl, formatPriceDiv, formatWeig
|
|||||||
import useCheckAuthorize from '@/use/useCheckAuthorize'
|
import useCheckAuthorize from '@/use/useCheckAuthorize'
|
||||||
import { GetPayCode } from '@/api/onlinePay'
|
import { GetPayCode } from '@/api/onlinePay'
|
||||||
import LoadingCard from '@/components/loadingCard'
|
import LoadingCard from '@/components/loadingCard'
|
||||||
|
import { PAY_H5_CODE_URL } from '@/common/constant'
|
||||||
|
|
||||||
type Param = {
|
type Param = {
|
||||||
show?: true | false
|
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_length: (orderInfo.total_number / 100).toString(), //订单布匹长度
|
||||||
order_total_price: formatPriceDiv(orderInfo.bill_total_sale_price).toString(), //订单价格
|
order_total_price: formatPriceDiv(orderInfo.bill_total_sale_price).toString(), //订单价格
|
||||||
order_total_num: orderInfo.total_number + '',
|
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(), //订单布匹重量
|
order_total_weight: formatWeightDiv(orderInfo.total_weight || orderInfo.total_estimate_weight).toString(), //订单布匹重量
|
||||||
list: lists,
|
list: lists,
|
||||||
show_qrcode: true, //是否显示码单
|
show_qrcode: true, //是否显示码单
|
||||||
|
Loading…
x
Reference in New Issue
Block a user