From e429b52fb83f529d0d825459741f0d78e3e364a1 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Thu, 29 Oct 2020 16:41:12 +0800 Subject: [PATCH] 1. 价格分享 --- packageA/pages/activity_share/activity_share.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packageA/pages/activity_share/activity_share.js b/packageA/pages/activity_share/activity_share.js index b3859ea..76941ed 100644 --- a/packageA/pages/activity_share/activity_share.js +++ b/packageA/pages/activity_share/activity_share.js @@ -574,8 +574,8 @@ Page({ context.fillText("¥", 416 * unit, 185 * unit); context.setFontSize(31 * unit) var pri0 = th.data.share_good.shop_price; - if (th.data.prom_act) - pri0 = th.data.prom_act.price; + if (th.data.share_good.price) + pri0 = th.data.share_good.price; pri0 = parseFloat(pri0).toFixed(2); context.fillText(pri0, 438 * unit, 185 * unit); -- libgit2 0.21.4