Commit 29c1ea443335e24692a825804c3d2581688098e4

Authored by F5VT98DI7XY4X12\Administrator
1 parent 165120bb

首页修改,首页样式修改

pages/index/index/index.js
... ... @@ -74,6 +74,7 @@ Page({
74 74  
75 75 },
76 76 async onShow() {
  77 + var th=this;
77 78 await this.init_load();
78 79 //显示的时候要开启计时器
79 80 this.data.is_timer = 1;
... ... @@ -105,7 +106,7 @@ Page({
105 106  
106 107 //---处理正在6个分类----
107 108 await getApp().request.promiseGet("/api/weshop/goodscategory/page", {
108   - data: {store_id: os.stoid, pageSize: 6}
  109 + data: {store_id: os.stoid, pageSize: 6,is_show:1}
109 110 }).then(res => {
110 111 var gd_category=res.data.data.pageData;
111 112 th.seData({gd_category:gd_category});
... ...
utils/util.js
... ... @@ -252,7 +252,7 @@ function check_mobile(phoneMobile){
252 252 function get_rand_item(arr){
253 253 if(!arr) return null;
254 254 if(arr.length<=0) return null;
255   - var ind=math.floor(math.random()*arr.length*10);
  255 + var ind=Math.floor(Math.random()*arr.length*10);
256 256 return arr[ind];
257 257 }
258 258  
... ...