Commit 4d36f6fc authored by zhengke's avatar zhengke

修改

parent f9cf0a49
......@@ -162,7 +162,7 @@ export default {
uni.redirectTo({ url: "/pages/index/main" });
},
getStyle(){
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
var UserPageType = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.request2(
{
url: '/api/AppletGoods/GetProductCategoryTreeList',
......
......@@ -669,7 +669,7 @@ export default {
);
},
initRecommend() {
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
var UserPageType = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.request2(
{
url: "/api/AppletGoods/GetAppletGoodsRecommendListForZY",
......
......@@ -161,8 +161,8 @@
init() {
this.isover = false;
this.loading = true;
this.showLoading = this.msg.pageIndex != 1;
this.msg.GoodsPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
this.showLoading = this.msg.pageIndex != 1;
this.msg.GoodsPageType = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.request2({
url: '/api/AppletGoods/GetAppletGoodsPageListForZY',
data: this.msg
......
......@@ -248,8 +248,7 @@ export default {
this.isover = false;
this.loading = true;
this.showLoading = this.page != 1;
var UserPageType = uni.getStorageSync("mall_UserInfo").UserPageType;
var UserPageType = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
this.request2(
{
url: "/api/AppletGoods/GetAppletGoodsPageListForZY",
......
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