ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯(lián)系官方銷售客服

1835022288

028-61286886

投訴 解決中 / 已回 POSCMS的郵件推送方法是在哪里?有沒有相關(guān)的文檔,我希望在小程序填寫表單后推送一個郵件到填好的郵 4 0
POSCMS版本:3.2.13

RT

<form bindsubmit="formSubmit" bindreset="formReset">

<view class="inputView" style='margin-left: 25px;margin-right: 25px;'>

<input class="input_name" name="name" placeholder="姓名" placeholder-style="color: #dbdbdb" />

</view>

<view class="inputView" style='margin-left: 25px;margin-right: 25px;'>

<input class="input_name" name="tel" placeholder="電話" placeholder-style="color: #dbdbdb" />

</view>

<button class='btn_sub' type="primary" formType="submit">提交領(lǐng)取禮包</button>

</form>



上面是小程序的表單視圖,按鈕觸發(fā)formSubmit方法



formSubmit:function(e){

var formData = e.detail.value;

console.log(formData)

wx.request({

url: 'https://abc.com/index.php?c=form_testform',

data: {

name: formData.name,

tel:formData.tel

},

header: {

'Content-Type': 'application/json'

},

success: function (res) {

console.log(res);

},

fail: function () {

console.log('request from fail')

},

})

}


以上是我寫的點擊事件觸發(fā)的方法,但是不行,之前都是直接往數(shù)據(jù)庫里面塞數(shù)據(jù),但是這樣不能自動推送郵件,想請問通過表單提交的接口方法應(yīng)該如何實現(xiàn)?

解決方案