|
|
@@ -143,6 +143,9 @@
|
|
|
brand_name:'',
|
|
|
caption:'',
|
|
|
vin:'',
|
|
|
+ imageicon:'',
|
|
|
+ modelname:'',
|
|
|
+ isReturningFromChild: false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
@@ -161,23 +164,22 @@
|
|
|
this.brand_name = opt.brand_name;
|
|
|
this.caption = opt.caption;
|
|
|
this.vin = opt.vin;
|
|
|
+ this.imageicon = opt.imageicon;
|
|
|
+ this.modelname = opt.modelname;
|
|
|
this.getSmileDate();
|
|
|
- //禁止下拉
|
|
|
-
|
|
|
-
|
|
|
- },
|
|
|
- onReady(){
|
|
|
this.initCanvas();
|
|
|
-
|
|
|
- },
|
|
|
- onShow() {
|
|
|
- this.initCanvas(); // 确保重新加载数据
|
|
|
},
|
|
|
+ // onReady(){
|
|
|
+ // this.initCanvas();
|
|
|
+
|
|
|
+ // },
|
|
|
+ // onShow() {
|
|
|
+
|
|
|
+ // },
|
|
|
methods: {
|
|
|
goback() {
|
|
|
uni.navigateBack({})
|
|
|
},
|
|
|
-
|
|
|
//返回选品牌
|
|
|
goToSelectCarModel(){
|
|
|
let vin = this.vin;
|
|
|
@@ -305,6 +307,7 @@
|
|
|
},
|
|
|
//初始化画布
|
|
|
initCanvas(){
|
|
|
+ console.log("画布初始化");
|
|
|
this.ctxBig = uni.createCanvasContext('big-this-image',this);
|
|
|
//this.ctxSmall = uni.createCanvasContext('small-this-image',this);
|
|
|
|
|
|
@@ -435,7 +438,7 @@
|
|
|
this.ctxBig.draw(true);
|
|
|
this.isDrawingBig = true;
|
|
|
this.toDetailByCanvas();
|
|
|
- },1000)
|
|
|
+ },400)
|
|
|
},
|
|
|
//筛选圈选的位置
|
|
|
toDetailByCanvas(){
|
|
|
@@ -445,25 +448,24 @@
|
|
|
chlildObj = this.labChildObj;
|
|
|
//击中对象
|
|
|
const oneSet = new Set();
|
|
|
-
|
|
|
+ let isgo =false;
|
|
|
zuobiao.forEach(x =>{
|
|
|
//判断当前坐标是否在当前位置
|
|
|
this.ifClickObj(x.x,x.y);
|
|
|
- console.log(this.hitChild);
|
|
|
//判断是否跳转
|
|
|
- console.log(this.isGoTwo());
|
|
|
if(this.isGoTwo()){
|
|
|
//跳转
|
|
|
+ uni.removeStorageSync('epcChildrenTwo');
|
|
|
uni.setStorageSync('epcChildrenTwo', this.hitChild);
|
|
|
- uni.navigateTo({
|
|
|
- url: 'epcSimpleDetailTwo?token='+this.token+'¶m='+this.param+'&access_time='+this.access_time+'&epc_id='+this.epc_id+"&title="+this.chlildObj.title
|
|
|
- +'&brand_id='+this.brand_id+"&brand_name="+this.brand_name+"&caption="+this.caption+"&vin="+this.vin
|
|
|
- })
|
|
|
+ isgo =true;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
})
|
|
|
-
|
|
|
+ if(isgo){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: 'epcSimpleDetailTwo?token='+this.token+'¶m='+this.param+'&access_time='+this.access_time+'&epc_id='+this.epc_id+"&title="+this.chlildObj.title
|
|
|
+ +'&brand_id='+this.brand_id+"&brand_name="+this.brand_name+"&caption="+this.caption+"&vin="+this.vin
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
isGoTwo(){
|
|
|
if (this.hitChild.length === 0) {
|