收藏
回答

微信小程序form表单

微信小程序页面form表单只能有一个吗?

回答关注问题邀请回答
收藏

6 个回答

  • LL
    LL
    2017-12-19

    我在试试

    2017-12-19
    有用
    回复
  • You can you up
    You can you up
    2017-12-19

    试了你的代码 并没有你说的问题

    2017-12-19
    有用
    回复
  • LL
    LL
    2017-12-19

    <ul>

    <form bindsubmit="newtask" report-submit='true' >

    <li>

    <span class="icon1 pr">

    <block wx:if="{{IsspGuide}}">

    <text wx:if="{{NewRouteCount!=0}}">{{NewRouteCount}}</text>

    </block>

    </span>

    <button form-type="submit" class='new_button'>新任务</button>

    </li>

    </form>

    <form bindsubmit="taskcalender" report-submit='true'>

    <li><span class="icon2"></span>

    <button form-type="submit" class='new_button'>任务日历</button>

    </li>

    </form>

    <li bindtap='gotourList'><span class="icon3"></span>

    <b>带团记录</b>

    </li>

    </ul>



    //--------------js代码

    taskcalender: function () {

    let IsSpecialGuide = wx.getStorageSync('scanCode').IsSpecialGuide;

    if (IsSpecialGuide) {

    app.authoritymanagement(IsSpecialGuide);

    return

    }

    app.WriteTrace('首页', '首页', '查看', '', '任务')  //埋点

    wx.navigateTo({

    url: '../taskcalender/taskcalender',

    })

    },


    gotourList:function(){

    let IsSpecialGuide = wx.getStorageSync('scanCode').IsSpecialGuide;

    if (IsSpecialGuide) {

    app.authoritymanagement(IsSpecialGuide);

    return

    }

    app.WriteTrace('首页', '首页', '查看', '', '记录')  //埋点

    wx.navigateTo({

    url: '../tourList/tourList',

    })

    },


    点击每个按钮都会执行taskcalender()这个函数

    2017-12-19
    有用
    回复
  • You can you up
    You can you up
    2017-12-19

    代码贴出来

    2017-12-19
    有用
    回复
  • LL
    LL
    2017-12-19

    page页面写了多个form表单,但是点哪个都是出发最后一个

    2017-12-19
    有用
    回复
  • You can you up
    You can you up
    2017-12-19

    不是吧

    2017-12-19
    有用
    回复
登录 后发表内容