Small micro-channel acquisition program sends a message template method formID

 

Note: Be sure to run in order to get on a real machine

Micro-channel program requires adding a small form form, wxml following page code  Report =-Submit 'to true' :

<form bindsubmit="form_id_bg" report-submit='true'>
        <view class='attention_title'>用户须知</view>
        <view class="attention_t_block">
          <view class='attention_txt'>1.用户可以交纳任意金额的宽带费。</view>
          <view class='attention_txt'>2.此业务不适用于包年和融合套餐的用户。</view>
          <view class='attention_txt'>3.如遇到其他问题,请联系在线客服解决。</view>
        </view>
          <button class='attention_open_txt' formType="submit">确定</button>
</form>

Formid get in js page code is as follows:

form_id_bg: function (e) {
    app.form_id_bg(e.detail.formId);
  }

 

Published 12 original articles · won praise 1 · views 201

Guess you like

Origin blog.csdn.net/ws072488/article/details/103310469