分享
  • 收藏
  • 举报
    X
    小白请教。
    • 小溪流 消费1175.09元 2020-12-19 12:58 12:58
    289
    7

    源代码是这样的,我想加一个判断条件,就是发卡量超过300才显示这个按钮。 为何我的代码搞不出来啊?

     {if config('webdb.P__coupon')['kaquan_chongzhi_xianxia']==2 }

      <span class="FL"><a href="{:purl('coupon/mystoredlog/pay',['id'=>$rs['id']],'member')}" style="border: #fff solid 1px;background: #fe6941;padding:3px 5px;color: #fff;margin-left: 10px;border-radius: 5px; box-shadow: 2px 2px 2px #999" class="FR">线下充值</a></span>{/if}

    我改的如下:

     {if config('webdb.P__coupon')['kaquan_chongzhi_xianxia']==2 &&$rs.number>300}

      <span class="FL"><a href="{:purl('coupon/mystoredlog/pay',['id'=>$rs['id']],'member')}" style="border: #fff solid 1px;background: #fe6941;padding:3px 5px;color: #fff;margin-left: 10px;border-radius: 5px; box-shadow: 2px 2px 2px #999" class="FR">线下充值</a></span>{/if}



    1
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 7
    • Suifeng 程序开发者 消费:23.24元 2020-12-19 15:46 15:466楼
      都不是一个表你肯定读取不到
      {php}$number=query('kaquan_stored')->where('id',$rs['qunid'])->value('number');{/php}
      {if config('webdb.P__coupon')['kaquan_chongzhi_xianxia']==2 &&$number>300}
      小溪流 消费:1175.09元 2020-12-19 16:00
      三克油
      袁冬 消费:160.85元 华为 2020-12-19 19:10
      来跟大神学习
    0 赏钱 赏礼回复
    • selon 程序开发者 消费:1403.01元 2020-12-19 13:22 13:226楼
      用这个试试
      {if (config('webdb.P__coupon')['kaquan_chongzhi_xianxia']==2 && $rs['number']>300) }
      小溪流 消费:1175.09元 2020-12-19 13:27
      还是不行,
      小溪流 消费:1175.09元 2020-12-19 14:29
      @Suifeng
    0 赏钱 赏礼回复
    • 袁冬 普通粉丝 消费:160.85元 2020-12-19 13:28 13:28
      华为
      6楼
      路过学习
    0 赏钱 赏礼回复
    更多回复
        你可能感兴趣的主题
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648