Commit 075df331f6f650c66a135d7b21ccd26529c8c0dd

Authored by yvan.ni
1 parent eb1c5781

自定义模板~~~

Showing 1 changed file with 2 additions and 2 deletions
components/diy_nav/diy_nav.js
... ... @@ -31,13 +31,13 @@ Component({
31 31 // 这里是一个自定义方法,判断图片路径,并加载
32 32 pd_navicon:function(g_id){
33 33  
34   -
35 34 var item={},nav_strs=g_id,th=this;
36 35 for (var i=0;i<nav_strs.length;i++){
37 36 if (!(nav_strs[i].navicon.indexOf("/public/static/images/model/tag-icon.png"))){
38   - nav_strs[i].navicon = th.imghost+"/miniapp/images/nav-icon.png";
  37 + nav_strs[i].navicon = th.data.imghost+"/miniapp/images/nav-icon.png";
39 38 }
40 39 }
  40 +
41 41 this.setData({
42 42 nav_list:nav_strs,
43 43 });
... ...