diff --git a/pages/team/team_success/team_success.js b/pages/team/team_success/team_success.js index fabddfb..3bb3ff7 100644 --- a/pages/team/team_success/team_success.js +++ b/pages/team/team_success/team_success.js @@ -969,6 +969,10 @@ Page({ if (type == 2) { // 阶梯团 let list = self.data.prom_act.ct_rylist; + if(ut.isString(list)){ + list=JSON.parse(list); + } + for (let i = 0; i < list.length; i++) { let item = list[i]; let wi = i * 90 * unit; @@ -989,7 +993,7 @@ Page({ var wp= 52 * unit; var hp=755 * unit - self.draw_pos_price(context,wp,hp,self.data.data.market_price,unit); + self.draw_pos_price(context,wp,hp,self.data.goods.market_price,unit); } @@ -1011,6 +1015,27 @@ Page({ }, + //---市场价划掉--- + draw_pos_price(context, w, h, market_price, unit) { + + if (!this.data.sys_switch) return false; + if (!this.data.sys_switch.is_retail_price) return false; + + context.setFillStyle("gray") + context.setFontSize(22 * unit) + var pri0 = "¥" + market_price.toFixed(2); + context.fillText(pri0, w, h); + + var c_h = h - 6; + context.setStrokeStyle('gray'); + context.setLineWidth(1 * unit); + context.moveTo(w - 5, c_h); + context.lineTo(w + ut.measureText(pri0, 22 * unit) + 5, c_h); + context.stroke(); + + }, + +