提交 3f39f247 编写于 作者: 张敬贤's avatar 张敬贤

add

上级 d1af487f
...@@ -9,10 +9,10 @@ export const getButtonStatus = (id) => { ...@@ -9,10 +9,10 @@ export const getButtonStatus = (id) => {
}; };
// 根据订单号获取跳转页状态/ // 根据订单号获取跳转页状态/
// /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1 // /tis/insurance/jumpPageStatus?orderNo=1&projectEquityNo=1
export const getJumpPageStatus = ({externalOrderNo, projectEquityNo}) => { export const getJumpPageStatus = ({externalOrderNo, yunOrderNo, projectEquityNo}) => {
return request({ return request({
method: 'get', method: 'get',
url: `/tis/insurance/jumpPageStatus?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}`, url: `/tis/insurance/jumpPageStatus?externalOrderNo=${externalOrderNo}&projectEquityNo=${projectEquityNo}&yunOrderNo=${yunOrderNo}`,
withCredentials: true, withCredentials: true,
}); });
}; };
......
...@@ -37,16 +37,38 @@ export default { ...@@ -37,16 +37,38 @@ export default {
dectionData: {}, dectionData: {},
projectEquityNo: '', projectEquityNo: '',
externalOrderNo: '', externalOrderNo: '',
query:{} query: {},
yunOrderNo:'',
}; };
}, },
mounted() { mounted() {
const { projectEquityNo, externalOrderNo } = this.$route.query; this.$loading.show();
this.query = this.$route.query; this.query = this.$route.query;
if (this.query.projectEquityNo && this.query.externalOrderNo) {
const { projectEquityNo, externalOrderNo } = this.$route.query;
this.projectEquityNo = projectEquityNo; this.projectEquityNo = projectEquityNo;
this.externalOrderNo = externalOrderNo; this.externalOrderNo = externalOrderNo;
this.$loading.show(); const data = {
yunOrderNo:'',
projectEquityNo,
externalOrderNo
};
this.initMap(data);
}
if (this.query.referer) {
const url = this.query.referer;
const yunOrderNo = url.split('@@')[1];
console.log('this.query.referer', yunOrderNo);
const data = {
yunOrderNo,
projectEquityNo:'',
externalOrderNo:'',
};
this.initMap(data);
}
// get geolocation // get geolocation
// var that = this; // var that = this;
// var geolocation = new qq.maps.Geolocation(); // var geolocation = new qq.maps.Geolocation();
...@@ -58,11 +80,11 @@ export default { ...@@ -58,11 +80,11 @@ export default {
// console.log('err', result); // console.log('err', result);
// that.getJumpPageStatus(); // that.getJumpPageStatus();
// }); // });
this.initMap();
}, },
methods: { methods: {
// 高德地图导航只有在线上环境才能使用 // 高德地图导航只有在线上环境才能使用
initMap() { initMap(data) {
// latitude: 70 // latitude: 70
// longitude: 50.2 // longitude: 50.2
// const data = { // const data = {
...@@ -72,6 +94,7 @@ export default { ...@@ -72,6 +94,7 @@ export default {
// }; // };
// that.getHospitalList(data); // that.getHospitalList(data);
var that = this; var that = this;
AMapLoader.load({ AMapLoader.load({
key:'009dd02e4fe0a1b5f895cd7b86b9e216', // 申请好的Web端开发者Key,首次调用 load 时必填 key:'009dd02e4fe0a1b5f895cd7b86b9e216', // 申请好的Web端开发者Key,首次调用 load 时必填
plugins:[''], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 plugins:[''], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
...@@ -95,7 +118,7 @@ export default { ...@@ -95,7 +118,7 @@ export default {
const position = { ...result.position, addr: result.formattedAddress }; const position = { ...result.position, addr: result.formattedAddress };
storejs.set('geolocation', position); storejs.set('geolocation', position);
} }
that.getJumpPageStatus(); that.getJumpPageStatus(data);
}); });
...@@ -118,11 +141,8 @@ export default { ...@@ -118,11 +141,8 @@ export default {
}); });
}, },
// 获取跳转状态 // 获取跳转状态
getJumpPageStatus() { getJumpPageStatus(data) {
const data = {
externalOrderNo: this.externalOrderNo,
projectEquityNo: this.projectEquityNo
};
getJumpPageStatus(data).then(res => { getJumpPageStatus(data).then(res => {
console.log('getJumpPageStatus', res); console.log('getJumpPageStatus', res);
if (res.code == '000000') { if (res.code == '000000') {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册