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({ Page({
data: { data: {
title: '',
items: [] items: []
}, },
onLoad: function(params) { onLoad: function(params) {
var that = this var that = this
this.setData({ var title = '巴爷供销社 - ' + params.type
title: '巴爷供销社 - ' + params.type wx.setNavigationBarTitle({ title: title })
})
product.getCategories(params.type, function(result) { product.getCategories(params.type, function(result) {
var data = getApp().store.sync(result.data) var data = getApp().store.sync(result.data)
that.setData({items: data}) that.setData({items: data})
@ -26,7 +25,6 @@ Page({
}, },
onReady() { onReady() {
wx.setNavigationBarTitle({ title: this.data.title })
}, },
bindTapProduct: function(e) { bindTapProduct: function(e) {

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

Loading…
Cancel
Save