Commit 92e56176cb6c332eeb27f3ac44d21d6013070cb2

Authored by yvan.ni
1 parent 680695c8

月包的优化

packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
... ... @@ -1640,11 +1640,17 @@ Page({
1640 1640 if(price || giftIntegral){
1641 1641 if(price){
1642 1642 price_txt='¥' + price;
1643   - if(giftIntegral) price_txt+='+';
  1643 + if(giftIntegral){
  1644 + if(this.data.sele_g.money_type>0){
  1645 + price_txt+='+';
  1646 + }else{
  1647 + price_txt+='或';
  1648 + }
  1649 + }
1644 1650 }
1645 1651 if(giftIntegral) price_txt+=giftIntegral+'积分';
1646 1652 }else{
1647   - price_txt="¥0";
  1653 + price_txt="免费领取";
1648 1654 }
1649 1655  
1650 1656 context.fillText(price_txt, 54 * unit, 735 * unit);
... ...
packageE/pages/user/monthgiftbag/monthgiftbag.wxml
... ... @@ -59,6 +59,9 @@
59 59 <block wx:if="{{item.payMoney>0}}">
60 60 <text>{{"¥"+item.payMoney}}</text>
61 61 </block>
  62 +
  63 + <block wx:if="{{item.payMoney>0 && item.payIntegral>0}}">+</block>
  64 +
62 65 <block wx:if="{{item.payIntegral>0}}">
63 66 <text>{{item.payIntegral+"积分"}}</text>
64 67 </block>
... ...