|
@@ -110,13 +110,12 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- console.log(option)
|
|
|
if(option.type =='share'){
|
|
|
wxLogin.wxLoginAuthorize()
|
|
|
}
|
|
|
this.$api.getStorage().then((resolve) =>{
|
|
|
- this.userIdentity = resolve.userIdentity;
|
|
|
this.listQuery.userId = resolve.userId ? resolve.userId : 0;
|
|
|
+ this.userIdentity = resolve.userIdentity;
|
|
|
if(option.keyWord){
|
|
|
this.listQuery.name = option.keyWord
|
|
|
this.getListFromServer()
|
|
@@ -126,12 +125,6 @@
|
|
|
this.InitGetSerachRecord()
|
|
|
}
|
|
|
})
|
|
|
- this.$api.getStorage().then((resolve) =>{
|
|
|
- this.listQuery.userId = resolve.userId ? resolve.userId : 0;
|
|
|
- this.userIdentity = resolve.userIdentity;
|
|
|
- this.isFocus = true
|
|
|
- this.InitGetSerachRecord()
|
|
|
- })
|
|
|
},
|
|
|
filters: {
|
|
|
PriceFormat:function(text) {//处理金额
|
|
@@ -277,7 +270,7 @@
|
|
|
},
|
|
|
navToDetailPage(id) {
|
|
|
this.isModallayer = true;
|
|
|
- this.$api.navigateTo(`/pages/goods/product?id=${id}`);
|
|
|
+ this.$api.navigateTo(`/pages/goods/product?productId=${id}`);
|
|
|
this.isModallayer = false;
|
|
|
},
|
|
|
setScrollHeight() {
|