diff --git a/src/api/onlinePay.ts b/src/api/onlinePay.ts index 3f9da49..77bf0a5 100644 --- a/src/api/onlinePay.ts +++ b/src/api/onlinePay.ts @@ -4,57 +4,57 @@ import { useRequest } from '@/use/useHttp' /** * 线上获取在线支付二维码 */ -export const GetPayCode = () => { - return useRequest({ - url: '/xima-caphtml/caphtml', - base_url: CAP_HTML_TO_IMAGE_BASE_URL, - method: 'post', - }) -} - -// 本地获取二维码 // export const GetPayCode = () => { // return useRequest({ -// url: '/caphtml', +// url: '/xima-caphtml/caphtml', // base_url: CAP_HTML_TO_IMAGE_BASE_URL, // method: 'post', // }) // } +// 本地获取二维码 +export const GetPayCode = () => { + return useRequest({ + url: '/caphtml', + base_url: CAP_HTML_TO_IMAGE_BASE_URL, + method: 'post', + }) +} + /** * 获取退款码单 */ -export const GetReturnPayCode = () => { - return useRequest({ - url: '/xima-caphtml/caphtml-return', - base_url: CAP_HTML_TO_IMAGE_BASE_URL, - method: 'post', - }) -} - -// 本地获取退款码单 // export const GetReturnPayCode = () => { // return useRequest({ -// url: '/caphtml-return', +// url: '/xima-caphtml/caphtml-return', // base_url: CAP_HTML_TO_IMAGE_BASE_URL, // method: 'post', // }) // } +// 本地获取退款码单 +export const GetReturnPayCode = () => { + return useRequest({ + url: '/caphtml-return', + base_url: CAP_HTML_TO_IMAGE_BASE_URL, + method: 'post', + }) +} + /** * 获取传统码单 */ -export const GetCodePic = () => { - return useRequest({ - url: '/xima-caphtml/caphtml-order', - base_url: CAP_HTML_TO_IMAGE_BASE_URL, - method: 'post', - }) -} // export const GetCodePic = () => { // return useRequest({ -// url: '/caphtml-order', +// url: '/xima-caphtml/caphtml-order', // base_url: CAP_HTML_TO_IMAGE_BASE_URL, // method: 'post', // }) // } +export const GetCodePic = () => { + return useRequest({ + url: '/caphtml-order', + base_url: CAP_HTML_TO_IMAGE_BASE_URL, + method: 'post', + }) +} diff --git a/src/common/constant.ts b/src/common/constant.ts index 74bd374..fb5b418 100644 --- a/src/common/constant.ts +++ b/src/common/constant.ts @@ -27,8 +27,8 @@ export const SEARCH_EMPTY_IMAGE = `${IMG_CND_Prefix}/search_empty.png` export const COLLECTION_EMPTY_IMAGE = `${IMG_CND_Prefix}/mall/collection_empty.png` // 在线支付图片baseUrl -export const CAP_HTML_TO_IMAGE_BASE_URL = CURRENT_CAP_HTML_TO_IMAGE_BASE_URL -// export const CAP_HTML_TO_IMAGE_BASE_URL = 'http://192.168.1.21:8081' +// export const CAP_HTML_TO_IMAGE_BASE_URL = CURRENT_CAP_HTML_TO_IMAGE_BASE_URL +export const CAP_HTML_TO_IMAGE_BASE_URL = 'http://192.168.1.21:8081' // 获取CND资源 export const getCDNSource = (suffix: string) => { diff --git a/src/components/viewCodeList/index.tsx b/src/components/viewCodeList/index.tsx index 3a8abd8..4ac7262 100644 --- a/src/components/viewCodeList/index.tsx +++ b/src/components/viewCodeList/index.tsx @@ -116,6 +116,9 @@ export default (props: Props) => { show_pay_type: false, // 是否显示结算方式 show_order_no: showStatus(props.orderObj.show_order_no), // 是否显示订单号 show_shipment_mode: showStatus(props.orderObj.show_shipment_mode), // 是否显示发货方式 + show_tips: true, + tips: `温馨提示:请核对本单后验收, 如发现质量问题,请于收到货之日起3天内与平台客服联系协商解决,逾期不作处理即表示购方默认对货物无异议;购方确认无任何问题方可裁剪/加工,一经裁剪,缩水等工艺,平台概不负责; + 看布购货,请先试缩水,并注意分缸裁布!如需撞色拼接,请先试色牢度。非质量问题,恕不退换,谢谢合作!`, } const res = await fetchData(query)