小程序样式更新
This commit is contained in:
@@ -199,7 +199,7 @@ export default function ProductPage() {
|
|||||||
try {
|
try {
|
||||||
const res = await addItem(product.id, 1)
|
const res = await addItem(product.id, 1)
|
||||||
handleRowSync(product.id, { cart_id: res.id, cart_quantity: res.quantity })
|
handleRowSync(product.id, { cart_id: res.id, cart_quantity: res.quantity })
|
||||||
Taro.showToast({ title: '已加入购物车', icon: 'success' })
|
// Taro.showToast({ title: '已加入购物车', icon: 'success' })
|
||||||
} catch {
|
} catch {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ const LOGIN_PATH = '/pages/login/index'
|
|||||||
/** 默认请求超时(ms) */
|
/** 默认请求超时(ms) */
|
||||||
const DEFAULT_TIMEOUT = 15000
|
const DEFAULT_TIMEOUT = 15000
|
||||||
/** 接口根地址(uploadFile 等原生请求同样使用) */
|
/** 接口根地址(uploadFile 等原生请求同样使用) */
|
||||||
export const BASE_URL = "http://localhost:8000/index.php"
|
// export const BASE_URL = "http://localhost:8000/index.php"
|
||||||
// export const BASE_URL = "https://purchase.henanklkj.com/index.php"
|
export const BASE_URL = "https://purchase.henanklkj.com/index.php"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HTTP 状态码 → 错误提示映射
|
* HTTP 状态码 → 错误提示映射
|
||||||
|
|||||||
Reference in New Issue
Block a user