useless code

wechat_user_type
Ge Hao 8 years ago
parent 1bdf9bccae
commit b628f5ad9d
  1. 8
      pages/category/category.js
  2. 2
      pages/mine/mine.wxml

@ -2,15 +2,14 @@ const product = require('../../utils/product.js')
Page({
data: {
title: '',
items: []
},
onLoad: function(params) {
var that = this
this.setData({
title: '巴爷供销社 - ' + params.type
})
var title = '巴爷供销社 - ' + params.type
wx.setNavigationBarTitle({ title: title })
product.getCategories(params.type, function(result) {
var data = getApp().store.sync(result.data)
that.setData({items: data})
@ -26,7 +25,6 @@ Page({
},
onReady() {
wx.setNavigationBarTitle({ title: this.data.title })
},
bindTapProduct: function(e) {

@ -8,7 +8,7 @@
<view class="zichan">
<view class="first-line">
<view>巴爷资产</view>
<view>查看全部资产》</view>
<view></view>
</view>
<view class="second-line">
<scroll-view scroll-x="true">

Loading…
Cancel
Save