微信小程序 无限formId 无限发送模板消息 保存formId
修改原生button样式:(去除边框)
button::after {
border: none
}
绝对定位:
{
position:absolute;
left:46rpx;
top:60rpx;
}
将div改为可获取formid的:
eg:
<form class="detail-add-cart fr" report-submit="true" bindsubmit="addToCartHandle" data-id="{{ info.detail.id }}">
<button class="button" form-type='submit'>
<view wx:if="{{ info.detail.book_status == 0 }}" data-id="{{ info.detail.id }}">
<text>保存</text>
</view>
</button>
</form>
<navigator class="order-con" url="../index/main">
<form class="orders" report-submit="true" @submit="formSubmit">
<button class='login-user' form-type='submit' data-name='buttonName' >
<image class="orders-image" src="/static/icon/scan.png" />
<text class="orders-text">当单击这里适合发起了formId,也跳转了页面</text>
</button>
</form>
</navigator>
网友评论