订单列表页面完成
This commit is contained in:
@@ -16,8 +16,8 @@ export const BASE_URL = `http://192.168.1.30:40001/lymarket` // 发
|
||||
export const GET_UPLOAD_SIGN = `/upyun/getsign` // 请求签名 url
|
||||
export const UPLOAD_CDN_URL = `https://v0.api.upyun.com/`
|
||||
|
||||
// 前缀
|
||||
export const IMG_CND_Prefix = "http://test.cdn.zzfzyc.com"
|
||||
// cdn
|
||||
export const IMG_CND_Prefix = CURRENT_ENV.includes('development')? "https://test.cdn.zzfzyc.com":"https://cdn.zzfzyc.com"
|
||||
|
||||
|
||||
// 上传图片视频
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
export const ORDER_STATUS = {
|
||||
0:{value:0, label:'申请中'},
|
||||
1:{value:1, label:'配布中'},
|
||||
2:{value:2, label:'待发货'},
|
||||
3:{value:3, label:'已发货'},
|
||||
4:{value:4, label:'已完成'}
|
||||
}
|
||||
@@ -141,6 +141,6 @@ export const toDecimal2 = (x) => {
|
||||
* @param {*} url
|
||||
* @returns
|
||||
*/
|
||||
export const formatImgUrl = (url) => {
|
||||
return url?IMG_CND_Prefix + url:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F811%2F021315104H2%2F150213104H2-3-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651817947&t=5467a207f845ddfc7737d55934e6b26d'
|
||||
export const formatImgUrl = (url, suffix="!w200") => {
|
||||
return url?IMG_CND_Prefix + url + suffix:'https://cdn.zzfzyc.com/mall/no_img.png'
|
||||
}
|
||||
Reference in New Issue
Block a user