From d13f83642a05618b1007b83230a497095bf7934d Mon Sep 17 00:00:00 2001 From: guochunzhong Date: Thu, 20 Oct 2016 21:49:52 +0800 Subject: [PATCH] Fix navigation bar title display. --- pages/show_product/show_product.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/show_product/show_product.js b/pages/show_product/show_product.js index b19bbd8..42c86ae 100644 --- a/pages/show_product/show_product.js +++ b/pages/show_product/show_product.js @@ -16,12 +16,13 @@ Page({ }) this.setData({ - id:id, - product:product + id: id, + product: product, + title: product.name }) }, - onReady () { + onReady() { wx.setNavigationBarTitle({ title: this.data.title }) },