|
@@ -226,6 +226,13 @@
|
|
|
uni.$on("request",()=>{
|
|
|
this.getData();
|
|
|
})
|
|
|
+ let projectId = this.getQueryString('projectId');
|
|
|
+ if(projectId){
|
|
|
+ let e = {
|
|
|
+ projectId
|
|
|
+ }
|
|
|
+ this.goDetailAction(e)
|
|
|
+ }
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if(this.houseList.length<this.total){
|
|
@@ -235,6 +242,10 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ getQueryString(name){
|
|
|
+ var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
|
|
|
+ return reg.test(location.href) ? unescape(RegExp.$2.replace(/\+/g, " ")) : ""
|
|
|
+ },
|
|
|
clearToken(){
|
|
|
this.$cache.delete('_token_owner_union')
|
|
|
},
|
|
@@ -338,12 +349,8 @@
|
|
|
if (href.indexOf("?")){
|
|
|
href = href.split('?')[0]
|
|
|
}
|
|
|
- let projectPath = href;
|
|
|
- if(type==2){
|
|
|
- projectPath = href + "pages/houseDetail/houseDetail"
|
|
|
- }
|
|
|
uni.navigateTo({
|
|
|
- url:'../shareCardPage/shareCardPage?page='+projectPath+"&projectId="+projectId+"&type="+type
|
|
|
+ url:'../shareCardPage/shareCardPage?page='+href+"&projectId="+projectId+"&type="+type
|
|
|
})
|
|
|
},
|
|
|
toLogin(){
|