--[[

# @Author: Liangchengxin

# @Date: 2017-11-24 16:38:59

# @Last Modified by: Liangchengxin

# @Last Modified time: 2018-01-15 10:02:21

# @Description: 新增商品列表页面

--]]

function initView(view, data)

local content = {}

content.cells = {}

for i = 1, #data do

local cell = {}

cell.productId = data[i].productId

cell.name = data[i].productName

cell.price = data[i].price

cell.image = data[i].image

cell.state = data[i].state

content.cells[i] = cell

end

view:setContent(content)

end

Reply to this note

Please Login to reply.

Discussion

No replies yet.