Commit 15912888 by Huang Linyu

submit active customer

parent c08df8a4
Showing with 12 additions and 2 deletions
......@@ -98,8 +98,11 @@
</section>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
var myPhone = localStorage.getItem('myPhone')
if(myPhone) {
$('#phone').val(myPhone)
}
var img = null;
function uploadFiles() {
//获取上传文件的DOM对象
let form = document.getElementById('uploadForm')
......@@ -145,7 +148,14 @@
url: '/fun-golf-mobile/activeCustomer/insertOne',
type: 'POST',
contentType: "application/json;charset=utf-8;",
data: JSON.stringify(params)
data: JSON.stringify(params),
success: function(){
localStorage.setItem('myPhone', $('#phone').val())
alert('提交成功!')
setTimeout(function() {
location.reload()
}, 1000)
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment