Commit 849f3e06 authored by zhengke's avatar zhengke

增加参数

parent 1b6149e4
...@@ -162,19 +162,19 @@ export default { ...@@ -162,19 +162,19 @@ export default {
uni.redirectTo({ url: "/pages/index/main" }); uni.redirectTo({ url: "/pages/index/main" });
}, },
getStyle(){ getStyle(){
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2( this.request2(
{ {
url: '/api/AppletGoods/GetProductCategoryTreeList', url: '/api/AppletGoods/GetProductCategoryTreeList',
data: { data: {
RootId:this.cat_id RootId:this.cat_id,
UserPageType:UserPageType
} }
}, },
res => { res => {
console.log("res",res);
this.isloading = false; this.isloading = false;
if(res.resultCode==1){ if(res.resultCode==1){
this.types = res.data; this.types = res.data;
console.log("this.types",this.types)
// this.types.forEach((x) => { // this.types.forEach((x) => {
// if (x.IconPath == "") { // if (x.IconPath == "") {
// x.IconPath = // x.IconPath =
......
...@@ -669,12 +669,14 @@ export default { ...@@ -669,12 +669,14 @@ export default {
); );
}, },
initRecommend() { initRecommend() {
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2( this.request2(
{ {
url: "/api/AppletGoods/GetAppletGoodsRecommendListForZY", url: "/api/AppletGoods/GetAppletGoodsRecommendListForZY",
data: { data: {
RecommendType: 1, RecommendType: 1,
GoodsId:this.id GoodsId:this.id,
UserPageType:UserPageType
}, },
}, },
(res) => { (res) => {
......
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
GoodsType: 0, GoodsType: 0,
CategoryIds: '', CategoryIds: '',
OrderBy: 0, OrderBy: 0,
UserPageType:0
}, },
newsortType: 1, newsortType: 1,
}; };
...@@ -161,6 +162,7 @@ ...@@ -161,6 +162,7 @@
this.isover = false; this.isover = false;
this.loading = true; this.loading = true;
this.showLoading = this.msg.pageIndex != 1; this.showLoading = this.msg.pageIndex != 1;
this.msg.UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2({ this.request2({
url: '/api/AppletGoods/GetAppletGoodsPageListForZY', url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: this.msg data: this.msg
......
...@@ -248,6 +248,8 @@ export default { ...@@ -248,6 +248,8 @@ export default {
this.isover = false; this.isover = false;
this.loading = true; this.loading = true;
this.showLoading = this.page != 1; this.showLoading = this.page != 1;
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2( this.request2(
{ {
url: "/api/AppletGoods/GetAppletGoodsPageListForZY", url: "/api/AppletGoods/GetAppletGoodsPageListForZY",
...@@ -257,7 +259,8 @@ export default { ...@@ -257,7 +259,8 @@ export default {
Name:this.searchKey, Name:this.searchKey,
GoodsType:0, GoodsType:0,
CategoryIds:'', CategoryIds:'',
OrderBy:1 OrderBy:1,
UserPageType:UserPageType
}, },
}, },
(res) => { (res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment