diff --git a/src/common/constant.js b/src/common/constant.js index ba43cfa..2289265 100644 --- a/src/common/constant.js +++ b/src/common/constant.js @@ -4,14 +4,14 @@ // export const BASE_URL = `http://10.0.0.5:50001/lymarket` // export const BASE_URL = `http://192.168.0.89:40001/lymarket` // export const BASE_URL = `http://192.168.1.165:40001/lymarket` // 王霞 -// export const BASE_URL = `https://test.zzfzyc.com/lymarket` // 测试环境 +export const BASE_URL = `https://test.zzfzyc.com/lymarket` // 测试环境 // export const BASE_URL = `http://192.168.1.30:40001/lymarket` // 发 // export const BASE_URL = `http://192.168.1.30:50001/lymarket` // 发 // export const BASE_URL = `https://dev.zzfzyc.com/lymarket` // 开发环境 // export const BASE_URL = `https://www.zzfzyc.com/lymarket` // 正式环境 // export const BASE_URL = `http://192.168.1.5:40001/lymarket` // 王霞 // export const BASE_URL = `http://192.168.1.224:50002/lymarket` // 添 -export const BASE_URL = `http://192.168.1.15:50001/lymarket` // 杰 +// export const BASE_URL = `http://192.168.1.15:50001/lymarket` // 杰 // CDN // 生成密钥 diff --git a/src/pages/details/index.tsx b/src/pages/details/index.tsx index d70e2da..3d289d7 100644 --- a/src/pages/details/index.tsx +++ b/src/pages/details/index.tsx @@ -80,9 +80,10 @@ export default (props:Params) => { const [showCart, setShowCart] = useState(false) const [showOrderCount, setShowOrderCount] = useState(false) - const html = ` - - ` + // const html = ` + // + // ` + const html = `` //弹窗提示 const [colorInfo, setColorInfo] = useState() @@ -117,6 +118,7 @@ export default (props:Params) => { //授权手机号和下单 const placeOrder = async (status = 'to_phone',e:any = {}) => { + if(!productInfo.id) return false if(status == 'to_phone') { if(!e.detail.code) return alert.error('请授权手机号') try {