Commit 849f3e06 authored by zhengke's avatar zhengke

增加参数

parent 1b6149e4
......@@ -162,19 +162,19 @@ export default {
uni.redirectTo({ url: "/pages/index/main" });
},
getStyle(){
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2(
{
url: '/api/AppletGoods/GetProductCategoryTreeList',
data: {
RootId:this.cat_id
RootId:this.cat_id,
UserPageType:UserPageType
}
},
res => {
console.log("res",res);
this.isloading = false;
if(res.resultCode==1){
this.types = res.data;
console.log("this.types",this.types)
// this.types.forEach((x) => {
// if (x.IconPath == "") {
// x.IconPath =
......
......@@ -669,12 +669,14 @@ export default {
);
},
initRecommend() {
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2(
{
url: "/api/AppletGoods/GetAppletGoodsRecommendListForZY",
data: {
RecommendType: 1,
GoodsId:this.id
GoodsId:this.id,
UserPageType:UserPageType
},
},
(res) => {
......
......@@ -83,6 +83,7 @@
GoodsType: 0,
CategoryIds: '',
OrderBy: 0,
UserPageType:0
},
newsortType: 1,
};
......@@ -161,6 +162,7 @@
this.isover = false;
this.loading = true;
this.showLoading = this.msg.pageIndex != 1;
this.msg.UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2({
url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: this.msg
......
......@@ -248,6 +248,8 @@ export default {
this.isover = false;
this.loading = true;
this.showLoading = this.page != 1;
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.request2(
{
url: "/api/AppletGoods/GetAppletGoodsPageListForZY",
......@@ -257,7 +259,8 @@ export default {
Name:this.searchKey,
GoodsType:0,
CategoryIds:'',
OrderBy:1
OrderBy:1,
UserPageType:UserPageType
},
},
(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