Commit 7ca97388 by chenzhenan

生活事件量表重复提交的bug

parent e5985b49
...@@ -348,9 +348,7 @@ Page({ ...@@ -348,9 +348,7 @@ Page({
} }
var urls = HOST + 'wechat.php?s=Home/del_vip' var urls = HOST + 'wechat.php?s=Home/del_vip'
fetchPost(urls,data1,(err,res)=>{ fetchPost(urls,data1,(err,res)=>{
that.setData({
flag: true
})
if (res == 1 || res == 0) { if (res == 1 || res == 0) {
wx.removeStorageSync('lb_swiper_con'); wx.removeStorageSync('lb_swiper_con');
//删除答题记录缓存 //删除答题记录缓存
...@@ -365,6 +363,9 @@ Page({ ...@@ -365,6 +363,9 @@ Page({
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
that.setData({
flag: true
})
} }
if (res == 1) { if (res == 1) {
// clearTimeout(timer) // clearTimeout(timer)
......
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 to comment