update: 首页分类导航修改第一个导航为推荐,原来是程序写死的"首页"
This commit is contained in:
parent
2257caed23
commit
4ecfb6e907
@ -1232,8 +1232,8 @@ export default {
|
||||
let tmp = data.items;
|
||||
tmp.unshift({
|
||||
id: 0,
|
||||
category_name: that.__("首页"),
|
||||
category_alias: that.__("首页"),
|
||||
category_name: that.__("推荐"),
|
||||
category_alias: that.__("推荐"),
|
||||
});
|
||||
|
||||
that.setData({
|
||||
|
||||
@ -459,8 +459,8 @@ export default {
|
||||
let tmp = data.items;
|
||||
tmp.unshift({
|
||||
id: 0,
|
||||
category_name: that.__("首页"),
|
||||
category_alias: that.__("首页"),
|
||||
category_name: that.__("推荐"),
|
||||
category_alias: that.__("推荐"),
|
||||
});
|
||||
|
||||
that.setData({
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
}, */
|
||||
success(data) {
|
||||
let tmp = data.items;
|
||||
tmp.unshift({'id':0, category_name:'首页'});
|
||||
tmp.unshift({'id':0, category_name:'推荐'});
|
||||
|
||||
that.setData({
|
||||
tabBars: tmp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user