diff --git a/packageE/pages/cart/cart2/cart2.js b/packageE/pages/cart/cart2/cart2.js index 8478cba..f60dc29 100644 --- a/packageE/pages/cart/cart2/cart2.js +++ b/packageE/pages/cart/cart2/cart2.js @@ -8165,7 +8165,7 @@ Page({ if (arr.length <= 0) return false; if (arr.length == 1) { var idx = arr[0].idx; - t_item.goods[idx].quan_num = Math.floor(coupon_price * 100) / 100; + t_item.goods[idx].quan_num =coupon_price; t_item.goods[idx].quan_no = t_item.quan_no; return false; } diff --git a/pages/template/index.js b/pages/template/index.js index 3904a01..28253c6 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -58,15 +58,21 @@ Page({ wx.setNavigationBarTitle({ title: getApp().globalData.config.store_name, }); + // th.setData({ + // nav_title: getApp().globalData.config.store_name + // }) th.setData({ - nav_title: getApp().globalData.config.store_name + nav_title: th.data.share_title }) } else { wx.setNavigationBarTitle({ title: getApp().globalData.setting.appName, }); + // th.setData({ + // nav_title: getApp().globalData.setting.appName, + // }) th.setData({ - nav_title: getApp().globalData.setting.appName, + nav_title: th.data.share_title }) }; }); @@ -124,6 +130,9 @@ Page({ wx.setNavigationBarTitle({ title: temp_data.page_title, }); + th.setData({ + nav_title: temp_data.page_title, + }) var t_arr = JSON.parse(temp_data.json_str); //增加判断是否是满屏 let is_full_screen_navigation = false