} | } | ||||
let res : any = null; | let res : any = null; | ||||
let newsource = "WECHAT" | |||||
// #ifdef MP-ALIPAY | |||||
newsource = "ALI" | |||||
// #endif | |||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
data: { | data: { | ||||
"opId": getItem(StorageKeys.OpenId), | "opId": getItem(StorageKeys.OpenId), | ||||
"source": "WECHAT", | |||||
"source": newsource, | |||||
"vehiclePlate": searchKeyWords.value, | "vehiclePlate": searchKeyWords.value, | ||||
"tabIndex": props.index + '', | "tabIndex": props.index + '', | ||||
"pageNo": params.pageNum, | "pageNo": params.pageNum, | ||||
method: 'POST', | method: 'POST', | ||||
// showLoading: isLoading ? (params.pageNum === 1 ? true : false) : false , | // showLoading: isLoading ? (params.pageNum === 1 ? true : false) : false , | ||||
} | } | ||||
console.log("订单列表查询",options) | |||||
try { | try { | ||||
res = await request(orderList, options); | res = await request(orderList, options); | ||||
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); |
"navigationBarTitleText": "修改手机号" | "navigationBarTitleText": "修改手机号" | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
"path": "setting/change-phone-code-ali", | |||||
"style": { | |||||
"navigationBarTitleText": "修改手机号" | |||||
} | |||||
}, | |||||
{ | { | ||||
"path": "excel", | "path": "excel", | ||||
"style": { | "style": { |
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
return str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
console.log(str) | |||||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
console.log(imgUrl) | |||||
return imgUrl; | |||||
} | } | ||||
</script> | </script> | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
return str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
return imgUrl; | |||||
}; | }; | ||||
const getGlobalParam=()=>{ | const getGlobalParam=()=>{ | ||||
const data=getItem('globalParam') | const data=getItem('globalParam') |
}; | }; | ||||
request(etcVehiclePlateVer, options).then((res) => { | request(etcVehiclePlateVer, options).then((res) => { | ||||
var data = state.data; | var data = state.data; | ||||
// #ifdef MP-ALIPAY | |||||
data.orderSource = 'ALI' | |||||
// #endif | |||||
const options = { | const options = { | ||||
type: 2, | type: 2, | ||||
data: data, | data: data, |
}; | }; | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
<<<<<<< HEAD | |||||
return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | ||||
// if (envs[process.env.NODE_ENV].baseUrl == "https://trial.etcjz.cn") { | // if (envs[process.env.NODE_ENV].baseUrl == "https://trial.etcjz.cn") { | ||||
// return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | // return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | ||||
// } else { | // } else { | ||||
// return str.replace('http://100.64.2.113:9000', envs[process.env.NODE_ENV].baseUrl) | // return str.replace('http://100.64.2.113:9000', envs[process.env.NODE_ENV].baseUrl) | ||||
// } | // } | ||||
======= | |||||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
imgUrl = str.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
return imgUrl; | |||||
>>>>>>> f28bd8e7d4d28de49991f5c1367c17621e6257bf | |||||
} | } | ||||
const getGlobalParam = () => { | const getGlobalParam = () => { | ||||
const data = getItem('globalParam') | const data = getItem('globalParam') | ||||
} else { | } else { | ||||
state.isEnableOCRData = true; | state.isEnableOCRData = true; | ||||
} | } | ||||
} | } | ||||
// 通过opneId查询用户信息 | // 通过opneId查询用户信息 | ||||
const queryUserMsg = () => { | const queryUserMsg = () => { |
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str: string) => { | const strReplace = (str: string) => { | ||||
// return str.replace('192.168.101.145:9000', '222.85.144.89:19002') | |||||
return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||||
return imgUrl; | |||||
} | } | ||||
</script> | </script> | ||||
request(sendCode, options) | request(sendCode, options) | ||||
.then((res) => { | .then((res) => { | ||||
msg("验证码发送成功!"); | msg("验证码发送成功!"); | ||||
navTo(`/subpackage/personal-center/setting/change-phone-code?phone=${state.phone}`); | |||||
// #ifdef MP-ALIPAY | |||||
navTo(`/subpackage/personal-center/setting/change-phone-code-ali?phone=${state.phone}`); | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
navTo(`/subpackage/personal-center/setting/change-phone-code?phone=${state.phone}`); | |||||
// #endif | |||||
}) | }) | ||||
.catch((err) => { | .catch((err) => { | ||||
console.log(err); | console.log(err); |