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

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

1835022288

028-61286886

投訴 解決中 / 已回 小程序提交表單到POSCMS后臺(tái)并觸發(fā)郵件推送如何實(shí)現(xiàn)? 2 0
POSCMS版本:3.2.13

<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="電話(huà)" 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')

},

})

}

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




image.png

默認(rèn)表單名稱(chēng): " testform "

解決方案